@tryghost/sodo-search 1.8.707 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,8 +22,10 @@ To work on this package by itself, run these commands from this directory:
22
22
  ```bash
23
23
  pnpm build # one-off build
24
24
  pnpm dev # watch and rebuild the UMD JavaScript and CSS
25
- pnpm test # run unit tests once
26
- pnpm lint # lint source and tests
25
+ pnpm test # type-check and run unit tests once
26
+ pnpm test:acceptance # browser tests in Chromium
27
+ pnpm test:acceptance:full # browser tests in Chromium and WebKit
28
+ pnpm lint # lint source and tests
27
29
  ```
28
30
 
29
31
  ## Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/sodo-search",
3
- "version": "1.8.707",
3
+ "version": "1.9.0",
4
4
  "description": "Search interface for Ghost sites",
5
5
  "license": "MIT",
6
6
  "author": "Ghost Foundation",
@@ -19,11 +19,9 @@
19
19
  "registry": "https://registry.npmjs.org/"
20
20
  },
21
21
  "dependencies": {
22
- "@tryghost/debug": "2.3.16",
23
22
  "@tryghost/i18n": "0.0.0",
24
23
  "flexsearch": "0.8.212",
25
- "react": "17.0.2",
26
- "react-dom": "17.0.2"
24
+ "preact": "^10.29.2"
27
25
  },
28
26
  "browserslist": {
29
27
  "production": [
@@ -37,18 +35,17 @@
37
35
  "last 1 safari version"
38
36
  ]
39
37
  },
40
- "jest": {
41
- "coverageReporters": [
42
- "cobertura",
43
- "text-summary",
44
- "html"
45
- ]
46
- },
47
38
  "scripts": {
48
39
  "dev": "vite build --watch --mode development",
49
40
  "build": "vite build",
50
- "test": "vitest run",
51
- "lint": "eslint src test --cache",
41
+ "test": "pnpm run '/^test:(types|unit)$/'",
42
+ "test:types": "tsc --noEmit --incremental false && tsc --noEmit --incremental false -p test/tsconfig.json",
43
+ "test:unit": "vitest run",
44
+ "test:acceptance": "vitest run -c vitest.acceptance.config.mjs",
45
+ "test:acceptance:full": "ALL_BROWSERS=1 pnpm test:acceptance",
46
+ "lint": "pnpm run '/^lint:/'",
47
+ "lint:code": "eslint src test --cache",
48
+ "lint:types": "pnpm test:types",
52
49
  "preship": "pnpm lint",
53
50
  "ship": "node ../../scripts/release-apps.js"
54
51
  }
package/umd/main.css CHANGED
@@ -1,2 +1,2 @@
1
- *,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.m-auto{margin:auto}.-mx-4{margin-left:-1.6rem;margin-right:-1.6rem}.-my-5{margin-top:-2rem;margin-bottom:-2rem}.my-3{margin-top:1.2rem;margin-bottom:1.2rem}.-mb-\[1px\]{margin-bottom:-1px}.-ms-3{margin-inline-start:-1.2rem}.-mt-\[1px\]{margin-top:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.4rem}.me-2{margin-inline-end:.8rem}.me-3{margin-inline-end:1.2rem}.ms-3{margin-inline-start:1.2rem}.mt-0{margin-top:0}.block{display:block}.flex{display:flex}.hidden{display:none}.h-4{height:1.6rem}.h-7{height:2.8rem}.h-\[1\.1rem\]{height:1.1rem}.h-screen{height:100vh}.max-h-\[calc\(100vh-172px\)\]{max-height:calc(100vh - 172px)}.w-4{width:1.6rem}.w-7{width:2.8rem}.w-\[1\.1rem\]{width:1.1rem}.w-full{width:100%}.w-screen{width:100vw}.max-w-\[95vw\]{max-width:95vw}.shrink-0{flex-shrink:0}.grow{flex-grow:1}@keyframes fadein{0%{opacity:0}to{opacity:1}}.animate-fadein{animation:.15s fadein}@keyframes popup{0%{opacity:0;transform:translateY(-20px)}1%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-popup{animation:.15s popup}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-y-auto{overflow-y:auto}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded{border-radius:.4rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.8rem}.rounded-t-lg{border-top-left-radius:.8rem;border-top-right-radius:.8rem}.border{border-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(229 229 229/var(--tw-bg-opacity,1))}.bg-neutral-300{--tw-bg-opacity:1;background-color:rgb(212 212 212/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right, var(--tw-gradient-stops))}.from-\[rgba\(0\,0\,0\,0\.2\)\]{--tw-gradient-from:#0003 var(--tw-gradient-from-position);--tw-gradient-to:#0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[rgba\(0\,0\,0\,0\.1\)\]{--tw-gradient-to:#0000001a var(--tw-gradient-to-position)}.object-cover{object-fit:cover}.p-\[1rem\]{padding:1rem}.px-4{padding-left:1.6rem;padding-right:1.6rem}.px-7{padding-left:2.8rem;padding-right:2.8rem}.py-3{padding-top:1.2rem;padding-bottom:1.2rem}.py-4{padding-top:1.6rem;padding-bottom:1.6rem}.py-5{padding-top:2rem;padding-bottom:2rem}.py-\[1rem\]{padding-top:1rem;padding-bottom:1rem}.ps-3{padding-inline-start:1.2rem}.pt-20{padding-top:8rem}.text-\[1\.65rem\]{font-size:1.65rem}.text-sm{font-size:1.4rem}.text-xs{font-size:1.2rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-neutral-400{--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.text-neutral-800{--tw-text-opacity:1;color:rgb(38 38 38/var(--tw-text-opacity,1))}.text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.shadow{--tw-shadow:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.outline-none{outline-offset:2px;outline:2px solid #0000}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\[2px\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150{transition-duration:.15s}html{font-size:62.5%}body{font-size:1.5rem}.ghost-display{display:block!important}.placeholder\:text-gray-400::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.hover\:border-neutral-300:hover{--tw-border-opacity:1;border-color:rgb(212 212 212/var(--tw-border-opacity,1))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.hover\:text-neutral-500:hover{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.focus-visible\:outline-none:focus-visible{outline-offset:2px;outline:2px solid #0000}@media (width>=640px){.sm\:-mx-7{margin-left:-2.8rem;margin-right:-2.8rem}.sm\:hidden{display:none}.sm\:max-h-\[70vh\]{max-height:70vh}.sm\:max-w-lg{max-width:51.2rem}.sm\:px-7{padding-left:2.8rem;padding-right:2.8rem}}
1
+ *,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.m-auto{margin:auto}.-mx-4{margin-left:-1.6rem;margin-right:-1.6rem}.-my-5{margin-top:-2rem;margin-bottom:-2rem}.my-3{margin-top:1.2rem;margin-bottom:1.2rem}.-mb-\[1px\]{margin-bottom:-1px}.-ms-3{margin-inline-start:-1.2rem}.-mt-\[1px\]{margin-top:-1px}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.4rem}.me-2{margin-inline-end:.8rem}.me-3{margin-inline-end:1.2rem}.ms-3{margin-inline-start:1.2rem}.mt-0{margin-top:0}.block{display:block}.flex{display:flex}.hidden{display:none}.h-4{height:1.6rem}.h-7{height:2.8rem}.h-\[1\.1rem\]{height:1.1rem}.h-screen{height:100vh}.max-h-\[calc\(100vh-172px\)\]{max-height:calc(100vh - 172px)}.w-4{width:1.6rem}.w-7{width:2.8rem}.w-\[1\.1rem\]{width:1.1rem}.w-full{width:100%}.w-screen{width:100vw}.max-w-\[95vw\]{max-width:95vw}.shrink-0{flex-shrink:0}.grow{flex-grow:1}@keyframes fadein{0%{opacity:0}to{opacity:1}}.animate-fadein{animation:.15s fadein}@keyframes popup{0%{opacity:0;transform:translateY(-20px)}1%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.animate-popup{animation:.15s popup}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-y-auto{overflow-y:auto}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded{border-radius:.4rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.8rem}.rounded-t-lg{border-top-left-radius:.8rem;border-top-right-radius:.8rem}.border{border-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.bg-neutral-100{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.bg-neutral-200{--tw-bg-opacity:1;background-color:rgb(229 229 229/var(--tw-bg-opacity,1))}.bg-neutral-300{--tw-bg-opacity:1;background-color:rgb(212 212 212/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right, var(--tw-gradient-stops))}.from-\[rgba\(0\,0\,0\,0\.2\)\]{--tw-gradient-from:#0003 var(--tw-gradient-from-position);--tw-gradient-to:#0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.to-\[rgba\(0\,0\,0\,0\.1\)\]{--tw-gradient-to:#0000001a var(--tw-gradient-to-position)}.object-cover{object-fit:cover}.p-\[1rem\]{padding:1rem}.px-4{padding-left:1.6rem;padding-right:1.6rem}.px-7{padding-left:2.8rem;padding-right:2.8rem}.py-3{padding-top:1.2rem;padding-bottom:1.2rem}.py-4{padding-top:1.6rem;padding-bottom:1.6rem}.py-5{padding-top:2rem;padding-bottom:2rem}.py-\[1rem\]{padding-top:1rem;padding-bottom:1rem}.pb-3{padding-bottom:1.2rem}.ps-3{padding-inline-start:1.2rem}.pt-20{padding-top:8rem}.pt-3{padding-top:1.2rem}.text-\[1\.65rem\]{font-size:1.65rem}.text-sm{font-size:1.4rem}.text-xs{font-size:1.2rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.text-neutral-400{--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.text-neutral-800{--tw-text-opacity:1;color:rgb(38 38 38/var(--tw-text-opacity,1))}.text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.shadow{--tw-shadow:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.outline-none{outline-offset:2px;outline:2px solid #0000}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\[2px\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150{transition-duration:.15s}html{font-size:62.5%}body{font-size:1.5rem}.ghost-display{display:block!important}.placeholder\:text-gray-400::placeholder{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.hover\:border-neutral-300:hover{--tw-border-opacity:1;border-color:rgb(212 212 212/var(--tw-border-opacity,1))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.hover\:text-neutral-500:hover{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.focus-visible\:outline-none:focus-visible{outline-offset:2px;outline:2px solid #0000}@media (width>=640px){.sm\:-mx-7{margin-left:-2.8rem;margin-right:-2.8rem}.sm\:hidden{display:none}.sm\:max-h-\[70vh\]{max-height:70vh}.sm\:max-w-lg{max-width:51.2rem}.sm\:px-7{padding-left:2.8rem;padding-right:2.8rem}}
2
2
  /*$vite$:1*/
@@ -1,17 +1,9 @@
1
- (function(e){typeof define==`function`&&define.amd?define([],e):e()})(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=o(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),u=o((e=>{var t=l(),n=60103,r=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var i=60109,a=60110,o=60112;e.Suspense=60113;var s=60115,c=60116;if(typeof Symbol==`function`&&Symbol.for){var u=Symbol.for;n=u(`react.element`),r=u(`react.portal`),e.Fragment=u(`react.fragment`),e.StrictMode=u(`react.strict_mode`),e.Profiler=u(`react.profiler`),i=u(`react.provider`),a=u(`react.context`),o=u(`react.forward_ref`),e.Suspense=u(`react.suspense`),s=u(`react.memo`),c=u(`react.lazy`)}var d=typeof Symbol==`function`&&Symbol.iterator;function f(e){return typeof e!=`object`||!e?null:(e=d&&e[d]||e[`@@iterator`],typeof e==`function`?e:null)}function p(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(p(85));this.updater.enqueueSetState(this,e,t,`setState`)},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function _(){}_.prototype=g.prototype;function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}var y=v.prototype=new _;y.constructor=v,t(y,g.prototype),y.isPureReactComponent=!0;var b={current:null},x=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,a={},o=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=``+t.key),t)x.call(t,i)&&!S.hasOwnProperty(i)&&(a[i]=t[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:b.current}}function w(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function T(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function E(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var D=/\/+/g;function O(e,t){return typeof e==`object`&&e&&e.key!=null?E(``+e.key):t.toString(36)}function k(e,t,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case n:case r:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+O(c,0):a,Array.isArray(o)?(i=``,e!=null&&(i=e.replace(D,`$&/`)+`/`),k(o,t,i,``,function(e){return e})):o!=null&&(T(o)&&(o=w(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(D,`$&/`)+`/`)+e)),t.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,Array.isArray(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+O(s,l);c+=k(s,t,i,u,o)}else if(u=f(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+O(s,l++),c+=k(s,t,i,u,o);else if(s===`object`)throw t=``+e,Error(p(31,t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t));return c}function A(e,t,n){if(e==null)return e;var r=[],i=0;return k(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function j(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){e._status===0&&(t=t.default,e._status=1,e._result=t)},function(t){e._status===0&&(e._status=2,e._result=t)})}if(e._status===1)return e._result;throw e._result}var M={current:null};function N(){var e=M.current;if(e===null)throw Error(p(321));return e}var P={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:t};e.Children={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error(p(143));return e}},e.Component=g,e.PureComponent=v,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,e.cloneElement=function(e,r,i){if(e==null)throw Error(p(267,e));var a=t({},e.props),o=e.key,s=e.ref,c=e._owner;if(r!=null){if(r.ref!==void 0&&(s=r.ref,c=b.current),r.key!==void 0&&(o=``+r.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in r)x.call(r,u)&&!S.hasOwnProperty(u)&&(a[u]=r[u]===void 0&&l!==void 0?l[u]:r[u])}var u=arguments.length-2;if(u===1)a.children=i;else if(1<u){l=Array(u);for(var d=0;d<u;d++)l[d]=arguments[d+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:a,_owner:c}},e.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:i,_context:e},e.Consumer=e},e.createElement=C,e.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:o,render:e}},e.isValidElement=T,e.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:j}},e.memo=function(e,t){return{$$typeof:s,type:e,compare:t===void 0?null:t}},e.useCallback=function(e,t){return N().useCallback(e,t)},e.useContext=function(e,t){return N().useContext(e,t)},e.useDebugValue=function(){},e.useEffect=function(e,t){return N().useEffect(e,t)},e.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},e.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},e.useMemo=function(e,t){return N().useMemo(e,t)},e.useReducer=function(e,t,n){return N().useReducer(e,t,n)},e.useRef=function(e){return N().useRef(e)},e.useState=function(e){return N().useState(e)},e.version=`17.0.2`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{var t,n,r,i;if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}if(typeof window>`u`||typeof MessageChannel!=`function`){var c=null,l=null,u=function(){if(c!==null)try{var t=e.unstable_now();c(!0,t),c=null}catch(e){throw setTimeout(u,0),e}};t=function(e){c===null?(c=e,setTimeout(u,0)):setTimeout(t,0,e)},n=function(e,t){l=setTimeout(e,t)},r=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<`u`){var p=window.cancelAnimationFrame;typeof window.requestAnimationFrame!=`function`&&console.error(`This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),typeof p!=`function`&&console.error(`This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`)}var m=!1,h=null,g=-1,_=5,v=0;e.unstable_shouldYield=function(){return e.unstable_now()>=v},i=function(){},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):_=0<e?Math.floor(1e3/e):5};var y=new MessageChannel,b=y.port2;y.port1.onmessage=function(){if(h!==null){var t=e.unstable_now();v=t+_;try{h(!0,t)?b.postMessage(null):(m=!1,h=null)}catch(e){throw b.postMessage(null),e}}else m=!1},t=function(e){h=e,m||(m=!0,b.postMessage(null))},n=function(t,n){g=d(function(){t(e.unstable_now())},n)},r=function(){f(g),g=-1}}function x(e,t){var n=e.length;e.push(t);a:for(;;){var r=n-1>>>1,i=e[r];if(i!==void 0&&0<w(i,t))e[r]=t,e[n]=i,n=r;else break a}}function S(e){return e=e[0],e===void 0?null:e}function C(e){var t=e[0];if(t!==void 0){var n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,c=e[s];if(o!==void 0&&0>w(o,n))c!==void 0&&0>w(c,o)?(e[r]=c,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else if(c!==void 0&&0>w(c,n))e[r]=c,e[s]=n,r=s;else break a}}return t}return null}function w(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}var T=[],E=[],D=1,O=null,k=3,A=!1,j=!1,M=!1;function N(e){for(var t=S(E);t!==null;){if(t.callback===null)C(E);else if(t.startTime<=e)C(E),t.sortIndex=t.expirationTime,x(T,t);else break;t=S(E)}}function P(e){if(M=!1,N(e),!j)if(S(T)!==null)j=!0,t(ee);else{var r=S(E);r!==null&&n(P,r.startTime-e)}}function ee(t,i){j=!1,M&&(M=!1,r()),A=!0;var a=k;try{for(N(i),O=S(T);O!==null&&(!(O.expirationTime>i)||t&&!e.unstable_shouldYield());){var o=O.callback;if(typeof o==`function`){O.callback=null,k=O.priorityLevel;var s=o(O.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?O.callback=s:O===S(T)&&C(T),N(i)}else C(T);O=S(T)}if(O!==null)var c=!0;else{var l=S(E);l!==null&&n(P,l.startTime-i),c=!1}return c}finally{O=null,k=a,A=!1}}var te=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){j||A||(j=!0,t(ee))},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_getFirstCallbackNode=function(){return S(T)},e.unstable_next=function(e){switch(k){case 1:case 2:case 3:var t=3;break;default:t=k}var n=k;k=t;try{return e()}finally{k=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=te,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=k;k=e;try{return t()}finally{k=n}},e.unstable_scheduleCallback=function(i,a,o){var s=e.unstable_now();switch(typeof o==`object`&&o?(o=o.delay,o=typeof o==`number`&&0<o?s+o:s):o=s,i){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=o+c,i={id:D++,callback:a,priorityLevel:i,startTime:o,expirationTime:c,sortIndex:-1},o>s?(i.sortIndex=o,x(E,i),S(T)===null&&i===S(E)&&(M?r():M=!0,n(P,o-s))):(i.sortIndex=c,x(T,i),j||A||(j=!0,t(ee))),i},e.unstable_wrapCallback=function(e){var t=k;return function(){var n=k;k=t;try{return e.apply(this,arguments)}finally{k=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d(),n=l(),r=p();function i(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}if(!t)throw Error(i(227));var a=new Set,o={};function s(e,t){c(e,t),c(e+`Capture`,t)}function c(e,t){for(o[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m=Object.prototype.hasOwnProperty,h={},g={};function _(e){return m.call(g,e)?!0:m.call(h,e)?!1:f.test(e)?g[e]=!0:(h[e]=!0,!1)}function v(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function y(e,t,n,r){if(t==null||v(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function b(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var x={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){x[e]=new b(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];x[t]=new b(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){x[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){x[e]=new b(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){x[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){x[e]=new b(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){x[e]=new b(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){x[e]=new b(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){x[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function C(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(S,C);x[t]=new b(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(S,C);x[t]=new b(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(S,C);x[t]=new b(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){x[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),x.xlinkHref=new b(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){x[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});function w(e,t,n,r){var i=x.hasOwnProperty(t)?x[t]:null;(i===null?!r&&!(!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`):i.type===0)||(y(t,n,i,r)&&(n=null),r||i===null?_(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var T=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,D=60106,O=60107,k=60108,A=60114,j=60109,M=60110,N=60112,P=60113,ee=60120,te=60115,ne=60116,re=60121,ie=60128,ae=60129,oe=60130,se=60131;if(typeof Symbol==`function`&&Symbol.for){var F=Symbol.for;E=F(`react.element`),D=F(`react.portal`),O=F(`react.fragment`),k=F(`react.strict_mode`),A=F(`react.profiler`),j=F(`react.provider`),M=F(`react.context`),N=F(`react.forward_ref`),P=F(`react.suspense`),ee=F(`react.suspense_list`),te=F(`react.memo`),ne=F(`react.lazy`),re=F(`react.block`),F(`react.scope`),ie=F(`react.opaque.id`),ae=F(`react.debug_trace_mode`),oe=F(`react.offscreen`),se=F(`react.legacy_hidden`)}var ce=typeof Symbol==`function`&&Symbol.iterator;function le(e){return typeof e!=`object`||!e?null:(e=ce&&e[ce]||e[`@@iterator`],typeof e==`function`?e:null)}var ue;function de(e){if(ue===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ue=t&&t[1]||``}return`
2
- `+ue+e}var fe=!1;function pe(e,t){if(!e||fe)return``;fe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&typeof e.stack==`string`){for(var i=e.stack.split(`
3
- `),a=r.stack.split(`
4
- `),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s])return`
5
- `+i[o].replace(` at new `,` at `);while(1<=o&&0<=s);break}}}finally{fe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?de(e):``}function me(e){switch(e.tag){case 5:return de(e.type);case 16:return de(`Lazy`);case 13:return de(`Suspense`);case 19:return de(`SuspenseList`);case 0:case 2:case 15:return e=pe(e.type,!1),e;case 11:return e=pe(e.type.render,!1),e;case 22:return e=pe(e.type._render,!1),e;case 1:return e=pe(e.type,!0),e;default:return``}}function I(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case D:return`Portal`;case A:return`Profiler`;case k:return`StrictMode`;case P:return`Suspense`;case ee:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case M:return(e.displayName||`Context`)+`.Consumer`;case j:return(e._context.displayName||`Context`)+`.Provider`;case N:var t=e.render;return t=t.displayName||t.name||``,e.displayName||(t===``?`ForwardRef`:`ForwardRef(`+t+`)`);case te:return I(e.type);case re:return I(e._render);case ne:t=e._payload,e=e._init;try{return I(e(t))}catch{}}return null}function L(e){switch(typeof e){case`boolean`:case`number`:case`object`:case`string`:case`undefined`:return e;default:return``}}function he(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function R(e){var t=he(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ge(e){e._valueTracker||=R(e)}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=he(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function ve(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ye(e,t){var r=t.checked;return n({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function be(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=L(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function xe(e,t){t=t.checked,t!=null&&w(e,`checked`,t,!1)}function Se(e,t){xe(e,t);var n=L(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?we(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&we(e,t.type,L(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function we(e,t,n){(t!==`number`||ve(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}function Te(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function Ee(e,t){return e=n({children:void 0},t),(t=Te(t.children))&&(e.children=t),e}function De(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+L(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Oe(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return n({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function ke(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:L(n)}}function Ae(e,t){var n=L(t.value),r=L(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function je(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}var Me={html:`http://www.w3.org/1999/xhtml`,mathml:`http://www.w3.org/1998/Math/MathML`,svg:`http://www.w3.org/2000/svg`};function Ne(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Pe(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Ne(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Fe,Ie=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==Me.svg||`innerHTML`in e)e.innerHTML=t;else{for(Fe||=document.createElement(`div`),Fe.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Le(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var z={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Re=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(z).forEach(function(e){Re.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),z[t]=z[e]})});function ze(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||z.hasOwnProperty(e)&&z[e]?(``+t).trim():t+`px`}function Be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=ze(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Ve=n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function He(e,t){if(t){if(Ve[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(!(typeof t.dangerouslySetInnerHTML==`object`&&`__html`in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(i(62))}}function Ue(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}function We(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ge=null,Ke=null,qe=null;function Je(e){if(e=Ti(e)){if(typeof Ge!=`function`)throw Error(i(280));var t=e.stateNode;t&&(t=Di(t),Ge(e.stateNode,e.type,t))}}function Ye(e){Ke?qe?qe.push(e):qe=[e]:Ke=e}function Xe(){if(Ke){var e=Ke,t=qe;if(qe=Ke=null,Je(e),t)for(e=0;e<t.length;e++)Je(t[e])}}function Ze(e,t){return e(t)}function Qe(e,t,n,r,i){return e(t,n,r,i)}function $e(){}var et=Ze,tt=!1,nt=!1;function rt(){(Ke!==null||qe!==null)&&($e(),Xe())}function it(e,t,n){if(nt)return e(t,n);nt=!0;try{return et(e,t,n)}finally{nt=!1,rt()}}function at(e,t){var n=e.stateNode;if(n===null)return null;var r=Di(n);if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var ot=!1;if(u)try{var st={};Object.defineProperty(st,"passive",{get:function(){ot=!0}}),window.addEventListener(`test`,st,st),window.removeEventListener(`test`,st,st)}catch{ot=!1}function ct(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var B=!1,lt=null,ut=!1,dt=null,ft={onError:function(e){B=!0,lt=e}};function pt(e,t,n,r,i,a,o,s,c){B=!1,lt=null,ct.apply(ft,arguments)}function mt(e,t,n,r,a,o,s,c,l){if(pt.apply(this,arguments),B){if(B){var u=lt;B=!1,lt=null}else throw Error(i(198));ut||(ut=!0,dt=u)}}function ht(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function gt(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _t(e){if(ht(e)!==e)throw Error(i(188))}function vt(e){var t=e.alternate;if(!t){if(t=ht(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return _t(a),e;if(o===r)return _t(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,r=o;break}if(c===r){s=!0,r=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=a;break}if(c===r){s=!0,r=o,n=a;break}c=c.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function yt(e){if(e=vt(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function bt(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var xt,St,Ct,wt,Tt=!1,Et=[],Dt=null,Ot=null,kt=null,At=new Map,jt=new Map,Mt=[],Nt=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function Pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function Ft(e,t){switch(e){case`focusin`:case`focusout`:Dt=null;break;case`dragenter`:case`dragleave`:Ot=null;break;case`mouseover`:case`mouseout`:kt=null;break;case`pointerover`:case`pointerout`:At.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:jt.delete(t.pointerId)}}function It(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e=Pt(t,n,r,i,a),t!==null&&(t=Ti(t),t!==null&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Lt(e,t,n,r,i){switch(t){case`focusin`:return Dt=It(Dt,e,t,n,r,i),!0;case`dragenter`:return Ot=It(Ot,e,t,n,r,i),!0;case`mouseover`:return kt=It(kt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return At.set(a,It(At.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,jt.set(a,It(jt.get(a)||null,e,t,n,r,i)),!0}return!1}function Rt(e){var t=wi(e.target);if(t!==null){var n=ht(t);if(n!==null){if(t=n.tag,t===13){if(t=gt(n),t!==null){e.blockedOn=t,wt(e.lanePriority,function(){r.unstable_runWithPriority(e.priority,function(){Ct(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zt(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Ti(n),t!==null&&St(t),e.blockedOn=n,!1;t.shift()}return!0}function Bt(e,t,n){zt(e)&&n.delete(t)}function Vt(){for(Tt=!1;0<Et.length;){var e=Et[0];if(e.blockedOn!==null){e=Ti(e.blockedOn),e!==null&&xt(e);break}for(var t=e.targetContainers;0<t.length;){var n=wn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Et.shift()}Dt!==null&&zt(Dt)&&(Dt=null),Ot!==null&&zt(Ot)&&(Ot=null),kt!==null&&zt(kt)&&(kt=null),At.forEach(Bt),jt.forEach(Bt)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Vt)))}function Ut(e){function t(t){return Ht(t,e)}if(0<Et.length){Ht(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Dt!==null&&Ht(Dt,e),Ot!==null&&Ht(Ot,e),kt!==null&&Ht(kt,e),At.forEach(t),jt.forEach(t),n=0;n<Mt.length;n++)r=Mt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&(n=Mt[0],n.blockedOn===null);)Rt(n),n.blockedOn===null&&Mt.shift()}function Wt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Gt={animationend:Wt(`Animation`,`AnimationEnd`),animationiteration:Wt(`Animation`,`AnimationIteration`),animationstart:Wt(`Animation`,`AnimationStart`),transitionend:Wt(`Transition`,`TransitionEnd`)},Kt={},qt={};u&&(qt=document.createElement(`div`).style,`AnimationEvent`in window||(delete Gt.animationend.animation,delete Gt.animationiteration.animation,delete Gt.animationstart.animation),`TransitionEvent`in window||delete Gt.transitionend.transition);function Jt(e){if(Kt[e])return Kt[e];if(!Gt[e])return e;var t=Gt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qt)return Kt[e]=t[n];return e}var Yt=Jt(`animationend`),Xt=Jt(`animationiteration`),Zt=Jt(`animationstart`),Qt=Jt(`transitionend`),$t=new Map,en=new Map,tn=[`abort`,`abort`,Yt,`animationEnd`,Xt,`animationIteration`,Zt,`animationStart`,`canplay`,`canPlay`,`canplaythrough`,`canPlayThrough`,`durationchange`,`durationChange`,`emptied`,`emptied`,`encrypted`,`encrypted`,`ended`,`ended`,`error`,`error`,`gotpointercapture`,`gotPointerCapture`,`load`,`load`,`loadeddata`,`loadedData`,`loadedmetadata`,`loadedMetadata`,`loadstart`,`loadStart`,`lostpointercapture`,`lostPointerCapture`,`playing`,`playing`,`progress`,`progress`,`seeking`,`seeking`,`stalled`,`stalled`,`suspend`,`suspend`,`timeupdate`,`timeUpdate`,Qt,`transitionEnd`,`waiting`,`waiting`];function nn(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i=`on`+(i[0].toUpperCase()+i.slice(1)),en.set(r,t),$t.set(r,i),s(i,[r])}}var rn=r.unstable_now;rn();var V=8;function an(e){if(1&e)return V=15,1;if(2&e)return V=14,2;if(4&e)return V=13,4;var t=24&e;return t===0?e&32?(V=11,32):(t=192&e,t===0?e&256?(V=9,256):(t=3584&e,t===0?e&4096?(V=7,4096):(t=4186112&e,t===0?(t=62914560&e,t===0?e&67108864?(V=4,67108864):e&134217728?(V=3,134217728):(t=805306368&e,t===0?1073741824&e?(V=1,1073741824):(V=8,e):(V=2,t)):(V=5,t)):(V=6,t)):(V=8,t)):(V=10,t)):(V=12,t)}function on(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function sn(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}function cn(e,t){var n=e.pendingLanes;if(n===0)return V=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(a!==0)r=a,i=V=15;else if(a=n&134217727,a!==0){var c=a&~o;c===0?(s&=a,s!==0&&(r=an(s),i=V)):(r=an(c),i=V)}else a=n&~o,a===0?s!==0&&(r=an(s),i=V):(r=an(a),i=V);if(r===0)return 0;if(r=31-mn(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&(t&o)===0){if(an(t),i<=V)return t;V=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-mn(t),i=1<<n,r|=e[n],t&=~i;return r}function ln(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function un(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=dn(24&~t),e===0?un(10,t):e;case 10:return e=dn(192&~t),e===0?un(8,t):e;case 8:return e=dn(3584&~t),e===0&&(e=dn(4186112&~t),e===0&&(e=512)),e;case 2:return t=dn(805306368&~t),t===0&&(t=268435456),t}throw Error(i(358,e))}function dn(e){return e&-e}function fn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pn(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-mn(t),e[t]=n}var mn=Math.clz32?Math.clz32:_n,hn=Math.log,gn=Math.LN2;function _n(e){return e===0?32:31-(hn(e)/gn|0)|0}var vn=r.unstable_UserBlockingPriority,yn=r.unstable_runWithPriority,bn=!0;function xn(e,t,n,r){tt||$e();var i=Cn,a=tt;tt=!0;try{Qe(i,e,t,n,r)}finally{(tt=a)||rt()}}function Sn(e,t,n,r){yn(vn,Cn.bind(null,e,t,n,r))}function Cn(e,t,n,r){if(bn){var i;if((i=(t&4)==0)&&0<Et.length&&-1<Nt.indexOf(e))e=Pt(null,e,t,n,r),Et.push(e);else{var a=wn(e,t,n,r);if(a===null)i&&Ft(e,r);else{if(i){if(-1<Nt.indexOf(e)){e=Pt(a,e,t,n,r),Et.push(e);return}if(Lt(a,e,t,n,r))return;Ft(e,r)}ni(e,t,r,null,n)}}}}function wn(e,t,n,r){var i=We(r);if(i=wi(i),i!==null){var a=ht(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=gt(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return ni(e,t,r,i,n),null}var Tn=null,En=null,Dn=null;function On(){if(Dn)return Dn;var e,t=En,n=t.length,r,i=`value`in Tn?Tn.value:Tn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Dn=i.slice(e,1<r?1-r:void 0)}function kn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function An(){return!0}function jn(){return!1}function Mn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?An:jn,this.isPropagationStopped=jn,this}return n(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=An)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=An)},persist:function(){},isPersistent:An}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Mn(Nn),Fn=n({},Nn,{view:0,detail:0}),In=Mn(Fn),Ln,Rn,zn,Bn=n({},Fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==zn&&(zn&&e.type===`mousemove`?(Ln=e.screenX-zn.screenX,Rn=e.screenY-zn.screenY):Rn=Ln=0,zn=e),Ln)},movementY:function(e){return`movementY`in e?e.movementY:Rn}}),Vn=Mn(Bn),Hn=Mn(n({},Bn,{dataTransfer:0})),Un=Mn(n({},Fn,{relatedTarget:0})),Wn=Mn(n({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0})),Gn=Mn(n({},Nn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Kn=Mn(n({},Nn,{data:0})),qn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Jn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Yn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yn[e])?!!t[e]:!1}function Zn(){return Xn}var Qn=Mn(n({},Fn,{key:function(e){if(e.key){var t=qn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=kn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Jn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zn,charCode:function(e){return e.type===`keypress`?kn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?kn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),$n=Mn(n({},Bn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),er=Mn(n({},Fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zn})),tr=Mn(n({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=Mn(n({},Bn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),rr=[9,13,27,32],ir=u&&`CompositionEvent`in window,ar=null;u&&`documentMode`in document&&(ar=document.documentMode);var or=u&&`TextEvent`in window&&!ar,H=u&&(!ir||ar&&8<ar&&11>=ar),sr=` `,cr=!1;function lr(e,t){switch(e){case`keyup`:return rr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ur(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var dr=!1;function fr(e,t){switch(e){case`compositionend`:return ur(t);case`keypress`:return t.which===32?(cr=!0,sr):null;case`textInput`:return e=t.data,e===sr&&cr?null:e;default:return null}}function pr(e,t){if(dr)return e===`compositionend`||!ir&&lr(e,t)?(e=On(),Dn=En=Tn=null,dr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return H&&t.locale!==`ko`?null:t.data;default:return null}}var mr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!mr[e.type]:t===`textarea`}function gr(e,t,n,r){Ye(r),t=ii(t,`onChange`),0<t.length&&(n=new Pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var _r=null,vr=null;function yr(e){Qr(e,0)}function br(e){if(_e(Ei(e)))return e}function xr(e,t){if(e===`change`)return t}var Sr=!1;if(u){var Cr;if(u){var wr=`oninput`in document;if(!wr){var Tr=document.createElement(`div`);Tr.setAttribute(`oninput`,`return;`),wr=typeof Tr.oninput==`function`}Cr=wr}else Cr=!1;Sr=Cr&&(!document.documentMode||9<document.documentMode)}function Er(){_r&&(_r.detachEvent(`onpropertychange`,Dr),vr=_r=null)}function Dr(e){if(e.propertyName===`value`&&br(vr)){var t=[];if(gr(t,vr,e,We(e)),e=yr,tt)e(t);else{tt=!0;try{Ze(e,t)}finally{tt=!1,rt()}}}}function Or(e,t,n){e===`focusin`?(Er(),_r=t,vr=n,_r.attachEvent(`onpropertychange`,Dr)):e===`focusout`&&Er()}function kr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return br(vr)}function Ar(e,t){if(e===`click`)return br(t)}function jr(e,t){if(e===`input`||e===`change`)return br(t)}function Mr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Nr=typeof Object.is==`function`?Object.is:Mr,Pr=Object.prototype.hasOwnProperty;function Fr(e,t){if(Nr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Pr.call(t,n[r])||!Nr(e[n[r]],t[n[r]]))return!1;return!0}function Ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lr(e,t){var n=Ir(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Ir(n)}}function Rr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zr(){for(var e=window,t=ve();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=ve(e.document)}return t}function Br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Vr=u&&`documentMode`in document&&11>=document.documentMode,Hr=null,Ur=null,Wr=null,Gr=!1;function Kr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gr||Hr==null||Hr!==ve(r)||(r=Hr,`selectionStart`in r&&Br(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Wr&&Fr(Wr,r)||(Wr=r,r=ii(Ur,`onSelect`),0<r.length&&(t=new Pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Hr)))}nn(`cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange`.split(` `),0),nn(`drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel`.split(` `),1),nn(tn,2);for(var qr=`change selectionchange textInput compositionstart compositionend compositionupdate`.split(` `),Jr=0;Jr<qr.length;Jr++)en.set(qr[Jr],0);c(`onMouseEnter`,[`mouseout`,`mouseover`]),c(`onMouseLeave`,[`mouseout`,`mouseover`]),c(`onPointerEnter`,[`pointerout`,`pointerover`]),c(`onPointerLeave`,[`pointerout`,`pointerover`]),s(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),s(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),s(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),s(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),s(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),s(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Yr=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Xr=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(Yr));function Zr(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,mt(r,t,void 0,e),e.currentTarget=null}function Qr(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;Zr(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;Zr(i,s,l),a=c}}}if(ut)throw e=dt,ut=!1,dt=null,e}function U(e,t){var n=Oi(t),r=e+`__bubble`;n.has(r)||(W(t,e,2,!1),n.add(r))}var $r=`_reactListening`+Math.random().toString(36).slice(2);function ei(e){e[$r]||(e[$r]=!0,a.forEach(function(t){Xr.has(t)||ti(t,!1,e,null),ti(t,!0,e,null)}))}function ti(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,a=n;if(e===`selectionchange`&&n.nodeType!==9&&(a=n.ownerDocument),r!==null&&!t&&Xr.has(e)){if(e!==`scroll`)return;i|=2,a=r}var o=Oi(a),s=e+`__`+(t?`capture`:`bubble`);o.has(s)||(t&&(i|=4),W(a,e,i,t),o.add(s))}function W(e,t,n,r){var i=en.get(t);switch(i===void 0?2:i){case 0:i=xn;break;case 1:i=Sn;break;default:i=Cn}n=i.bind(null,t,n,e),i=void 0,!ot||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function ni(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=wi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}it(function(){var r=a,i=We(n),o=[];a:{var s=$t.get(e);if(s!==void 0){var c=Pn,l=e;switch(e){case`keypress`:if(kn(n)===0)break a;case`keydown`:case`keyup`:c=Qn;break;case`focusin`:l=`focus`,c=Un;break;case`focusout`:l=`blur`,c=Un;break;case`beforeblur`:case`afterblur`:c=Un;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Vn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Hn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=er;break;case Yt:case Xt:case Zt:c=Wn;break;case Qt:c=tr;break;case`scroll`:c=In;break;case`wheel`:c=nr;break;case`copy`:case`cut`:case`paste`:c=Gn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=$n}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=at(p,f),h!=null&&u.push(ri(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&!(t&16)&&(l=n.relatedTarget||n.fromElement)&&(wi(l)||l[Si]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?wi(l):null,l!==null&&(d=ht(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Vn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=$n,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ei(c),m=l==null?s:Ei(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,wi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=ai(m))p++;for(m=0,h=f;h;h=ai(h))m++;for(;0<p-m;)u=ai(u),p--;for(;0<m-p;)f=ai(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=ai(u),f=ai(f)}u=null}else u=null;c!==null&&oi(o,s,c,u,!1),l!==null&&d!==null&&oi(o,d,l,u,!0)}}a:{if(s=r?Ei(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=xr;else if(hr(s))if(Sr)g=jr;else{g=kr;var _=Or}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Ar);if(g&&=g(e,r)){gr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&we(s,`number`,s.value)}switch(_=r?Ei(r):window,e){case`focusin`:(hr(_)||_.contentEditable===`true`)&&(Hr=_,Ur=r,Wr=null);break;case`focusout`:Wr=Ur=Hr=null;break;case`mousedown`:Gr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Gr=!1,Kr(o,n,i);break;case`selectionchange`:if(Vr)break;case`keydown`:case`keyup`:Kr(o,n,i)}var v;if(ir)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else dr?lr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(H&&n.locale!==`ko`&&(dr||y!==`onCompositionStart`?y===`onCompositionEnd`&&dr&&(v=On()):(Tn=i,En=`value`in Tn?Tn.value:Tn.textContent,dr=!0)),_=ii(r,y),0<_.length&&(y=new Kn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=ur(n),v!==null&&(y.data=v)))),(v=or?fr(e,n):pr(e,n))&&(r=ii(r,`onBeforeInput`),0<r.length&&(i=new Kn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}Qr(o,t)})}function ri(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ii(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=at(e,n),a!=null&&r.unshift(ri(e,a,i)),a=at(e,t),a!=null&&r.push(ri(e,a,i))),e=e.return}return r}function ai(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=at(n,a),c!=null&&o.unshift(ri(n,c,s))):i||(c=at(n,a),c!=null&&o.push(ri(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function si(){}var ci=null,li=null;function ui(e,t){switch(e){case`button`:case`input`:case`select`:case`textarea`:return!!t.autoFocus}return!1}function di(e,t){return e===`textarea`||e===`option`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var fi=typeof setTimeout==`function`?setTimeout:void 0,pi=typeof clearTimeout==`function`?clearTimeout:void 0;function mi(e){e.nodeType===1?e.textContent=``:e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=``))}function hi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function gi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var _i=0;function vi(e){return{$$typeof:ie,toString:e,valueOf:e}}var yi=Math.random().toString(36).slice(2),bi=`__reactFiber$`+yi,xi=`__reactProps$`+yi,Si=`__reactContainer$`+yi,Ci=`__reactEvents$`+yi;function wi(e){var t=e[bi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Si]||n[bi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gi(e);e!==null;){if(n=e[bi])return n;e=gi(e)}return t}e=n,n=e.parentNode}return null}function Ti(e){return e=e[bi]||e[Si],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ei(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Di(e){return e[xi]||null}function Oi(e){var t=e[Ci];return t===void 0&&(t=e[Ci]=new Set),t}var ki=[],Ai=-1;function ji(e){return{current:e}}function G(e){0>Ai||(e.current=ki[Ai],ki[Ai]=null,Ai--)}function K(e,t){Ai++,ki[Ai]=e.current,e.current=t}var Mi={},Ni=ji(Mi),Pi=ji(!1),Fi=Mi;function Ii(e,t){var n=e.type.contextTypes;if(!n)return Mi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Li(e){return e=e.childContextTypes,e!=null}function Ri(){G(Pi),G(Ni)}function zi(e,t,n){if(Ni.current!==Mi)throw Error(i(168));K(Ni,t),K(Pi,n)}function Bi(e,t,r){var a=e.stateNode;if(e=t.childContextTypes,typeof a.getChildContext!=`function`)return r;for(var o in a=a.getChildContext(),a)if(!(o in e))throw Error(i(108,I(t)||`Unknown`,o));return n({},r,a)}function Vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mi,Fi=Ni.current,K(Ni,e),K(Pi,Pi.current),!0}function Hi(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Bi(e,t,Fi),r.__reactInternalMemoizedMergedChildContext=e,G(Pi),G(Ni),K(Ni,e)):G(Pi),K(Pi,n)}var Ui=null,Wi=null,Gi=r.unstable_runWithPriority,Ki=r.unstable_scheduleCallback,qi=r.unstable_cancelCallback,Ji=r.unstable_shouldYield,Yi=r.unstable_requestPaint,Xi=r.unstable_now,Zi=r.unstable_getCurrentPriorityLevel,Qi=r.unstable_ImmediatePriority,$i=r.unstable_UserBlockingPriority,ea=r.unstable_NormalPriority,ta=r.unstable_LowPriority,na=r.unstable_IdlePriority,ra={},ia=Yi===void 0?function(){}:Yi,aa=null,oa=null,sa=!1,ca=Xi(),la=1e4>ca?Xi:function(){return Xi()-ca};function ua(){switch(Zi()){case Qi:return 99;case $i:return 98;case ea:return 97;case ta:return 96;case na:return 95;default:throw Error(i(332))}}function da(e){switch(e){case 99:return Qi;case 98:return $i;case 97:return ea;case 96:return ta;case 95:return na;default:throw Error(i(332))}}function fa(e,t){return e=da(e),Gi(e,t)}function pa(e,t,n){return e=da(e),Ki(e,t,n)}function ma(){if(oa!==null){var e=oa;oa=null,qi(e)}ha()}function ha(){if(!sa&&aa!==null){sa=!0;var e=0;try{var t=aa;fa(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),aa=null}catch(t){throw aa!==null&&(aa=aa.slice(e+1)),Ki(Qi,ma),t}finally{sa=!1}}}var ga=T.ReactCurrentBatchConfig;function _a(e,t){if(e&&e.defaultProps){for(var r in t=n({},t),e=e.defaultProps,e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var va=ji(null),ya=null,ba=null,xa=null;function Sa(){xa=ba=ya=null}function Ca(e){var t=va.current;G(va),e.type._context._currentValue=t}function wa(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Ta(e,t){ya=e,xa=ba=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(es=!0),e.firstContext=null)}function Ea(e,t){if(xa!==e&&!1!==t&&t!==0)if((typeof t!=`number`||t===1073741823)&&(xa=e,t=1073741823),t={context:e,observedBits:t,next:null},ba===null){if(ya===null)throw Error(i(308));ba=t,ya.dependencies={lanes:0,firstContext:t,responders:null}}else ba=ba.next=t;return e._currentValue}var Da=!1;function Oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ka(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Aa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ja(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Ma(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Na(e,t,r,i){var a=e.updateQueue;Da=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var l=c,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var d=e.alternate;if(d!==null){d=d.updateQueue;var f=d.lastBaseUpdate;f!==s&&(f===null?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=l)}}if(o!==null){f=a.baseState,s=0,d=u=l=null;do{c=o.lane;var p=o.eventTime;if((i&c)===c){d!==null&&(d=d.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});a:{var m=e,h=o;switch(c=t,p=r,h.tag){case 1:if(m=h.payload,typeof m==`function`){f=m.call(p,f,c);break a}f=m;break a;case 3:m.flags=m.flags&-4097|64;case 0:if(m=h.payload,c=typeof m==`function`?m.call(p,f,c):m,c==null)break a;f=n({},f,c);break a;case 2:Da=!0}}o.callback!==null&&(e.flags|=32,c=a.effects,c===null?a.effects=[o]:c.push(o))}else p={eventTime:p,lane:c,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=p,l=f):d=d.next=p,s|=c;if(o=o.next,o===null){if(c=a.shared.pending,c===null)break;o=c.next,c.next=null,a.lastBaseUpdate=c,a.shared.pending=null}}while(1);d===null&&(l=f),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=d,tc|=s,e.lanes=s,e.memoizedState=f}}function Pa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(a!==null){if(r.callback=null,r=n,typeof a!=`function`)throw Error(i(191,a));a.call(r)}}}var Fa=new t.Component().refs;function Ia(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:n({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var La={isMounted:function(e){return(e=e._reactInternals)?ht(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=wc(),i=Tc(e),a=Aa(r,i);a.payload=t,n!=null&&(a.callback=n),ja(e,a),Ec(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=wc(),i=Tc(e),a=Aa(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),ja(e,a),Ec(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wc(),r=Tc(e),i=Aa(n,r);i.tag=2,t!=null&&(i.callback=t),ja(e,i),Ec(e,r,n)}};function Ra(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Fr(n,r)||!Fr(i,a):!0}function za(e,t,n){var r=!1,i=Mi,a=t.contextType;return typeof a==`object`&&a?a=Ea(a):(i=Li(t)?Fi:Ni.current,r=t.contextTypes,a=(r=r!=null)?Ii(e,i):Mi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=La,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ba(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&La.enqueueReplaceState(t,t.state,null)}function Va(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Fa,Oa(e);var a=t.contextType;typeof a==`object`&&a?i.context=Ea(a):(a=Li(t)?Fi:Ni.current,i.context=Ii(e,a)),Na(e,n,i,r),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Ia(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&La.enqueueReplaceState(i,i.state,null),Na(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4)}var Ha=Array.isArray;function Ua(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===Fa&&(t=r.refs={}),e===null?delete t[a]:t[a]=e},t._stringRef=a,t)}if(typeof e!=`string`)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Wa(e,t){if(e.type!==`textarea`)throw Error(i(31,Object.prototype.toString.call(t)===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:t))}function Ga(e){function t(t,n){if(e){var r=t.lastEffect;r===null?t.firstEffect=t.lastEffect=n:(r.nextEffect=n,t.lastEffect=n),n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=sl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags=2,n):(r=r.index,r<n?(t.flags=2,n):r)):n}function s(t){return e&&t.alternate===null&&(t.flags=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=dl(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){return t!==null&&t.elementType===n.type?(r=a(t,n.props),r.ref=Ua(e,t,n),r.return=e,r):(r=cl(n.type,n.key,n.props,null,e.mode,r),r.ref=Ua(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=fl(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ll(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`||typeof t==`number`)return t=dl(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=cl(t.type,t.key,t.props,null,e.mode,n),n.ref=Ua(e,null,t),n.return=e,n;case D:return t=fl(t,e.mode,n),t.return=e,t}if(Ha(t)||le(t))return t=ll(t,e.mode,n,null),t.return=e,t;Wa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case E:return n.key===i?n.type===O?d(e,t,n.props.children,r,i):l(e,t,n,r):null;case D:return n.key===i?u(e,t,n,r):null}if(Ha(n)||le(n))return i===null?d(e,t,n,r,null):null;Wa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case E:return e=e.get(r.key===null?n:r.key)||null,r.type===O?d(t,e,r.props.children,i,r.key):l(t,e,r,i);case D:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i)}if(Ha(r)||le(r))return e=e.get(n)||null,d(t,e,r,i,null);Wa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return l}for(d=r(i,d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),l}function g(a,s,c,l){var u=le(c);if(typeof u!=`function`)throw Error(i(150));if(c=u.call(c),c==null)throw Error(i(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return u}for(h=r(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),u}return function(e,r,o,c){var l=typeof o==`object`&&!!o&&o.type===O&&o.key===null;l&&(o=o.props.children);var u=typeof o==`object`&&!!o;if(u)switch(o.$$typeof){case E:a:{for(u=o.key,l=r;l!==null;){if(l.key===u){switch(l.tag){case 7:if(o.type===O){n(e,l.sibling),r=a(l,o.props.children),r.return=e,e=r;break a}break;default:if(l.elementType===o.type){n(e,l.sibling),r=a(l,o.props),r.ref=Ua(e,l,o),r.return=e,e=r;break a}}n(e,l);break}else t(e,l);l=l.sibling}o.type===O?(r=ll(o.props.children,e.mode,c,o.key),r.return=e,e=r):(c=cl(o.type,o.key,o.props,null,e.mode,c),c.ref=Ua(e,r,o),c.return=e,e=c)}return s(e);case D:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),r=a(r,o.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=fl(o,e.mode,c),r.return=e,e=r}return s(e)}if(typeof o==`string`||typeof o==`number`)return o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,o),r.return=e,e=r):(n(e,r),r=dl(o,e.mode,c),r.return=e,e=r),s(e);if(Ha(o))return h(e,r,o,c);if(le(o))return g(e,r,o,c);if(u&&Wa(e,o),o===void 0&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,I(e.type)||`Component`))}return n(e,r)}}var Ka=Ga(!0),qa=Ga(!1),Ja={},Ya=ji(Ja),Xa=ji(Ja),Za=ji(Ja);function Qa(e){if(e===Ja)throw Error(i(174));return e}function $a(e,t){switch(K(Za,t),K(Xa,e),K(Ya,Ja),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pe(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pe(t,e)}G(Ya),K(Ya,t)}function eo(){G(Ya),G(Xa),G(Za)}function to(e){Qa(Za.current);var t=Qa(Ya.current),n=Pe(t,e.type);t!==n&&(K(Xa,e),K(Ya,n))}function no(e){Xa.current===e&&(G(Ya),G(Xa))}var q=ji(0);function ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var io=null,ao=null,oo=!1;function so(e,t){var n=il(5,null,null,0);n.elementType=`DELETED`,n.type=`DELETED`,n.stateNode=t,n.return=e,n.flags=8,e.lastEffect===null?e.firstEffect=e.lastEffect=n:(e.lastEffect.nextEffect=n,e.lastEffect=n)}function co(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,!0);case 13:return!1;default:return!1}}function lo(e){if(oo){var t=ao;if(t){var n=t;if(!co(e,t)){if(t=hi(n.nextSibling),!t||!co(e,t)){e.flags=e.flags&-1025|2,oo=!1,io=e;return}so(io,n)}io=e,ao=hi(t.firstChild)}else e.flags=e.flags&-1025|2,oo=!1,io=e}}function uo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;io=e}function fo(e){if(e!==io)return!1;if(!oo)return uo(e),oo=!0,!1;var t=e.type;if(e.tag!==5||t!==`head`&&t!==`body`&&!di(t,e.memoizedProps))for(t=ao;t;)so(e,t),t=hi(t.nextSibling);if(uo(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){ao=hi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}ao=null}}else ao=io?hi(e.stateNode.nextSibling):null;return!0}function po(){ao=io=null,oo=!1}var mo=[];function ho(){for(var e=0;e<mo.length;e++)mo[e]._workInProgressVersionPrimary=null;mo.length=0}var go=T.ReactCurrentDispatcher,_o=T.ReactCurrentBatchConfig,vo=0,J=null,yo=null,Y=null,bo=!1,xo=!1;function So(){throw Error(i(321))}function Co(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nr(e[n],t[n]))return!1;return!0}function wo(e,t,n,r,a,o){if(vo=o,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,go.current=e===null||e.memoizedState===null?Xo:Zo,e=n(r,a),xo){o=0;do{if(xo=!1,!(25>o))throw Error(i(301));o+=1,Y=yo=null,t.updateQueue=null,go.current=Qo,e=n(r,a)}while(xo)}if(go.current=Yo,t=yo!==null&&yo.next!==null,vo=0,Y=yo=J=null,bo=!1,t)throw Error(i(300));return e}function To(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Y===null?J.memoizedState=Y=e:Y=Y.next=e,Y}function Eo(){if(yo===null){var e=J.alternate;e=e===null?null:e.memoizedState}else e=yo.next;var t=Y===null?J.memoizedState:Y.next;if(t!==null)Y=t,yo=e;else{if(e===null)throw Error(i(310));yo=e,e={memoizedState:yo.memoizedState,baseState:yo.baseState,baseQueue:yo.baseQueue,queue:yo.queue,next:null},Y===null?J.memoizedState=Y=e:Y=Y.next=e}return Y}function Do(e,t){return typeof t==`function`?t(e):t}function Oo(e){var t=Eo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=yo,a=r.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(a!==null){a=a.next,r=r.baseState;var c=s=o=null,l=a;do{var u=l.lane;if((vo&u)===u)c!==null&&(c=c.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var d={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};c===null?(s=c=d,o=r):c=c.next=d,J.lanes|=u,tc|=u}l=l.next}while(l!==null&&l!==a);c===null?o=r:c.next=s,Nr(r,t.memoizedState)||(es=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ko(e){var t=Eo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Nr(o,t.memoizedState)||(es=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ao(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(a===null?(e=e.mutableReadLanes,(e=(vo&e)===e)&&(t._workInProgressVersionPrimary=r,mo.push(t))):e=a===r,e)return n(t._source);throw mo.push(t),Error(i(350))}function jo(e,t,n,r){var a=Ys;if(a===null)throw Error(i(349));var o=t._getVersion,s=o(t._source),c=go.current,l=c.useState(function(){return Ao(a,t,n)}),u=l[1],d=l[0];l=Y;var f=e.memoizedState,p=f.refs,m=p.getSnapshot,h=f.source;f=f.subscribe;var g=J;return e.memoizedState={refs:p,source:t,subscribe:r},c.useEffect(function(){p.getSnapshot=n,p.setSnapshot=u;var e=o(t._source);if(!Nr(s,e)){e=n(t._source),Nr(d,e)||(u(e),e=Tc(g),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,i=e;0<i;){var c=31-mn(i),l=1<<c;r[c]|=e,i&=~l}}},[n,t,r]),c.useEffect(function(){return r(t._source,function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=Tc(g);a.mutableReadLanes|=r&a.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),Nr(m,n)&&Nr(h,t)&&Nr(f,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Do,lastRenderedState:d},e.dispatch=u=Jo.bind(null,J,e),l.queue=e,l.baseQueue=null,d=Ao(a,t,n),l.memoizedState=l.baseState=d),d}function Mo(e,t,n){return jo(Eo(),e,t,n)}function No(e){var t=To();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Do,lastRenderedState:e},e=e.dispatch=Jo.bind(null,J,e),[t.memoizedState,e]}function Po(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=J.updateQueue,t===null?(t={lastEffect:null},J.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Fo(e){var t=To();return e={current:e},t.memoizedState=e}function Io(){return Eo().memoizedState}function Lo(e,t,n,r){var i=To();J.flags|=e,i.memoizedState=Po(1|t,n,void 0,r===void 0?null:r)}function Ro(e,t,n,r){var i=Eo();r=r===void 0?null:r;var a=void 0;if(yo!==null){var o=yo.memoizedState;if(a=o.destroy,r!==null&&Co(r,o.deps)){Po(t,n,a,r);return}}J.flags|=e,i.memoizedState=Po(1|t,n,a,r)}function zo(e,t){return Lo(516,4,e,t)}function Bo(e,t){return Ro(516,4,e,t)}function Vo(e,t){return Ro(4,2,e,t)}function Ho(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Uo(e,t,n){return n=n==null?null:n.concat([e]),Ro(4,2,Ho.bind(null,t,e),n)}function Wo(){}function Go(e,t){var n=Eo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ko(e,t){var n=Eo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Co(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qo(e,t){var n=ua();fa(98>n?98:n,function(){e(!0)}),fa(97<n?97:n,function(){var n=_o.transition;_o.transition=1;try{e(!1),t()}finally{_o.transition=n}})}function Jo(e,t,n){var r=wc(),i=Tc(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===J||o!==null&&o===J)xo=bo=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,c=o(s,n);if(a.eagerReducer=o,a.eagerState=c,Nr(c,s))return}catch{}Ec(e,i,r)}}var Yo={readContext:Ea,useCallback:So,useContext:So,useEffect:So,useImperativeHandle:So,useLayoutEffect:So,useMemo:So,useReducer:So,useRef:So,useState:So,useDebugValue:So,useDeferredValue:So,useTransition:So,useMutableSource:So,useOpaqueIdentifier:So,unstable_isNewReconciler:!1},Xo={readContext:Ea,useCallback:function(e,t){return To().memoizedState=[e,t===void 0?null:t],e},useContext:Ea,useEffect:zo,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),Lo(4,2,Ho.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Lo(4,2,e,t)},useMemo:function(e,t){var n=To();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=To();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Jo.bind(null,J,e),[r.memoizedState,e]},useRef:Fo,useState:No,useDebugValue:Wo,useDeferredValue:function(e){var t=No(e),n=t[0],r=t[1];return zo(function(){var t=_o.transition;_o.transition=1;try{r(e)}finally{_o.transition=t}},[e]),n},useTransition:function(){var e=No(!1),t=e[0];return e=qo.bind(null,e[1]),Fo(e),[e,t]},useMutableSource:function(e,t,n){var r=To();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},jo(r,e,t,n)},useOpaqueIdentifier:function(){if(oo){var e=!1,t=vi(function(){throw e||(e=!0,n(`r:`+(_i++).toString(36))),Error(i(355))}),n=No(t)[1];return!(J.mode&2)&&(J.flags|=516,Po(5,function(){n(`r:`+(_i++).toString(36))},void 0,null)),t}return t=`r:`+(_i++).toString(36),No(t),t},unstable_isNewReconciler:!1},Zo={readContext:Ea,useCallback:Go,useContext:Ea,useEffect:Bo,useImperativeHandle:Uo,useLayoutEffect:Vo,useMemo:Ko,useReducer:Oo,useRef:Io,useState:function(){return Oo(Do)},useDebugValue:Wo,useDeferredValue:function(e){var t=Oo(Do),n=t[0],r=t[1];return Bo(function(){var t=_o.transition;_o.transition=1;try{r(e)}finally{_o.transition=t}},[e]),n},useTransition:function(){var e=Oo(Do)[0];return[Io().current,e]},useMutableSource:Mo,useOpaqueIdentifier:function(){return Oo(Do)[0]},unstable_isNewReconciler:!1},Qo={readContext:Ea,useCallback:Go,useContext:Ea,useEffect:Bo,useImperativeHandle:Uo,useLayoutEffect:Vo,useMemo:Ko,useReducer:ko,useRef:Io,useState:function(){return ko(Do)},useDebugValue:Wo,useDeferredValue:function(e){var t=ko(Do),n=t[0],r=t[1];return Bo(function(){var t=_o.transition;_o.transition=1;try{r(e)}finally{_o.transition=t}},[e]),n},useTransition:function(){var e=ko(Do)[0];return[Io().current,e]},useMutableSource:Mo,useOpaqueIdentifier:function(){return ko(Do)[0]},unstable_isNewReconciler:!1},$o=T.ReactCurrentOwner,es=!1;function ts(e,t,n,r){t.child=e===null?qa(t,null,n,r):Ka(t,e.child,n,r)}function ns(e,t,n,r,i){n=n.render;var a=t.ref;return Ta(t,i),r=wo(e,t,n,r,a,i),e!==null&&!es?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ys(e,t,i)):(t.flags|=1,ts(e,t,r,i),t.child)}function rs(e,t,n,r,i,a){if(e===null){var o=n.type;return typeof o==`function`&&!al(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,is(e,t,o,r,i,a)):(e=cl(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,(i&a)===0&&(i=o.memoizedProps,n=n.compare,n=n===null?Fr:n,n(i,r)&&e.ref===t.ref)?ys(e,t,a):(t.flags|=1,e=sl(o,r),e.ref=t.ref,e.return=t,t.child=e)}function is(e,t,n,r,i,a){if(e!==null&&Fr(e.memoizedProps,r)&&e.ref===t.ref)if(es=!1,(a&i)!==0)e.flags&16384&&(es=!0);else return t.lanes=e.lanes,ys(e,t,a);return ss(e,t,n,r,a)}function as(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`||r.mode===`unstable-defer-without-hiding`)if(!(t.mode&4))t.memoizedState={baseLanes:0},Fc(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Fc(t,a===null?n:a.baseLanes);else return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Fc(t,e),null;else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Fc(t,r);return ts(e,t,i,n),t.child}function os(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function ss(e,t,n,r,i){var a=Li(n)?Fi:Ni.current;return a=Ii(t,a),Ta(t,i),n=wo(e,t,n,r,a,i),e!==null&&!es?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ys(e,t,i)):(t.flags|=1,ts(e,t,n,i),t.child)}function cs(e,t,n,r,i){if(Li(n)){var a=!0;Vi(t)}else a=!1;if(Ta(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),za(t,n,r),Va(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=Ea(l):(l=Li(n)?Fi:Ni.current,l=Ii(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Ba(t,o,r,l),Da=!1;var f=t.memoizedState;o.state=f,Na(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Pi.current||Da?(typeof u==`function`&&(Ia(t,n,u,r),c=t.memoizedState),(s=Da||Ra(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4)):(typeof o.componentDidMount==`function`&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4),r=!1)}else{o=t.stateNode,ka(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:_a(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=Ea(c):(c=Li(n)?Fi:Ni.current,c=Ii(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Ba(t,o,r,c),Da=!1,f=t.memoizedState,o.state=f,Na(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Pi.current||Da?(typeof p==`function`&&(Ia(t,n,p,r),m=t.memoizedState),(l=Da||Ra(t,n,l,r,f,m,c))?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=256)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return ls(e,t,n,r,a,i)}function ls(e,t,n,r,i,a){os(e,t);var o=(t.flags&64)!=0;if(!r&&!o)return i&&Hi(t,n,!1),ys(e,t,a);r=t.stateNode,$o.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ka(t,e.child,null,a),t.child=Ka(t,null,s,a)):ts(e,t,s,a),t.memoizedState=r.state,i&&Hi(t,n,!0),t.child}function us(e){var t=e.stateNode;t.pendingContext?zi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zi(e,t.context,!1),$a(e,t.containerInfo)}var ds={dehydrated:null,retryLane:0};function fs(e,t,n){var r=t.pendingProps,i=q.current,a=!1,o;return(o=(t.flags&64)!=0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!=0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||!0===r.unstable_avoidThisFallback||(i|=1),K(q,i&1),e===null?(r.fallback!==void 0&&lo(t),e=r.children,i=r.fallback,a?(e=ps(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ds,e):typeof r.unstable_expectedLoadTime==`number`?(e=ps(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ds,t.lanes=33554432,e):(n=ul({mode:`visible`,children:e},t.mode,n,null),n.return=t,t.child=n)):(e.memoizedState,a?(r=hs(e,t,r.children,r.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=ds,r):(n=ms(e,t,r.children,n),t.memoizedState=null,n))}function ps(e,t,n,r){var i=e.mode,a=e.child;return t={mode:`hidden`,children:t},!(i&2)&&a!==null?(a.childLanes=0,a.pendingProps=t):a=ul(t,i,0,null),n=ll(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function ms(e,t,n,r){var i=e.child;return e=i.sibling,n=sl(i,{mode:`visible`,children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function hs(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:`hidden`,children:n};return!(a&2)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=s,o=n.lastEffect,o===null?t.firstEffect=t.lastEffect=null:(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null)):n=sl(o,s),e===null?(r=ll(r,a,i,null),r.flags|=2):r=sl(e,r),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function gs(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),wa(e.return,t)}function _s(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function vs(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(ts(e,t,r.children,n),r=q.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gs(e,n);else if(e.tag===19)gs(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(K(q,r),!(t.mode&2))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ro(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),_s(t,!1,i,n,a,t.lastEffect);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}_s(t,!0,n,null,a,t.lastEffect);break;case`together`:_s(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ys(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tc|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=sl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var bs=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},xs=function(e,t,r,i){var a=e.memoizedProps;if(a!==i){e=t.stateNode,Qa(Ya.current);var s=null;switch(r){case`input`:a=ye(e,a),i=ye(e,i),s=[];break;case`option`:a=Ee(e,a),i=Ee(e,i),s=[];break;case`select`:a=n({},a,{value:void 0}),i=n({},i,{value:void 0}),s=[];break;case`textarea`:a=Oe(e,a),i=Oe(e,i),s=[];break;default:typeof a.onClick!=`function`&&typeof i.onClick==`function`&&(e.onclick=si)}He(r,i);var c;for(d in r=null,a)if(!i.hasOwnProperty(d)&&a.hasOwnProperty(d)&&a[d]!=null)if(d===`style`){var l=a[d];for(c in l)l.hasOwnProperty(c)&&(r||={},r[c]=``)}else d!==`dangerouslySetInnerHTML`&&d!==`children`&&d!==`suppressContentEditableWarning`&&d!==`suppressHydrationWarning`&&d!==`autoFocus`&&(o.hasOwnProperty(d)?s||=[]:(s||=[]).push(d,null));for(d in i){var u=i[d];if(l=a?.[d],i.hasOwnProperty(d)&&u!==l&&(u!=null||l!=null))if(d===`style`)if(l){for(c in l)!l.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||(r||={},r[c]=``);for(c in u)u.hasOwnProperty(c)&&l[c]!==u[c]&&(r||={},r[c]=u[c])}else r||(s||=[],s.push(d,r)),r=u;else d===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(s||=[]).push(d,u)):d===`children`?typeof u!=`string`&&typeof u!=`number`||(s||=[]).push(d,``+u):d!==`suppressContentEditableWarning`&&d!==`suppressHydrationWarning`&&(o.hasOwnProperty(d)?(u!=null&&d===`onScroll`&&U(`scroll`,e),s||l===u||(s=[])):typeof u==`object`&&u&&u.$$typeof===ie?u.toString():(s||=[]).push(d,u))}r&&(s||=[]).push(`style`,r);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ss=function(e,t,n,r){n!==r&&(t.flags|=4)};function Cs(e,t){if(!oo)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ws(e,t,r){var a=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Li(t.type)&&Ri(),null;case 3:return eo(),G(Pi),G(Ni),ho(),a=t.stateNode,a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(fo(t)?t.flags|=4:a.hydrate||(t.flags|=256)),null;case 5:no(t);var s=Qa(Za.current);if(r=t.type,e!==null&&t.stateNode!=null)xs(e,t,r,a,s),e.ref!==t.ref&&(t.flags|=128);else{if(!a){if(t.stateNode===null)throw Error(i(166));return null}if(e=Qa(Ya.current),fo(t)){a=t.stateNode,r=t.type;var c=t.memoizedProps;switch(a[bi]=t,a[xi]=c,r){case`dialog`:U(`cancel`,a),U(`close`,a);break;case`iframe`:case`object`:case`embed`:U(`load`,a);break;case`video`:case`audio`:for(e=0;e<Yr.length;e++)U(Yr[e],a);break;case`source`:U(`error`,a);break;case`img`:case`image`:case`link`:U(`error`,a),U(`load`,a);break;case`details`:U(`toggle`,a);break;case`input`:be(a,c),U(`invalid`,a);break;case`select`:a._wrapperState={wasMultiple:!!c.multiple},U(`invalid`,a);break;case`textarea`:ke(a,c),U(`invalid`,a)}for(var l in He(r,c),e=null,c)c.hasOwnProperty(l)&&(s=c[l],l===`children`?typeof s==`string`?a.textContent!==s&&(e=[`children`,s]):typeof s==`number`&&a.textContent!==``+s&&(e=[`children`,``+s]):o.hasOwnProperty(l)&&s!=null&&l===`onScroll`&&U(`scroll`,a));switch(r){case`input`:ge(a),Ce(a,c,!0);break;case`textarea`:ge(a),je(a);break;case`select`:case`option`:break;default:typeof c.onClick==`function`&&(a.onclick=si)}a=e,t.updateQueue=a,a!==null&&(t.flags|=4)}else{switch(l=s.nodeType===9?s:s.ownerDocument,e===Me.html&&(e=Ne(r)),e===Me.html?r===`script`?(e=l.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof a.is==`string`?e=l.createElement(r,{is:a.is}):(e=l.createElement(r),r===`select`&&(l=e,a.multiple?l.multiple=!0:a.size&&(l.size=a.size))):e=l.createElementNS(e,r),e[bi]=t,e[xi]=a,bs(e,t,!1,!1),t.stateNode=e,l=Ue(r,a),r){case`dialog`:U(`cancel`,e),U(`close`,e),s=a;break;case`iframe`:case`object`:case`embed`:U(`load`,e),s=a;break;case`video`:case`audio`:for(s=0;s<Yr.length;s++)U(Yr[s],e);s=a;break;case`source`:U(`error`,e),s=a;break;case`img`:case`image`:case`link`:U(`error`,e),U(`load`,e),s=a;break;case`details`:U(`toggle`,e),s=a;break;case`input`:be(e,a),s=ye(e,a),U(`invalid`,e);break;case`option`:s=Ee(e,a);break;case`select`:e._wrapperState={wasMultiple:!!a.multiple},s=n({},a,{value:void 0}),U(`invalid`,e);break;case`textarea`:ke(e,a),s=Oe(e,a),U(`invalid`,e);break;default:s=a}He(r,s);var u=s;for(c in u)if(u.hasOwnProperty(c)){var d=u[c];c===`style`?Be(e,d):c===`dangerouslySetInnerHTML`?(d=d?d.__html:void 0,d!=null&&Ie(e,d)):c===`children`?typeof d==`string`?(r!==`textarea`||d!==``)&&Le(e,d):typeof d==`number`&&Le(e,``+d):c!==`suppressContentEditableWarning`&&c!==`suppressHydrationWarning`&&c!==`autoFocus`&&(o.hasOwnProperty(c)?d!=null&&c===`onScroll`&&U(`scroll`,e):d!=null&&w(e,c,d,l))}switch(r){case`input`:ge(e),Ce(e,a,!1);break;case`textarea`:ge(e),je(e);break;case`option`:a.value!=null&&e.setAttribute(`value`,``+L(a.value));break;case`select`:e.multiple=!!a.multiple,c=a.value,c==null?a.defaultValue!=null&&De(e,!!a.multiple,a.defaultValue,!0):De(e,!!a.multiple,c,!1);break;default:typeof s.onClick==`function`&&(e.onclick=si)}ui(r,a)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Ss(e,t,e.memoizedProps,a);else{if(typeof a!=`string`&&t.stateNode===null)throw Error(i(166));r=Qa(Za.current),Qa(Ya.current),fo(t)?(a=t.stateNode,r=t.memoizedProps,a[bi]=t,a.nodeValue!==r&&(t.flags|=4)):(a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[bi]=t,t.stateNode=a)}return null;case 13:return G(q),a=t.memoizedState,t.flags&64?(t.lanes=r,t):(a=a!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&fo(t):r=e.memoizedState!==null,a&&!r&&t.mode&2&&(e===null&&!0!==t.memoizedProps.unstable_avoidThisFallback||q.current&1?Q===0&&(Q=3):((Q===0||Q===3)&&(Q=4),Ys===null||!(tc&134217727)&&!(nc&134217727)||Ac(Ys,Xs))),(a||r)&&(t.flags|=4),null);case 4:return eo(),e===null&&ei(t.stateNode.containerInfo),null;case 10:return Ca(t),null;case 17:return Li(t.type)&&Ri(),null;case 19:if(G(q),a=t.memoizedState,a===null)return null;if(c=(t.flags&64)!=0,l=a.rendering,l===null)if(c)Cs(a,!1);else{if(Q!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(l=ro(e),l!==null){for(t.flags|=64,Cs(a,!1),c=l.updateQueue,c!==null&&(t.updateQueue=c,t.flags|=4),a.lastEffect===null&&(t.firstEffect=null),t.lastEffect=a.lastEffect,a=r,r=t.child;r!==null;)c=r,e=a,c.flags&=2,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null,l=c.alternate,l===null?(c.childLanes=0,c.lanes=e,c.child=null,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=l.childLanes,c.lanes=l.lanes,c.child=l.child,c.memoizedProps=l.memoizedProps,c.memoizedState=l.memoizedState,c.updateQueue=l.updateQueue,c.type=l.type,e=l.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return K(q,q.current&1|2),t.child}e=e.sibling}a.tail!==null&&la()>oc&&(t.flags|=64,c=!0,Cs(a,!1),t.lanes=33554432)}else{if(!c)if(e=ro(l),e!==null){if(t.flags|=64,c=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Cs(a,!0),a.tail===null&&a.tailMode===`hidden`&&!l.alternate&&!oo)return t=t.lastEffect=a.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*la()-a.renderingStartTime>oc&&r!==1073741824&&(t.flags|=64,c=!0,Cs(a,!1),t.lanes=33554432);a.isBackwards?(l.sibling=t.child,t.child=l):(r=a.last,r===null?t.child=l:r.sibling=l,a.last=l)}return a.tail===null?null:(r=a.tail,a.rendering=r,a.tail=r.sibling,a.lastEffect=t.lastEffect,a.renderingStartTime=la(),r.sibling=null,t=q.current,K(q,c?t&1|2:t&1),r);case 23:case 24:return Ic(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&a.mode!==`unstable-defer-without-hiding`&&(t.flags|=4),null}throw Error(i(156,t.tag))}function Ts(e){switch(e.tag){case 1:Li(e.type)&&Ri();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(eo(),G(Pi),G(Ni),ho(),t=e.flags,t&64)throw Error(i(285));return e.flags=t&-4097|64,e;case 5:return no(e),null;case 13:return G(q),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return G(q),null;case 4:return eo(),null;case 10:return Ca(e),null;case 23:case 24:return Ic(),null;default:return null}}function Es(e,t){try{var n=``,r=t;do n+=me(r),r=r.return;while(r);var i=n}catch(e){i=`
6
- Error generating stack: `+e.message+`
7
- `+e.stack}return{value:e,source:t,stack:i}}function Ds(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Os=typeof WeakMap==`function`?WeakMap:Map;function ks(e,t,n){n=Aa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cc||(cc=!0,lc=r),Ds(e,t)},n}function As(e,t,n){n=Aa(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return Ds(e,t),r(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){typeof r!=`function`&&(uc===null?uc=new Set([this]):uc.add(this),Ds(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}var js=typeof WeakSet==`function`?WeakSet:Set;function Ms(e){var t=e.ref;if(t!==null)if(typeof t==`function`)try{t(null)}catch(t){$c(e,t)}else t.current=null}function Ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:_a(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&mi(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(i(163))}function Ps(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t===null?null:t.lastEffect,t!==null){e=t=t.next;do{if((e.tag&3)==3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t===null?null:t.lastEffect,t!==null){e=t=t.next;do{var a=e;r=a.next,a=a.tag,a&4&&a&1&&(Xc(n,e),Yc(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:_a(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Pa(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Pa(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&ui(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Ut(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(i(163))}function Fs(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`;else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty(`display`)?i.display:null,r.style.display=ze(`display`,i)}}else if(n.tag===6)n.stateNode.nodeValue=t?``:n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Is(e,t){if(Wi&&typeof Wi.onCommitFiberUnmount==`function`)try{Wi.onCommitFiberUnmount(Ui,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if(r&4)Xc(t,n);else{r=t;try{i()}catch(e){$c(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Ms(t),e=t.stateNode,typeof e.componentWillUnmount==`function`)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){$c(t,e)}break;case 5:Ms(t);break;case 4:Hs(e,t)}}function Ls(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Rs(e){return e.tag===5||e.tag===3||e.tag===4}function zs(e){a:{for(var t=e.return;t!==null;){if(Rs(t))break a;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}n.flags&16&&(Le(t,``),n.flags&=-17);a:b:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Rs(n.return)){n=null;break a}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue b;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break a}}r?Bs(e,n,t):Vs(e,n,t)}function Bs(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=si));else if(r!==4&&(e=e.child,e!==null))for(Bs(e,t,n),e=e.sibling;e!==null;)Bs(e,t,n),e=e.sibling}function Vs(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Vs(e,t,n),e=e.sibling;e!==null;)Vs(e,t,n),e=e.sibling}function Hs(e,t){for(var n=t,r=!1,a,o;;){if(!r){r=n.return;a:for(;;){if(r===null)throw Error(i(160));switch(a=r.stateNode,r.tag){case 5:o=!1;break a;case 3:a=a.containerInfo,o=!0;break a;case 4:a=a.containerInfo,o=!0;break a}r=r.return}r=!0}if(n.tag===5||n.tag===6){a:for(var s=e,c=n,l=c;;)if(Is(s,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===c)break a;for(;l.sibling===null;){if(l.return===null||l.return===c)break a;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(s=a,c=n.stateNode,s.nodeType===8?s.parentNode.removeChild(c):s.removeChild(c)):a.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){a=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(Is(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Us(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n===null?null:n.lastEffect,n!==null){var r=n=n.next;do(r.tag&3)==3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var a=e===null?r:e.memoizedProps;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[xi]=r,e===`input`&&r.type===`radio`&&r.name!=null&&xe(n,r),Ue(e,a),t=Ue(e,r),a=0;a<o.length;a+=2){var s=o[a],c=o[a+1];s===`style`?Be(n,c):s===`dangerouslySetInnerHTML`?Ie(n,c):s===`children`?Le(n,c):w(n,s,c,t)}switch(e){case`input`:Se(n,r);break;case`textarea`:Ae(n,r);break;case`select`:e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o==null?e!==!!r.multiple&&(r.defaultValue==null?De(n,!!r.multiple,r.multiple?[]:``,!1):De(n,!!r.multiple,r.defaultValue,!0)):De(n,!!r.multiple,o,!1)}}}return;case 6:if(t.stateNode===null)throw Error(i(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Ut(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(ac=la(),Fs(t.child,!0)),Ws(t);return;case 19:Ws(t);return;case 17:return;case 23:case 24:Fs(t,t.memoizedState!==null);return}throw Error(i(163))}function Ws(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new js),t.forEach(function(t){var r=tl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Gs(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Ks=Math.ceil,qs=T.ReactCurrentDispatcher,Js=T.ReactCurrentOwner,X=0,Ys=null,Z=null,Xs=0,Zs=0,Qs=ji(0),Q=0,$s=null,ec=0,tc=0,nc=0,rc=0,ic=null,ac=0,oc=1/0;function sc(){oc=la()+500}var $=null,cc=!1,lc=null,uc=null,dc=!1,fc=null,pc=90,mc=[],hc=[],gc=null,_c=0,vc=null,yc=-1,bc=0,xc=0,Sc=null,Cc=!1;function wc(){return X&48?la():yc===-1?yc=la():yc}function Tc(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return ua()===99?1:2;if(bc===0&&(bc=ec),ga.transition!==0){xc!==0&&(xc=ic===null?0:ic.pendingLanes),e=bc;var t=4186112&~xc;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=ua(),X&4&&e===98?e=un(12,bc):(e=on(e),e=un(e,bc)),e}function Ec(e,t,n){if(50<_c)throw _c=0,vc=null,Error(i(185));if(e=Dc(e,t),e===null)return null;pn(e,t,n),e===Ys&&(nc|=t,Q===4&&Ac(e,Xs));var r=ua();t===1?X&8&&!(X&48)?jc(e):(Oc(e,n),X===0&&(sc(),ma())):(!(X&4)||r!==98&&r!==99||(gc===null?gc=new Set([e]):gc.add(e)),Oc(e,n)),ic=e}function Dc(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Oc(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-mn(o),c=1<<s,l=a[s];if(l===-1){if((c&r)===0||(c&i)!==0){l=t,an(c);var u=V;a[s]=10<=u?l+250:6<=u?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);o&=~c}if(r=cn(e,e===Ys?Xs:0),t=V,r===0)n!==null&&(n!==ra&&qi(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==ra&&qi(n)}t===15?(n=jc.bind(null,e),aa===null?(aa=[n],oa=Ki(Qi,ha)):aa.push(n),n=ra):t===14?n=pa(99,jc.bind(null,e)):(n=sn(t),n=pa(n,kc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function kc(e){if(yc=-1,xc=bc=0,X&48)throw Error(i(327));var t=e.callbackNode;if(Jc()&&e.callbackNode!==t)return null;var n=cn(e,e===Ys?Xs:0);if(n===0)return null;var r=n,a=X;X|=16;var o=zc();(Ys!==e||Xs!==r)&&(sc(),Lc(e,r));do try{Hc();break}catch(t){Rc(e,t)}while(1);if(Sa(),qs.current=o,X=a,Z===null?(Ys=null,Xs=0,r=Q):r=0,(ec&nc)!==0)Lc(e,0);else if(r!==0){if(r===2&&(X|=64,e.hydrate&&(e.hydrate=!1,mi(e.containerInfo)),n=ln(e),n!==0&&(r=Bc(e,n))),r===1)throw t=$s,Lc(e,0),Ac(e,n),Oc(e,la()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:Gc(e);break;case 3:if(Ac(e,n),(n&62914560)===n&&(r=ac+500-la(),10<r)){if(cn(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){wc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=fi(Gc.bind(null,e),r);break}Gc(e);break;case 4:if(Ac(e,n),(n&4186112)===n)break;for(r=e.eventTimes,a=-1;0<n;){var s=31-mn(n);o=1<<s,s=r[s],s>a&&(a=s),n&=~o}if(n=a,n=la()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ks(n/1960))-n,10<n){e.timeoutHandle=fi(Gc.bind(null,e),n);break}Gc(e);break;case 5:Gc(e);break;default:throw Error(i(329))}}return Oc(e,la()),e.callbackNode===t?kc.bind(null,e):null}function Ac(e,t){for(t&=~rc,t&=~nc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-mn(t),r=1<<n;e[n]=-1,t&=~r}}function jc(e){if(X&48)throw Error(i(327));if(Jc(),e===Ys&&(e.expiredLanes&Xs)!==0){var t=Xs,n=Bc(e,t);(ec&nc)!==0&&(t=cn(e,t),n=Bc(e,t))}else t=cn(e,0),n=Bc(e,t);if(e.tag!==0&&n===2&&(X|=64,e.hydrate&&(e.hydrate=!1,mi(e.containerInfo)),t=ln(e),t!==0&&(n=Bc(e,t))),n===1)throw n=$s,Lc(e,0),Ac(e,t),Oc(e,la()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gc(e),Oc(e,la()),null}function Mc(){if(gc!==null){var e=gc;gc=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,Oc(e,la())})}ma()}function Nc(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(sc(),ma())}}function Pc(e,t){var n=X;X&=-2,X|=8;try{return e(t)}finally{X=n,X===0&&(sc(),ma())}}function Fc(e,t){K(Qs,Zs),Zs|=t,ec|=t}function Ic(){Zs=Qs.current,G(Qs)}function Lc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,pi(n)),Z!==null)for(n=Z.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ri();break;case 3:eo(),G(Pi),G(Ni),ho();break;case 5:no(r);break;case 4:eo();break;case 13:G(q);break;case 19:G(q);break;case 10:Ca(r);break;case 23:case 24:Ic()}n=n.return}Ys=e,Z=sl(e.current,null),Xs=Zs=ec=t,Q=0,$s=null,rc=nc=tc=0}function Rc(e,t){do{var n=Z;try{if(Sa(),go.current=Yo,bo){for(var r=J.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}bo=!1}if(vo=0,Y=yo=J=null,xo=!1,Js.current=null,n===null||n.return===null){Q=1,$s=t,Z=null;break}a:{var a=e,o=n.return,s=n,c=t;if(t=Xs,s.flags|=2048,s.firstEffect=s.lastEffect=null,typeof c==`object`&&c&&typeof c.then==`function`){var l=c;if(!(s.mode&2)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=(q.current&1)!=0,f=o;do{var p;if(p=f.tag===13){var m=f.memoizedState;if(m!==null)p=m.dehydrated!==null;else{var h=f.memoizedProps;p=h.fallback===void 0?!1:!0===h.unstable_avoidThisFallback?!d:!0}}if(p){var g=f.updateQueue;if(g===null){var _=new Set;_.add(l),f.updateQueue=_}else g.add(l);if(!(f.mode&2)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var v=Aa(-1,1);v.tag=2,ja(s,v)}s.lanes|=1;break a}c=void 0,s=t;var y=a.pingCache;if(y===null?(y=a.pingCache=new Os,c=new Set,y.set(l,c)):(c=y.get(l),c===void 0&&(c=new Set,y.set(l,c))),!c.has(s)){c.add(s);var b=el.bind(null,a,l,s);l.then(b,b)}f.flags|=4096,f.lanes=t;break a}f=f.return}while(f!==null);c=Error((I(s.type)||`A React component`)+` suspended while rendering, but no fallback UI was specified.
1
+ (function(){var e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h={},g=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function y(e,t){for(var n in t)e[n]=t[n];return e}function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function x(t,n,r){var i,a,o,s={};for(o in n)o==`key`?i=n[o]:o==`ref`?a=n[o]:s[o]=n[o];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),typeof t==`function`&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return S(t,s,i,a,null)}function S(e,r,i,a,o){var s={type:e,props:r,key:i,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++n,__i:-1,__u:0};return o==null&&t.vnode!=null&&t.vnode(s),s}function C(e){return e.children}function w(e,t){this.props=e,this.context=t}function T(e,t){if(t==null)return e.__?T(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?T(e):null}function E(e){if(e.__P&&e.__d){var n=e.__v,r=n.__e,i=[],a=[],o=y({},n);o.__v=n.__v+1,t.vnode&&t.vnode(o),L(e.__P,o,n,e.__n,e.__P.namespaceURI,32&n.__u?[r]:null,i,r??T(n),!!(32&n.__u),a),o.__v=n.__v,o.__.__k[o.__i]=o,te(i,o,a),n.__e=n.__=null,o.__e!=r&&D(o)}}function D(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),D(e)}function O(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!k.__r++||i!=t.debounceRendering)&&((i=t.debounceRendering)||a)(k)}function k(){try{for(var e,t=1;r.length;)r.length>t&&r.sort(o),e=r.shift(),t=r.length,E(e)}finally{r.length=k.__r=0}}function A(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,_,v,y=r&&r.__k||g,b=t.length;for(c=j(n,t,y,c,b),d=0;d<b;d++)(p=n.__k[d])!=null&&(f=p.__i!=-1&&y[p.__i]||h,p.__i=d,v=L(e,p,f,i,a,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&ie(f.ref,null,p),u.push(p.ref,p.__c||m,p)),_==null&&m!=null&&(_=m),4&p.__u?(c=M(p,c,e),f.__e&&=null):typeof p.type==`function`&&v!==void 0?c=v:m&&(c=m.nextSibling),p.__u&=-7);return n.__e=_,c}function j(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?o=e.__k[a]=S(null,o,null,null,null):v(o)?o=e.__k[a]=S(C,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=e.__k[a]=S(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,c=a+f,o.__=e,o.__b=e.__b+1,s=null,(l=o.__i=N(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=T(s)),ae(s,s));return r}function M(e,t,n){var r,i;if(typeof e.type==`function`){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=M(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=T(e)),t=n.insertBefore(e.__e,t||null));do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function N(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&(2&l.__u)==0;if(l===null&&s==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function P(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||_.test(t)?n:n+`px`}function F(e,t,n,r,i){var a,o;n:if(t==`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||P(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||P(e.style,t,n[t])}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(u,`$1`)),o=t.toLowerCase(),t=o in e||t==`onFocusOut`||t==`onFocusIn`?o.slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r?n[l]=r[l]:(n[l]=d,e.addEventListener(t,a?p:f,a)):e.removeEventListener(t,a?p:f,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function I(e){return function(n){if(this.l){var r=this.l[n.type+e];if(n[c]==null)n[c]=d++;else if(n[c]<r[l])return;return r(t.event?t.event(n):n)}}}function L(e,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,_,x,S,E,D,O,k,j,M,N,P,F=n.type;if(n.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[c=n.__e=r.__e]),(d=t.__b)&&d(n);n:if(typeof F==`function`){f=s.length;try{if(E=n.props,D=F.prototype&&F.prototype.render,O=(d=F.contextType)&&i[d.__c],k=d?O?O.props.value:d.__:i,r.__c?S=(p=n.__c=r.__c).__=p.__E:(D?n.__c=p=new F(E,k):(n.__c=p=new w(E,k),p.constructor=F,p.render=oe),O&&O.sub(p),p.state||={},p.__n=i,m=p.__d=!0,p.__h=[],p._sb=[]),D&&p.__s==null&&(p.__s=p.state),D&&F.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=y({},p.__s)),y(p.__s,F.getDerivedStateFromProps(E,p.__s))),h=p.props,_=p.state,p.__v=n,m)D&&F.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),D&&p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(D&&F.getDerivedStateFromProps==null&&E!==h&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(E,k),n.__v==r.__v||!p.__e&&p.shouldComponentUpdate!=null&&!1===p.shouldComponentUpdate(E,p.__s,k)){n.__v!=r.__v&&(p.props=E,p.state=p.__s,p.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.some(function(e){e&&(e.__=n)}),g.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&s.push(p),c=T(r);break n}p.componentWillUpdate!=null&&p.componentWillUpdate(E,p.__s,k),D&&p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(h,_,x)})}if(p.context=k,p.props=E,p.__P=e,p.__e=!1,j=t.__r,M=0,D)p.state=p.__s,p.__d=!1,j&&j(n),d=p.render(p.props,p.state,p.context),g.push.apply(p.__h,p._sb),p._sb=[];else do p.__d=!1,j&&j(n),d=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++M<25);p.state=p.__s,p.getChildContext!=null&&(i=y(y({},i),p.getChildContext())),D&&!m&&p.getSnapshotBeforeUpdate!=null&&(x=p.getSnapshotBeforeUpdate(h,_)),N=d!=null&&d.type===C&&d.key==null?ne(d.props.children):d,c=A(e,v(N)?N:[N],n,r,i,a,o,s,c,l,u),p.base=n.__e,n.__u&=-161,p.__h.length&&s.push(p),S&&(p.__E=p.__=null)}catch(e){if(s.length=f,n.__v=null,l||o!=null){if(e.then){for(n.__u|=l?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;o!=null&&(o[o.indexOf(c)]=null),n.__e=c}else if(o!=null)for(P=o.length;P--;)b(o[P])}else n.__e=r.__e;n.__k??=r.__k||[],e.then||ee(n),t.__e(e,n,r)}}else o==null&&n.__v==r.__v?(n.__k=r.__k,n.__e=r.__e):c=n.__e=re(r.__e,n,r,i,a,o,s,l,u);return(d=t.diffed)&&d(n),128&n.__u?void 0:c}function ee(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(ee))}function te(e,n,r){for(var i=0;i<r.length;i++)ie(r[i],r[++i],r[++i]);t.__c&&t.__c(n,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(e){e.call(n)})}catch(e){t.__e(e,n.__v)}})}function ne(e){return typeof e!=`object`||!e||e.__b>0?e:v(e)?e.map(ne):e.constructor===void 0?y({},e):null}function re(n,r,i,a,o,s,c,l,u){var d,f,p,m,g,_,y,x=i.props||h,S=r.props,C=r.type;if(C==`svg`?o=`http://www.w3.org/2000/svg`:C==`math`?o=`http://www.w3.org/1998/Math/MathML`:o||=`http://www.w3.org/1999/xhtml`,s!=null){for(d=0;d<s.length;d++)if((g=s[d])&&`setAttribute`in g==!!C&&(C?g.localName==C:g.nodeType==3)){n=g,s[d]=null;break}}if(n==null){if(C==null)return document.createTextNode(S);n=document.createElementNS(o,C,S.is&&S),l&&=(t.__m&&t.__m(r,s),!1),s=null}if(C==null)x===S||l&&n.data==S||(n.data=S);else{if(s=C==`textarea`&&S.defaultValue!=null?null:s&&e.call(n.childNodes),!l&&s!=null)for(x={},d=0;d<n.attributes.length;d++)x[(g=n.attributes[d]).name]=g.value;for(d in x)g=x[d],d==`dangerouslySetInnerHTML`?p=g:d==`children`||d in S||d==`value`&&`defaultValue`in S||d==`checked`&&`defaultChecked`in S||F(n,d,null,g,o);for(d in S)g=S[d],d==`children`?m=g:d==`dangerouslySetInnerHTML`?f=g:d==`value`?_=g:d==`checked`?y=g:l&&typeof g!=`function`||x[d]===g||F(n,d,g,x[d],o);if(f)l||p&&(f.__html==p.__html||f.__html==n.innerHTML)||(n.innerHTML=f.__html),r.__k=[];else if(p&&(n.innerHTML=``),A(r.type==`template`?n.content:n,v(m)?m:[m],r,i,a,C==`foreignObject`?`http://www.w3.org/1999/xhtml`:o,s,c,s?s[0]:i.__k&&T(i,0),l,u),s!=null)for(d=s.length;d--;)b(s[d]);l&&C!=`textarea`||(d=`value`,C==`progress`&&_==null?n.removeAttribute(`value`):_!=null&&(_!==n[d]||C==`progress`&&!_||C==`option`&&_!=x[d])&&F(n,d,_,x[d],o),d=`checked`,y!=null&&y!=n[d]&&F(n,d,y,x[d],o))}return n}function ie(e,n,r){try{if(typeof e==`function`){var i=typeof e.__u==`function`;i&&e.__u(),i&&n==null||(e.__u=e(n))}else e.current=n}catch(e){t.__e(e,r)}}function ae(e,n,r){var i,a;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||ie(i,null,n)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t.__e(e,n)}i.base=i.__P=i.__n=null}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&ae(i[a],n,r||typeof e.type!=`function`);r||b(e.__e),e.__c=e.__=e.__e=void 0}function oe(e,t,n){return this.constructor(e,n)}function se(n,r,i){var a,o,s,c;r==document&&(r=document.documentElement),t.__&&t.__(n,r),o=(a=typeof i==`function`)?null:i&&i.__k||r.__k,s=[],c=[],L(r,n=(!a&&i||r).__k=x(C,null,[n]),o||h,h,r.namespaceURI,!a&&i?[i]:o?null:r.firstChild?e.call(r.childNodes):null,s,!a&&i?i:o?o.__e:r.firstChild,a,c),te(s,n,c),n.props.children=null}function ce(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,O(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c=`__cC`+m++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}e=g.slice,t={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},n=0,w.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=y({},this.state);typeof e==`function`&&(e=e(y({},n),this.props)),e&&y(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),O(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),O(this))},w.prototype.render=C,r=[],a=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=function(e,t){return e.__v.__b-t.__v.__b},k.__r=0,s=Math.random().toString(8),c=`__d`+s,l=`__a`+s,u=/(PointerCapture)$|Capture$/i,d=0,f=I(!1),p=I(!0),m=0;var le,R,ue,de,fe=0,pe=[],z=t,me=z.__b,he=z.__r,ge=z.diffed,_e=z.__c,ve=z.unmount,ye=z.__;function be(e,t){z.__h&&z.__h(R,e,fe||t),fe=0;var n=R.__H||={__:[],__h:[]};return e>=n.__.length&&n.__.push({}),n.__[e]}function xe(e){return fe=1,Se(Fe,e)}function Se(e,t,n){var r=be(le++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Fe(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=R,!R.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=!1,o=r.__c.props!==e;if(r.__c.__H.__.some(function(e){if(e.__N){i=!0;var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),a){var s=a.call(this,e,t,n);return i?s||o:s}return!i||o};R.__f=!0;var a=R.shouldComponentUpdate,o=R.componentWillUpdate;R.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},R.shouldComponentUpdate=i}return r.__N||r.__}function Ce(e,t){var n=be(le++,3);!z.__s&&Pe(n.__H,t)&&(n.__=e,n.u=t,R.__H.__h.push(n))}function we(e,t){var n=be(le++,4);!z.__s&&Pe(n.__H,t)&&(n.__=e,n.u=t,R.__h.push(n))}function Te(e){return fe=5,Ee(function(){return{current:e}},[])}function Ee(e,t){var n=be(le++,7);return Pe(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function De(e,t){return fe=8,Ee(function(){return e},t)}function Oe(e){var t=R.context[e.__c],n=be(le++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(R)),t.props.value):e.__}function ke(){for(var e;e=pe.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Me),t.__h.some(Ne),t.__h=[]}catch(n){t.__h=[],z.__e(n,e.__v)}}}z.__b=function(e){R=null,me&&me(e)},z.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ye&&ye(e,t)},z.__r=function(e){he&&he(e),le=0;var t=(R=e.__c).__H;t&&(ue===R?(t.__h=[],R.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(Me),t.__h.some(Ne),t.__h=[],le=0)),ue=R},z.diffed=function(e){ge&&ge(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(pe.push(t)!==1&&de===z.requestAnimationFrame||((de=z.requestAnimationFrame)||je)(ke)),t.__H.__.some(function(e){e.u&&=(e.__H=e.u,void 0)})),ue=R=null},z.__c=function(e,t){t.some(function(e){try{e.__h.some(Me),e.__h=e.__h.filter(function(e){return!e.__||Ne(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],z.__e(n,e.__v)}}),_e&&_e(e,t)},z.unmount=function(e){ve&&ve(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{Me(e)}catch(e){t=e}}),n.__H=void 0,t&&z.__e(t,n.__v))};var Ae=typeof requestAnimationFrame==`function`;function je(e){var t,n=function(){clearTimeout(r),Ae&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Ae&&(t=requestAnimationFrame(n))}function Me(e){var t=R,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),R=t}function Ne(e){var t=R;e.__c=e.__(),R=t}function Pe(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Fe(e,t){return typeof t==`function`?t(e):t}var Ie=ce(null);function B(){let e=Oe(Ie);if(!e)throw Error(`useAppContext must be used inside AppContext.Provider`);return e}var Le=0;Array.isArray;function V(e,n,r,i,a,o){n||={};var s,c,l=n;if(`ref`in l)for(c in l={},n)c==`ref`?s=n[c]:l[c]=n[c];var u={type:e,props:l,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Le,__i:-1,__u:0,__source:a,__self:o};if(typeof e==`function`&&(s=e.defaultProps))for(c in s)l[c]===void 0&&(l[c]=s[c]);return t.vnode&&t.vnode(u),u}var Re=class extends w{getChildContext(){return this.props.context}render(){return this.props.children}};function ze({title:e,style:t,dir:n,head:r,children:i},a){let[o,s]=xe(null);return we(()=>{o&&(se(r,o.head),se(V(Re,{context:a,children:i}),o.body))}),Ce(()=>()=>{o&&(se(null,o.head),se(null,o.body))},[o]),V(`iframe`,{frameBorder:`0`,srcDoc:`<!DOCTYPE html>`,style:t,title:e,onLoad:e=>{let t=e.currentTarget.contentDocument;t&&(t.documentElement.setAttribute(`dir`,n),s(t))}})}function Be(e){return V(`svg`,{height:16,viewBox:`0 0 24 24`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:V(`path`,{d:`M23.38,21.62l-6.53-6.53a9.15,9.15,0,0,0,1.9-5.59,9.27,9.27,0,1,0-3.66,7.36l6.53,6.53a1.26,1.26,0,0,0,1.76,0A1.25,1.25,0,0,0,23.38,21.62ZM2.75,9.5A6.75,6.75,0,1,1,9.5,16.25,6.76,6.76,0,0,1,2.75,9.5Z`,fill:`currentColor`})})}function Ve(e){return V(`svg`,{height:16,viewBox:`0 0 24 24`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:V(`path`,{d:`M.44,21.44a1.49,1.49,0,0,0,0,2.12,1.5,1.5,0,0,0,2.12,0l9.26-9.26a.25.25,0,0,1,.36,0l9.26,9.26a1.5,1.5,0,0,0,2.12,0,1.49,1.49,0,0,0,0-2.12L14.3,12.18a.25.25,0,0,1,0-.36l9.26-9.26A1.5,1.5,0,0,0,21.44.44L12.18,9.7a.25.25,0,0,1-.36,0L2.56.44A1.5,1.5,0,0,0,.44,2.56L9.7,11.82a.25.25,0,0,1,0,.36Z`,fill:`currentColor`,stroke:`#000000`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":.4})})}function He(e){return V(`svg`,{height:16,viewBox:`0 0 16 16`,width:16,xmlns:`http://www.w3.org/2000/svg`,...e,children:[V(`title`,{children:`circle anim`}),V(`g`,{className:`nc-icon-wrapper`,fill:`#40413F`,children:[V(`g`,{className:`nc-loop-circle-16-icon-f`,children:[V(`path`,{d:`M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z`,fill:`#D4D4D4`}),V(`path`,{d:`M8 0v2a6.006 6.006 0 0 1 6 6h2a8.009 8.009 0 0 0-8-8z`,"data-color":`color-2`})]}),V(`style`,{children:`.nc-loop-circle-16-icon-f{--animation-duration:0.5s;transform-origin:8px 8px;animation:nc-loop-circle-anim var(--animation-duration) infinite linear}@keyframes nc-loop-circle-anim{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}`})]})]})}var H;function U(e,t,n){let r=typeof n,i=typeof e;if(r!==`undefined`){if(i!==`undefined`){if(n){if(i===`function`&&r===i)return function(t){return e(n(t))};if(t=e.constructor,t===n.constructor){if(t===Array)return n.concat(e);if(t===Map){var a=new Map(n);for(var o of e)a.set(o[0],o[1]);return a}if(t===Set){o=new Set(n);for(a of e.values())o.add(a);return o}}}return e}return n}return i===`undefined`?t:e}function Ue(e,t){return e===void 0?t:e}function W(){return Object.create(null)}function G(e){return typeof e==`string`}function We(e){return typeof e==`object`}function Ge(e,t){if(G(t))e=e[t];else for(let n=0;e&&n<t.length;n++)e=e[t[n]];return e}var Ke=/[^\p{L}\p{N}]+/u,qe=/(\d{3})/g,Je=/(\D)(\d{3})/g,Ye=/(\d{3})(\D)/g,Xe=/[\u0300-\u036f]/g;function Ze(e={}){if(!this||this.constructor!==Ze)return new Ze(...arguments);if(arguments.length)for(e=0;e<arguments.length;e++)this.assign(arguments[e]);else this.assign(e)}H=Ze.prototype,H.assign=function(e){this.normalize=U(e.normalize,!0,this.normalize);let t=e.include,n=t||e.exclude||e.split,r;if(n||n===``){if(typeof n==`object`&&n.constructor!==RegExp){let e=``;r=!t,t||(e+=`\\p{Z}`),n.letter&&(e+=`\\p{L}`),n.number&&(e+=`\\p{N}`,r=!!t),n.symbol&&(e+=`\\p{S}`),n.punctuation&&(e+=`\\p{P}`),n.control&&(e+=`\\p{C}`),(n=n.char)&&(e+=typeof n==`object`?n.join(``):n);try{this.split=RegExp(`[`+(t?`^`:``)+e+`]+`,`u`)}catch{this.split=/\s+/}}else this.split=n,r=n===!1||`a1a`.split(n).length<2;this.numeric=U(e.numeric,r)}else{try{this.split=U(this.split,Ke)}catch{this.split=/\s+/}this.numeric=U(e.numeric,U(this.numeric,!0))}if(this.prepare=U(e.prepare,null,this.prepare),this.finalize=U(e.finalize,null,this.finalize),n=e.filter,this.filter=typeof n==`function`?n:U(n&&new Set(n),null,this.filter),this.dedupe=U(e.dedupe,!0,this.dedupe),this.matcher=U((n=e.matcher)&&new Map(n),null,this.matcher),this.mapper=U((n=e.mapper)&&new Map(n),null,this.mapper),this.stemmer=U((n=e.stemmer)&&new Map(n),null,this.stemmer),this.replacer=U(e.replacer,null,this.replacer),this.minlength=U(e.minlength,1,this.minlength),this.maxlength=U(e.maxlength,1024,this.maxlength),this.rtl=U(e.rtl,!1,this.rtl),(this.cache=n=U(e.cache,!0,this.cache))&&(this.D=null,this.K=typeof n==`number`?n:2e5,this.B=new Map,this.C=new Map,this.H=this.G=128),this.h=``,this.I=null,this.A=``,this.J=null,this.matcher)for(let e of this.matcher.keys())this.h+=(this.h?`|`:``)+e;if(this.stemmer)for(let e of this.stemmer.keys())this.A+=(this.A?`|`:``)+e;return this},H.addStemmer=function(e,t){return this.stemmer||=new Map,this.stemmer.set(e,t),this.A+=(this.A?`|`:``)+e,this.J=null,this.cache&&K(this),this},H.addFilter=function(e){return typeof e==`function`?this.filter=e:(this.filter||=new Set,this.filter.add(e)),this.cache&&K(this),this},H.addMapper=function(e,t){return typeof e==`object`?this.addReplacer(e,t):e.length>1?this.addMatcher(e,t):(this.mapper||=new Map,this.mapper.set(e,t),this.cache&&K(this),this)},H.addMatcher=function(e,t){return typeof e==`object`?this.addReplacer(e,t):e.length<2&&(this.dedupe||this.mapper)?this.addMapper(e,t):(this.matcher||=new Map,this.matcher.set(e,t),this.h+=(this.h?`|`:``)+e,this.I=null,this.cache&&K(this),this)},H.addReplacer=function(e,t){return typeof e==`string`?this.addMatcher(e,t):(this.replacer||=[],this.replacer.push(e,t),this.cache&&K(this),this)},H.encode=function(e,t){if(this.cache&&e.length<=this.G)if(this.D){if(this.B.has(e))return this.B.get(e)}else this.D=setTimeout(K,50,this);this.normalize&&(e=typeof this.normalize==`function`?this.normalize(e):Xe?e.normalize(`NFKD`).replace(Xe,``).toLowerCase():e.toLowerCase()),this.prepare&&(e=this.prepare(e)),this.numeric&&e.length>3&&(e=e.replace(Je,`$1 $2`).replace(Ye,`$1 $2`).replace(qe,`$1 `));let n=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer),r=[],i=W(),a,o,s=this.split||this.split===``?e.split(this.split):[e];for(let e=0,l,u;e<s.length;e++)if((l=u=s[e])&&!(l.length<this.minlength||l.length>this.maxlength)){if(t){if(i[l])continue;i[l]=1}else{if(a===l)continue;a=l}if(n)r.push(l);else if(!this.filter||(typeof this.filter==`function`?this.filter(l):!this.filter.has(l))){if(this.cache&&l.length<=this.H)if(this.D){var c=this.C.get(l);if(c||c===``){c&&r.push(c);continue}}else this.D=setTimeout(K,50,this);if(this.stemmer){this.J||=RegExp(`(?!^)(`+this.A+`)$`);let e;for(;e!==l&&l.length>2;)e=l,l=l.replace(this.J,e=>this.stemmer.get(e))}if(l&&(this.mapper||this.dedupe&&l.length>1)){c=``;for(let e=0,t=``,n,r;e<l.length;e++)n=l.charAt(e),n===t&&this.dedupe||((r=this.mapper&&this.mapper.get(n))||r===``?r===t&&this.dedupe||!(t=r)||(c+=r):c+=t=n);l=c}if(this.matcher&&l.length>1&&(this.I||=RegExp(`(`+this.h+`)`,`g`),l=l.replace(this.I,e=>this.matcher.get(e))),l&&this.replacer)for(c=0;l&&c<this.replacer.length;c+=2)l=l.replace(this.replacer[c],this.replacer[c+1]);if(this.cache&&u.length<=this.H&&(this.C.set(u,l),this.C.size>this.K&&(this.C.clear(),this.H=this.H/1.1|0)),l){if(l!==u)if(t){if(i[l])continue;i[l]=1}else{if(o===l)continue;o=l}r.push(l)}}}return this.finalize&&(r=this.finalize(r)||r),this.cache&&e.length<=this.G&&(this.B.set(e,r),this.B.size>this.K&&(this.B.clear(),this.G=this.G/1.1|0)),r};function K(e){e.D=null,e.B.clear(),e.C.clear()}function Qe(e,t,n){n||(t||typeof e!=`object`?typeof t==`object`&&(n=t,t=0):n=e),n&&(e=n.query||e,t=n.limit||t);let r=``+(t||0);n&&(r+=(n.offset||0)+!!n.context+!!n.suggest+(n.resolve!==!1)+(n.resolution||this.resolution)+(n.boost||0)),e=(``+e).toLowerCase(),this.cache||=new q;let i=this.cache.get(e+r);if(!i){let a=n&&n.cache;a&&(n.cache=!1),i=this.search(e,t,n),a&&(n.cache=a),this.cache.set(e+r,i)}return i}function q(e){this.limit=e&&e!==!0?e:1e3,this.cache=new Map,this.h=``}q.prototype.set=function(e,t){this.cache.set(this.h=e,t),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},q.prototype.get=function(e){let t=this.cache.get(e);return t&&this.h!==e&&(this.cache.delete(e),this.cache.set(this.h=e,t)),t},q.prototype.remove=function(e){for(let t of this.cache){let n=t[0];t[1].includes(e)&&this.cache.delete(n)}},q.prototype.clear=function(){this.cache.clear(),this.h=``};var $e={normalize:!1,numeric:!1,dedupe:!1},et={},tt=new Map([[`b`,`p`],[`v`,`f`],[`w`,`f`],[`z`,`s`],[`x`,`s`],[`d`,`t`],[`n`,`m`],[`c`,`k`],[`g`,`k`],[`j`,`k`],[`q`,`k`],[`i`,`e`],[`y`,`e`],[`u`,`o`]]),nt=new Map([[`ae`,`a`],[`oe`,`o`],[`sh`,`s`],[`kh`,`k`],[`th`,`t`],[`ph`,`f`],[`pf`,`f`]]),rt=[/([^aeo])h(.)/g,`$1$2`,/([aeo])h([^aeo]|$)/g,`$1$2`,/(.)\1+/g,`$1`],it={a:``,e:``,i:``,o:``,u:``,y:``,b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6},at={Exact:$e,Default:et,Normalize:et,LatinBalance:{mapper:tt},LatinAdvanced:{mapper:tt,matcher:nt,replacer:rt},LatinExtra:{mapper:tt,replacer:rt.concat([/(?!^)[aeo]/g,``]),matcher:nt},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(e){for(let n=0;n<e.length;n++){var t=e[n];let r=t.charAt(0),i=it[r];for(let e=1,n;e<t.length&&(n=t.charAt(e),n===`h`||n===`w`||!(n=it[n])||n===i||(r+=n,i=n,r.length!==4));e++);e[n]=r}}},CJK:{split:``},LatinExact:$e,LatinDefault:et,LatinSimple:et};function ot(e){dt.call(e,`add`),dt.call(e,`append`),dt.call(e,`search`),dt.call(e,`update`),dt.call(e,`remove`),dt.call(e,`searchCache`)}var st,ct,lt;function ut(){st=lt=0}function dt(e){this[e+`Async`]=function(){let t=arguments;var n=t[t.length-1];let r;if(typeof n==`function`&&(r=n,delete t[t.length-1]),st?lt||=Date.now()-ct>=this.priority*this.priority*3:(st=setTimeout(ut,0),ct=Date.now()),lt){let n=this;return new Promise(r=>{setTimeout(function(){r(n[e+`Async`].apply(n,t))},0)})}let i=this[e].apply(this,t);return n=i.then?i:new Promise(e=>e(i)),r&&n.then(r),n}}J.prototype.add=function(e,t,n){if(We(e)&&(t=e,e=Ge(t,this.key)),t&&(e||e===0)){if(!n&&this.reg.has(e))return this.update(e,t);for(let a=0,o;a<this.field.length;a++){o=this.B[a];var r=this.index.get(this.field[a]);if(typeof o==`function`){var i=o(t);i&&r.add(e,i,n,!0)}else i=o.F,(!i||i(t))&&(o.constructor===String?o=[``+o]:G(o)&&(o=[o]),pt(t,o,this.C,0,r,e,o[0],n))}if(this.tag)for(r=0;r<this.A.length;r++){var a=this.A[r];i=this.tag.get(this.D[r]);let s=W();if(typeof a==`function`){if(a=a(t),!a)continue}else{var o=a.F;if(o&&!o(t))continue;a.constructor===String&&(a=``+a),a=Ge(t,a)}if(i&&a){G(a)&&(a=[a]);for(let t=0,r,c;t<a.length;t++)r=a[t],s[r]||(s[r]=1,(o=i.get(r))?c=o:i.set(r,c=[]),n&&c.includes(e)||(c.push(e),this.fastupdate&&((o=this.reg.get(e))?o.push(c):this.reg.set(e,[c]))))}}if(this.store&&(!n||!this.store.has(e))){let r;if(this.h){r=W();for(let e=0,i;e<this.h.length;e++){if(i=this.h[e],(n=i.F)&&!n(t))continue;let a;if(typeof i==`function`){if(a=i(t),!a)continue;i=[i.M]}else if(G(i)||i.constructor===String){r[i]=t[i];continue}ft(t,r,i,0,i[0],a)}}this.store.set(e,r||t)}}return this};function ft(e,t,n,r,i,a){if(e=e[i],r===n.length-1)t[i]=a||e;else if(e)if(e.constructor===Array)for(t=t[i]=Array(e.length),i=0;i<e.length;i++)ft(e,t,n,r,i);else t=t[i]||(t[i]=W()),i=n[++r],ft(e,t,n,r,i)}function pt(e,t,n,r,i,a,o,s){if(e=e[o])if(r===t.length-1){if(e.constructor===Array){if(n[r]){for(t=0;t<e.length;t++)i.add(a,e[t],!0,!0);return}e=e.join(` `)}i.add(a,e,s,!0)}else if(e.constructor===Array)for(o=0;o<e.length;o++)pt(e,t,n,r,i,a,o,s);else o=t[++r],pt(e,t,n,r,i,a,o,s)}function mt(e,t,n){if(!e.length)return e;if(e.length===1)return e=e[0],e=n||e.length>t?e.slice(n,n+t):e;let r=[];for(let i=0,a,o;i<e.length;i++)if((a=e[i])&&(o=a.length)){if(n){if(n>=o){n-=o;continue}a=a.slice(n,n+t),o=a.length,n=0}if(o>t&&(a=a.slice(0,t),o=t),!r.length&&o>=t)return a;if(r.push(a),t-=o,!t)break}return r=r.length>1?[].concat.apply([],r):r[0]}function ht(e,t,n,r,i){let a,o,s;typeof i==`string`?(a=i,i=``):a=i.template,o=a.indexOf(`$1`),s=a.substring(o+2),o=a.substring(0,o);let c=i&&i.boundary,l=!i||i.clip!==!1,u=i&&i.merge&&s&&o&&RegExp(s+` `+o,`g`);i&&=i.ellipsis;var d=0;if(typeof i==`object`){var f=i.template;d=f.length-2,i=i.pattern}typeof i!=`string`&&(i=i===!1?``:`...`),d&&(i=f.replace(`$1`,i)),f=i.length-d;let p,m;typeof c==`object`&&(p=c.before,p===0&&(p=-1),m=c.after,m===0&&(m=-1),c=c.total||9e5),d=new Map;for(let N=0,P,F,I;N<t.length;N++){let L;if(r)L=t,I=r;else{var h=t[N];if(I=h.field,!I)continue;L=h.result}F=n.get(I),P=F.encoder,h=d.get(P),typeof h!=`string`&&(h=P.encode(e),d.set(P,h));for(let e=0;e<L.length;e++){var g=L[e].doc;if(!g||(g=Ge(g,I),!g))continue;var _=g.trim().split(/\s+/);if(!_.length)continue;g=``;var v=[];let t=[];for(var y=-1,b=-1,x=0,S=0;S<_.length;S++){var C=_[S],w=P.encode(C);w=w.length>1?w.join(` `):w[0];let e;if(w&&C){for(var T=C.length,E=(P.split?C.replace(P.split,``):C).length-w.length,D=``,O=0,k=0;k<h.length;k++){var A=h[k];if(A){var j=A.length;j+=E<0?0:E,O&&j<=O||(A=w.indexOf(A),A>-1&&(D=(A?C.substring(0,A):``)+o+C.substring(A,A+j)+s+(A+j<T?C.substring(A+j):``),O=j,e=!0))}}D&&(c&&(y<0&&(y=g.length+ +!!g),b=g.length+ +!!g+D.length,x+=T,t.push(v.length),v.push({match:D})),g+=(g?` `:``)+D)}if(!e)C=_[S],g+=(g?` `:``)+C,c&&v.push({text:C});else if(c&&x>=c)break}if(x=t.length*(a.length-2),p||m||c&&g.length-x>c)if(x=c+x-f*2,S=b-y,p>0&&(S+=p),m>0&&(S+=m),S<=x)_=p?y-(p>0?p:0):y-((x-S)/2|0),v=m?b+(m>0?m:0):_+x,l||(_>0&&g.charAt(_)!==` `&&g.charAt(_-1)!==` `&&(_=g.indexOf(` `,_),_<0&&(_=0)),v<g.length&&g.charAt(v-1)!==` `&&g.charAt(v)!==` `&&(v=g.lastIndexOf(` `,v),v<b?v=b:++v)),g=(_?i:``)+g.substring(_,v)+(v<g.length?i:``);else{for(b=[],y={},x={},S={},C={},w={},D=E=T=0,k=O=1;;){var M=void 0;for(let e=0,n;e<t.length;e++){if(n=t[e],D)if(E!==D){if(S[e+1])continue;if(n+=D,y[n]){T-=f,x[e+1]=1,S[e+1]=1;continue}if(n>=v.length-1){if(n>=v.length){S[e+1]=1,n>=_.length&&(x[e+1]=1);continue}T-=f}if(g=v[n].text,j=m&&w[e])if(j>0){if(g.length>j)if(S[e+1]=1,l)g=g.substring(0,j);else continue;(j-=g.length)||(j=-1),w[e]=j}else{S[e+1]=1;continue}if(T+g.length+1<=c)g=` `+g,b[e]+=g;else if(l)M=c-T-1,M>0&&(g=` `+g.substring(0,M),b[e]+=g),S[e+1]=1;else{S[e+1]=1;continue}}else{if(S[e])continue;if(n-=E,y[n]){T-=f,S[e]=1,x[e]=1;continue}if(n<=0){if(n<0){S[e]=1,x[e]=1;continue}T-=f}if(g=v[n].text,j=p&&C[e])if(j>0){if(g.length>j)if(S[e]=1,l)g=g.substring(g.length-j);else continue;(j-=g.length)||(j=-1),C[e]=j}else{S[e]=1;continue}if(T+g.length+1<=c)g+=` `,b[e]=g+b[e];else if(l)M=g.length+1-(c-T),M>=0&&M<g.length&&(g=g.substring(M)+` `,b[e]=g+b[e]),S[e]=1;else{S[e]=1;continue}}else{g=v[n].match,p&&(C[e]=p),m&&(w[e]=m),e&&T++;let t;if(n?!e&&f&&(T+=f):(x[e]=1,S[e]=1),n>=_.length-1||n<v.length-1&&v[n+1].match?t=1:f&&(T+=f),T-=a.length-2,!e||T+g.length<=c)b[e]=g;else{M=O=k=x[e]=0;break}t&&(x[e+1]=1,S[e+1]=1)}T+=g.length,M=y[n]=1}if(M)E===D?D++:E++;else{if(E===D?O=0:k=0,!O&&!k)break;O?(E++,D=E):D++}}g=``;for(let e=0,t;e<b.length;e++)t=(x[e]?e?` `:``:(e&&!i?` `:``)+i)+b[e],g+=t;i&&!x[b.length]&&(g+=i)}u&&(g=g.replace(u,` `)),L[e].highlight=g}if(r)break}return t}function gt(e,t,n,r){let i=W(),a=[];for(let e=0,n;e<t.length;e++){n=t[e];for(let e=0;e<n.length;e++)i[n[e]]=1}for(let t=0,o;t<e.length;t++)if(o=e[t],i[o]){if(r)r--;else if(a.push(o),i[o]=0,n&&--n===0)break}return a}J.prototype.search=function(e,t,n,r){n||(!t&&We(e)?(n=e,e=``):We(t)&&(n=t,t=0));let i=[];var a=[];let o,s,c,l,u,d=0,f=!0,p;if(n){n.constructor===Array&&(n={index:n}),e=n.query||e;var m=n.pluck,h=n.merge;l=m||n.field||(l=n.index)&&(l.index?null:l),u=this.tag&&n.tag,s=n.suggest,f=!0,c=n.cache,p=f&&this.store&&n.highlight,o=!!p||f&&this.store&&n.enrich,t=n.limit||t;var g=n.offset||0;if(t||=f?100:0,u){u.constructor!==Array&&(u=[u]);var _=[];for(let e=0,t;e<u.length;e++)if(t=u[e],t.field&&t.tag){var v=t.tag;if(v.constructor===Array)for(var y=0;y<v.length;y++)_.push(t.field,v[y]);else _.push(t.field,v)}else{v=Object.keys(t);for(let e=0,n,r;e<v.length;e++)if(n=v[e],r=t[n],r.constructor===Array)for(y=0;y<r.length;y++)_.push(n,r[y]);else _.push(n,r)}if(u=_,!e){if(a=[],_.length)for(m=0;m<_.length;m+=2)h=vt.call(this,_[m],_[m+1],t,g,o),i.push({field:_[m],tag:_[m+1],result:h});return a.length?Promise.all(a).then(function(e){for(let t=0;t<e.length;t++)i[t].result=e[t];return i}):i}}l&&l.constructor!==Array&&(l=[l])}l||=this.field,_=!1;for(let m=0,h,b,x;m<l.length;m++){b=l[m];let S;if(G(b)||(S=b,b=S.field,e=S.query||e,t=Ue(S.limit,t),g=Ue(S.offset,g),s=Ue(S.suggest,s),p=f&&this.store&&Ue(S.highlight,p),o=!!p||f&&this.store&&Ue(S.enrich,o),c=Ue(S.cache,c)),r)h=r[m];else{v=S||n||{},y=v.enrich;let r=this.index.get(b);if(u&&(y&&(v.enrich=!1),v.limit=0,v.offset=0),h=c?r.searchCache(e,u?0:t,v):r.search(e,u?0:t,v),u&&(v.limit=t,v.offset=g),y&&(v.enrich=y),_){_[m]=h;continue}}if(x=(h=h.result||h)&&h.length,u&&x){v=[],y=0;for(let e=0,t;e<u.length;e+=2){if(t=this.tag.get(u[e]),!t){if(s)continue;return i}if((t&&=t.get(u[e+1]))&&t.length)y++,v.push(t);else if(!s)return i}if(y){if(h=gt(h,v,t,g),x=h.length,!x&&!s)return h;y--}}if(x)a[d]=b,i.push(h),d++;else if(l.length===1)return i}if(_){let r=this;return Promise.all(_).then(function(i){return n&&(n.resolve=f),i.length&&(i=r.search(e,t,n,i)),i})}if(!d)return i;if(m&&(!o||!this.store))return i=i[0];for(_=[],g=0;g<a.length;g++){if(r=i[g],o&&r.length&&r[0].doc===void 0&&(r=yt.call(this,r)),m)return p?ht(e,r,this.index,m,p):r;i[g]={field:a[g],result:r}}return p&&(i=ht(e,i,this.index,m,p)),h?_t(i):i};function _t(e){let t=[],n=W(),r=W();for(let i=0,a,o,s,c,l,u,d;i<e.length;i++){a=e[i],o=a.field,s=a.result;for(let e=0;e<s.length;e++)l=s[e],typeof l==`object`?c=l.id:l={id:c=l},(u=n[c])?u.push(o):(l.field=n[c]=[o],t.push(l)),(d=l.highlight)&&(u=r[c],u||(r[c]=u={},l.highlight=u),u[o]=d)}return t}function vt(e,t,n,r,i){return e=this.tag.get(e),!e||(e=e.get(t),!e)?[]:(t=e.length-r,t>0&&((n&&t>n||r)&&(e=e.slice(r,r+n)),i&&(e=yt.call(this,e))),e)}function yt(e){if(!this||!this.store)return e;let t=Array(e.length);for(let n=0,r;n<e.length;n++)r=e[n],t[n]={id:r,doc:this.store.get(r)};return t}function J(e){if(!this||this.constructor!==J)return new J(e);let t=e.document||e.doc||e;var n;this.B=[],this.field=[],this.C=[],this.key=(n=t.key||t.id)&&bt(n,this.C)||`id`,this.reg=(this.fastupdate=!!e.fastupdate)?new Map:new Set,this.h=(n=t.store||null)&&n&&n!==!0&&[],this.store=n?new Map:null,this.cache=(n=e.cache||null)&&new q(n),e.cache=!1,this.priority=e.priority||4,n=new Map;let r=t.index||t.field||t;G(r)&&(r=[r]);for(let t=0,i,a;t<r.length;t++)i=r[t],G(i)||(a=i,i=i.field),a=We(a)?Object.assign({},e,a):e,n.set(i,new X(a,this.reg)),a.custom?this.B[t]=a.custom:(this.B[t]=bt(i,this.C),a.filter&&(typeof this.B[t]==`string`&&(this.B[t]=new String(this.B[t])),this.B[t].F=a.filter)),this.field[t]=i;if(this.h){e=t.store,G(e)&&(e=[e]);for(let t=0,n,r;t<e.length;t++)n=e[t],r=n.field||n,n.custom?(this.h[t]=n.custom,n.custom.M=r):(this.h[t]=bt(r,this.C),n.filter&&(typeof this.h[t]==`string`&&(this.h[t]=new String(this.h[t])),this.h[t].F=n.filter))}if(this.index=n,this.tag=null,(n=t.tag)&&(typeof n==`string`&&(n=[n]),n.length)){this.tag=new Map,this.A=[],this.D=[];for(let e=0,t,r;e<n.length;e++){if(t=n[e],r=t.field||t,!r)throw Error(`The tag field from the document descriptor is undefined.`);t.custom?this.A[e]=t.custom:(this.A[e]=bt(r,this.C),t.filter&&(typeof this.A[e]==`string`&&(this.A[e]=new String(this.A[e])),this.A[e].F=t.filter)),this.D[e]=r,this.tag.set(r,new Map)}}}function bt(e,t){let n=e.split(`:`),r=0;for(let i=0;i<n.length;i++)e=n[i],e[e.length-1]===`]`&&(e=e.substring(0,e.length-2))&&(t[r]=!0),e&&(n[r++]=e);return r<n.length&&(n.length=r),r>1?n:n[0]}H=J.prototype,H.append=function(e,t){return this.add(e,t,!0)},H.update=function(e,t){return this.remove(e).add(e,t)},H.remove=function(e){We(e)&&(e=Ge(e,this.key));for(var t of this.index.values())t.remove(e,!0);if(this.reg.has(e)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let r of n){t=r[0];let i=r[1],a=i.indexOf(e);a>-1&&(i.length>1?i.splice(a,1):n.delete(t))}this.store&&this.store.delete(e),this.reg.delete(e)}return this.cache&&this.cache.remove(e),this},H.clear=function(){let e=[];for(let t of this.index.values()){let n=t.clear();n.then&&e.push(n)}if(this.tag)for(let e of this.tag.values())e.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),e.length?Promise.all(e):this},H.contain=function(e){return this.reg.has(e)},H.cleanup=function(){for(let e of this.index.values())e.cleanup();return this},H.get=function(e){return this.store.get(e)||null},H.set=function(e,t){return typeof e==`object`&&(t=e,e=Ge(t,this.key)),this.store.set(e,t),this},H.searchCache=Qe,H.export=Ot,H.import=kt,ot(J.prototype);function xt(e,t=0){let n=[],r=[];t&&=25e4/t*5e3|0;for(let i of e.entries())r.push(i),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function St(e,t){t||=new Map;for(let n=0,r;n<e.length;n++)r=e[n],t.set(r[0],r[1]);return t}function Ct(e,t=0){let n=[],r=[];t&&=25e4/t*1e3|0;for(let i of e.entries())r.push([i[0],xt(i[1])[0]||[]]),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function wt(e,t){t||=new Map;for(let n=0,r,i;n<e.length;n++)r=e[n],i=t.get(r[0]),t.set(r[0],St(r[1],i));return t}function Tt(e){let t=[],n=[];for(let r of e.keys())n.push(r),n.length===25e4&&(t.push(n),n=[]);return n.length&&t.push(n),t}function Et(e,t){t||=new Set;for(let n=0;n<e.length;n++)t.add(e[n]);return t}function Dt(e,t,n,r,i,a,o=0){let s=r&&r.constructor===Array;var c=s?r.shift():r;if(!c)return this.export(e,t,i,a+1);if((c=e((t?t+`.`:``)+(o+1)+`.`+n,JSON.stringify(c)))&&c.then){let l=this;return c.then(function(){return Dt.call(l,e,t,n,s?r:null,i,a,o+1)})}return Dt.call(this,e,t,n,s?r:null,i,a,o+1)}function Ot(e,t,n=0,r=0){if(n<this.field.length){let i=this.field[n];if((t=this.index.get(i).export(e,i,n,r=1))&&t.then){let r=this;return t.then(function(){return r.export(e,i,n+1)})}return this.export(e,i,n+1)}let i,a;switch(r){case 0:i=`reg`,a=Tt(this.reg),t=null;break;case 1:i=`tag`,a=this.tag&&Ct(this.tag,this.reg.size),t=null;break;case 2:i=`doc`,a=this.store&&xt(this.store),t=null;break;default:return}return Dt.call(this,e,t,i,a||null,n,r)}function kt(e,t){var n=e.split(`.`);if(n[n.length-1]===`json`&&n.pop(),e=n.length>2?n[0]:``,n=n.length>2?n[2]:n[1],t){if(typeof t==`string`&&(t=JSON.parse(t)),e)return this.index.get(e).import(n,t);switch(n){case`reg`:this.fastupdate=!1,this.reg=Et(t,this.reg);for(let e=0,t;e<this.field.length;e++)t=this.index.get(this.field[e]),t.fastupdate=!1,t.reg=this.reg;break;case`tag`:this.tag=wt(t,this.tag);break;case`doc`:this.store=St(t,this.store)}}}function At(e,t){let n=``;for(let r of e.entries()){e=r[0];let i=r[1],a=``;for(let e=0,n;e<i.length;e++){n=i[e]||[``];let r=``;for(let e=0;e<n.length;e++)r+=(r?`,`:``)+(t===`string`?`"`+n[e]+`"`:n[e]);r=`[`+r+`]`,a+=(a?`,`:``)+r}a=`["`+e+`",[`+a+`]]`,n+=(n?`,`:``)+a}return n}X.prototype.remove=function(e,t){let n=this.reg.size&&(this.fastupdate?this.reg.get(e):this.reg.has(e));if(n){if(this.fastupdate){for(let t=0,r,i;t<n.length;t++)if((r=n[t])&&(i=r.length))if(r[i-1]===e)r.pop();else{let t=r.indexOf(e);t>=0&&r.splice(t,1)}}else jt(this.map,e),this.depth&&jt(this.ctx,e);t||this.reg.delete(e)}return this.cache&&this.cache.remove(e),this};function jt(e,t){let n=0;var r=t===void 0;if(e.constructor===Array){for(let i=0,a,o,s;i<e.length;i++)if((a=e[i])&&a.length){if(r)return 1;if(o=a.indexOf(t),o>=0){if(a.length>1)return a.splice(o,1),1;if(delete e[i],n)return 1;s=1}else{if(s)return 1;n++}}}else for(let i of e.entries())r=i[0],jt(i[1],t)?n++:e.delete(r);return n}var Mt={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:`forward`},score:{resolution:9,context:{depth:2,resolution:3}}};X.prototype.add=function(e,t,n,r){if(t&&(e||e===0)){if(!r&&!n&&this.reg.has(e))return this.update(e,t);r=this.depth,t=this.encoder.encode(t,!r);let l=t.length;if(l){let u=W(),d=W(),f=this.resolution;for(let p=0;p<l;p++){let m=t[this.rtl?l-1-p:p];var i=m.length;if(i&&(r||!d[m])){var a=this.score?this.score(t,m,p,null,0):Nt(f,l,p),o=``;switch(this.tokenize){case`tolerant`:if(Y(this,d,m,a,e,n),i>2){for(let t=1,r,s,c,l;t<i-1;t++)r=m.charAt(t),s=m.charAt(t+1),c=m.substring(0,t)+s,l=m.substring(t+2),o=c+r+l,Y(this,d,o,a,e,n),o=c+l,Y(this,d,o,a,e,n);Y(this,d,m.substring(0,m.length-1),a,e,n)}break;case`full`:if(i>2){for(let r=0,c;r<i;r++)for(a=i;a>r;a--){o=m.substring(r,a),c=this.rtl?i-1-r:r;var s=this.score?this.score(t,m,p,o,c):Nt(f,l,p,i,c);Y(this,d,o,s,e,n)}break}case`bidirectional`:case`reverse`:if(i>1){for(s=i-1;s>0;s--){o=m[this.rtl?i-1-s:s]+o;var c=this.score?this.score(t,m,p,o,s):Nt(f,l,p,i,s);Y(this,d,o,c,e,n)}o=``}case`forward`:if(i>1){for(s=0;s<i;s++)o+=m[this.rtl?i-1-s:s],Y(this,d,o,a,e,n);break}default:if(Y(this,d,m,a,e,n),r&&l>1&&p<l-1)for(i=this.L,o=m,a=Math.min(r+1,this.rtl?p+1:l-p),s=1;s<a;s++){m=t[this.rtl?l-1-p-s:p+s],c=this.bidirectional&&m>o;let r=this.score?this.score(t,o,p,m,s-1):Nt(i+(l/2>i?0:1),l,p,a-1,s-1);Y(this,u,c?o:m,r,e,n,c?m:o)}}}}this.fastupdate||this.reg.add(e)}}return this};function Y(e,t,n,r,i,a,o){let s,c;if(!(s=t[n])||o&&!s[o]){if(o?(t=s||(t[n]=W()),t[o]=1,c=e.ctx,(s=c.get(o))?c=s:c.set(o,c=new Map)):(c=e.map,t[n]=1),(s=c.get(n))?c=s:c.set(n,c=s=[]),a){for(let n=0,a;n<s.length;n++)if((a=s[n])&&a.includes(i)){if(n<=r)return;a.splice(a.indexOf(i),1),e.fastupdate&&(t=e.reg.get(i))&&t.splice(t.indexOf(a),1);break}}c=c[r]||(c[r]=[]),c.push(i),e.fastupdate&&((r=e.reg.get(i))?r.push(c):e.reg.set(i,[c]))}}function Nt(e,t,n,r,i){return n&&e>1?t+(r||0)<=e?n+(i||0):(e-1)/(t+(r||0))*(n+(i||0))+1|0:0}X.prototype.search=function(e,t,n){if(n||(t||typeof e!=`object`?typeof t==`object`&&(n=t,t=0):(n=e,e=``)),n&&n.cache)return n.cache=!1,t=this.searchCache(e,t,n),n.cache=!0,t;var r=[],i=0;if(n){e=n.query||e,t=n.limit||t,i=n.offset||0;var a=n.context,o=n.suggest,s=!0,c=n.resolution}if(s===void 0&&(s=!0),a=this.depth&&a!==!1,n=this.encoder.encode(e,!a),e=n.length,t||=s?100:0,e===1)return o=i,(i=Pt(this,n[0],``))&&i.length?mt.call(this,i,t,o):[];if(e===2&&a&&!o)return o=i,(i=Pt(this,n[1],n[0]))&&i.length?mt.call(this,i,t,o):[];s=W();var l=0;if(a){var u=n[0];l=1}c||c===0||(c=u?this.L:this.resolution);for(let t,i;l<e;l++){if((i=n[l])&&!s[i]){s[i]=1,t=Pt(this,i,u);a:{a=t;var d=r,f=o,p=c;let e=[];if(a&&a.length){if(a.length<=p){d.push(a),t=void 0;break a}for(let t=0,n;t<p;t++)(n=a[t])&&(e[t]=n);if(e.length){d.push(e),t=void 0;break a}}t=f?void 0:e}if(t){r=t;break}u&&(o&&t&&r.length||(u=i))}o&&u&&l===e-1&&!r.length&&(c=this.resolution,u=``,l=-1,s=W())}a:{if(n=r,r=n.length,u=n,r>1)b:{r=o,u=n.length,o=[],e=W();for(let r=0,d,f,p,m;r<c;r++)for(l=0;l<u;l++)if(p=n[l],r<p.length&&(d=p[r])){for(a=0;a<d.length;a++)if(f=d[a],(s=e[f])?e[f]++:(s=0,e[f]=1),m=o[s]||(o[s]=[]),m.push(f),t&&s===u-1&&m.length-i===t){u=i?m.slice(i):m;break b}}if(n=o.length)if(r){if(o.length>1){c:for(n=[],c=W(),r=o.length,s=r-1;s>=0;s--)if(e=(r=o[s])&&r.length){for(l=0;l<e;l++)if(u=r[l],!c[u]){if(c[u]=1,i)i--;else if(n.push(u),n.length===t)break c}}}else n=(o=o[0])&&t&&o.length>t||i?o.slice(i,t+i):o;o=n}else{if(n<u){u=[];break b}o=o[n-1],(t||i)&&(o.length>t||i)&&(o=o.slice(i,t+i))}u=o}else if(r===1){t=mt.call(null,n[0],t,i);break a}t=u}return t};function Pt(e,t,n){let r;return n&&(r=e.bidirectional&&t>n)&&(r=n,n=t,t=r),e=n?(e=e.ctx.get(n))&&e.get(t):e.map.get(t),e}function X(e,t){if(!this||this.constructor!==X)return new X(e);if(e){var n=G(e)?e:e.preset;n&&(e=Object.assign({},Mt[n],e))}else e={};n=e.context;let r=n===!0?{depth:1}:n||{},i=G(e.encoder)?at[e.encoder]:e.encode||e.encoder||{};this.encoder=i.encode?i:typeof i==`object`?new Ze(i):{encode:i},this.resolution=e.resolution||9,this.tokenize=n=(n=e.tokenize)&&n!=="default"&&n!==`exact`&&n||`strict`,this.depth=n===`strict`&&r.depth||0,this.bidirectional=r.bidirectional!==!1,this.fastupdate=!!e.fastupdate,this.score=e.score||null,n=!1,this.map=new Map,this.ctx=new Map,this.reg=t||(this.fastupdate?new Map:new Set),this.L=r.resolution||3,this.rtl=i.rtl||e.rtl||!1,this.cache=(n=e.cache||null)&&new q(n),this.priority=e.priority||4}H=X.prototype,H.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this},H.append=function(e,t){return this.add(e,t,!0)},H.contain=function(e){return this.reg.has(e)},H.update=function(e,t){let n=this,r=this.remove(e);return r&&r.then?r.then(()=>n.add(e,t)):this.add(e,t)},H.cleanup=function(){return this.fastupdate?(jt(this.map),this.depth&&jt(this.ctx),this):this},H.searchCache=Qe,H.export=function(e,t,n=0,r=0){let i,a;switch(r){case 0:i=`reg`,a=Tt(this.reg);break;case 1:i=`cfg`,a=null;break;case 2:i=`map`,a=xt(this.map,this.reg.size);break;case 3:i=`ctx`,a=Ct(this.ctx,this.reg.size);break;default:return}return Dt.call(this,e,t,i,a,n,r)},H.import=function(e,t){if(t)switch(typeof t==`string`&&(t=JSON.parse(t)),e=e.split(`.`),e[e.length-1]===`json`&&e.pop(),e.length===3&&e.shift(),e=e.length>1?e[1]:e[0],e){case`reg`:this.fastupdate=!1,this.reg=Et(t,this.reg);break;case`map`:this.map=St(t,this.map);break;case`ctx`:this.ctx=wt(t,this.ctx)}},H.serialize=function(e=!0){let t=``,n=``,r=``;if(this.reg.size){let e;for(var i of this.reg.keys())e||=typeof i,t+=(t?`,`:``)+(e===`string`?`"`+i+`"`:i);t=`index.reg=new Set([`+t+`]);`,n=At(this.map,e),n=`index.map=new Map([`+n+`]);`;for(let t of this.ctx.entries()){i=t[0];let n=At(t[1],e);n=`new Map([`+n+`])`,n=`["`+i+`",`+n+`]`,r+=(r?`,`:``)+n}r=`index.ctx=new Map([`+r+`]);`}return e?`function inject(index){`+t+n+r+`}`:t+n+r},ot(X.prototype);var Ft={Index:X,Charset:at,Encoder:Ze,Document:J,Worker:null,Resolver:null,IndexedDB:null,Language:{}},It=at,Lt={finalize:e=>{let t=[];for(let n of e)t.push(...zt(n));return t}};function Rt(e){return e>=19968&&e<=40959||e>=12352&&e<=12543||e>=44032&&e<=55203||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=191471||e>=196608&&e<=205743||e>=191472&&e<=192095||e>=63744&&e<=64255||e>=194560&&e<=195103}function zt(e){let t=[],n=``;for(let r of e)Rt(r.codePointAt(0))?(n&&=(t.push(n),``),t.push(r)):n+=r;return n&&t.push(n),t}var Bt=new Ft.Encoder(It.Default).assign(Lt),Vt=class{apiUrl;apiKey;postsIndex;authorsIndex;tagsIndex;constructor({adminUrl:e,apiKey:t,dir:n}){let r=n===`rtl`?`reverse`:`forward`;this.apiUrl=e,this.apiKey=t,this.postsIndex=new Ft.Document({tokenize:r,document:{id:`id`,index:[`title`,`excerpt`],store:!0},encoder:Bt}),this.authorsIndex=new Ft.Document({tokenize:r,document:{id:`id`,index:[`name`],store:!0},encoder:Bt}),this.tagsIndex=new Ft.Document({tokenize:r,document:{id:`id`,index:[`name`],store:!0},encoder:Bt}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async#e(){let e=await this.#t();e.length>0&&this.#n(e)}async#t(){try{let e=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(e)).json()).posts}catch(e){return console.error(`Error fetching posts:`,e),[]}}#n(e){e.forEach(e=>{this.postsIndex.add(e)})}async#r(){let e=await this.#i();e.length>0&&this.#a(e)}async#i(){try{let e=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(e)).json()).authors}catch(e){return console.error(`Error fetching authors:`,e),[]}}#a(e){e.forEach(e=>{this.authorsIndex.add(e)})}async#o(){let e=await this.#s();e.length>0&&this.#c(e)}async#s(){try{let e=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(e)).json()).tags}catch(e){return console.error(`Error fetching tags:`,e),[]}}#c(e){e.forEach(e=>{this.tagsIndex.add(e)})}async init(){await Promise.all([this.#e(),this.#r(),this.#o()])}#l(e){let t=[],n={};return e.forEach(e=>{e.result.forEach(e=>{n[e.id]||(t.push(e.doc),n[e.id]=!0)})}),t}search(e){let t=this.postsIndex.search(e,{enrich:!0}),n=this.authorsIndex.search(e,{enrich:!0}),r=this.tagsIndex.search(e,{enrich:!0});return{posts:this.#l(t),authors:this.#l(n),tags:this.#l(r)}}},Ht=10,Ut=10,Wt={zIndex:`3999999`,position:`fixed`,left:`0`,top:`0`,width:`100%`,height:`100%`,overflow:`hidden`},Gt={margin:`auto`,position:`relative`,padding:`0`,outline:`0`,width:`100%`,opacity:`1`,overflow:`hidden`,height:`100%`},Kt=`
2
+ :root {
3
+ --brandcolor:
4
+ }
8
5
 
9
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Q!==5&&(Q=2),c=Es(c,s),f=o;do{switch(f.tag){case 3:a=c,f.flags|=4096,t&=-t,f.lanes|=t;var x=ks(f,a,t);Ma(f,x);break a;case 1:a=c;var S=f.type,C=f.stateNode;if(!(f.flags&64)&&(typeof S.getDerivedStateFromError==`function`||C!==null&&typeof C.componentDidCatch==`function`&&(uc===null||!uc.has(C)))){f.flags|=4096,t&=-t,f.lanes|=t;var w=As(f,a,t);Ma(f,w);break a}}f=f.return}while(f!==null)}Wc(n)}catch(e){t=e,Z===n&&n!==null&&(Z=n=n.return);continue}break}while(1)}function zc(){var e=qs.current;return qs.current=Yo,e===null?Yo:e}function Bc(e,t){var n=X;X|=16;var r=zc();Ys===e&&Xs===t||Lc(e,t);do try{Vc();break}catch(t){Rc(e,t)}while(1);if(Sa(),X=n,qs.current=r,Z!==null)throw Error(i(261));return Ys=null,Xs=0,Q}function Vc(){for(;Z!==null;)Uc(Z)}function Hc(){for(;Z!==null&&!Ji();)Uc(Z)}function Uc(e){var t=nl(e.alternate,e,Zs);e.memoizedProps=e.pendingProps,t===null?Wc(e):Z=t,Js.current=null}function Wc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=Ts(t),n!==null){n.flags&=2047,Z=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=ws(n,t,Zs),n!==null){Z=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||Zs&1073741824||!(n.mode&4)){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect===null?e.firstEffect=t:e.lastEffect.nextEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);Q===0&&(Q=5)}function Gc(e){var t=ua();return fa(99,Kc.bind(null,e,t)),null}function Kc(e,t){do Jc();while(fc!==null);if(X&48)throw Error(i(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,c=e.expirationTimes;0<o;){var l=31-mn(o),u=1<<l;a[l]=0,s[l]=-1,c[l]=-1,o&=~u}if(gc!==null&&!(r&24)&&gc.has(e)&&gc.delete(e),e===Ys&&(Z=Ys=null,Xs=0),1<n.flags?n.lastEffect===null?r=n:(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n.firstEffect,r!==null){if(a=X,X|=32,Js.current=null,ci=bn,s=zr(),Br(s)){if(`selectionStart`in s)c={start:s.selectionStart,end:s.selectionEnd};else a:if(c=(c=s.ownerDocument)&&c.defaultView||window,(u=c.getSelection&&c.getSelection())&&u.rangeCount!==0){c=u.anchorNode,o=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{c.nodeType,l.nodeType}catch{c=null;break a}var d=0,f=-1,p=-1,m=0,h=0,g=s,_=null;b:for(;;){for(var v;g!==c||o!==0&&g.nodeType!==3||(f=d+o),g!==l||u!==0&&g.nodeType!==3||(p=d+u),g.nodeType===3&&(d+=g.nodeValue.length),(v=g.firstChild)!==null;)_=g,g=v;for(;;){if(g===s)break b;if(_===c&&++m===o&&(f=d),_===l&&++h===u&&(p=d),(v=g.nextSibling)!==null)break;g=_,_=g.parentNode}g=v}c=f===-1||p===-1?null:{start:f,end:p}}else c=null;c||={start:0,end:0}}else c=null;li={focusedElem:s,selectionRange:c},bn=!1,Sc=null,Cc=!1,$=r;do try{qc()}catch(e){if($===null)throw Error(i(330));$c($,e),$=$.nextEffect}while($!==null);Sc=null,$=r;do try{for(s=e;$!==null;){var y=$.flags;if(y&16&&Le($.stateNode,``),y&128){var b=$.alternate;if(b!==null){var x=b.ref;x!==null&&(typeof x==`function`?x(null):x.current=null)}}switch(y&1038){case 2:zs($),$.flags&=-3;break;case 6:zs($),$.flags&=-3,Us($.alternate,$);break;case 1024:$.flags&=-1025;break;case 1028:$.flags&=-1025,Us($.alternate,$);break;case 4:Us($.alternate,$);break;case 8:c=$,Hs(s,c);var S=c.alternate;Ls(c),S!==null&&Ls(S)}$=$.nextEffect}}catch(e){if($===null)throw Error(i(330));$c($,e),$=$.nextEffect}while($!==null);if(x=li,b=zr(),y=x.focusedElem,s=x.selectionRange,b!==y&&y&&y.ownerDocument&&Rr(y.ownerDocument.documentElement,y)){for(s!==null&&Br(y)&&(b=s.start,x=s.end,x===void 0&&(x=b),(`selectionStart`in y)?(y.selectionStart=b,y.selectionEnd=Math.min(x,y.value.length)):(x=(b=y.ownerDocument||document)&&b.defaultView||window,x.getSelection&&(x=x.getSelection(),c=y.textContent.length,S=Math.min(s.start,c),s=s.end===void 0?S:Math.min(s.end,c),!x.extend&&S>s&&(c=s,s=S,S=c),c=Lr(y,S),o=Lr(y,s),c&&o&&(x.rangeCount!==1||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(b=b.createRange(),b.setStart(c.node,c.offset),x.removeAllRanges(),S>s?(x.addRange(b),x.extend(o.node,o.offset)):(b.setEnd(o.node,o.offset),x.addRange(b)))))),b=[],x=y;x=x.parentNode;)x.nodeType===1&&b.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus==`function`&&y.focus(),y=0;y<b.length;y++)x=b[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}bn=!!ci,li=ci=null,e.current=n,$=r;do try{for(y=e;$!==null;){var C=$.flags;if(C&36&&Ps(y,$.alternate,$),C&128){b=void 0;var w=$.ref;if(w!==null){var T=$.stateNode;switch($.tag){case 5:b=T;break;default:b=T}typeof w==`function`?w(b):w.current=b}}$=$.nextEffect}}catch(e){if($===null)throw Error(i(330));$c($,e),$=$.nextEffect}while($!==null);$=null,ia(),X=a}else e.current=n;if(dc)dc=!1,fc=e,pc=t;else for($=r;$!==null;)t=$.nextEffect,$.nextEffect=null,$.flags&8&&(C=$,C.sibling=null,C.stateNode=null),$=t;if(r=e.pendingLanes,r===0&&(uc=null),r===1?e===vc?_c++:(_c=0,vc=e):_c=0,n=n.stateNode,Wi&&typeof Wi.onCommitFiberRoot==`function`)try{Wi.onCommitFiberRoot(Ui,n,void 0,(n.current.flags&64)==64)}catch{}if(Oc(e,la()),cc)throw cc=!1,e=lc,lc=null,e;return X&8||ma(),null}function qc(){for(;$!==null;){var e=$.alternate;Cc||Sc===null||($.flags&8?bt($,Sc)&&(Cc=!0):$.tag===13&&Gs(e,$)&&bt($,Sc)&&(Cc=!0));var t=$.flags;t&256&&Ns(e,$),!(t&512)||dc||(dc=!0,pa(97,function(){return Jc(),null})),$=$.nextEffect}}function Jc(){if(pc!==90){var e=97<pc?97:pc;return pc=90,fa(e,Zc)}return!1}function Yc(e,t){mc.push(t,e),dc||(dc=!0,pa(97,function(){return Jc(),null}))}function Xc(e,t){hc.push(t,e),dc||(dc=!0,pa(97,function(){return Jc(),null}))}function Zc(){if(fc===null)return!1;var e=fc;if(fc=null,X&48)throw Error(i(331));var t=X;X|=32;var n=hc;hc=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],s=a.destroy;if(a.destroy=void 0,typeof s==`function`)try{s()}catch(e){if(o===null)throw Error(i(330));$c(o,e)}}for(n=mc,mc=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var c=a.create;a.destroy=c()}catch(e){if(o===null)throw Error(i(330));$c(o,e)}}for(c=e.current.firstEffect;c!==null;)e=c.nextEffect,c.nextEffect=null,c.flags&8&&(c.sibling=null,c.stateNode=null),c=e;return X=t,ma(),!0}function Qc(e,t,n){t=Es(n,t),t=ks(e,t,1),ja(e,t),t=wc(),e=Dc(e,1),e!==null&&(pn(e,1,t),Oc(e,t))}function $c(e,t){if(e.tag===3)Qc(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Qc(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(uc===null||!uc.has(r))){e=Es(t,e);var i=As(n,e,1);if(ja(n,i),i=wc(),n=Dc(n,1),n!==null)pn(n,1,i),Oc(n,i);else if(typeof r.componentDidCatch==`function`&&(uc===null||!uc.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function el(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=wc(),e.pingedLanes|=e.suspendedLanes&n,Ys===e&&(Xs&n)===n&&(Q===4||Q===3&&(Xs&62914560)===Xs&&500>la()-ac?Lc(e,0):rc|=n),Oc(e,t)}function tl(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(bc===0&&(bc=ec),t=dn(62914560&~bc),t===0&&(t=4194304)):t=ua()===99?1:2:t=1),n=wc(),e=Dc(e,t),e!==null&&(pn(e,t,n),Oc(e,n))}var nl=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Pi.current)es=!0;else if((n&r)!==0)es=!!(e.flags&16384);else{switch(es=!1,t.tag){case 3:us(t),po();break;case 5:to(t);break;case 1:Li(t.type)&&Vi(t);break;case 4:$a(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;K(va,a._currentValue),a._currentValue=r;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)===0?(K(q,q.current&1),t=ys(e,t,n),t===null?null:t.sibling):fs(e,t,n);K(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return vs(e,t,n);t.flags|=64}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),K(q,q.current),r)break;return null;case 23:case 24:return t.lanes=0,as(e,t,n)}return ys(e,t,n)}else es=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=Ii(t,Ni.current),Ta(t,n),a=wo(null,t,r,e,a,n),t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Li(r)){var o=!0;Vi(t)}else o=!1;t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Oa(t);var s=r.getDerivedStateFromProps;typeof s==`function`&&Ia(t,r,s,e),a.updater=La,t.stateNode=a,a._reactInternals=t,Va(t,r,e,n),t=ls(null,t,r,!0,o,n)}else t.tag=0,ts(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;a:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=ol(a),e=_a(a,e),o){case 0:t=ss(null,t,a,e,n);break a;case 1:t=cs(null,t,a,e,n);break a;case 11:t=ns(null,t,a,e,n);break a;case 14:t=rs(null,t,a,_a(a.type,e),r,n);break a}throw Error(i(306,a,``))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:_a(r,a),ss(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:_a(r,a),cs(e,t,r,a,n);case 3:if(us(t),r=t.updateQueue,e===null||r===null)throw Error(i(282));if(r=t.pendingProps,a=t.memoizedState,a=a===null?null:a.element,ka(e,t),Na(t,r,null,n),r=t.memoizedState.element,r===a)po(),t=ys(e,t,n);else{if(a=t.stateNode,(o=a.hydrate)&&(ao=hi(t.stateNode.containerInfo.firstChild),io=t,o=oo=!0),o){if(e=a.mutableSourceEagerHydrationData,e!=null)for(a=0;a<e.length;a+=2)o=e[a],o._workInProgressVersionPrimary=e[a+1],mo.push(o);for(n=qa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else ts(e,t,r,n),po();t=t.child}return t;case 5:return to(t),e===null&&lo(t),r=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,di(r,a)?s=null:o!==null&&di(r,o)&&(t.flags|=16),os(e,t),ts(e,t,s,n),t.child;case 6:return e===null&&lo(t),null;case 13:return fs(e,t,n);case 4:return $a(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ka(t,null,r,n):ts(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:_a(r,a),ns(e,t,r,a,n);case 7:return ts(e,t,t.pendingProps,n),t.child;case 8:return ts(e,t,t.pendingProps.children,n),t.child;case 12:return ts(e,t,t.pendingProps.children,n),t.child;case 10:a:{r=t.type._context,a=t.pendingProps,s=t.memoizedProps,o=a.value;var c=t.type._context;if(K(va,c._currentValue),c._currentValue=o,s!==null)if(c=s.value,o=Nr(c,o)?0:(typeof r._calculateChangedBits==`function`?r._calculateChangedBits(c,o):1073741823)|0,o===0){if(s.children===a.children&&!Pi.current){t=ys(e,t,n);break a}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var l=c.dependencies;if(l!==null){s=c.child;for(var u=l.firstContext;u!==null;){if(u.context===r&&(u.observedBits&o)!==0){c.tag===1&&(u=Aa(-1,n&-n),u.tag=2,ja(c,u)),c.lanes|=n,u=c.alternate,u!==null&&(u.lanes|=n),wa(c.return,n),l.lanes|=n;break}u=u.next}}else s=c.tag===10&&c.type===t.type?null:c.child;if(s!==null)s.return=c;else for(s=c;s!==null;){if(s===t){s=null;break}if(c=s.sibling,c!==null){c.return=s.return,s=c;break}s=s.return}c=s}ts(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps,r=o.children,Ta(t,n),a=Ea(a,o.unstable_observedBits),r=r(a),t.flags|=1,ts(e,t,r,n),t.child;case 14:return a=t.type,o=_a(a,t.pendingProps),o=_a(a.type,o),rs(e,t,a,o,r,n);case 15:return is(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:_a(r,a),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Li(r)?(e=!0,Vi(t)):e=!1,Ta(t,n),za(t,r,a),Va(t,r,a,n),ls(null,t,r,!0,e,n);case 19:return vs(e,t,n);case 23:return as(e,t,n);case 24:return as(e,t,n)}throw Error(i(156,t.tag))};function rl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function il(e,t,n,r){return new rl(e,t,n,r)}function al(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ol(e){if(typeof e==`function`)return+!!al(e);if(e!=null){if(e=e.$$typeof,e===N)return 11;if(e===te)return 14}return 2}function sl(e,t){var n=e.alternate;return n===null?(n=il(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function cl(e,t,n,r,a,o){var s=2;if(r=e,typeof e==`function`)al(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case O:return ll(n.children,a,o,t);case ae:s=8,a|=16;break;case k:s=8,a|=1;break;case A:return e=il(12,n,t,a|8),e.elementType=A,e.type=A,e.lanes=o,e;case P:return e=il(13,n,t,a),e.type=P,e.elementType=P,e.lanes=o,e;case ee:return e=il(19,n,t,a),e.elementType=ee,e.lanes=o,e;case oe:return ul(n,a,o,t);case se:return e=il(24,n,t,a),e.elementType=se,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case j:s=10;break a;case M:s=9;break a;case N:s=11;break a;case te:s=14;break a;case ne:s=16,r=null;break a;case re:s=22;break a}throw Error(i(130,e==null?e:typeof e,``))}return t=il(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ll(e,t,n,r){return e=il(7,e,r,t),e.lanes=n,e}function ul(e,t,n,r){return e=il(23,e,r,t),e.elementType=oe,e.lanes=n,e}function dl(e,t,n){return e=il(6,e,null,t),e.lanes=n,e}function fl(e,t,n){return t=il(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=fn(0),this.expirationTimes=fn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fn(0),this.mutableSourceEagerHydrationData=null}function ml(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function hl(e,t,n,r){var a=t.current,o=wc(),s=Tc(a);a:if(n){n=n._reactInternals;b:{if(ht(n)!==n||n.tag!==1)throw Error(i(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break b;case 1:if(Li(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break b}}c=c.return}while(c!==null);throw Error(i(171))}if(n.tag===1){var l=n.type;if(Li(l)){n=Bi(n,l,c);break a}}n=c}else n=Mi;return t.context===null?t.context=n:t.pendingContext=n,t=Aa(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),ja(a,t),Ec(a,s,o),s}function gl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function _l(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vl(e,t){_l(e,t),(e=e.alternate)&&_l(e,t)}function yl(){return null}function bl(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new pl(e,t,n!=null&&!0===n.hydrate),t=il(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Oa(t),e[Si]=n.current,ei(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}bl.prototype.render=function(e){hl(e,this._internalRoot,null,null)},bl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;hl(null,e,null,function(){t[Si]=null})};function xl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Sl(e,t){if(t||=(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,!(!t||t.nodeType!==1||!t.hasAttribute(`data-reactroot`))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new bl(e,0,t?{hydrate:!0}:void 0)}function Cl(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i==`function`){var s=i;i=function(){var e=gl(o);s.call(e)}}hl(t,o,e,i)}else{if(a=n._reactRootContainer=Sl(n,r),o=a._internalRoot,typeof i==`function`){var c=i;i=function(){var e=gl(o);c.call(e)}}Pc(function(){hl(t,o,e,i)})}return gl(o)}xt=function(e){e.tag===13&&(Ec(e,4,wc()),vl(e,4))},St=function(e){e.tag===13&&(Ec(e,67108864,wc()),vl(e,67108864))},Ct=function(e){if(e.tag===13){var t=wc(),n=Tc(e);Ec(e,n,t),vl(e,n)}},wt=function(e,t){return t()},Ge=function(e,t,n){switch(t){case`input`:if(Se(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Di(r);if(!a)throw Error(i(90));_e(r),Se(r,a)}}}break;case`textarea`:Ae(e,n);break;case`select`:t=n.value,t!=null&&De(e,!!n.multiple,t,!1)}},Ze=Nc,Qe=function(e,t,n,r,i){var a=X;X|=4;try{return fa(98,e.bind(null,t,n,r,i))}finally{X=a,X===0&&(sc(),ma())}},$e=function(){!(X&49)&&(Mc(),Jc())},et=function(e,t){var n=X;X|=2;try{return e(t)}finally{X=n,X===0&&(sc(),ma())}};function wl(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xl(t))throw Error(i(200));return ml(e,t,null,n)}var Tl={findFiberByHostInstance:wi,bundleType:0,version:`17.0.2`,rendererPackageName:`react-dom`},El={bundleType:Tl.bundleType,version:Tl.version,rendererPackageName:Tl.rendererPackageName,rendererConfig:Tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yt(e),e===null?null:e.stateNode},findFiberByHostInstance:Tl.findFiberByHostInstance||yl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Dl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dl.isDisabled&&Dl.supportsFiber)try{Ui=Dl.inject(El),Wi=Dl}catch{}}e.createPortal=wl,e.render=function(e,t,n){if(!xl(t))throw Error(i(200));return Cl(null,e,t,!1,n)}})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=c(d(),1),_=c(h(),1),v=g.createContext({posts:[],authors:[],tags:[],action:``,lastPage:``,page:``,pageData:{},dispatch:(e,t)=>{},searchIndex:null,indexComplete:!1,searchValue:``,t:()=>{},dir:`ltr`}),y=o((e=>{l();var t=d(),n=60103;if(e.Fragment=60107,typeof Symbol==`function`&&Symbol.for){var r=Symbol.for;n=r(`react.element`),e.Fragment=r(`react.fragment`)}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)a.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}e.jsx=s,e.jsxs=s})),b=o(((e,t)=>{t.exports=y()}))(),x=e=>(0,b.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:16,width:16,viewBox:`0 0 16 16`,...e,children:[(0,b.jsx)(`title`,{children:`circle anim`}),(0,b.jsxs)(`g`,{fill:`#40413F`,className:`nc-icon-wrapper`,children:[(0,b.jsxs)(`g`,{className:`nc-loop-circle-16-icon-f`,children:[(0,b.jsx)(`path`,{d:`M8 16a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8zM8 2a6 6 0 1 0 6 6 6.006 6.006 0 0 0-6-6z`,fill:`#D4D4D4`}),(0,b.jsx)(`path`,{d:`M8 0v2a6.006 6.006 0 0 1 6 6h2a8.009 8.009 0 0 0-8-8z`,"data-color":`color-2`})]}),(0,b.jsx)(`style`,{children:`.nc-loop-circle-16-icon-f{--animation-duration:0.5s;transform-origin:8px 8px;animation:nc-loop-circle-anim var(--animation-duration) infinite linear}@keyframes nc-loop-circle-anim{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}`})]})]}),S=e=>(0,b.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,height:16,width:16,...e,children:(0,b.jsx)(`path`,{strokeLinecap:`round`,strokeWidth:.4,fill:`currentColor`,stroke:`#000000`,strokeLinejoin:`round`,d:`M.44,21.44a1.49,1.49,0,0,0,0,2.12,1.5,1.5,0,0,0,2.12,0l9.26-9.26a.25.25,0,0,1,.36,0l9.26,9.26a1.5,1.5,0,0,0,2.12,0,1.49,1.49,0,0,0,0-2.12L14.3,12.18a.25.25,0,0,1,0-.36l9.26-9.26A1.5,1.5,0,0,0,21.44.44L12.18,9.7a.25.25,0,0,1-.36,0L2.56.44A1.5,1.5,0,0,0,.44,2.56L9.7,11.82a.25.25,0,0,1,0,.36Z`})}),C=class extends g.Component{componentDidMount(){this.node.addEventListener(`load`,this.handleLoad)}handleLoad=()=>{this.setupFrameBaseStyle()};componentWillUnmout(){this.node.removeEventListener(`load`,this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHtml.setAttribute(`dir`,this.props.searchdir),this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate())}render(){let{children:e,head:t,title:n=``,style:r={},...i}=this.props;return(0,b.jsxs)(`iframe`,{srcDoc:`<!DOCTYPE html>`,...i,ref:e=>this.node=e,title:n,style:r,frameBorder:`0`,children:[this.iframeHead&&(0,_.createPortal)(t,this.iframeHead),this.iframeRoot&&(0,_.createPortal)(e,this.iframeRoot)]})}},w=e=>(0,b.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,height:16,width:16,...e,children:(0,b.jsx)(`path`,{d:`M23.38,21.62l-6.53-6.53a9.15,9.15,0,0,0,1.9-5.59,9.27,9.27,0,1,0-3.66,7.36l6.53,6.53a1.26,1.26,0,0,0,1.76,0A1.25,1.25,0,0,0,23.38,21.62ZM2.75,9.5A6.75,6.75,0,1,1,9.5,16.25,6.76,6.76,0,0,1,2.75,9.5Z`,fill:`currentColor`})}),T=10,E=10,D=()=>({modalContainer:{zIndex:`3999999`,position:`fixed`,left:`0`,top:`0`,width:`100%`,height:`100%`,overflow:`hidden`},frame:{common:{margin:`auto`,position:`relative`,padding:`0`,outline:`0`,width:`100%`,opacity:`1`,overflow:`hidden`,height:`100%`}},page:{links:{width:`600px`}}}),O=class extends g.Component{static contextType=v;componentDidMount(){this.sendContainerHeightChangeEvent()}sendContainerHeightChangeEvent(){}componentDidUpdate(){this.sendContainerHeightChangeEvent()}handlePopupClose(e){e.preventDefault(),e.target===e.currentTarget&&this.context.dispatch(`update`,{showPopup:!1})}render(){return(0,b.jsx)(fe,{})}};function k(){let{searchValue:e,dispatch:t,inputRef:n,t:r}=(0,g.useContext)(v),i=(0,g.useRef)(null);(0,g.useEffect)(()=>{setTimeout(()=>{n?.current?.focus()},150);let e=e=>{e.key===`Escape`&&t(`update`,{showPopup:!1})},r=i?.current;return r?.ownerDocument.removeEventListener(`keyup`,e),r?.ownerDocument.addEventListener(`keyup`,e),()=>{r?.ownerDocument.removeEventListener(`keyup`,e)}},[t,n]);let a=`z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow`;return e||(a=`z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg`),(0,b.jsxs)(`div`,{className:a,ref:i,children:[(0,b.jsx)(`div`,{className:`flex items-center justify-center w-4 h-4 me-3`,children:(0,b.jsx)(A,{})}),(0,b.jsx)(`input`,{ref:n,value:e||``,onChange:e=>{t(`update`,{searchValue:e.target.value})},onKeyDown:e=>{(e.key===`ArrowUp`||e.key===`ArrowDown`)&&e.preventDefault()},className:`grow -my-5 py-5 -ms-3 ps-3 text-[1.65rem] focus-visible:outline-none placeholder:text-gray-400 outline-none truncate`,placeholder:r(`Search posts, tags and authors`)}),(0,b.jsx)(j,{}),(0,b.jsx)(M,{})]})}function A(){let{searchValue:e=``,dispatch:t}=(0,g.useContext)(v);return e?(0,b.jsx)(`button`,{alt:`Clear`,className:`-mb-[1px]`,onClick:()=>{t(`update`,{searchValue:``})},children:(0,b.jsx)(S,{className:`text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]`})}):(0,b.jsx)(w,{className:`text-neutral-900`,alt:`Search`})}function j(){let{indexComplete:e,searchValue:t}=(0,g.useContext)(v);return!e&&t?(0,b.jsx)(x,{className:`shrink-0`}):null}function M(){let{dispatch:e,t}=(0,g.useContext)(v);return(0,b.jsx)(`button`,{className:`ms-3 text-sm text-neutral-500 sm:hidden`,alt:`Cancel`,onClick:()=>{e(`update`,{showPopup:!1})},children:t(`Cancel`)})}function N({tag:e,selectedResult:t,setSelectedResult:n}){let{name:r,url:i,id:a}=e,o=`flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer`;return a===t&&(o+=` bg-neutral-100`),(0,b.jsxs)(`div`,{className:o,onClick:()=>{i&&(window.location.href=i)},onMouseEnter:()=>{n(a)},children:[(0,b.jsx)(`p`,{className:`me-2 text-sm font-bold text-neutral-400`,children:`#`}),(0,b.jsx)(`h2`,{className:`text-[1.65rem] font-medium leading-tight text-neutral-900 truncate`,children:r})]})}function P({tags:e,selectedResult:t,setSelectedResult:n}){let{t:r}=(0,g.useContext)(v);if(!e?.length)return null;let i=e.map(e=>(0,b.jsx)(N,{tag:e,selectedResult:t,setSelectedResult:n},e.name));return(0,b.jsxs)(`div`,{className:`border-t border-gray-200 py-3 px-4 sm:px-7`,children:[(0,b.jsx)(`h1`,{className:`uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide`,children:r(`Tags`)}),i]})}function ee({post:e,selectedResult:t,setSelectedResult:n}){let{searchValue:r}=(0,g.useContext)(v),{title:i,excerpt:a,url:o,id:s}=e,c=`py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer`;return s===t&&(c+=` bg-neutral-100`),(0,b.jsxs)(`div`,{className:c,onClick:()=>{o&&(window.location.href=o)},onMouseEnter:()=>{n(s)},children:[(0,b.jsx)(`h2`,{className:`text-[1.65rem] font-medium leading-tight text-neutral-800`,children:(0,b.jsx)(re,{text:i,highlight:r,isExcerpt:!1})}),(0,b.jsx)(`p`,{className:`text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate`,children:(0,b.jsx)(re,{text:a,highlight:r,isExcerpt:!0})})]})}function te({text:e,highlight:t}){let n=``;t?.split(` `).forEach((e,t)=>{let r=String(e).replace(/\W/g,`\\&`);t>0?n+=`|^`+r+`|\\s`+r:n=`^`+r+`|\\s`+r});let r=RegExp(`${n}`,`ig`),i=e?.matchAll(r),a=[];for(let e of i)a.push({startIdx:e?.index,endIdx:(e?.index||0)+(e?.[0].length||0)});return a}function ne({text:e,highlight:t}){let n=te({text:e,highlight:t}),r=[],i=0;return n.forEach(t=>{i===t.startIdx?(r.push({text:e?.slice(t.startIdx,t.endIdx),type:`highlight`}),i=t.endIdx):(r.push({text:e?.slice(i,t.startIdx),type:`normal`}),r.push({text:e?.slice(t.startIdx,t.endIdx),type:`highlight`}),i=t.endIdx)}),i<e?.length&&r.push({text:e?.slice(i,e.length),type:`normal`}),{parts:r,highlightIndexes:n}}function re({text:e=``,highlight:t=``,isExcerpt:n}){e||=``,t||=``;let{parts:r,highlightIndexes:i}=ne({text:e,highlight:t});if(n&&i?.[0]){let n=i?.[0]?.startIdx;if(n>50){e=`...`+e?.slice(n-20);let{parts:i}=ne({text:e,highlight:t});r=i}}return(0,b.jsx)(b.Fragment,{children:r.map((e,t)=>e?.type===`highlight`?(0,b.jsx)(g.default.Fragment,{children:(0,b.jsx)(ie,{word:e.text,isExcerpt:n})},t):(0,b.jsx)(g.default.Fragment,{children:e.text},t))})}function ie({word:e,isExcerpt:t}){return t?(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(`span`,{className:`font-bold`,children:e})}):(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(`span`,{className:`font-bold text-neutral-900`,children:e})})}function ae({posts:e,maxPosts:t,setMaxPosts:n}){let{t:r}=(0,g.useContext)(v);return!e?.length||t>=e?.length?null:(0,b.jsx)(`button`,{className:`w-full my-3 p-[1rem] border border-neutral-200 hover:border-neutral-300 text-neutral-800 hover:text-black font-semibold rounded transition duration-150 ease hover:ease`,onClick:()=>{n(t+E)},children:r(`Show more results`)})}function oe({posts:e,selectedResult:t,setSelectedResult:n}){let{t:r}=(0,g.useContext)(v),[i,a]=(0,g.useState)(T),[o,s]=(0,g.useState)([]);if((0,g.useEffect)(()=>{a(T)},[e]),(0,g.useEffect)(()=>{s(e?.slice(0,i+1))},[i,e]),!e?.length)return null;function c(){return o.map(e=>(0,b.jsx)(ee,{post:e,selectedResult:t,setSelectedResult:n},e.title))}return(0,b.jsxs)(`div`,{className:`border-t border-neutral-200 py-3 px-4 sm:px-7`,children:[(0,b.jsx)(`h1`,{className:`uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide`,children:r(`Posts`)}),(0,b.jsx)(c,{}),(0,b.jsx)(ae,{setMaxPosts:a,maxPosts:i,posts:e})]})}function se({author:e,selectedResult:t,setSelectedResult:n}){let{name:r,profile_image:i,url:a,id:o}=e,s=`py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center`;return o===t&&(s+=` bg-neutral-100`),(0,b.jsxs)(`div`,{className:s,onClick:()=>{a&&(window.location.href=a)},onMouseEnter:()=>{n(o)},children:[(0,b.jsx)(F,{name:r,avatar:i}),(0,b.jsx)(`h2`,{className:`text-[1.65rem] font-medium leading-tight text-neutral-900 truncate`,children:r})]})}function F({name:e,avatar:t}){let n=t?.length,r=e.charAt(0);return n?(0,b.jsx)(`img`,{className:`rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover`,src:t,alt:e}):(0,b.jsx)(`div`,{className:`rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold`,children:(0,b.jsx)(`span`,{className:`text-neutral-400`,children:r})})}function ce({authors:e,selectedResult:t,setSelectedResult:n}){let{t:r}=(0,g.useContext)(v);if(!e?.length)return null;let i=e.map(e=>(0,b.jsx)(se,{author:e,selectedResult:t,setSelectedResult:n},e.name));return(0,b.jsxs)(`div`,{className:`border-t border-neutral-200 py-3 px-4 sm:px-7`,children:[(0,b.jsx)(`h1`,{className:`uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide`,children:r(`Authors`)}),i]})}function le(){let{searchValue:e=``,searchIndex:t,indexComplete:n}=(0,g.useContext)(v),r=null,i=[],a=[],o=[];return n&&e&&(r=t?.search(e),a=r?.posts||[],o=r?.authors||[],i=r?.tags||[]),o=o.filter(e=>!(e?.url&&/\/404\/$/.test(e?.url))),i=i.filter(e=>!(e?.url&&/\/404\/$/.test(e?.url))),a?.length||o?.length||i?.length?(0,b.jsx)(ue,{posts:a,authors:o,tags:i}):e?(0,b.jsx)(de,{}):null}function ue({posts:e,authors:t,tags:n}){let{searchValue:r}=(0,g.useContext)(v),i=(0,g.useMemo)(()=>[...t,...n,...e],[t,n,e]),[a,o]=(0,g.useState)(i?.[0]?.id||null),s=(0,g.useRef)(null);return(0,g.useEffect)(()=>{o(i?.[0]?.id||null)},[i]),(0,g.useEffect)(()=>{let e=e=>{if(e.isComposing||e.keyCode===229)return;let t=i.findIndex(e=>e.id===a),n=i[t+1],r=i[t-1];if(e.key===`ArrowUp`&&r?o(r?.id):e.key===`ArrowDown`&&n&&o(n?.id),e.key===`Enter`){let e=i.find(e=>e.id===a);window.location.href=e?.url}},t=s?.current?.ownerDocument;return t?.removeEventListener(`keydown`,e),t?.addEventListener(`keydown`,e),()=>{t?.removeEventListener(`keydown`,e)}},[i,a]),r?(0,b.jsxs)(`div`,{className:`overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]`,ref:s,children:[(0,b.jsx)(ce,{authors:t,selectedResult:a,setSelectedResult:o}),(0,b.jsx)(P,{tags:n,selectedResult:a,setSelectedResult:o}),(0,b.jsx)(oe,{posts:e,selectedResult:a,setSelectedResult:o})]}):null}function de(){let{t:e}=(0,g.useContext)(v);return(0,b.jsx)(`div`,{className:`py-4 px-7`,children:(0,b.jsx)(`p`,{className:`text-[1.65rem] text-neutral-400 leading-normal`,children:e(`No matches found`)})})}function fe(){let{dispatch:e}=(0,g.useContext)(v);return(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(`div`,{className:`h-screen w-screen pt-20 antialiased z-50 relative ghost-display`,onClick:t=>{t.preventDefault(),t.target===t.currentTarget&&e(`update`,{showPopup:!1})},children:(0,b.jsxs)(`div`,{className:`bg-white w-full max-w-[95vw] sm:max-w-lg rounded-lg shadow-xl m-auto relative translate-z-0 animate-popup`,children:[(0,b.jsx)(k,{}),(0,b.jsx)(le,{})]})})})}var pe=class extends g.Component{static contextType=v;constructor(e){super(e),this.state={height:null}}onHeightChange(e){this.setState({height:e})}handlePopupClose(e){e.preventDefault(),e.target===e.currentTarget&&this.context.dispatch(`update`,{showPopup:!1})}renderFrameStyles(){let e=`
10
- :root {
11
- --brandcolor: ${this.context.brandColor||``}
12
- }
13
-
14
- .ghost-display {
15
- display: none;
16
- }
17
- `,t=this.context.stylesUrl;return t?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`link`,{rel:`stylesheet`,href:t}),(0,b.jsx)(`style`,{dangerouslySetInnerHTML:{__html:e}}),(0,b.jsx)(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1, maximum-scale=1`})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`style`,{dangerouslySetInnerHTML:{__html:e}}),(0,b.jsx)(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1, maximum-scale=1`})]})}renderFrameContainer(){let e=D(),t={...e.frame.common};return(0,b.jsx)(`div`,{style:e.modalContainer,className:`gh-root-frame`,children:(0,b.jsxs)(C,{style:t,title:`portal-popup`,head:this.renderFrameStyles(),searchdir:this.context.dir,children:[(0,b.jsx)(`div`,{onClick:e=>this.handlePopupClose(e),className:`absolute top-0 bottom-0 left-0 right-0 block backdrop-blur-[2px] animate-fadein z-0 bg-gradient-to-br from-[rgba(0,0,0,0.2)] to-[rgba(0,0,0,0.1)]`}),(0,b.jsx)(O,{})]})})}render(){let{showPopup:e}=this.context;return e?this.renderFrameContainer():null}},me=o(((e,t)=>{t.exports={}})),I;function L(e,t,n){let r=typeof n,i=typeof e;if(r!==`undefined`){if(i!==`undefined`){if(n){if(i===`function`&&r===i)return function(t){return e(n(t))};if(t=e.constructor,t===n.constructor){if(t===Array)return n.concat(e);if(t===Map){var a=new Map(n);for(var o of e)a.set(o[0],o[1]);return a}if(t===Set){o=new Set(n);for(a of e.values())o.add(a);return o}}}return e}return n}return i===`undefined`?t:e}function he(e,t){return e===void 0?t:e}function R(){return Object.create(null)}function ge(e){return typeof e==`string`}function _e(e){return typeof e==`object`}function ve(e,t){if(ge(t))e=e[t];else for(let n=0;e&&n<t.length;n++)e=e[t[n]];return e}var ye=/[^\p{L}\p{N}]+/u,be=/(\d{3})/g,xe=/(\D)(\d{3})/g,Se=/(\d{3})(\D)/g,Ce=/[\u0300-\u036f]/g;function we(e={}){if(!this||this.constructor!==we)return new we(...arguments);if(arguments.length)for(e=0;e<arguments.length;e++)this.assign(arguments[e]);else this.assign(e)}I=we.prototype,I.assign=function(e){this.normalize=L(e.normalize,!0,this.normalize);let t=e.include,n=t||e.exclude||e.split,r;if(n||n===``){if(typeof n==`object`&&n.constructor!==RegExp){let e=``;r=!t,t||(e+=`\\p{Z}`),n.letter&&(e+=`\\p{L}`),n.number&&(e+=`\\p{N}`,r=!!t),n.symbol&&(e+=`\\p{S}`),n.punctuation&&(e+=`\\p{P}`),n.control&&(e+=`\\p{C}`),(n=n.char)&&(e+=typeof n==`object`?n.join(``):n);try{this.split=RegExp(`[`+(t?`^`:``)+e+`]+`,`u`)}catch{this.split=/\s+/}}else this.split=n,r=n===!1||`a1a`.split(n).length<2;this.numeric=L(e.numeric,r)}else{try{this.split=L(this.split,ye)}catch{this.split=/\s+/}this.numeric=L(e.numeric,L(this.numeric,!0))}if(this.prepare=L(e.prepare,null,this.prepare),this.finalize=L(e.finalize,null,this.finalize),n=e.filter,this.filter=typeof n==`function`?n:L(n&&new Set(n),null,this.filter),this.dedupe=L(e.dedupe,!0,this.dedupe),this.matcher=L((n=e.matcher)&&new Map(n),null,this.matcher),this.mapper=L((n=e.mapper)&&new Map(n),null,this.mapper),this.stemmer=L((n=e.stemmer)&&new Map(n),null,this.stemmer),this.replacer=L(e.replacer,null,this.replacer),this.minlength=L(e.minlength,1,this.minlength),this.maxlength=L(e.maxlength,1024,this.maxlength),this.rtl=L(e.rtl,!1,this.rtl),(this.cache=n=L(e.cache,!0,this.cache))&&(this.F=null,this.L=typeof n==`number`?n:2e5,this.B=new Map,this.D=new Map,this.I=this.H=128),this.h=``,this.J=null,this.A=``,this.K=null,this.matcher)for(let e of this.matcher.keys())this.h+=(this.h?`|`:``)+e;if(this.stemmer)for(let e of this.stemmer.keys())this.A+=(this.A?`|`:``)+e;return this},I.addStemmer=function(e,t){return this.stemmer||=new Map,this.stemmer.set(e,t),this.A+=(this.A?`|`:``)+e,this.K=null,this.cache&&Te(this),this},I.addFilter=function(e){return typeof e==`function`?this.filter=e:(this.filter||=new Set,this.filter.add(e)),this.cache&&Te(this),this},I.addMapper=function(e,t){return typeof e==`object`?this.addReplacer(e,t):e.length>1?this.addMatcher(e,t):(this.mapper||=new Map,this.mapper.set(e,t),this.cache&&Te(this),this)},I.addMatcher=function(e,t){return typeof e==`object`?this.addReplacer(e,t):e.length<2&&(this.dedupe||this.mapper)?this.addMapper(e,t):(this.matcher||=new Map,this.matcher.set(e,t),this.h+=(this.h?`|`:``)+e,this.J=null,this.cache&&Te(this),this)},I.addReplacer=function(e,t){return typeof e==`string`?this.addMatcher(e,t):(this.replacer||=[],this.replacer.push(e,t),this.cache&&Te(this),this)},I.encode=function(e,t){if(this.cache&&e.length<=this.H)if(this.F){if(this.B.has(e))return this.B.get(e)}else this.F=setTimeout(Te,50,this);this.normalize&&(e=typeof this.normalize==`function`?this.normalize(e):Ce?e.normalize(`NFKD`).replace(Ce,``).toLowerCase():e.toLowerCase()),this.prepare&&(e=this.prepare(e)),this.numeric&&e.length>3&&(e=e.replace(xe,`$1 $2`).replace(Se,`$1 $2`).replace(be,`$1 `));let n=!(this.dedupe||this.mapper||this.filter||this.matcher||this.stemmer||this.replacer),r=[],i=R(),a,o,s=this.split||this.split===``?e.split(this.split):[e];for(let e=0,l,u;e<s.length;e++)if((l=u=s[e])&&!(l.length<this.minlength||l.length>this.maxlength)){if(t){if(i[l])continue;i[l]=1}else{if(a===l)continue;a=l}if(n)r.push(l);else if(!this.filter||(typeof this.filter==`function`?this.filter(l):!this.filter.has(l))){if(this.cache&&l.length<=this.I)if(this.F){var c=this.D.get(l);if(c||c===``){c&&r.push(c);continue}}else this.F=setTimeout(Te,50,this);if(this.stemmer){this.K||=RegExp(`(?!^)(`+this.A+`)$`);let e;for(;e!==l&&l.length>2;)e=l,l=l.replace(this.K,e=>this.stemmer.get(e))}if(l&&(this.mapper||this.dedupe&&l.length>1)){c=``;for(let e=0,t=``,n,r;e<l.length;e++)n=l.charAt(e),n===t&&this.dedupe||((r=this.mapper&&this.mapper.get(n))||r===``?r===t&&this.dedupe||!(t=r)||(c+=r):c+=t=n);l=c}if(this.matcher&&l.length>1&&(this.J||=RegExp(`(`+this.h+`)`,`g`),l=l.replace(this.J,e=>this.matcher.get(e))),l&&this.replacer)for(c=0;l&&c<this.replacer.length;c+=2)l=l.replace(this.replacer[c],this.replacer[c+1]);if(this.cache&&u.length<=this.I&&(this.D.set(u,l),this.D.size>this.L&&(this.D.clear(),this.I=this.I/1.1|0)),l){if(l!==u)if(t){if(i[l])continue;i[l]=1}else{if(o===l)continue;o=l}r.push(l)}}}return this.finalize&&(r=this.finalize(r)||r),this.cache&&e.length<=this.H&&(this.B.set(e,r),this.B.size>this.L&&(this.B.clear(),this.H=this.H/1.1|0)),r};function Te(e){e.F=null,e.B.clear(),e.D.clear()}function Ee(e,t,n){n||(t||typeof e!=`object`?typeof t==`object`&&(n=t,t=0):n=e),n&&(e=n.query||e,t=n.limit||t);let r=``+(t||0);n&&(r+=(n.offset||0)+!!n.context+!!n.suggest+(n.resolve!==!1)+(n.resolution||this.resolution)+(n.boost||0)),e=(``+e).toLowerCase(),this.cache||=new De;let i=this.cache.get(e+r);if(!i){let a=n&&n.cache;a&&(n.cache=!1),i=this.search(e,t,n),a&&(n.cache=a),this.cache.set(e+r,i)}return i}function De(e){this.limit=e&&e!==!0?e:1e3,this.cache=new Map,this.h=``}De.prototype.set=function(e,t){this.cache.set(this.h=e,t),this.cache.size>this.limit&&this.cache.delete(this.cache.keys().next().value)},De.prototype.get=function(e){let t=this.cache.get(e);return t&&this.h!==e&&(this.cache.delete(e),this.cache.set(this.h=e,t)),t},De.prototype.remove=function(e){for(let t of this.cache){let n=t[0];t[1].includes(e)&&this.cache.delete(n)}},De.prototype.clear=function(){this.cache.clear(),this.h=``};var Oe={normalize:!1,numeric:!1,dedupe:!1},ke={},Ae=new Map([[`b`,`p`],[`v`,`f`],[`w`,`f`],[`z`,`s`],[`x`,`s`],[`d`,`t`],[`n`,`m`],[`c`,`k`],[`g`,`k`],[`j`,`k`],[`q`,`k`],[`i`,`e`],[`y`,`e`],[`u`,`o`]]),je=new Map([[`ae`,`a`],[`oe`,`o`],[`sh`,`s`],[`kh`,`k`],[`th`,`t`],[`ph`,`f`],[`pf`,`f`]]),Me=[/([^aeo])h(.)/g,`$1$2`,/([aeo])h([^aeo]|$)/g,`$1$2`,/(.)\1+/g,`$1`],Ne={a:``,e:``,i:``,o:``,u:``,y:``,b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6},Pe={Exact:Oe,Default:ke,Normalize:ke,LatinBalance:{mapper:Ae},LatinAdvanced:{mapper:Ae,matcher:je,replacer:Me},LatinExtra:{mapper:Ae,replacer:Me.concat([/(?!^)[aeo]/g,``]),matcher:je},LatinSoundex:{dedupe:!1,include:{letter:!0},finalize:function(e){for(let n=0;n<e.length;n++){var t=e[n];let r=t.charAt(0),i=Ne[r];for(let e=1,n;e<t.length&&(n=t.charAt(e),n===`h`||n===`w`||!(n=Ne[n])||n===i||(r+=n,i=n,r.length!==4));e++);e[n]=r}}},CJK:{split:``},LatinExact:Oe,LatinDefault:ke,LatinSimple:ke};function Fe(e,t,n,r){let i=[];for(let a=0,o;a<e.index.length;a++)if(o=e.index[a],t>=o.length)t-=o.length;else{t=o[r?`splice`:`slice`](t,n);let a=t.length;if(a&&(i=i.length?i.concat(t):t,n-=a,r&&(e.length-=a),!n))break;t=0}return i}function Ie(e){if(!this||this.constructor!==Ie)return new Ie(e);this.index=e?[e]:[],this.length=e?e.length:0;let t=this;return new Proxy([],{get(e,n){if(n===`length`)return t.length;if(n===`push`)return function(e){t.index[t.index.length-1].push(e),t.length++};if(n===`pop`)return function(){if(t.length)return t.length--,t.index[t.index.length-1].pop()};if(n===`indexOf`)return function(e){let n=0;for(let r=0,i,a;r<t.index.length;r++){if(i=t.index[r],a=i.indexOf(e),a>=0)return n+a;n+=i.length}return-1};if(n===`includes`)return function(e){for(let n=0;n<t.index.length;n++)if(t.index[n].includes(e))return!0;return!1};if(n===`slice`)return function(e,n){return Fe(t,e||0,n||t.length,!1)};if(n===`splice`)return function(e,n){return Fe(t,e||0,n||t.length,!0)};if(n===`constructor`)return Array;if(typeof n!=`symbol`)return(e=t.index[n/2**31|0])&&e[n]},set(e,n,r){return e=n/2**31|0,(t.index[e]||(t.index[e]=[]))[n]=r,t.length++,!0}})}Ie.prototype.clear=function(){this.index.length=0},Ie.prototype.push=function(){};function Le(e=8){if(!this||this.constructor!==Le)return new Le(e);this.index=R(),this.h=[],this.size=0,e>32?(this.B=ze,this.A=BigInt(e)):(this.B=Re,this.A=e)}Le.prototype.get=function(e){let t=this.index[this.B(e)];return t&&t.get(e)},Le.prototype.set=function(e,t){var n=this.B(e);let r=this.index[n];r?(n=r.size,r.set(e,t),(n-=r.size)&&this.size++):(this.index[n]=r=new Map([[e,t]]),this.h.push(r),this.size++)};function z(e=8){if(!this||this.constructor!==z)return new z(e);this.index=R(),this.h=[],this.size=0,e>32?(this.B=ze,this.A=BigInt(e)):(this.B=Re,this.A=e)}z.prototype.add=function(e){var t=this.B(e);let n=this.index[t];n?(t=n.size,n.add(e),(t-=n.size)&&this.size++):(this.index[t]=n=new Set([e]),this.h.push(n),this.size++)},I=Le.prototype,I.has=z.prototype.has=function(e){let t=this.index[this.B(e)];return t&&t.has(e)},I.delete=z.prototype.delete=function(e){let t=this.index[this.B(e)];t&&t.delete(e)&&this.size--},I.clear=z.prototype.clear=function(){this.index=R(),this.h=[],this.size=0},I.values=z.prototype.values=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].values())yield t},I.keys=z.prototype.keys=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].keys())yield t},I.entries=z.prototype.entries=function*(){for(let e=0;e<this.h.length;e++)for(let t of this.h[e].entries())yield t};function Re(e){let t=2**this.A-1;if(typeof e==`number`)return e&t;let n=0,r=this.A+1;for(let i=0;i<e.length;i++)n=(n*r^e.charCodeAt(i))&t;return this.A===32?n+2**31:n}function ze(e){let t=BigInt(2)**this.A-BigInt(1);var n=typeof e;if(n===`bigint`)return e&t;if(n===`number`)return BigInt(e)&t;n=BigInt(0);let r=this.A+BigInt(1);for(let i=0;i<e.length;i++)n=(n*r^BigInt(e.charCodeAt(i)))&t;return n}var Be,Ve;async function He(e){e=e.data;var t=e.task;let n=e.id,r=e.args;switch(t){case`init`:Ve=e.options||{},(t=e.factory)?(Function(`return `+t)()(self),Be=new self.FlexSearch.Index(Ve),delete self.FlexSearch):Be=new Lt(Ve),postMessage({id:n});break;default:let i;t===`export`&&(r[1]?(r[0]=Ve.export,r[2]=0,r[3]=1):r=null),t===`import`?r[0]&&(e=await Ve.import.call(Be,r[0]),Be.import(r[0],e)):((i=r&&Be[t].apply(Be,r))&&i.then&&(i=await i),i&&i.await&&(i=await i.await),t===`search`&&i.result&&(i=i.result)),postMessage(t===`search`?{id:n,msg:i}:{id:n})}}function Ue(e){Je.call(e,`add`),Je.call(e,`append`),Je.call(e,`search`),Je.call(e,`update`),Je.call(e,`remove`),Je.call(e,`searchCache`)}var We,Ge,Ke;function qe(){We=Ke=0}function Je(e){this[e+`Async`]=function(){let t=arguments;var n=t[t.length-1];let r;if(typeof n==`function`&&(r=n,delete t[t.length-1]),We?Ke||=Date.now()-Ge>=this.priority*this.priority*3:(We=setTimeout(qe,0),Ge=Date.now()),Ke){let n=this;return new Promise(r=>{setTimeout(function(){r(n[e+`Async`].apply(n,t))},0)})}let i=this[e].apply(this,t);return n=i.then?i:new Promise(e=>e(i)),r&&n.then(r),n}}var Ye=0;function Xe(e={},t){function n(n){function o(e){e=e.data||e;let t=e.id,n=t&&a.h[t];n&&(n(e.msg),delete a.h[t])}if(this.worker=n,this.h=R(),this.worker)return i?this.worker.on(`message`,o):this.worker.onmessage=o,e.config?new Promise(function(t){Ye>1e9&&(Ye=0),a.h[++Ye]=function(){t(a)},a.worker.postMessage({id:Ye,task:`init`,factory:r,options:e})}):(this.priority=e.priority||4,this.encoder=t||null,this.worker.postMessage({task:`init`,factory:r,options:e}),this)}if(!this||this.constructor!==Xe)return new Xe(e);let r=typeof self<`u`?self._factory:typeof window<`u`?window._factory:null;r&&=r.toString();let i=typeof window>`u`,a=this,o=Qe(r,i,e.worker);return o.then?o.then(function(e){return n.call(a,e)}):n.call(this,o)}Ze(`add`),Ze(`append`),Ze(`search`),Ze(`update`),Ze(`remove`),Ze(`clear`),Ze(`export`),Ze(`import`),Xe.prototype.searchCache=Ee,Ue(Xe.prototype);function Ze(e){Xe.prototype[e]=function(){let t=this,n=[].slice.call(arguments);var r=n[n.length-1];let i;return typeof r==`function`&&(i=r,n.pop()),r=new Promise(function(r){e===`export`&&typeof n[0]==`function`&&(n[0]=null),Ye>1e9&&(Ye=0),t.h[++Ye]=r,t.worker.postMessage({task:e,id:Ye,args:n})}),i?(r.then(i),this):r}}function Qe(e,t,n){return t?typeof module<`u`?new(me()).Worker(__dirname+`/worker/node.js`):Promise.resolve().then(()=>c(me(),1)).then(function(e){return new e.Worker({}.dirname+`/node/node.mjs`)}):e?new window.Worker(URL.createObjectURL(new Blob([`onmessage=`+He.toString()],{type:`text/javascript`}))):new window.Worker(typeof n==`string`?n:{}.url.replace(`/worker.js`,`/worker/worker.js`).replace(`flexsearch.bundle.module.min.js`,`module/worker/worker.js`).replace(`flexsearch.bundle.module.min.mjs`,`module/worker/worker.js`),{type:`module`})}gt.prototype.add=function(e,t,n){if(_e(e)&&(t=e,e=ve(t,this.key)),t&&(e||e===0)){if(!n&&this.reg.has(e))return this.update(e,t);for(let a=0,o;a<this.field.length;a++){o=this.B[a];var r=this.index.get(this.field[a]);if(typeof o==`function`){var i=o(t);i&&r.add(e,i,n,!0)}else i=o.G,(!i||i(t))&&(o.constructor===String?o=[``+o]:ge(o)&&(o=[o]),et(t,o,this.D,0,r,e,o[0],n))}if(this.tag)for(r=0;r<this.A.length;r++){var a=this.A[r];i=this.tag.get(this.F[r]);let s=R();if(typeof a==`function`){if(a=a(t),!a)continue}else{var o=a.G;if(o&&!o(t))continue;a.constructor===String&&(a=``+a),a=ve(t,a)}if(i&&a){ge(a)&&(a=[a]);for(let t=0,r,c;t<a.length;t++)if(r=a[t],!s[r]&&(s[r]=1,(o=i.get(r))?c=o:i.set(r,c=[]),!n||!c.includes(e))){if(c.length===2**31-1){if(o=new Ie(c),this.fastupdate)for(let e of this.reg.values())e.includes(c)&&(e[e.indexOf(c)]=o);i.set(r,c=o)}c.push(e),this.fastupdate&&((o=this.reg.get(e))?o.push(c):this.reg.set(e,[c]))}}}if(this.store&&(!n||!this.store.has(e))){let r;if(this.h){r=R();for(let e=0,i;e<this.h.length;e++){if(i=this.h[e],(n=i.G)&&!n(t))continue;let a;if(typeof i==`function`){if(a=i(t),!a)continue;i=[i.O]}else if(ge(i)||i.constructor===String){r[i]=t[i];continue}$e(t,r,i,0,i[0],a)}}this.store.set(e,r||t)}this.worker&&(this.fastupdate||this.reg.add(e))}return this};function $e(e,t,n,r,i,a){if(e=e[i],r===n.length-1)t[i]=a||e;else if(e)if(e.constructor===Array)for(t=t[i]=Array(e.length),i=0;i<e.length;i++)$e(e,t,n,r,i);else t=t[i]||(t[i]=R()),i=n[++r],$e(e,t,n,r,i)}function et(e,t,n,r,i,a,o,s){if(e=e[o])if(r===t.length-1){if(e.constructor===Array){if(n[r]){for(t=0;t<e.length;t++)i.add(a,e[t],!0,!0);return}e=e.join(` `)}i.add(a,e,s,!0)}else if(e.constructor===Array)for(o=0;o<e.length;o++)et(e,t,n,r,i,a,o,s);else o=t[++r],et(e,t,n,r,i,a,o,s)}function tt(e,t,n,r){if(!e.length)return e;if(e.length===1)return e=e[0],e=n||e.length>t?e.slice(n,n+t):e,r?ht.call(this,e):e;let i=[];for(let a=0,o,s;a<e.length;a++)if((o=e[a])&&(s=o.length)){if(n){if(n>=s){n-=s;continue}o=o.slice(n,n+t),s=o.length,n=0}if(s>t&&(o=o.slice(0,t),s=t),!i.length&&s>=t)return r?ht.call(this,o):o;if(i.push(o),t-=s,!t)break}return i=i.length>1?[].concat.apply([],i):i[0],r?ht.call(this,i):i}function nt(e,t,n,r){var i=r[0];if(i[0]&&i[0].query)return e[t].apply(e,i);if(!(t!==`and`&&t!==`not`||e.result.length||e.await||i.suggest))return r.length>1&&(i=r[r.length-1]),(r=i.resolve)?e.await||e.result:e;let a=[],o=0,s=0,c,l,u,d,f;for(t=0;t<r.length;t++)if(i=r[t]){var p=void 0;if(i.constructor===B)p=i.await||i.result;else if(i.then||i.constructor===Array)p=i;else{o=i.limit||0,s=i.offset||0,u=i.suggest,l=i.resolve,c=((d=i.highlight||e.highlight)||i.enrich)&&l,p=i.queue;let n=i.async||p,r=i.index,m=i.query;if(r?e.index||=r:r=e.index,m||i.tag){let o=i.field||i.pluck;if(o&&(!m||e.query&&!d||(e.query=m,e.field=o,e.highlight=d),r=r.index.get(o)),p&&(f||e.await)){f=1;let o,s=e.C.length,c=new Promise(function(e){o=e});(function(t,r){c.h=function(){r.index=null,r.resolve=!1;let i=n?t.searchAsync(r):t.search(r);return i.then?i.then(function(t){return e.C[s]=t=t.result||t,o(t),t}):(i=i.result||i,o(i),i)}})(r,Object.assign({},i)),e.C.push(c),a[t]=c;continue}else i.resolve=!1,i.index=null,p=n?r.searchAsync(i):r.search(i),i.resolve=l,i.index=r}else if(i.and)p=rt(i,`and`,r);else if(i.or)p=rt(i,`or`,r);else if(i.not)p=rt(i,`not`,r);else if(i.xor)p=rt(i,`xor`,r);else continue}p.await?(f=1,p=p.await):p.then?(f=1,p=p.then(function(e){return e.result||e})):p=p.result||p,a[t]=p}if(f&&!e.await&&(e.await=new Promise(function(t){e.return=t})),f){let t=Promise.all(a).then(function(r){for(let i=0;i<e.C.length;i++)if(e.C[i]===t){e.C[i]=function(){return n.call(e,r,o,s,c,l,u,d)};break}lt(e)});e.C.push(t)}else if(e.await)e.C.push(function(){return n.call(e,a,o,s,c,l,u,d)});else return n.call(e,a,o,s,c,l,u,d);return l?e.await||e.result:e}function rt(e,t,n){e=e[t];let r=e[0]||e;return r.index||=n,n=new B(r),e.length>1&&(n=n[t].apply(n,e.slice(1))),n}B.prototype.or=function(){return nt(this,`or`,it,arguments)};function it(e,t,n,r,i,a,o){return e.length&&(this.result.length&&e.push(this.result),e.length<2?this.result=e[0]:(this.result=dt(e,t,n,!1,this.h),n=0)),i&&(this.await=null),i?this.resolve(t,n,r,o):this}B.prototype.and=function(){return nt(this,`and`,at,arguments)};function at(e,t,n,r,i,a,o){if(!a&&!this.result.length)return i?this.result:this;let s;if(e.length)if(this.result.length&&e.unshift(this.result),e.length<2)this.result=e[0];else{let r=0;for(let t=0,n,i;t<e.length;t++)if((n=e[t])&&(i=n.length))r<i&&(r=i);else if(!a){r=0;break}r?(this.result=ut(e,r,t,n,a,this.h,i),s=!0):this.result=[]}else a||(this.result=e);return i&&(this.await=null),i?this.resolve(t,n,r,o,s):this}B.prototype.xor=function(){return nt(this,`xor`,ot,arguments)};function ot(e,t,n,r,i,a,o){if(e.length)if(this.result.length&&e.unshift(this.result),e.length<2)this.result=e[0];else{a:{a=n;var s=this.h;let r=[],o=R(),c=0;for(let t=0,n;t<e.length;t++)if(n=e[t]){c<n.length&&(c=n.length);for(let e=0,t;e<n.length;e++)if(t=n[e])for(let e=0,n;e<t.length;e++)n=t[e],o[n]=o[n]?2:1}for(let n=0,l,u=0;n<c;n++)for(let c=0,d;c<e.length;c++)if((d=e[c])&&(l=d[n])){for(let d=0,f;d<l.length;d++)if(f=l[d],o[f]===1)if(a)a--;else if(i){if(r.push(f),r.length===t){e=r;break a}}else{let i=n+(c?s:0);if(r[i]||(r[i]=[]),r[i].push(f),++u===t){e=r;break a}}}e=r}this.result=e,s=!0}else a||(this.result=e);return i&&(this.await=null),i?this.resolve(t,n,r,o,s):this}B.prototype.not=function(){return nt(this,`not`,st,arguments)};function st(e,t,n,r,i,a,o){if(!a&&!this.result.length)return i?this.result:this;if(e.length&&this.result.length){a:{a=n;var s=[];e=new Set(e.flat().flat());for(let n=0,r,o=0;n<this.result.length;n++)if(r=this.result[n]){for(let c=0,l;c<r.length;c++)if(l=r[c],!e.has(l)){if(a)a--;else if(i){if(s.push(l),s.length===t){e=s;break a}}else if(s[n]||(s[n]=[]),s[n].push(l),++o===t){e=s;break a}}}e=s}this.result=e,s=!0}return i&&(this.await=null),i?this.resolve(t,n,r,o,s):this}function ct(e,t,n,r,i){let a,o,s;typeof i==`string`?(a=i,i=``):a=i.template,o=a.indexOf(`$1`),s=a.substring(o+2),o=a.substring(0,o);let c=i&&i.boundary,l=!i||i.clip!==!1,u=i&&i.merge&&s&&o&&RegExp(s+` `+o,`g`);i&&=i.ellipsis;var d=0;if(typeof i==`object`){var f=i.template;d=f.length-2,i=i.pattern}typeof i!=`string`&&(i=i===!1?``:`...`),d&&(i=f.replace(`$1`,i)),f=i.length-d;let p,m;typeof c==`object`&&(p=c.before,p===0&&(p=-1),m=c.after,m===0&&(m=-1),c=c.total||9e5),d=new Map;for(let N=0,P,ee,te;N<t.length;N++){let ne;if(r)ne=t,te=r;else{var h=t[N];if(te=h.field,!te)continue;ne=h.result}ee=n.get(te),P=ee.encoder,h=d.get(P),typeof h!=`string`&&(h=P.encode(e),d.set(P,h));for(let e=0;e<ne.length;e++){var g=ne[e].doc;if(!g||(g=ve(g,te),!g))continue;var _=g.trim().split(/\s+/);if(!_.length)continue;g=``;var v=[];let t=[];for(var y=-1,b=-1,x=0,S=0;S<_.length;S++){var C=_[S],w=P.encode(C);w=w.length>1?w.join(` `):w[0];let e;if(w&&C){for(var T=C.length,E=(P.split?C.replace(P.split,``):C).length-w.length,D=``,O=0,k=0;k<h.length;k++){var A=h[k];if(A){var j=A.length;j+=E<0?0:E,O&&j<=O||(A=w.indexOf(A),A>-1&&(D=(A?C.substring(0,A):``)+o+C.substring(A,A+j)+s+(A+j<T?C.substring(A+j):``),O=j,e=!0))}}D&&(c&&(y<0&&(y=g.length+ +!!g),b=g.length+ +!!g+D.length,x+=T,t.push(v.length),v.push({match:D})),g+=(g?` `:``)+D)}if(!e)C=_[S],g+=(g?` `:``)+C,c&&v.push({text:C});else if(c&&x>=c)break}if(x=t.length*(a.length-2),p||m||c&&g.length-x>c)if(x=c+x-f*2,S=b-y,p>0&&(S+=p),m>0&&(S+=m),S<=x)_=p?y-(p>0?p:0):y-((x-S)/2|0),v=m?b+(m>0?m:0):_+x,l||(_>0&&g.charAt(_)!==` `&&g.charAt(_-1)!==` `&&(_=g.indexOf(` `,_),_<0&&(_=0)),v<g.length&&g.charAt(v-1)!==` `&&g.charAt(v)!==` `&&(v=g.lastIndexOf(` `,v),v<b?v=b:++v)),g=(_?i:``)+g.substring(_,v)+(v<g.length?i:``);else{for(b=[],y={},x={},S={},C={},w={},D=E=T=0,k=O=1;;){var M=void 0;for(let e=0,n;e<t.length;e++){if(n=t[e],D)if(E!==D){if(S[e+1])continue;if(n+=D,y[n]){T-=f,x[e+1]=1,S[e+1]=1;continue}if(n>=v.length-1){if(n>=v.length){S[e+1]=1,n>=_.length&&(x[e+1]=1);continue}T-=f}if(g=v[n].text,j=m&&w[e])if(j>0){if(g.length>j)if(S[e+1]=1,l)g=g.substring(0,j);else continue;(j-=g.length)||(j=-1),w[e]=j}else{S[e+1]=1;continue}if(T+g.length+1<=c)g=` `+g,b[e]+=g;else if(l)M=c-T-1,M>0&&(g=` `+g.substring(0,M),b[e]+=g),S[e+1]=1;else{S[e+1]=1;continue}}else{if(S[e])continue;if(n-=E,y[n]){T-=f,S[e]=1,x[e]=1;continue}if(n<=0){if(n<0){S[e]=1,x[e]=1;continue}T-=f}if(g=v[n].text,j=p&&C[e])if(j>0){if(g.length>j)if(S[e]=1,l)g=g.substring(g.length-j);else continue;(j-=g.length)||(j=-1),C[e]=j}else{S[e]=1;continue}if(T+g.length+1<=c)g+=` `,b[e]=g+b[e];else if(l)M=g.length+1-(c-T),M>=0&&M<g.length&&(g=g.substring(M)+` `,b[e]=g+b[e]),S[e]=1;else{S[e]=1;continue}}else{g=v[n].match,p&&(C[e]=p),m&&(w[e]=m),e&&T++;let t;if(n?!e&&f&&(T+=f):(x[e]=1,S[e]=1),n>=_.length-1||n<v.length-1&&v[n+1].match?t=1:f&&(T+=f),T-=a.length-2,!e||T+g.length<=c)b[e]=g;else{M=O=k=x[e]=0;break}t&&(x[e+1]=1,S[e+1]=1)}T+=g.length,M=y[n]=1}if(M)E===D?D++:E++;else{if(E===D?O=0:k=0,!O&&!k)break;O?(E++,D=E):D++}}g=``;for(let e=0,t;e<b.length;e++)t=(x[e]?e?` `:``:(e&&!i?` `:``)+i)+b[e],g+=t;i&&!x[b.length]&&(g+=i)}u&&(g=g.replace(u,` `)),ne[e].highlight=g}if(r)break}return t}function B(e,t){if(!this||this.constructor!==B)return new B(e,t);let n=0,r,i,a,o,s,c;if(e&&e.index){let r=e;if(t=r.index,n=r.boost||0,i=r.query){a=r.field||r.pluck,o=r.highlight;let n=r.resolve;e=r.async||r.queue,r.resolve=!1,r.index=null,e=e?t.searchAsync(r):t.search(r),r.resolve=n,r.index=t,e=e.result||e}else e=[]}if(e&&e.then){let t=this;e=e.then(function(e){t.C[0]=t.result=e.result||e,lt(t)}),r=[e],e=[],s=new Promise(function(e){c=e})}this.index=t||null,this.result=e||[],this.h=n,this.C=r||[],this.await=s||null,this.return=c||null,this.highlight=o||null,this.query=i||``,this.field=a||``}I=B.prototype,I.limit=function(e){if(this.await){let t=this;this.C.push(function(){return t.limit(e).result})}else if(this.result.length){let t=[];for(let n=0,r;n<this.result.length;n++)if(r=this.result[n])if(r.length<=e){if(t[n]=r,e-=r.length,!e)break}else{t[n]=r.slice(0,e);break}this.result=t}return this},I.offset=function(e){if(this.await){let t=this;this.C.push(function(){return t.offset(e).result})}else if(this.result.length){let t=[];for(let n=0,r;n<this.result.length;n++)(r=this.result[n])&&(r.length<=e?e-=r.length:(t[n]=r.slice(e),e=0));this.result=t}return this},I.boost=function(e){if(this.await){let t=this;this.C.push(function(){return t.boost(e).result})}else this.h+=e;return this};function lt(e,t){let n=e.result;var r=e.await;e.await=null;for(let t=0,i;t<e.C.length;t++)if(i=e.C[t]){if(typeof i==`function`)n=i(),e.C[t]=n=n.result||n,t--;else if(i.h)n=i.h(),e.C[t]=n=n.result||n,t--;else if(i.then)return e.await=r}return r=e.return,e.C=[],e.return=null,t||r(n),n}I.resolve=function(e,t,n,r,i){let a=this.await?lt(this,!0):this.result;if(a.then){let o=this;return a.then(function(){return o.resolve(e,t,n,r,i)})}return a.length&&(typeof e==`object`?(r=e.highlight||this.highlight,n=!!r||e.enrich,t=e.offset,e=e.limit):(r||=this.highlight,n=!!r||n),a=i?n?ht.call(this.index,a):a:tt.call(this.index,a,e||100,t,n)),this.finalize(a,r)},I.finalize=function(e,t){if(e.then){let n=this;return e.then(function(e){return n.finalize(e,t)})}t&&e.length&&this.query&&(e=ct(this.query,e,this.index.index,this.field,t));let n=this.return;return this.highlight=this.index=this.result=this.C=this.await=this.return=null,this.query=this.field=``,n&&n(e),e};function ut(e,t,n,r,i,a,o){let s=e.length,c=[],l,u;l=R();for(let d=0,f,p,m,h;d<t;d++)for(let t=0;t<s;t++)if(m=e[t],d<m.length&&(f=m[d]))for(let e=0;e<f.length;e++){if(p=f[e],(u=l[p])?l[p]++:(u=0,l[p]=1),h=c[u]||(c[u]=[]),!o){let e=d+(t||!i?0:a||0);h=h[e]||(h[e]=[])}if(h.push(p),o&&n&&u===s-1&&h.length-r===n)return r?h.slice(r):h}if(e=c.length)if(i)c=c.length>1?dt(c,n,r,o,a):(c=c[0])&&n&&c.length>n||r?c.slice(r,n+r):c;else{if(e<s)return[];if(c=c[e-1],n||r)if(o)(c.length>n||r)&&(c=c.slice(r,n+r));else{i=[];for(let e=0,t;e<c.length;e++)if(t=c[e]){if(r&&t.length>r)r-=t.length;else if((n&&t.length>n||r)&&(t=t.slice(r,n+r),n-=t.length,r&&(r-=t.length)),i.push(t),!n)break}c=i}}return c}function dt(e,t,n,r,i){let a=[],o=R(),s;var c=e.length;let l;if(r){for(i=c-1;i>=0;i--)if(l=(r=e[i])&&r.length){for(c=0;c<l;c++)if(s=r[c],!o[s]){if(o[s]=1,n)n--;else if(a.push(s),a.length===t)return a}}}else for(let u=c-1,d,f=0;u>=0;u--){d=e[u];for(let e=0;e<d.length;e++)if(l=(r=d[e])&&r.length){for(let d=0;d<l;d++)if(s=r[d],!o[s])if(o[s]=1,n)n--;else{let n=(e+(u<c-1&&i||0))/(u+1)|0;if((a[n]||(a[n]=[])).push(s),++f===t)return a}}}return a}function ft(e,t,n,r,i){let a=R(),o=[];for(let e=0,n;e<t.length;e++){n=t[e];for(let e=0;e<n.length;e++)a[n[e]]=1}if(i){for(let t=0,i;t<e.length;t++)if(i=e[t],a[i]){if(r)r--;else if(o.push(i),a[i]=0,n&&--n===0)break}}else for(let n=0,r,i;n<e.result.length;n++)for(r=e.result[n],t=0;t<r.length;t++)i=r[t],a[i]&&((o[n]||(o[n]=[])).push(i),a[i]=0);return o}gt.prototype.search=function(e,t,n,r){n||(!t&&_e(e)?(n=e,e=``):_e(t)&&(n=t,t=0));let i=[];var a=[];let o,s,c,l,u,d,f=0,p=!0,m;if(n){n.constructor===Array&&(n={index:n}),e=n.query||e,o=n.pluck,s=n.merge,l=n.boost,d=o||n.field||(d=n.index)&&(d.index?null:d);var h=this.tag&&n.tag;c=n.suggest,p=n.resolve!==!1,u=n.cache,m=p&&this.store&&n.highlight;var g=!!m||p&&this.store&&n.enrich;t=n.limit||t;var _=n.offset||0;if(t||=p?100:0,h&&(!this.db||!r)){h.constructor!==Array&&(h=[h]);var v=[];for(let e=0,t;e<h.length;e++)if(t=h[e],t.field&&t.tag){var y=t.tag;if(y.constructor===Array)for(var b=0;b<y.length;b++)v.push(t.field,y[b]);else v.push(t.field,y)}else{y=Object.keys(t);for(let e=0,n,r;e<y.length;e++)if(n=y[e],r=t[n],r.constructor===Array)for(b=0;b<r.length;b++)v.push(n,r[b]);else v.push(n,r)}if(h=v,!e){if(a=[],v.length)for(h=0;h<v.length;h+=2){if(this.db){if(r=this.index.get(v[h]),!r)continue;a.push(r=r.db.tag(v[h+1],t,_,g))}else r=mt.call(this,v[h],v[h+1],t,_,g);i.push(p?{field:v[h],tag:v[h+1],result:r}:[r])}if(a.length){let e=this;return Promise.all(a).then(function(t){for(let e=0;e<t.length;e++)p?i[e].result=t[e]:i[e]=t[e];return p?i:new B(i.length>1?ut(i,1,0,0,c,l):i[0],e)})}return p?i:new B(i.length>1?ut(i,1,0,0,c,l):i[0],this)}}p||o||!(d||=this.field)||(ge(d)?o=d:(d.constructor===Array&&d.length===1&&(d=d[0]),o=d.field||d.index)),d&&d.constructor!==Array&&(d=[d])}d||=this.field;let x;v=(this.worker||this.db)&&!r&&[];for(let o=0,s,l,C;o<d.length;o++){if(l=d[o],this.db&&this.tag&&!this.B[o])continue;let w;if(ge(l)||(w=l,l=w.field,e=w.query||e,t=he(w.limit,t),_=he(w.offset,_),c=he(w.suggest,c),m=p&&this.store&&he(w.highlight,m),g=!!m||p&&this.store&&he(w.enrich,g),u=he(w.cache,u)),r)s=r[o];else{y=w||n||{},b=y.enrich;var S=this.index.get(l);if(h&&(this.db&&(y.tag=h,y.field=d,x=S.db.support_tag_search),!x&&b&&(y.enrich=!1),x||(y.limit=0,y.offset=0)),s=u?S.searchCache(e,h&&!x?0:t,y):S.search(e,h&&!x?0:t,y),h&&!x&&(y.limit=t,y.offset=_),b&&(y.enrich=b),v){v[o]=s;continue}}if(C=(s=s.result||s)&&s.length,h&&C){if(y=[],b=0,this.db&&r){if(!x)for(S=d.length;S<r.length;S++){let e=r[S];if(e&&e.length)b++,y.push(e);else if(!c)return p?i:new B(i,this)}}else for(let e=0,t,n;e<h.length;e+=2){if(t=this.tag.get(h[e]),!t){if(c)continue;return p?i:new B(i,this)}if((t&&=t.get(h[e+1]))&&t.length)b++,y.push(t);else if(!c)return p?i:new B(i,this)}if(b){if(s=ft(s,y,t,_,p),C=s.length,!C&&!c)return p?s:new B(s,this);b--}}if(C)a[f]=l,i.push(s),f++;else if(d.length===1)return p?i:new B(i,this)}if(v){if(this.db&&h&&h.length&&!x)for(g=0;g<h.length;g+=2){if(a=this.index.get(h[g]),!a){if(c)continue;return p?i:new B(i,this)}v.push(a.db.tag(h[g+1],t,_,!1))}let r=this;return Promise.all(v).then(function(i){return n&&(n.resolve=p),i.length&&(i=r.search(e,t,n,i)),i})}if(!f)return p?i:new B(i,this);if(o&&(!g||!this.store))return i=i[0],p?i:new B(i,this);for(v=[],_=0;_<a.length;_++){if(h=i[_],g&&h.length&&h[0].doc===void 0&&(this.db?v.push(h=this.index.get(this.field[0]).db.enrich(h)):h=ht.call(this,h)),o)return p?m?ct(e,h,this.index,o,m):h:new B(h,this);i[_]={field:a[_],result:h}}if(g&&this.db&&v.length){let t=this;return Promise.all(v).then(function(n){for(let e=0;e<n.length;e++)i[e].result=n[e];return m&&(i=ct(e,i,t.index,o,m)),s?pt(i):i})}return m&&(i=ct(e,i,this.index,o,m)),s?pt(i):i};function pt(e){let t=[],n=R(),r=R();for(let i=0,a,o,s,c,l,u,d;i<e.length;i++){a=e[i],o=a.field,s=a.result;for(let e=0;e<s.length;e++)l=s[e],typeof l==`object`?c=l.id:l={id:c=l},(u=n[c])?u.push(o):(l.field=n[c]=[o],t.push(l)),(d=l.highlight)&&(u=r[c],u||(r[c]=u={},l.highlight=u),u[o]=d)}return t}function mt(e,t,n,r,i){return e=this.tag.get(e),!e||(e=e.get(t),!e)?[]:(t=e.length-r,t>0&&((n&&t>n||r)&&(e=e.slice(r,r+n)),i&&(e=ht.call(this,e))),e)}function ht(e){if(!this||!this.store)return e;if(this.db)return this.index.get(this.field[0]).db.enrich(e);let t=Array(e.length);for(let n=0,r;n<e.length;n++)r=e[n],t[n]={id:r,doc:this.store.get(r)};return t}function gt(e){if(!this||this.constructor!==gt)return new gt(e);let t=e.document||e.doc||e,n,r;if(this.B=[],this.field=[],this.D=[],this.key=(n=t.key||t.id)&&vt(n,this.D)||`id`,(r=e.keystore||0)&&(this.keystore=r),this.fastupdate=!!e.fastupdate,this.reg=!this.fastupdate||e.worker||e.db?r?new z(r):new Set:r?new Le(r):new Map,this.h=(n=t.store||null)&&n&&n!==!0&&[],this.store=n?r?new Le(r):new Map:null,this.cache=(n=e.cache||null)&&new De(n),e.cache=!1,this.worker=e.worker||!1,this.priority=e.priority||4,this.index=_t.call(this,e,t),this.tag=null,(n=t.tag)&&(typeof n==`string`&&(n=[n]),n.length)){this.tag=new Map,this.A=[],this.F=[];for(let e=0,t,r;e<n.length;e++){if(t=n[e],r=t.field||t,!r)throw Error(`The tag field from the document descriptor is undefined.`);t.custom?this.A[e]=t.custom:(this.A[e]=vt(r,this.D),t.filter&&(typeof this.A[e]==`string`&&(this.A[e]=new String(this.A[e])),this.A[e].G=t.filter)),this.F[e]=r,this.tag.set(r,new Map)}}if(this.worker){this.fastupdate=!1,e=[];for(let t of this.index.values())t.then&&e.push(t);if(e.length){let t=this;return Promise.all(e).then(function(e){let n=0;for(let r of t.index.entries()){let i=r[0],a=r[1];a.then&&(a=e[n],t.index.set(i,a),n++)}return t})}}else e.db&&(this.fastupdate=!1,this.mount(e.db))}I=gt.prototype,I.mount=function(e){let t=this.field;if(this.tag)for(let e=0,r;e<this.F.length;e++){r=this.F[e];var n=void 0;this.index.set(r,n=new Lt({},this.reg)),t===this.field&&(t=t.slice(0)),t.push(r),n.tag=this.tag.get(r)}n=[];let r={db:e.db,type:e.type,fastupdate:e.fastupdate};for(let i=0,a,o;i<t.length;i++){r.field=o=t[i],a=this.index.get(o);let s=new e.constructor(e.id,r);s.id=e.id,n[i]=s.mount(a),a.document=!0,i?a.bypass=!0:a.store=this.store}let i=this;return this.db=Promise.all(n).then(function(){i.db=!0})},I.commit=async function(){let e=[];for(let t of this.index.values())e.push(t.commit());await Promise.all(e),this.reg.clear()},I.destroy=function(){let e=[];for(let t of this.index.values())e.push(t.destroy());return Promise.all(e)};function _t(e,t){let n=new Map,r=t.index||t.field||t;ge(r)&&(r=[r]);for(let t=0,a,o;t<r.length;t++){if(a=r[t],ge(a)||(o=a,a=a.field),o=_e(o)?Object.assign({},e,o):e,this.worker){var i=void 0;i=(i=o.encoder)&&i.encode?i:new we(typeof i==`string`?Pe[i]:i||{}),i=new Xe(o,i),n.set(a,i)}this.worker||n.set(a,new Lt(o,this.reg)),o.custom?this.B[t]=o.custom:(this.B[t]=vt(a,this.D),o.filter&&(typeof this.B[t]==`string`&&(this.B[t]=new String(this.B[t])),this.B[t].G=o.filter)),this.field[t]=a}if(this.h){e=t.store,ge(e)&&(e=[e]);for(let t=0,n,r;t<e.length;t++)n=e[t],r=n.field||n,n.custom?(this.h[t]=n.custom,n.custom.O=r):(this.h[t]=vt(r,this.D),n.filter&&(typeof this.h[t]==`string`&&(this.h[t]=new String(this.h[t])),this.h[t].G=n.filter))}return n}function vt(e,t){let n=e.split(`:`),r=0;for(let i=0;i<n.length;i++)e=n[i],e[e.length-1]===`]`&&(e=e.substring(0,e.length-2))&&(t[r]=!0),e&&(n[r++]=e);return r<n.length&&(n.length=r),r>1?n:n[0]}I.append=function(e,t){return this.add(e,t,!0)},I.update=function(e,t){return this.remove(e).add(e,t)},I.remove=function(e){_e(e)&&(e=ve(e,this.key));for(var t of this.index.values())t.remove(e,!0);if(this.reg.has(e)){if(this.tag&&!this.fastupdate)for(let n of this.tag.values())for(let r of n){t=r[0];let i=r[1],a=i.indexOf(e);a>-1&&(i.length>1?i.splice(a,1):n.delete(t))}this.store&&this.store.delete(e),this.reg.delete(e)}return this.cache&&this.cache.remove(e),this},I.clear=function(){let e=[];for(let t of this.index.values()){let n=t.clear();n.then&&e.push(n)}if(this.tag)for(let e of this.tag.values())e.clear();return this.store&&this.store.clear(),this.cache&&this.cache.clear(),e.length?Promise.all(e):this},I.contain=function(e){return this.db?this.index.get(this.field[0]).db.has(e):this.reg.has(e)},I.cleanup=function(){for(let e of this.index.values())e.cleanup();return this},I.get=function(e){return this.db?this.index.get(this.field[0]).db.enrich(e).then(function(e){return e[0]&&e[0].doc||null}):this.store.get(e)||null},I.set=function(e,t){return typeof e==`object`&&(t=e,e=ve(t,this.key)),this.store.set(e,t),this},I.searchCache=Ee,I.export=Et,I.import=Dt,Ue(gt.prototype);function yt(e,t=0){let n=[],r=[];t&&=25e4/t*5e3|0;for(let i of e.entries())r.push(i),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function bt(e,t){t||=new Map;for(let n=0,r;n<e.length;n++)r=e[n],t.set(r[0],r[1]);return t}function xt(e,t=0){let n=[],r=[];t&&=25e4/t*1e3|0;for(let i of e.entries())r.push([i[0],yt(i[1])[0]||[]]),r.length===t&&(n.push(r),r=[]);return r.length&&n.push(r),n}function St(e,t){t||=new Map;for(let n=0,r,i;n<e.length;n++)r=e[n],i=t.get(r[0]),t.set(r[0],bt(r[1],i));return t}function Ct(e){let t=[],n=[];for(let r of e.keys())n.push(r),n.length===25e4&&(t.push(n),n=[]);return n.length&&t.push(n),t}function wt(e,t){t||=new Set;for(let n=0;n<e.length;n++)t.add(e[n]);return t}function Tt(e,t,n,r,i,a,o=0){let s=r&&r.constructor===Array;var c=s?r.shift():r;if(!c)return this.export(e,t,i,a+1);if((c=e((t?t+`.`:``)+(o+1)+`.`+n,JSON.stringify(c)))&&c.then){let l=this;return c.then(function(){return Tt.call(l,e,t,n,s?r:null,i,a,o+1)})}return Tt.call(this,e,t,n,s?r:null,i,a,o+1)}function Et(e,t,n=0,r=0){if(n<this.field.length){let i=this.field[n];if((t=this.index.get(i).export(e,i,n,r=1))&&t.then){let r=this;return t.then(function(){return r.export(e,i,n+1)})}return this.export(e,i,n+1)}let i,a;switch(r){case 0:i=`reg`,a=Ct(this.reg),t=null;break;case 1:i=`tag`,a=this.tag&&xt(this.tag,this.reg.size),t=null;break;case 2:i=`doc`,a=this.store&&yt(this.store),t=null;break;default:return}return Tt.call(this,e,t,i,a||null,n,r)}function Dt(e,t){var n=e.split(`.`);n[n.length-1]===`json`&&n.pop();let r=n.length>2?n[0]:``;if(n=n.length>2?n[2]:n[1],this.worker&&r)return this.index.get(r).import(e);if(t){if(typeof t==`string`&&(t=JSON.parse(t)),r)return this.index.get(r).import(n,t);switch(n){case`reg`:this.fastupdate=!1,this.reg=wt(t,this.reg);for(let e=0,t;e<this.field.length;e++)t=this.index.get(this.field[e]),t.fastupdate=!1,t.reg=this.reg;if(this.worker){t=[];for(let n of this.index.values())t.push(n.import(e));return Promise.all(t)}break;case`tag`:this.tag=St(t,this.tag);break;case`doc`:this.store=bt(t,this.store)}}}function Ot(e,t){let n=``;for(let r of e.entries()){e=r[0];let i=r[1],a=``;for(let e=0,n;e<i.length;e++){n=i[e]||[``];let r=``;for(let e=0;e<n.length;e++)r+=(r?`,`:``)+(t===`string`?`"`+n[e]+`"`:n[e]);r=`[`+r+`]`,a+=(a?`,`:``)+r}a=`["`+e+`",[`+a+`]]`,n+=(n?`,`:``)+a}return n}Lt.prototype.remove=function(e,t){let n=this.reg.size&&(this.fastupdate?this.reg.get(e):this.reg.has(e));if(n){if(this.fastupdate){for(let t=0,r,i;t<n.length;t++)if((r=n[t])&&(i=r.length))if(r[i-1]===e)r.pop();else{let t=r.indexOf(e);t>=0&&r.splice(t,1)}}else kt(this.map,e),this.depth&&kt(this.ctx,e);t||this.reg.delete(e)}return this.db&&(this.commit_task.push({del:e}),this.M&&Rt(this)),this.cache&&this.cache.remove(e),this};function kt(e,t){let n=0;var r=t===void 0;if(e.constructor===Array){for(let i=0,a,o,s;i<e.length;i++)if((a=e[i])&&a.length){if(r)return 1;if(o=a.indexOf(t),o>=0){if(a.length>1)return a.splice(o,1),1;if(delete e[i],n)return 1;s=1}else{if(s)return 1;n++}}}else for(let i of e.entries())r=i[0],kt(i[1],t)?n++:e.delete(r);return n}var At={memory:{resolution:1},performance:{resolution:3,fastupdate:!0,context:{depth:1,resolution:1}},match:{tokenize:`forward`},score:{resolution:9,context:{depth:2,resolution:3}}};Lt.prototype.add=function(e,t,n,r){if(t&&(e||e===0)){if(!r&&!n&&this.reg.has(e))return this.update(e,t);r=this.depth,t=this.encoder.encode(t,!r);let l=t.length;if(l){let u=R(),d=R(),f=this.resolution;for(let p=0;p<l;p++){let m=t[this.rtl?l-1-p:p];var i=m.length;if(i&&(r||!d[m])){var a=this.score?this.score(t,m,p,null,0):Mt(f,l,p),o=``;switch(this.tokenize){case`tolerant`:if(jt(this,d,m,a,e,n),i>2){for(let t=1,r,s,c,l;t<i-1;t++)r=m.charAt(t),s=m.charAt(t+1),c=m.substring(0,t)+s,l=m.substring(t+2),o=c+r+l,jt(this,d,o,a,e,n),o=c+l,jt(this,d,o,a,e,n);jt(this,d,m.substring(0,m.length-1),a,e,n)}break;case`full`:if(i>2){for(let r=0,c;r<i;r++)for(a=i;a>r;a--){o=m.substring(r,a),c=this.rtl?i-1-r:r;var s=this.score?this.score(t,m,p,o,c):Mt(f,l,p,i,c);jt(this,d,o,s,e,n)}break}case`bidirectional`:case`reverse`:if(i>1){for(s=i-1;s>0;s--){o=m[this.rtl?i-1-s:s]+o;var c=this.score?this.score(t,m,p,o,s):Mt(f,l,p,i,s);jt(this,d,o,c,e,n)}o=``}case`forward`:if(i>1){for(s=0;s<i;s++)o+=m[this.rtl?i-1-s:s],jt(this,d,o,a,e,n);break}default:if(jt(this,d,m,a,e,n),r&&l>1&&p<l-1)for(i=this.N,o=m,a=Math.min(r+1,this.rtl?p+1:l-p),s=1;s<a;s++){m=t[this.rtl?l-1-p-s:p+s],c=this.bidirectional&&m>o;let r=this.score?this.score(t,o,p,m,s-1):Mt(i+(l/2>i?0:1),l,p,a-1,s-1);jt(this,u,c?o:m,r,e,n,c?m:o)}}}}this.fastupdate||this.reg.add(e)}}return this.db&&(this.commit_task.push(n?{ins:e}:{del:e}),this.M&&Rt(this)),this};function jt(e,t,n,r,i,a,o){let s,c;if(!(s=t[n])||o&&!s[o]){if(o?(t=s||(t[n]=R()),t[o]=1,c=e.ctx,(s=c.get(o))?c=s:c.set(o,c=e.keystore?new Le(e.keystore):new Map)):(c=e.map,t[n]=1),(s=c.get(n))?c=s:c.set(n,c=s=[]),a){for(let n=0,a;n<s.length;n++)if((a=s[n])&&a.includes(i)){if(n<=r)return;a.splice(a.indexOf(i),1),e.fastupdate&&(t=e.reg.get(i))&&t.splice(t.indexOf(a),1);break}}if(c=c[r]||(c[r]=[]),c.push(i),c.length===2**31-1){if(t=new Ie(c),e.fastupdate)for(let n of e.reg.values())n.includes(c)&&(n[n.indexOf(c)]=t);s[r]=c=t}e.fastupdate&&((r=e.reg.get(i))?r.push(c):e.reg.set(i,[c]))}}function Mt(e,t,n,r,i){return n&&e>1?t+(r||0)<=e?n+(i||0):(e-1)/(t+(r||0))*(n+(i||0))+1|0:0}Lt.prototype.search=function(e,t,n){if(n||(t||typeof e!=`object`?typeof t==`object`&&(n=t,t=0):(n=e,e=``)),n&&n.cache)return n.cache=!1,e=this.searchCache(e,t,n),n.cache=!0,e;let r=[],i,a,o,s=0,c,l,u,d,f;n&&(e=n.query||e,t=n.limit||t,s=n.offset||0,a=n.context,o=n.suggest,f=(c=n.resolve)&&n.enrich,u=n.boost,d=n.resolution,l=this.db&&n.tag),c===void 0&&(c=this.resolve),a=this.depth&&a!==!1;let p=this.encoder.encode(e,!a);if(i=p.length,t||=c?100:0,i===1)return Pt.call(this,p[0],``,t,s,c,f,l);if(i===2&&a&&!o)return Pt.call(this,p[1],p[0],t,s,c,f,l);let m=R(),h=0,g;if(a&&(g=p[0],h=1),d||d===0||(d=g?this.N:this.resolution),this.db){if(this.db.search&&(n=this.db.search(this,p,t,s,o,c,f,l),n!==!1))return n;let e=this;return async function(){for(let t,n;h<i;h++){if((n=p[h])&&!m[n]){if(m[n]=1,t=await It(e,n,g,0,0,!1,!1),t=Ft(t,r,o,d)){r=t;break}g&&(o&&t&&r.length||(g=n))}o&&g&&h===i-1&&!r.length&&(d=e.resolution,g=``,h=-1,m=R())}return Nt(r,d,t,s,o,u,c)}()}for(let e,t;h<i;h++){if((t=p[h])&&!m[t]){if(m[t]=1,e=It(this,t,g,0,0,!1,!1),e=Ft(e,r,o,d)){r=e;break}g&&(o&&e&&r.length||(g=t))}o&&g&&h===i-1&&!r.length&&(d=this.resolution,g=``,h=-1,m=R())}return Nt(r,d,t,s,o,u,c)};function Nt(e,t,n,r,i,a,o){let s=e.length,c=e;if(s>1)c=ut(e,t,n,r,i,a,o);else if(s===1)return o?tt.call(null,e[0],n,r):new B(e[0],this);return o?c:new B(c,this)}function Pt(e,t,n,r,i,a,o){return e=It(this,e,t,n,r,i,a,o),this.db?e.then(function(e){return i?e||[]:new B(e,this)}):e&&e.length?i?tt.call(this,e,n,r):new B(e,this):i?[]:new B([],this)}function Ft(e,t,n,r){let i=[];if(e&&e.length){if(e.length<=r){t.push(e);return}for(let t=0,n;t<r;t++)(n=e[t])&&(i[t]=n);if(i.length){t.push(i);return}}if(!n)return i}function It(e,t,n,r,i,a,o,s){let c;return n&&(c=e.bidirectional&&t>n)&&(c=n,n=t,t=c),e.db?e.db.get(t,n,r,i,a,o,s):(e=n?(e=e.ctx.get(n))&&e.get(t):e.map.get(t),e)}function Lt(e,t){if(!this||this.constructor!==Lt)return new Lt(e);if(e){var n=ge(e)?e:e.preset;n&&(e=Object.assign({},At[n],e))}else e={};n=e.context;let r=n===!0?{depth:1}:n||{},i=ge(e.encoder)?Pe[e.encoder]:e.encode||e.encoder||{};this.encoder=i.encode?i:typeof i==`object`?new we(i):{encode:i},this.resolution=e.resolution||9,this.tokenize=n=(n=e.tokenize)&&n!=="default"&&n!==`exact`&&n||`strict`,this.depth=n===`strict`&&r.depth||0,this.bidirectional=r.bidirectional!==!1,this.fastupdate=!!e.fastupdate,this.score=e.score||null,(n=e.keystore||0)&&(this.keystore=n),this.map=n?new Le(n):new Map,this.ctx=n?new Le(n):new Map,this.reg=t||(this.fastupdate?n?new Le(n):new Map:n?new z(n):new Set),this.N=r.resolution||3,this.rtl=i.rtl||e.rtl||!1,this.cache=(n=e.cache||null)&&new De(n),this.resolve=e.resolve!==!1,(n=e.db)&&(this.db=this.mount(n)),this.M=e.commit!==!1,this.commit_task=[],this.commit_timer=null,this.priority=e.priority||4}I=Lt.prototype,I.mount=function(e){return this.commit_timer&&=(clearTimeout(this.commit_timer),null),e.mount(this)},I.commit=function(){return this.commit_timer&&=(clearTimeout(this.commit_timer),null),this.db.commit(this)},I.destroy=function(){return this.commit_timer&&=(clearTimeout(this.commit_timer),null),this.db.destroy()};function Rt(e){e.commit_timer||=setTimeout(function(){e.commit_timer=null,e.db.commit(e)},1)}I.clear=function(){return this.map.clear(),this.ctx.clear(),this.reg.clear(),this.cache&&this.cache.clear(),this.db?(this.commit_timer&&clearTimeout(this.commit_timer),this.commit_timer=null,this.commit_task=[],this.db.clear()):this},I.append=function(e,t){return this.add(e,t,!0)},I.contain=function(e){return this.db?this.db.has(e):this.reg.has(e)},I.update=function(e,t){let n=this,r=this.remove(e);return r&&r.then?r.then(()=>n.add(e,t)):this.add(e,t)},I.cleanup=function(){return this.fastupdate?(kt(this.map),this.depth&&kt(this.ctx),this):this},I.searchCache=Ee,I.export=function(e,t,n=0,r=0){let i,a;switch(r){case 0:i=`reg`,a=Ct(this.reg);break;case 1:i=`cfg`,a=null;break;case 2:i=`map`,a=yt(this.map,this.reg.size);break;case 3:i=`ctx`,a=xt(this.ctx,this.reg.size);break;default:return}return Tt.call(this,e,t,i,a,n,r)},I.import=function(e,t){if(t)switch(typeof t==`string`&&(t=JSON.parse(t)),e=e.split(`.`),e[e.length-1]===`json`&&e.pop(),e.length===3&&e.shift(),e=e.length>1?e[1]:e[0],e){case`reg`:this.fastupdate=!1,this.reg=wt(t,this.reg);break;case`map`:this.map=bt(t,this.map);break;case`ctx`:this.ctx=St(t,this.ctx)}},I.serialize=function(e=!0){let t=``,n=``,r=``;if(this.reg.size){let e;for(var i of this.reg.keys())e||=typeof i,t+=(t?`,`:``)+(e===`string`?`"`+i+`"`:i);t=`index.reg=new Set([`+t+`]);`,n=Ot(this.map,e),n=`index.map=new Map([`+n+`]);`;for(let t of this.ctx.entries()){i=t[0];let n=Ot(t[1],e);n=`new Map([`+n+`])`,n=`["`+i+`",`+n+`]`,r+=(r?`,`:``)+n}r=`index.ctx=new Map([`+r+`]);`}return e?`function inject(index){`+t+n+r+`}`:t+n+r},Ue(Lt.prototype);var zt=typeof window<`u`&&(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),Bt=[`map`,`ctx`,`tag`,`reg`,`cfg`],Vt=R();function Ht(e,t={}){if(!this||this.constructor!==Ht)return new Ht(e,t);typeof e==`object`&&(t=e,e=e.name),e||console.info(`Default storage space was used, because a name was not passed.`),this.id=`flexsearch`+(e?`:`+e.toLowerCase().replace(/[^a-z0-9_\-]/g,``):``),this.field=t.field?t.field.toLowerCase().replace(/[^a-z0-9_\-]/g,``):``,this.type=t.type,this.fastupdate=this.support_tag_search=!1,this.db=null,this.h={}}I=Ht.prototype,I.mount=function(e){return e.index?e.mount(this):(e.db=this,this.open())},I.open=function(){if(this.db)return this.db;let e=this;navigator.storage&&navigator.storage.persist&&navigator.storage.persist(),Vt[e.id]||(Vt[e.id]=[]),Vt[e.id].push(e.field);let t=zt.open(e.id,1);return t.onupgradeneeded=function(){let t=e.db=this.result;for(let n=0,r;n<Bt.length;n++){r=Bt[n];for(let n=0,i;n<Vt[e.id].length;n++)i=Vt[e.id][n],t.objectStoreNames.contains(r+(r===`reg`?``:i?`:`+i:``))||t.createObjectStore(r+(r===`reg`?``:i?`:`+i:``))}},e.db=Wt(t,function(t){e.db=t,e.db.onversionchange=function(){e.close()}})},I.close=function(){this.db&&this.db.close(),this.db=null},I.destroy=function(){return Wt(zt.deleteDatabase(this.id))},I.clear=function(){let e=[];for(let t=0,n;t<Bt.length;t++){n=Bt[t];for(let t=0,r;t<Vt[this.id].length;t++)r=Vt[this.id][t],e.push(n+(n===`reg`?``:r?`:`+r:``))}let t=this.db.transaction(e,`readwrite`);for(let n=0;n<e.length;n++)t.objectStore(e[n]).clear();return Wt(t)},I.get=function(e,t,n=0,r=0,i=!0,a=!1){e=this.db.transaction((t?`ctx`:`map`)+(this.field?`:`+this.field:``),`readonly`).objectStore((t?`ctx`:`map`)+(this.field?`:`+this.field:``)).get(t?t+`:`+e:e);let o=this;return Wt(e).then(function(e){let t=[];if(!e||!e.length)return t;if(i){if(!n&&!r&&e.length===1)return e[0];for(let i=0,a;i<e.length;i++)if((a=e[i])&&a.length){if(r>=a.length){r-=a.length;continue}let e=n?r+Math.min(a.length-r,n):a.length;for(let n=r;n<e;n++)t.push(a[n]);if(r=0,t.length===n)break}return a?o.enrich(t):t}return e})},I.tag=function(e,t=0,n=0,r=!1){e=this.db.transaction(`tag`+(this.field?`:`+this.field:``),`readonly`).objectStore(`tag`+(this.field?`:`+this.field:``)).get(e);let i=this;return Wt(e).then(function(e){return!e||!e.length||n>=e.length?[]:!t&&!n?e:(e=e.slice(n,n+t),r?i.enrich(e):e)})},I.enrich=function(e){typeof e!=`object`&&(e=[e]);let t=this.db.transaction(`reg`,`readonly`).objectStore(`reg`),n=[];for(let r=0;r<e.length;r++)n[r]=Wt(t.get(e[r]));return Promise.all(n).then(function(t){for(let n=0;n<t.length;n++)t[n]={id:e[n],doc:t[n]?JSON.parse(t[n]):null};return t})},I.has=function(e){return e=this.db.transaction(`reg`,`readonly`).objectStore(`reg`).getKey(e),Wt(e).then(function(e){return!!e})},I.search=null,I.info=function(){},I.transaction=function(e,t,n){e+=e===`reg`?``:this.field?`:`+this.field:``;let r=this.h[e+`:`+t];if(r)return n.call(this,r);let i=this.db.transaction(e,t);this.h[e+`:`+t]=r=i.objectStore(e);let a=n.call(this,r);return this.h[e+`:`+t]=null,Wt(i).finally(function(){return a})},I.commit=async function(e){let t=e.commit_task,n=[];e.commit_task=[];for(let e=0,r;e<t.length;e++)r=t[e],r.del&&n.push(r.del);n.length&&await this.remove(n),e.reg.size&&(await this.transaction(`map`,`readwrite`,function(t){for(let n of e.map){let e=n[0],r=n[1];r.length&&(t.get(e).onsuccess=function(){let n=this.result;var i;if(n&&n.length){let e=Math.max(n.length,r.length);for(let t=0,a,o;t<e;t++)if((o=r[t])&&o.length){if((a=n[t])&&a.length)for(i=0;i<o.length;i++)a.push(o[i]);else n[t]=o;i=1}}else n=r,i=1;i&&t.put(n,e)})}}),await this.transaction(`ctx`,`readwrite`,function(t){for(let n of e.ctx){let e=n[0],r=n[1];for(let n of r){let r=n[0],i=n[1];i.length&&(t.get(e+`:`+r).onsuccess=function(){let n=this.result;var a;if(n&&n.length){let e=Math.max(n.length,i.length);for(let t=0,r,o;t<e;t++)if((o=i[t])&&o.length){if((r=n[t])&&r.length)for(a=0;a<o.length;a++)r.push(o[a]);else n[t]=o;a=1}}else n=i,a=1;a&&t.put(n,e+`:`+r)})}}}),e.store?await this.transaction(`reg`,`readwrite`,function(t){for(let n of e.store){let e=n[0],r=n[1];t.put(typeof r==`object`?JSON.stringify(r):1,e)}}):e.bypass||await this.transaction(`reg`,`readwrite`,function(t){for(let n of e.reg.keys())t.put(1,n)}),e.tag&&await this.transaction(`tag`,`readwrite`,function(t){for(let n of e.tag){let e=n[0],r=n[1];r.length&&(t.get(e).onsuccess=function(){let n=this.result;n=n&&n.length?n.concat(r):r,t.put(n,e)})}}),e.map.clear(),e.ctx.clear(),e.tag&&e.tag.clear(),e.store&&e.store.clear(),e.document||e.reg.clear())};function Ut(e,t,n){let r=e.value,i,a=0;for(let e=0,o;e<r.length;e++){if(o=n?r:r[e]){for(let n=0,a,s;n<t.length;n++)if(s=t[n],a=o.indexOf(s),a>=0)if(i=1,o.length>1)o.splice(a,1);else{r[e]=[];break}a+=o.length}if(n)break}a?i&&e.update(r):e.delete(),e.continue()}I.remove=function(e){return typeof e!=`object`&&(e=[e]),Promise.all([this.transaction(`map`,`readwrite`,function(t){t.openCursor().onsuccess=function(){let t=this.result;t&&Ut(t,e)}}),this.transaction(`ctx`,`readwrite`,function(t){t.openCursor().onsuccess=function(){let t=this.result;t&&Ut(t,e)}}),this.transaction(`tag`,`readwrite`,function(t){t.openCursor().onsuccess=function(){let t=this.result;t&&Ut(t,e,!0)}}),this.transaction(`reg`,`readwrite`,function(t){for(let n=0;n<e.length;n++)t.delete(e[n])})])};function Wt(e,t){return new Promise((n,r)=>{e.onsuccess=e.oncomplete=function(){t&&t(this.result),t=null,n(this.result)},e.onerror=e.onblocked=r,e=null})}var Gt={Index:Lt,Charset:Pe,Encoder:we,Document:gt,Worker:Xe,Resolver:B,IndexedDB:Ht,Language:{}},Kt=Pe,qt={finalize:e=>{let t=[];for(let n of e)t.push(...Yt(n));return t}};function Jt(e){return e>=19968&&e<=40959||e>=12352&&e<=12543||e>=44032&&e<=55203||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=191471||e>=196608&&e<=205743||e>=191472&&e<=192095||e>=63744&&e<=64255||e>=194560&&e<=195103}function Yt(e){let t=[],n=``;for(let r of e)Jt(r.codePointAt(0))?(n&&=(t.push(n),``),t.push(r)):n+=r;return n&&t.push(n),t}var Xt=new Gt.Encoder(Kt.Default,qt),Zt=class{constructor({adminUrl:e,apiKey:t,dir:n}){let r=n===`rtl`?`reverse`:`forward`;this.apiUrl=e,this.apiKey=t,this.postsIndex=new Gt.Document({tokenize:r,document:{id:`id`,index:[`title`,`excerpt`],store:!0},encoder:Xt}),this.authorsIndex=new Gt.Document({tokenize:r,document:{id:`id`,index:[`name`],store:!0},encoder:Xt}),this.tagsIndex=new Gt.Document({tokenize:r,document:{id:`id`,index:[`name`],store:!0},encoder:Xt}),this.init=this.init.bind(this),this.search=this.search.bind(this)}async#e(){let e=await this.#t();e.length>0&&this.#n(e)}async#t(){try{let e=`${this.apiUrl}/ghost/api/content/search-index/posts/?key=${this.apiKey}`;return(await(await fetch(e)).json()).posts}catch(e){return console.error(`Error fetching posts:`,e),[]}}#n(e){e.forEach(e=>{this.postsIndex.add(e)})}async#r(){let e=await this.#i();e.length>0&&this.#a(e)}async#i(){try{let e=`${this.apiUrl}/ghost/api/content/search-index/authors/?key=${this.apiKey}`;return(await(await fetch(e)).json()).authors}catch(e){return console.error(`Error fetching authors:`,e),[]}}#a(e){e.forEach(e=>{this.authorsIndex.add(e)})}async#o(){let e=await this.#s();e.length>0&&this.#c(e)}async#s(){try{let e=`${this.apiUrl}/ghost/api/content/search-index/tags/?key=${this.apiKey}`;return(await(await fetch(e)).json()).tags}catch(e){return console.error(`Error fetching tags:`,e),[]}}#c(e){e.forEach(e=>{this.tagsIndex.add(e)})}async init(){await this.#e(),await this.#r(),await this.#o()}#l(e){let t=[],n={};return e.forEach(e=>{e.result.forEach(e=>{n[e.id]||(t.push(e.doc),n[e.id]=!0)})}),t}search(e){let t=this.postsIndex.search(e,{enrich:!0}),n=this.authorsIndex.search(e,{enrich:!0}),r=this.tagsIndex.search(e,{enrich:!0});return{posts:this.#l(t),authors:this.#l(n),tags:this.#l(r)}}},Qt={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},$t={Authors:`الكتّاب`,Cancel:`إلغاء`,"No matches found":`لا يوجد نتائج مطابقة`,Posts:`منشورات`,"Search posts, tags and authors":`قم بالبحث عن المنشورات، الوسوم و الكتّاب`,"Show more results":`اظهر المزيد من النتائج`,Tags:`الوسوم`},en={Authors:`Müəlliflər`,Cancel:`Ləğv et`,"No matches found":`Uyğunluq tapılmadı`,Posts:`Yazılar`,"Search posts, tags and authors":`Yazılar, etiketlər və müəlliflər üzrə axtarın`,"Show more results":`Daha çox nəticə göstər`,Tags:`Etiketlər`},tn={Authors:`Автори`,Cancel:`Отказ`,"No matches found":`Няма съвпадения`,Posts:`Публикации`,"Search posts, tags and authors":`Търсене в публикации, етикети и автори`,"Show more results":`Още резултати`,Tags:`Етикети`},nn={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},rn={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},V={Authors:`Autors`,Cancel:`Cancel·la`,"No matches found":`No s'ha trobat cap resultat`,Posts:`Articles`,"Search posts, tags and authors":`Cerca articles, etiquetes i autors`,"Show more results":`Mostra més resultats`,Tags:`Etiquetes`},an={Authors:`Autoři`,Cancel:`Zrušit`,"No matches found":`Nenalezeno`,Posts:`Články`,"Search posts, tags and authors":`Prohledat články, štítky a autory`,"Show more results":`Zobrazit více výsledků`,Tags:`Štítky`},on={Authors:`Forfattere`,Cancel:`Annuller`,"No matches found":`Ingen resultater fundet`,Posts:`Indlæg`,"Search posts, tags and authors":`Søg i indlæg, tags og forfattere`,"Show more results":`Vis flere resultater`,Tags:`Tags`},sn={Authors:`Autor*innen`,Cancel:`Abbrechen`,"No matches found":`Keine Treffer gefunden`,Posts:`Posts`,"Search posts, tags and authors":`Posts, Tags und Autor*innen durchsuchen`,"Show more results":`Mehr Ergebnisse anzeigen`,Tags:`Tags`},cn={Authors:`Autoren`,Cancel:`Abbrechen`,"No matches found":`Keine Treffer gefunden`,Posts:`Beiträge`,"Search posts, tags and authors":`Nach Posts, Tags und Autoren suchen`,"Show more results":`Mehr Ergebnisse anzeigen`,Tags:`Tags`},ln={Authors:`ΣΥΓΓΡΑΦΕΙΣ`,Cancel:`Ακύρωση`,"No matches found":`Δεν βρέθηκαν αποτελέσματα`,Posts:`ΑΝΑΡΤΗΣΕΙΣ`,"Search posts, tags and authors":`Αναζήτηση αναρτήσεων, ετικετών και συγγραφέων`,"Show more results":`Εμφάνιση περισσότερων αποτελεσμάτων`,Tags:`ΕΤΙΚΕΤΕΣ`},un={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},dn={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},fn={Authors:`Autores`,Cancel:`Cancelar`,"No matches found":`No se encontraron resultados`,Posts:`Publicaciones`,"Search posts, tags and authors":`Buscar publicaciones, etiquetas y autores`,"Show more results":`Mostrar más resultados`,Tags:`Etiquetas`},pn={Authors:`Autorid`,Cancel:`Tühista`,"No matches found":`Vasteid ei leitud`,Posts:`Postitused`,"Search posts, tags and authors":`Otsi postitusi, silte ja autoreid`,"Show more results":`Näita rohkem tulemusi`,Tags:`Sildid`},mn={Authors:`Autoreak`,Cancel:`Utzi`,"No matches found":`Ez da bat datorren ezer topatu`,Posts:`Artikuluak`,"Search posts, tags and authors":`Bilatu artikuluak, etiketak eta autoreak`,"Show more results":`Erakutsi emaitza gehiago`,Tags:`Etiketak`},hn={Authors:`نویسندگان`,Cancel:`لغو`,"No matches found":`موردی یافت نشد`,Posts:`نوشته‌ها`,"Search posts, tags and authors":`جست‌وجوی نوشته‌ها، برچسب‌ها و نویسندگان`,"Show more results":`نمایش نتایج بیشتر`,Tags:`برچسب‌ها`},gn={Authors:`Kirjoittajat`,Cancel:`Peruuta`,"No matches found":`Ei hakutuloksia`,Posts:`Kirjoitukset`,"Search posts, tags and authors":`Etsi kirjoituksia, tunnisteita ja kirjoittajia`,"Show more results":`Näytä enemmän tuloksia`,Tags:`Tunnisteet`},_n={Authors:`Auteurs`,Cancel:`Annuler`,"No matches found":`Aucun résultat trouvé`,Posts:`Articles`,"Search posts, tags and authors":`Rechercher des articles, des catégories et des auteurs`,"Show more results":`Plus de résultats`,Tags:`Catégories`},vn={Authors:`Ùghdaran`,Cancel:`Sguir dheth`,"No matches found":`Cha deach dad a lorg a fhreagras ris na lorg thu`,Posts:`Postaichean`,"Search posts, tags and authors":`Lorg sna postaichean, tagaichean agus ùghdaran`,"Show more results":`Seall barrachd thoraidhean`,Tags:`Tagaichean`},yn={Authors:`מחברים`,Cancel:`ביטול`,"No matches found":`לא נמצאו התאמות`,Posts:`פוסטים`,"Search posts, tags and authors":`חיפוש פוסטים, תגיות ומחברים`,"Show more results":`הצגת תוצאות נוספות`,Tags:`תגיות`},bn={Authors:`लेखक`,Cancel:`रद्द करें`,"No matches found":`कोई मैच नहीं मिला`,Posts:`पोस्ट`,"Search posts, tags and authors":`पोस्ट, टैग और लेखक की तलाश करें`,"Show more results":`और परिणाम दिखाएं`,Tags:`टैग`},xn={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Sn={Authors:`Szerzők`,Cancel:`Mégse`,"No matches found":`Nincs találat`,Posts:`Bejegyzések`,"Search posts, tags and authors":`Keresés a bejegyzések, a címkék és a szerzők között`,"Show more results":`További találatok megjelenítése`,Tags:`Címkék`},Cn={Authors:`Penulis`,Cancel:`Batalkan`,"No matches found":`Tidak ada hasil yang ditemukan`,Posts:`Postingan`,"Search posts, tags and authors":`Cari postingan, tag, dan penulis`,"Show more results":`Tampilkan lebih banyak hasil`,Tags:`Tag`},wn={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Tn={Authors:`Autori`,Cancel:`Annulla`,"No matches found":`Nessun risultato trovato`,Posts:`Articoli`,"Search posts, tags and authors":`Cerca articoli, tag e autori`,"Show more results":`Mostra più risultati`,Tags:`Tag`},En={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Dn={Authors:`작성자`,Cancel:`취소`,"No matches found":`일치하는 결과가 없어요`,Posts:`게시물`,"Search posts, tags and authors":`게시물, 태그, 작성자 검색`,"Show more results":`더 많은 결과 보기`,Tags:`태그`},On={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},kn={Authors:`Autoriai`,Cancel:`Atšaukti`,"No matches found":`Atitikmenų nerasta`,Posts:`Įrašai`,"Search posts, tags and authors":`Ieškoti įrašų, žymų ir autorių`,"Show more results":`Rodyti daugiau rezultatų`,Tags:`Žymos`},An={Authors:`Autori`,Cancel:`Atcelt`,"No matches found":`Nav atrasta neviena atbilstība`,Posts:`Ziņas`,"Search posts, tags and authors":`Meklēt ziņas, atzīmes un autorus`,"Show more results":`Rādīt vairāk rezultātu`,Tags:`Tagi`},jn={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Mn={Authors:`Нийтлэгчид`,Cancel:`Цуцлах`,"No matches found":`Тохирох хайлтын үр дүн олдсонгүй`,Posts:`Нийтлэлүүд`,"Search posts, tags and authors":`Нийтлэл, ангилал, нийтлэгчдээр хайх`,"Show more results":`Илүү олон үр дүн харуулах`,Tags:`Ангилалууд`},Nn={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Pn={Authors:`Forfattere`,Cancel:`Avbryt`,"No matches found":`Ingen treff funnet`,Posts:`Innlegg`,"Search posts, tags and authors":`Søk i innlegg, etiketter og forfattere`,"Show more results":`Vis flere resultater`,Tags:`Etiketter`},Fn={Authors:`लेखकहरू`,Cancel:`रद्द गर्नुहोस्`,"No matches found":`कुनै परिणाम भेटिएन`,Posts:`पोस्टहरू`,"Search posts, tags and authors":`पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्`,"Show more results":`थप परिणामहरू देखाउनुहोस्`,Tags:`ट्यागहरू`},In={Authors:`Auteurs`,Cancel:`Annuleren`,"No matches found":`Geen resultaten gevonden`,Posts:`Berichten`,"Search posts, tags and authors":`Zoek berichten, tags en auteurs`,"Show more results":`Meer resultaten weergeven`,Tags:`Tags`},Ln={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Rn={Authors:`ਲੇਖਕ`,Cancel:`ਰੱਦ ਕਰੋ`,"No matches found":`ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ`,Posts:`ਪੋਸਟਾਂ`,"Search posts, tags and authors":`ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ`,"Show more results":`ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ`,Tags:`ਟੈਗ`},zn={Authors:`Autorzy`,Cancel:`Anuluj`,"No matches found":`Nie znaleziono dopasowań`,Posts:`Posty`,"Search posts, tags and authors":`Szukaj postów, tagów lub autorów`,"Show more results":`Pokaż więcej wyników`,Tags:`Tagi`},Bn={Authors:`Autores`,Cancel:`Cancelar`,"No matches found":`Nenhum resultado encontrado`,Posts:`Publicações`,"Search posts, tags and authors":`Procurar publicações, marcadores e autores`,"Show more results":`Mostrar mais resultados`,Tags:`Marcadores`},Vn={Authors:`Autores`,Cancel:`Cancelar`,"No matches found":`Nenhum resultado encontrado`,Posts:`Publicações`,"Search posts, tags and authors":`Buscar posts, tags e autores`,"Show more results":`Mostrar mais resultados`,Tags:`Tags`},Hn={Authors:`Autori`,Cancel:`Anulează`,"No matches found":`Nu s-au găsit rezultate`,Posts:`Postări`,"Search posts, tags and authors":`Caută postări, etichete și autori`,"Show more results":`Afișează mai multe rezultate`,Tags:`Etichete`},Un={Authors:`Авторы`,Cancel:`Отмена`,"No matches found":`Совпадений не найдено`,Posts:`Записи`,"Search posts, tags and authors":`Поиск по записям, тегам и авторам`,"Show more results":`Показать больше результатов`,Tags:`Теги`},Wn={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Gn={Authors:`Autori`,Cancel:`Zrušiť`,"No matches found":`Nenašli sa žiadne výsledky`,Posts:`Príspevky`,"Search posts, tags and authors":`Vyhľadajte príspevky, tagy a autorov`,"Show more results":`Zobraziť viac výsledkov`,Tags:`Tagy`},Kn={Authors:`Avtorji`,Cancel:`Prekliči`,"No matches found":`Ni najdenih zadetkov`,Posts:`Članki`,"Search posts, tags and authors":`Iščite članke, oznake in avtorje`,"Show more results":`Prikaži več rezultatov`,Tags:`Oznake`},qn={Authors:`Autorët`,Cancel:`Anulo`,"No matches found":`Nuk u gjet asnjë rezultat`,Posts:`Postimet`,"Search posts, tags and authors":`Kërko postime, etiketa dhe autorë`,"Show more results":`Shfaq më shumë rezultate`,Tags:`Etiketat`},Jn={Authors:`Autori`,Cancel:`Otkažite`,"No matches found":`Nema rezultata`,Posts:`Objave`,"Search posts, tags and authors":`Pretražite objave, tag-ove i autore`,"Show more results":`Prikažite više rezultata`,Tags:`Tag-ovi`},Yn={Authors:`Аутори`,Cancel:`Откажите`,"No matches found":`Нема резултата`,Posts:`Објаве`,"Search posts, tags and authors":`Претражите објаве, tag-ове и ауторе`,"Show more results":`Прикажите више резултата`,Tags:`Tag-ови`},Xn={Authors:`Författare`,Cancel:`Avbryt`,"No matches found":`Inga träffar hittade`,Posts:`Inlägg`,"Search posts, tags and authors":`Sök inlägg, taggar och författare`,"Show more results":`Visa fler resultat`,Tags:`Taggar`},Zn={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Qn={Authors:`ஆசிரியர்கள்`,Cancel:`ரத்து செய்`,"No matches found":`பொருத்தங்கள் எதுவும் இல்லை`,Posts:`பதிவுகள்`,"Search posts, tags and authors":`பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்`,"Show more results":`மேலும் முடிவுகளைக் காட்டு`,Tags:`குறிச்சொற்கள்`},$n={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},er={Authors:`Yazarlar`,Cancel:`İptal`,"No matches found":`Eşleşme bulunamadı`,Posts:`Yazılar`,"Search posts, tags and authors":`Yazıları, etiketleri ve yazarları ara`,"Show more results":`Daha fazla sonuç göster`,Tags:`Etiketler`},tr={Authors:`Автори`,Cancel:`Скасувати`,"No matches found":`Збігів не знайдено`,Posts:`Публікації`,"Search posts, tags and authors":`Шукайте публікацій, теги та авторів`,"Show more results":`Показати більше результатів`,Tags:`Теги`},nr={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},rr={Authors:``,Cancel:``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},ir={Authors:`Tác giả`,Cancel:`Hủy`,"No matches found":`Không tìm thấy`,Posts:`Bài viết`,"Search posts, tags and authors":`Tìm bài viết, thẻ và tác giả`,"Show more results":`Xem thêm kết quả`,Tags:`Thẻ`},ar={Authors:`作者`,Cancel:`取消`,"No matches found":`未找到匹配项`,Posts:`文章`,"Search posts, tags and authors":`搜索文章、标签和作者`,"Show more results":`显示更多结果`,Tags:`标签`},or={Authors:`作者`,Cancel:`取消`,"No matches found":`無相符結果`,Posts:`文章`,"Search posts, tags and authors":`搜尋文章、標籤與作者`,"Show more results":`更多結果`,Tags:`標籤`},H=e=>typeof e==`string`,sr=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},cr=e=>e==null?``:``+e,lr=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},ur=/###/g,dr=e=>e&&e.indexOf(`###`)>-1?e.replace(ur,`.`):e,fr=e=>!e||H(e),pr=(e,t,n)=>{let r=H(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(fr(e))return{};let t=dr(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return fr(e)?{}:{obj:e,k:dr(r[i])}},mr=(e,t,n)=>{let{obj:r,k:i}=pr(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=pr(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=pr(e,o,Object),s&&s.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},hr=(e,t,n,r)=>{let{obj:i,k:a}=pr(e,t,Object);i[a]=i[a]||[],i[a].push(n)},gr=(e,t)=>{let{obj:n,k:r}=pr(e,t);if(n)return n[r]},_r=(e,t,n)=>{let r=gr(e,n);return r===void 0?gr(t,n):r},vr=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?H(e[r])||e[r]instanceof String||H(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):vr(e[r],t[r],n):e[r]=t[r]);return e},yr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),br={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},xr=e=>H(e)?e.replace(/[&<>"'\/]/g,e=>br[e]):e,Sr=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},Cr=[` `,`,`,`?`,`!`,`;`],wr=new Sr(20),Tr=(e,t,n)=>{t||=``,n||=``;let r=Cr.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=wr.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Er=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`.`;if(!e)return;if(e[t])return e[t];let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Dr=e=>e&&e.replace(`_`,`-`),Or={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},kr=new class e{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||Or,this.options=t,this.debug=t.debug}log(){var e=[...arguments];return this.forward(e,`log`,``,!0)}warn(){var e=[...arguments];return this.forward(e,`warn`,``,!0)}error(){var e=[...arguments];return this.forward(e,`error`,``)}deprecate(){var e=[...arguments];return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(H(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Ar=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){var t=[...arguments].slice(1);this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[n,r]=e;for(let e=0;e<r;e++)n(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(n=>{let[r,i]=n;for(let n=0;n<i;n++)r.apply(r,[e,...t])})}},jr=class extends Ar{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):H(n)&&i?o.push(...n.split(i)):o.push(n)));let s=gr(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!H(n)?s:Er(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),mr(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let r in n)(H(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=gr(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?vr(s,n,i):s={...s,...n},mr(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.options.compatibilityAPI===`v1`?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},Mr={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}},Nr={},Pr=class e extends Ar{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),lr([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=kr.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;let n=this.resolve(e,t);return n&&n.res!==void 0}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Tr(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:H(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:H(i)?[i]:i}}translate(t,n,r){if(typeof n!=`object`&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n==`object`&&(n={...n}),n||={},t==null)return``;Array.isArray(t)||(t=[String(t)]);let i=n.returnDetails===void 0?this.options.returnDetails:n.returnDetails,a=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()===`cimode`){if(u){let e=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${e}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:o}let d=this.resolve(t,n),f=d&&d.res,p=d&&d.usedKey||o,m=d&&d.exactUsedKey||o,h=Object.prototype.toString.apply(f),g=[`[object Number]`,`[object Function]`,`[object RegExp]`],_=n.joinArrays===void 0?this.options.joinArrays:n.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!H(f)&&typeof f!=`boolean`&&typeof f!=`number`;if(v&&f&&y&&g.indexOf(h)<0&&!(H(_)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(a){let e=Array.isArray(f),t=e?[]:{},r=e?m:p;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${a}${e}`;t[e]=this.translate(i,{...n,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=f[e])}f=t}}else if(v&&H(_)&&Array.isArray(f))f=f.join(_),f&&=this.extendTranslation(f,t,n,r);else{let i=!1,s=!1,u=n.count!==void 0&&!H(n.count),p=e.hasDefaultValue(n),m=u?this.pluralResolver.getSuffix(l,n.count,n):``,h=n.ordinal&&u?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):``,g=u&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),_=g&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${m}`]||n[`defaultValue${h}`]||n.defaultValue;!this.isValidLookup(f)&&p&&(i=!0,f=_),this.isValidLookup(f)||(s=!0,f=o);let v=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:f,y=p&&_!==f&&this.options.updateMissing;if(s||i||y){if(this.logger.log(y?`updateKey`:`missingKey`,l,c,o,y?_:f),a){let e=this.resolve(o,{...n,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let r=(e,t,r)=>{let i=p&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,i,y,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,t,i,y,n),this.emit(`missingKey`,e,c,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);g&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],o+t,n[`defaultValue${t}`]||_)})}):r(e,o,_))}f=this.extendTranslation(f,t,n,d,r),s&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${o}`),(s||i)&&this.options.parseMissingKeyHandler&&(f=this.options.compatibilityAPI===`v1`?this.options.parseMissingKeyHandler(f):this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,i?f:void 0))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let o=H(e)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),s;if(o){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let c=n.replace&&!H(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),o){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;s<r&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!==`v1`&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){var e=[...arguments];return i&&i[0]===e[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):a.translate(...e,t)},n)),n.interpolation&&this.interpolator.reset()}let o=n.postProcess||this.options.postProcess,s=H(o)?[o]:o;return e!=null&&s&&s.length&&n.applyPostProcessor!==!1&&(e=Mr.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,r,i,a,o;return H(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!H(t.count),d=u&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),f=t.context!==void 0&&(H(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!Nr[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Nr[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(c+e),t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator}${t.context}`;o.push(r),u&&(o.push(r+e),t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!H(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},Fr=e=>e.charAt(0).toUpperCase()+e.slice(1),Ir=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=kr.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Dr(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Dr(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(H(e)&&e.indexOf(`-`)>-1){if(typeof Intl<`u`&&Intl.getCanonicalLocales!==void 0)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch{}let t=[`hans`,`hant`,`latn`,`cyrl`,`cans`,`mong`,`arab`],n=e.split(`-`);return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Fr(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Fr(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Fr(n[2].toLowerCase()))),n.join(`-`)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(e.indexOf(`-`)<0&&n.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&n.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===n||e.indexOf(n)===0&&n.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),H(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return H(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):H(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},Lr=[{lngs:[`ach`,`ak`,`am`,`arn`,`br`,`fil`,`gun`,`ln`,`mfe`,`mg`,`mi`,`oc`,`pt`,`pt-BR`,`tg`,`tl`,`ti`,`tr`,`uz`,`wa`],nr:[1,2],fc:1},{lngs:`af.an.ast.az.bg.bn.ca.da.de.dev.el.en.eo.es.et.eu.fi.fo.fur.fy.gl.gu.ha.hi.hu.hy.ia.it.kk.kn.ku.lb.mai.ml.mn.mr.nah.nap.nb.ne.nl.nn.no.nso.pa.pap.pms.ps.pt-PT.rm.sco.se.si.so.son.sq.sv.sw.ta.te.tk.ur.yo`.split(`.`),nr:[1,2],fc:2},{lngs:[`ay`,`bo`,`cgg`,`fa`,`ht`,`id`,`ja`,`jbo`,`ka`,`km`,`ko`,`ky`,`lo`,`ms`,`sah`,`su`,`th`,`tt`,`ug`,`vi`,`wo`,`zh`],nr:[1],fc:3},{lngs:[`be`,`bs`,`cnr`,`dz`,`hr`,`ru`,`sr`,`uk`],nr:[1,2,5],fc:4},{lngs:[`ar`],nr:[0,1,2,3,11,100],fc:5},{lngs:[`cs`,`sk`],nr:[1,2,5],fc:6},{lngs:[`csb`,`pl`],nr:[1,2,5],fc:7},{lngs:[`cy`],nr:[1,2,3,8],fc:8},{lngs:[`fr`],nr:[1,2],fc:9},{lngs:[`ga`],nr:[1,2,3,7,11],fc:10},{lngs:[`gd`],nr:[1,2,3,20],fc:11},{lngs:[`is`],nr:[1,2],fc:12},{lngs:[`jv`],nr:[0,1],fc:13},{lngs:[`kw`],nr:[1,2,3,4],fc:14},{lngs:[`lt`],nr:[1,2,10],fc:15},{lngs:[`lv`],nr:[1,2,0],fc:16},{lngs:[`mk`],nr:[1,2],fc:17},{lngs:[`mnk`],nr:[0,1,2],fc:18},{lngs:[`mt`],nr:[1,2,11,20],fc:19},{lngs:[`or`],nr:[2,1],fc:2},{lngs:[`ro`],nr:[1,2,20],fc:20},{lngs:[`sl`],nr:[5,1,2,3],fc:21},{lngs:[`he`,`iw`],nr:[1,2,20,21],fc:22}],Rr={1:e=>Number(e>1),2:e=>Number(e!=1),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(e==1?0:e>=2&&e<=4?1:2),7:e=>Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(e==1?0:e==2?1:e!=8&&e!=11?2:3),9:e=>Number(e>=2),10:e=>Number(e==1?0:e==2?1:e<7?2:e<11?3:4),11:e=>Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(e!==0),14:e=>Number(e==1?0:e==2?1:e==3?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:e===0?2:1),17:e=>Number(e==1||e%10==1&&e%100!=11?0:1),18:e=>Number(e==0?0:e==1?1:2),19:e=>Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(e==1?0:e==0||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)},zr=[`v1`,`v2`,`v3`],Br=[`v4`],Vr={zero:0,one:1,two:2,few:3,many:4,other:5},Hr=()=>{let e={};return Lr.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Rr[t.fc]}})}),e},Ur=class{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=kr.create(`pluralResolver`),(!this.options.compatibilityJSON||Br.includes(this.options.compatibilityJSON))&&(typeof Intl>`u`||!Intl.PluralRules)&&(this.options.compatibilityJSON=`v3`,this.logger.error(`Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.`)),this.rules=Hr(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let n=Dr(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!e.match(/-|_/))return;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>Vr[e]-Vr[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),``)}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r=`plural`:r===1&&(r=``));let i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON===`v1`?r===1?``:typeof r==`number`?`_plural_${r.toString()}`:i():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!zr.includes(this.options.compatibilityJSON)}},Wr=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`.`,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=_r(e,t,n);return!a&&i&&H(n)&&(a=Er(e,n,r),a===void 0&&(a=Er(t,n,r))),a},Gr=e=>e.replace(/\$/g,`$$$$`),Kr=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=kr.create(`interpolator`),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?xr:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?yr(i):a||`{{`,this.suffix=o?yr(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?yr(d):f||yr(`$t(`),this.nestingSuffix=p?yr(p):m||yr(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=Wr(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(Wr(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Gr(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Gr(this.escape(e)):Gr(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=H(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!H(a)&&!this.useRawValueToEscape&&(a=cr(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!H(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,c=!0}if(i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!H(i))return i;H(i)||(i=cr(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),c&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},qr=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Jr=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Dr(r),i),t[o]=s),s(n)}},Yr=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=kr.create(`formatter`),this.options=e,this.formats={number:Jr((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:Jr((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:Jr((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:Jr((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:Jr((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||`,`}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Jr(t)}format(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=qr(t);if(this.formats[i]){let t=e;try{let o=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},Xr=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Zr=class extends Ar{constructor(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=kr.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{hr(n.loaded,[i],a),Xr(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();H(e)&&(e=this.languageUtils.toResolveHierarchy(e)),H(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend&&this.backend.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Qr=()=>({debug:!1,initImmediate:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),H(e[1])&&(t.defaultValue=e[1]),H(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0}}),U=e=>(H(e.ns)&&(e.ns=[e.ns]),H(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),H(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),$r=()=>{},ei=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},ti=class e extends Ar{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=U(e),this.services={},this.logger=kr,this.modules={external:[]},ei(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t==`function`&&(n=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(H(t.ns)?t.defaultNS=t.ns:t.ns.indexOf(`translation`)<0&&(t.defaultNS=t.ns[0]));let r=Qr();this.options={...r,...this.options,...U(t)},this.options.compatibilityAPI!==`v1`&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let i=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?kr.init(i(this.modules.logger),this.options):kr.init(null,this.options);let t;this.modules.formatter?t=this.modules.formatter:typeof Intl<`u`&&(t=Yr);let n=new Ir(this.options);this.store=new jr(this.options.resources,this.options);let a=this.services;a.logger=kr,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new Ur(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=i(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new Kr(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Zr(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new Pr(this.services,this.options),this.translator.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||=$r,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=sr(),o=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),a.resolve(t),n(e,t)};if(this.languages&&this.options.compatibilityAPI!==`v1`&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),a}loadResources(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$r,n=H(e)?e:this.language;if(typeof e==`function`&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return t();let e=[],r=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){let r=sr();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=$r,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&Mr.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=sr();this.emit(`languageChanging`,e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,a)=>{a?(i(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},o=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=H(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{a(e,n)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,n){var r=this;let i=function(e,t){let a;if(typeof t!=`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([e,t].concat(o))}else a={...t};a.lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs,a.ns=a.ns||i.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||i.keyPrefix);let s=r.options.keySeparator||`.`,c;return c=a.keyPrefix&&Array.isArray(e)?e.map(e=>`${a.keyPrefix}${s}${e}`):a.keyPrefix?`${a.keyPrefix}${s}${e}`:e,r.t(c,a)};return H(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=sr();return this.options.ns?(H(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=sr();H(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return`rtl`;let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services&&this.services.languageUtils||new Ir(Qr());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$r,r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new jr(this.store.data,i),a.services.resourceStore=a.store),a.translator=new Pr(a.services,i),a.translator.on(`*`,function(e){var t=[...arguments].slice(1);a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},W=ti.createInstance();W.createInstance=ti.createInstance,W.createInstance,W.dir,W.init,W.loadResources,W.reloadResources,W.use,W.changeLanguage,W.getFixedT,W.t,W.exists,W.setDefaultNamespace,W.hasLoadedNamespace,W.loadNamespaces,W.loadLanguages;var ni=[{code:`af`,label:`Afrikaans`},{code:`ar`,label:`Arabic`},{code:`az`,label:`Azerbaijani`},{code:`bg`,label:`Bulgarian`},{code:`bn`,label:`Bengali`},{code:`bs`,label:`Bosnian`},{code:`ca`,label:`Catalan`},{code:`cs`,label:`Czech`},{code:`da`,label:`Danish`},{code:`de`,label:`German`},{code:`de-CH`,label:`Swiss German`},{code:`el`,label:`Greek`},{code:`en`,label:`English`},{code:`eo`,label:`Esperanto`},{code:`es`,label:`Spanish`},{code:`et`,label:`Estonian`},{code:`eu`,label:`Basque`},{code:`fa`,label:`Persian/Farsi`},{code:`fi`,label:`Finnish`},{code:`fr`,label:`French`},{code:`gd`,label:`Gaelic (Scottish)`},{code:`he`,label:`Hebrew`},{code:`hi`,label:`Hindi`},{code:`hr`,label:`Croatian`},{code:`hu`,label:`Hungarian`},{code:`id`,label:`Indonesian`},{code:`is`,label:`Icelandic`},{code:`it`,label:`Italian`},{code:`ja`,label:`Japanese`},{code:`ko`,label:`Korean`},{code:`kz`,label:`Kazakh`},{code:`lt`,label:`Lithuanian`},{code:`lv`,label:`Latvian`},{code:`mk`,label:`Macedonian`},{code:`mn`,label:`Mongolian`},{code:`ms`,label:`Malay`},{code:`nb`,label:`Norwegian Bokmål`},{code:`ne`,label:`Nepali`},{code:`nl`,label:`Dutch`},{code:`nn`,label:`Norwegian Nynorsk`},{code:`pa`,label:`Punjabi`},{code:`pl`,label:`Polish`},{code:`pt`,label:`Portuguese`},{code:`pt-BR`,label:`Portuguese (Brazil)`},{code:`ro`,label:`Romanian`},{code:`ru`,label:`Russian`},{code:`si`,label:`Sinhala`},{code:`sk`,label:`Slovak`},{code:`sl`,label:`Slovenian`},{code:`sq`,label:`Albanian`},{code:`sr`,label:`Serbian`},{code:`sr-Cyrl`,label:`Serbian (Cyrillic)`},{code:`sv`,label:`Swedish`},{code:`sw`,label:`Swahili`},{code:`ta`,label:`Tamil`},{code:`th`,label:`Thai`},{code:`tr`,label:`Turkish`},{code:`uk`,label:`Ukrainian`},{code:`ur`,label:`Urdu`},{code:`uz`,label:`Uzbek`},{code:`vi`,label:`Vietnamese`},{code:`zh`,label:`Chinese`},{code:`zh-Hant`,label:`Traditional Chinese`}],ri=ni.map(e=>e.code);function ii(e){let t=e.default;return{...e,...t&&typeof t==`object`?t:{}}}function ai(e){return function(t,n){return t.reduce((t,r)=>{let i=e(r,n);return i===void 0&&(i=e(`en`,n)),t[r]={[n]:ii(i??{})},t},{})}}function oi({generateThemeResources:e,generateResources:t}){return(n=`en`,r=`portal`,i={})=>{let a=W.createInstance(),o={prefix:`{`,suffix:`}`};(r===`theme`||r===`portal`)&&(o.escapeValue=!1);let s=e=>{let n=a.services.languageUtils;for(let i of n.toResolveHierarchy(e))if(!(!ri.includes(i)||a.hasResourceBundle(i,r)))for(let[e,n]of Object.entries(t([i],r)))a.addResourceBundle(e,r,n[r])},c;return r===`theme`?c=e(n,i):(c={},a.on(`languageChanging`,s)),a.init({lng:n,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:[`nb`,`en`],default:[`en`]},ns:r,defaultNS:r,interpolation:o,resources:c}),a}}function si(e,t){let n={};for(let[t,r]of Object.entries(e)){let e=/\/locales\/([^/]+)\//.exec(t)?.[1];e&&(n[e]=r)}return ci(n,t)}function ci(e,t){let n=ai(t=>e[t]),r=Object.assign(oi({generateResources:n,generateThemeResources:e=>({[e]:{theme:{}}})}),{LOCALE_DATA:ni,SUPPORTED_LOCALES:ri,generateResources:n,namespace:t});return r.default=r,r}var li=si(Object.assign({"../../locales/af/search.json":Qt,"../../locales/ar/search.json":$t,"../../locales/az/search.json":en,"../../locales/bg/search.json":tn,"../../locales/bn/search.json":nn,"../../locales/bs/search.json":rn,"../../locales/ca/search.json":V,"../../locales/cs/search.json":an,"../../locales/da/search.json":on,"../../locales/de/search.json":sn,"../../locales/de-CH/search.json":cn,"../../locales/el/search.json":ln,"../../locales/en/search.json":un,"../../locales/eo/search.json":dn,"../../locales/es/search.json":fn,"../../locales/et/search.json":pn,"../../locales/eu/search.json":mn,"../../locales/fa/search.json":hn,"../../locales/fi/search.json":gn,"../../locales/fr/search.json":_n,"../../locales/gd/search.json":vn,"../../locales/he/search.json":yn,"../../locales/hi/search.json":bn,"../../locales/hr/search.json":xn,"../../locales/hu/search.json":Sn,"../../locales/id/search.json":Cn,"../../locales/is/search.json":wn,"../../locales/it/search.json":Tn,"../../locales/ja/search.json":En,"../../locales/ko/search.json":Dn,"../../locales/kz/search.json":On,"../../locales/lt/search.json":kn,"../../locales/lv/search.json":An,"../../locales/mk/search.json":jn,"../../locales/mn/search.json":Mn,"../../locales/ms/search.json":Nn,"../../locales/nb/search.json":Pn,"../../locales/ne/search.json":Fn,"../../locales/nl/search.json":In,"../../locales/nn/search.json":Ln,"../../locales/pa/search.json":Rn,"../../locales/pl/search.json":zn,"../../locales/pt/search.json":Bn,"../../locales/pt-BR/search.json":Vn,"../../locales/ro/search.json":Hn,"../../locales/ru/search.json":Un,"../../locales/si/search.json":Wn,"../../locales/sk/search.json":Gn,"../../locales/sl/search.json":Kn,"../../locales/sq/search.json":qn,"../../locales/sr/search.json":Jn,"../../locales/sr-Cyrl/search.json":Yn,"../../locales/sv/search.json":Xn,"../../locales/sw/search.json":Zn,"../../locales/ta/search.json":Qn,"../../locales/th/search.json":$n,"../../locales/tr/search.json":er,"../../locales/uk/search.json":tr,"../../locales/ur/search.json":nr,"../../locales/uz/search.json":rr,"../../locales/vi/search.json":ir,"../../locales/zh/search.json":ar,"../../locales/zh-Hant/search.json":or}),`search`),{LOCALE_DATA:ui,SUPPORTED_LOCALES:di,generateResources:fi}=li,pi=class extends g.Component{constructor(e){super(e);let t=li(this.props.locale||`en`,`search`),n=t.dir()||`ltr`,r=new Zt({adminUrl:e.adminUrl,apiKey:e.apiKey,dir:n});this.state={searchIndex:r,showPopup:!1,indexStarted:!1,indexComplete:!1,t:t.t,dir:n,scrollbarWidth:0},this.inputRef=g.createRef()}componentDidMount(){let e=this.getScrollbarWidth();this.setState({scrollbarWidth:e}),this.initSetup()}componentDidUpdate(e,t){if(t.showPopup!==this.state.showPopup)try{this.state.showPopup?(this.bodyScroll=window.document?.body?.style?.overflow,this.bodyMargin=window.getComputedStyle(document.body).getPropertyValue(`margin-right`),window.document.body.style.overflow=`hidden`,this.state.scrollbarWidth&&document.body.scrollHeight>window.innerHeight&&(window.document.body.style.marginRight=`calc(${this.bodyMargin} + ${this.state.scrollbarWidth}px)`)):(window.document.body.style.overflow=this.bodyScroll||``,!this.bodyMargin||this.bodyMargin===`0px`?window.document.body.style.marginRight=``:window.document.body.style.marginRight=this.bodyMargin)}catch{}this.state.showPopup!==t?.showPopup&&!this.state.showPopup&&this.setState({searchValue:``}),this.state.showPopup&&!this.state.indexStarted&&this.setupSearchIndex()}async setupSearchIndex(){this.setState({indexStarted:!0}),await this.state.searchIndex.init(),this.setState({indexComplete:!0})}componentWillUnmount(){window.removeEventListener(`hashchange`,this.hashHandler,!1),window.removeEventListener(`keydown`,this.handleKeyDown,!1)}initSetup(){this.handleSearchUrl(),this.addKeyboardShortcuts(),this.setupCustomTriggerButton(),this.hashHandler=()=>{this.handleSearchUrl()},window.addEventListener(`hashchange`,this.hashHandler,!1)}getScrollbarWidth(){let e=document.createElement(`div`);e.style.visibility=`hidden`,e.style.overflow=`scroll`,document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}setupCustomTriggerButton(){this.clickHandler=e=>{e.preventDefault(),this.setState({showPopup:!0});let t=document.createElement(`input`);t.style.opacity=`0`,t.style.position=`fixed`,t.style.top=`0`,document.body.appendChild(t),t.focus(),setTimeout(()=>{this.inputRef.current.focus(),document.body.removeChild(t)},150)},this.customTriggerButtons=this.getCustomTriggerButtons(),this.customTriggerButtons.forEach(e=>{e.removeEventListener(`click`,this.clickHandler),e.addEventListener(`click`,this.clickHandler)})}getCustomTriggerButtons(){return document.querySelectorAll(`[data-ghost-search]`)||[]}handleSearchUrl(){let[e]=window.location.hash.substr(1).split(`?`);(e===`/search`||e===`/search/`)&&(this.setState({showPopup:!0}),window.history.replaceState(``,document.title,window.location.pathname))}addKeyboardShortcuts(){this.getCustomTriggerButtons()?.length&&(this.handleKeyDown=e=>{if(e.key===`k`&&e.metaKey)return this.setState({showPopup:!0}),e.preventDefault(),e.stopPropagation(),!1},document.addEventListener(`keydown`,this.handleKeyDown))}render(){return(0,b.jsx)(v.Provider,{value:{page:`search`,showPopup:this.state.showPopup,adminUrl:this.props.adminUrl,stylesUrl:this.props.stylesUrl,searchIndex:this.state.searchIndex,indexComplete:this.state.indexComplete,searchValue:this.state.searchValue,inputRef:this.inputRef,onAction:()=>{},dispatch:(e,t)=>{e===`update`&&this.setState({...this.state,...t})},t:this.state.t,dir:this.state.dir},children:(0,b.jsx)(pe,{})})}},mi=`sodo-search-root`;function hi(){let e=document.createElement(`div`);e.id=mi,document.body.appendChild(e)}function gi(){let e=document.querySelector(`script[data-sodo-search]`);return e?{adminUrl:e.dataset.sodoSearch,apiKey:e.dataset.key,stylesUrl:e.dataset.styles,locale:e.dataset.locale||`en`}:{}}function _i(){hi()}function vi(){let{adminUrl:e,apiKey:t,stylesUrl:n,locale:r}=gi(),i=(e||window.location.origin)?.replace(/\/+$/,``);_i(),_.render((0,b.jsx)(g.default.StrictMode,{children:(0,b.jsx)(pi,{adminUrl:i,apiKey:t,stylesUrl:n,locale:r})}),document.getElementById(mi))}vi()});
6
+ .ghost-display {
7
+ display: none;
8
+ }
9
+ `,qt=`sodo-search-input`,Jt=`sodo-search-results`;function Yt(e){return`sodo-search-result-${e}`}function Xt(){let{searchValue:e,searchIndex:t,indexComplete:n}=B();return Ee(()=>{let r=/\/404\/$/,i=n&&e?t?.search(e):null;return{posts:i?.posts||[],authors:(i?.authors||[]).filter(e=>!(e?.url&&r.test(e?.url))),tags:(i?.tags||[]).filter(e=>!(e?.url&&r.test(e?.url)))}},[t,e,n])}function Zt({allResults:e,selectedResult:t}){let{searchValue:n,setSearchValue:r,closePopup:i,inputRef:a,t:o}=B(),s=Te(null);Ce(()=>{setTimeout(()=>{a?.current?.focus()},150);let e=e=>{e.key===`Escape`&&i()},t=s?.current;return t?.ownerDocument.removeEventListener(`keyup`,e),t?.ownerDocument.addEventListener(`keyup`,e),()=>{t?.ownerDocument.removeEventListener(`keyup`,e)}},[i,a]);let c=`z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-t-lg shadow`;return n||(c=`z-10 relative flex items-center py-5 px-4 sm:px-7 bg-white rounded-lg`),V(`div`,{ref:s,className:c,children:[V(`div`,{className:`flex items-center justify-center w-4 h-4 me-3`,children:V(Qt,{})}),V(`input`,{ref:a,"aria-activedescendant":t?Yt(t):void 0,"aria-autocomplete":`list`,"aria-controls":e.length?Jt:void 0,"aria-expanded":e.length>0,"aria-label":o(`Search posts, tags and authors`),className:`grow -my-5 py-5 -ms-3 ps-3 text-[1.65rem] focus-visible:outline-none placeholder:text-gray-400 outline-none truncate`,id:qt,placeholder:o(`Search posts, tags and authors`),role:`combobox`,value:n||``,onInput:e=>{r(e.currentTarget.value)}}),V($t,{}),V(en,{})]})}function Qt(){let{searchValue:e=``,setSearchValue:t,inputRef:n,t:r}=B();return e?V(`button`,{"aria-label":r(`Clear search`),className:`-mb-[1px]`,type:`button`,onClick:()=>{t(``),n.current?.focus()},children:V(Ve,{"aria-hidden":`true`,className:`text-neutral-900 hover:text-neutral-500 h-[1.1rem] w-[1.1rem]`})}):V(Be,{"aria-hidden":`true`,className:`text-neutral-900`})}function $t(){let{indexComplete:e,searchValue:t}=B();return!e&&t?V(He,{"aria-hidden":`true`,className:`shrink-0`}):null}function en(){let{closePopup:e,t}=B();return V(`button`,{className:`ms-3 text-sm text-neutral-500 sm:hidden`,type:`button`,onClick:()=>{e()},children:t(`Cancel`)})}function tn({tag:e,selectedResult:t,setSelectedResult:n}){let{name:r,url:i,id:a}=e,o=`flex items-center py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer`;return a===t&&(o+=` bg-neutral-100`),V(`a`,{"aria-selected":a===t,className:o,href:i,id:Yt(a),role:`option`,tabIndex:-1,target:`_top`,onMouseEnter:()=>{n(a)},children:[V(`p`,{"aria-hidden":`true`,className:`me-2 text-sm font-bold text-neutral-400`,children:`#`}),V(`div`,{className:`text-[1.65rem] font-medium leading-tight text-neutral-900 truncate`,children:r})]})}function nn({tags:e,selectedResult:t,setSelectedResult:n}){let{t:r}=B();if(!e?.length)return null;let i=e.map(e=>V(tn,{tag:e,selectedResult:t,setSelectedResult:n},e.name));return V(`div`,{"aria-labelledby":`sodo-search-tags-label`,className:`border-t border-gray-200 py-3 px-4 sm:px-7`,role:`group`,children:[V(`div`,{className:`uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide`,id:`sodo-search-tags-label`,role:`presentation`,children:r(`Tags`)}),i]})}function rn({post:e,selectedResult:t,setSelectedResult:n}){let{searchValue:r}=B(),{title:i,excerpt:a,url:o,id:s}=e,c=`block py-3 -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer`;return s===t&&(c+=` bg-neutral-100`),V(`a`,{"aria-selected":s===t,className:c,href:o,id:Yt(s),role:`option`,tabIndex:-1,target:`_top`,onMouseEnter:()=>{n(s)},children:[V(`div`,{className:`text-[1.65rem] font-medium leading-tight text-neutral-800`,children:V(sn,{highlight:r,isExcerpt:!1,text:i})}),V(`p`,{className:`text-neutral-400 leading-normal text-sm mt-0 mb-0 truncate`,children:V(sn,{highlight:r,isExcerpt:!0,text:a})})]})}function an({text:e,highlight:t}){let n=``;t?.split(` `).forEach((e,t)=>{let r=String(e).replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),i=[...e].some(e=>Rt(e.codePointAt(0)))?r:`^${r}|\\s${r}`;n=t>0?`${n}|${i}`:i});let r=RegExp(`${n}`,`ig`),i=e?.matchAll(r),a=[];for(let e of i)a.push({startIdx:e?.index,endIdx:(e?.index||0)+(e?.[0].length||0)});return a}function on({text:e,highlight:t}){let n=an({text:e,highlight:t}),r=[],i=0;return n.forEach(t=>{i===t.startIdx?(r.push({text:e?.slice(t.startIdx,t.endIdx),type:`highlight`}),i=t.endIdx):(r.push({text:e?.slice(i,t.startIdx),type:`normal`}),r.push({text:e?.slice(t.startIdx,t.endIdx),type:`highlight`}),i=t.endIdx)}),i<e?.length&&r.push({text:e?.slice(i,e.length),type:`normal`}),{parts:r,highlightIndexes:n}}function sn({text:e=``,highlight:t=``,isExcerpt:n}){e||=``,t||=``;let{parts:r,highlightIndexes:i}=on({text:e,highlight:t});if(n&&i?.[0]){let n=i?.[0]?.startIdx;if(n>50){e=`...`+e?.slice(n-20);let{parts:i}=on({text:e,highlight:t});r=i}}return V(C,{children:r.map((e,t)=>V(C,{children:e?.type===`highlight`?V(cn,{isExcerpt:n,word:e.text}):e.text},t))})}function cn({word:e,isExcerpt:t}){return t?V(C,{children:V(`span`,{className:`font-bold`,children:e})}):V(C,{children:V(`span`,{className:`font-bold text-neutral-900`,children:e})})}function ln({onShowMore:e}){let{t}=B();return V(`button`,{className:`w-full my-3 p-[1rem] border border-neutral-200 hover:border-neutral-300 text-neutral-800 hover:text-black font-semibold rounded transition duration-150 ease hover:ease`,type:`button`,onClick:e,children:t(`Show more results`)})}function un({posts:e,hasMore:t,selectedResult:n,setSelectedResult:r}){let{t:i}=B();return e?.length?V(`div`,{"aria-labelledby":`sodo-search-posts-label`,className:t?`border-t border-neutral-200 pt-3 px-4 sm:px-7`:`border-t border-neutral-200 py-3 px-4 sm:px-7`,role:`group`,children:[V(`div`,{className:`uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide`,id:`sodo-search-posts-label`,role:`presentation`,children:i(`Posts`)}),e.map(e=>V(rn,{post:e,selectedResult:n,setSelectedResult:r},e.title))]}):null}function dn({author:e,selectedResult:t,setSelectedResult:n}){let{name:r,profile_image:i,url:a,id:o}=e,s=`py-[1rem] -mx-4 sm:-mx-7 px-4 sm:px-7 cursor-pointer flex items-center`;return o===t&&(s+=` bg-neutral-100`),V(`a`,{"aria-selected":o===t,className:s,href:a,id:Yt(o),role:`option`,tabIndex:-1,target:`_top`,onMouseEnter:()=>{n(o)},children:[V(fn,{avatar:i,name:r}),V(`div`,{className:`text-[1.65rem] font-medium leading-tight text-neutral-900 truncate`,children:r})]})}function fn({name:e,avatar:t}){let n=t?.length,r=e.charAt(0);return n?V(`img`,{alt:``,className:`rounded-full bg-neutral-300 w-7 h-7 me-2 object-cover`,src:t}):V(`div`,{"aria-hidden":`true`,className:`rounded-full bg-neutral-200 w-7 h-7 me-2 flex items-center justify-center font-bold`,children:V(`span`,{className:`text-neutral-400`,children:r})})}function pn({authors:e,selectedResult:t,setSelectedResult:n}){let{t:r}=B();if(!e?.length)return null;let i=e.map(e=>V(dn,{author:e,selectedResult:t,setSelectedResult:n},e.name));return V(`div`,{"aria-labelledby":`sodo-search-authors-label`,className:`border-t border-neutral-200 py-3 px-4 sm:px-7`,role:`group`,children:[V(`div`,{className:`uppercase text-xs text-neutral-400 font-semibold mb-1 tracking-wide`,id:`sodo-search-authors-label`,role:`presentation`,children:r(`Authors`)}),i]})}function mn({view:e,selectedResult:t,setSelectedResult:n}){return V(`div`,{className:`overflow-y-auto max-h-[calc(100vh-172px)] sm:max-h-[70vh] -mt-[1px]`,children:[V(`div`,{"aria-labelledby":qt,id:Jt,role:`listbox`,children:[V(pn,{authors:e.authors,selectedResult:t,setSelectedResult:n}),V(nn,{selectedResult:t,setSelectedResult:n,tags:e.tags}),V(un,{hasMore:e.hasMorePosts,posts:e.posts,selectedResult:t,setSelectedResult:n})]}),e.hasMorePosts&&V(`div`,{className:`px-4 sm:px-7 pb-3`,children:V(ln,{onShowMore:e.showMorePosts})})]})}function hn(){let{t:e}=B();return V(`div`,{className:`py-4 px-7`,children:V(`p`,{className:`text-[1.65rem] text-neutral-400 leading-normal`,children:e(`No matches found`)})})}function gn(e,t){let n=[...t.querySelectorAll(`input, button`)].filter(e=>e.getClientRects().length>0);if(!n.length)return;let r=n.indexOf(t.ownerDocument.activeElement);(r===-1||(e.shiftKey?r===0:r===n.length-1))&&(e.preventDefault(),n[e.shiftKey?n.length-1:0].focus())}function _n(){let{closePopup:e,indexComplete:t,searchValue:n,t:r}=B(),i=Xt(),a=Te(null),[o,s]=xe({results:i,selectedId:null,maxPosts:Ht}),c=o.results===i?o:{results:i,selectedId:null,maxPosts:Ht},l=i.posts.slice(0,c.maxPosts+1),u=[...i.authors,...i.tags,...l],d=u.some(e=>e.id===c.selectedId)?c.selectedId:u[0]?.id??null,f=e=>{s({...c,selectedId:e})},p={authors:i.authors,tags:i.tags,posts:l,hasMorePosts:c.maxPosts<i.posts.length,showMorePosts:()=>{s({...c,maxPosts:c.maxPosts+Ut})}};return we(()=>{let e=a.current;if(!e)return;let t=e.ownerDocument,n=t=>{if(t.isComposing||t.keyCode===229)return;if(t.key===`Tab`){gn(t,e);return}let n=t.target,r=u.findIndex(e=>e.id===d);if(t.key===`ArrowUp`||t.key===`ArrowDown`){n.tagName===`INPUT`&&t.preventDefault();let e=u[r+(t.key===`ArrowDown`?1:-1)];e&&f(e.id)}else t.key===`Enter`&&!n.closest?.(`a, button`)&&u[r]&&(window.location.href=u[r].url)};return t.addEventListener(`keydown`,n),()=>{t.removeEventListener(`keydown`,n)}}),V(`div`,{className:`h-screen w-screen pt-20 antialiased z-50 relative ghost-display`,onClick:t=>{t.target===t.currentTarget&&(t.preventDefault(),e())},children:V(`div`,{ref:a,"aria-label":r(`Search posts, tags and authors`),"aria-modal":`true`,className:`bg-white w-full max-w-[95vw] sm:max-w-lg rounded-lg shadow-xl m-auto relative translate-z-0 animate-popup`,role:`dialog`,children:[V(Zt,{allResults:u,selectedResult:d}),u.length>0&&V(mn,{selectedResult:d,setSelectedResult:f,view:p}),V(`div`,{role:`status`,children:t&&!u.length&&n&&V(hn,{})})]})})}function vn({stylesUrl:e}){return V(C,{children:[e&&V(`link`,{href:e,rel:`stylesheet`}),V(`style`,{dangerouslySetInnerHTML:{__html:Kt}}),V(`meta`,{content:`width=device-width, initial-scale=1, maximum-scale=1`,name:`viewport`})]})}function yn(){let{closePopup:e,dir:t,stylesUrl:n,t:r}=B();return V(`div`,{className:`gh-root-frame`,style:Wt,children:V(ze,{dir:t,head:V(vn,{stylesUrl:n}),style:Gt,title:r(`Search posts, tags and authors`),children:[V(`div`,{className:`absolute top-0 bottom-0 left-0 right-0 block backdrop-blur-[2px] animate-fadein z-0 bg-gradient-to-br from-[rgba(0,0,0,0.2)] to-[rgba(0,0,0,0.1)]`,onClick:t=>{t.preventDefault(),t.target===t.currentTarget&&e()}}),V(_n,{})]})})}var bn={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},xn={Authors:`الكتّاب`,Cancel:`إلغاء`,"Clear search":``,"No matches found":`لا يوجد نتائج مطابقة`,Posts:`منشورات`,"Search posts, tags and authors":`قم بالبحث عن المنشورات، الوسوم و الكتّاب`,"Show more results":`اظهر المزيد من النتائج`,Tags:`الوسوم`},Sn={Authors:`Müəlliflər`,Cancel:`Ləğv et`,"Clear search":``,"No matches found":`Uyğunluq tapılmadı`,Posts:`Yazılar`,"Search posts, tags and authors":`Yazılar, etiketlər və müəlliflər üzrə axtarın`,"Show more results":`Daha çox nəticə göstər`,Tags:`Etiketlər`},Cn={Authors:`Автори`,Cancel:`Отказ`,"Clear search":``,"No matches found":`Няма съвпадения`,Posts:`Публикации`,"Search posts, tags and authors":`Търсене в публикации, етикети и автори`,"Show more results":`Още резултати`,Tags:`Етикети`},wn={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Tn={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},En={Authors:`Autors`,Cancel:`Cancel·la`,"Clear search":``,"No matches found":`No s'ha trobat cap resultat`,Posts:`Articles`,"Search posts, tags and authors":`Cerca articles, etiquetes i autors`,"Show more results":`Mostra més resultats`,Tags:`Etiquetes`},Dn={Authors:`Autoři`,Cancel:`Zrušit`,"Clear search":``,"No matches found":`Nenalezeno`,Posts:`Články`,"Search posts, tags and authors":`Prohledat články, štítky a autory`,"Show more results":`Zobrazit více výsledků`,Tags:`Štítky`},On={Authors:`Forfattere`,Cancel:`Annuller`,"Clear search":``,"No matches found":`Ingen resultater fundet`,Posts:`Indlæg`,"Search posts, tags and authors":`Søg i indlæg, tags og forfattere`,"Show more results":`Vis flere resultater`,Tags:`Tags`},kn={Authors:`Autor*innen`,Cancel:`Abbrechen`,"Clear search":``,"No matches found":`Keine Treffer gefunden`,Posts:`Posts`,"Search posts, tags and authors":`Posts, Tags und Autor*innen durchsuchen`,"Show more results":`Mehr Ergebnisse anzeigen`,Tags:`Tags`},An={Authors:`Autoren`,Cancel:`Abbrechen`,"Clear search":``,"No matches found":`Keine Treffer gefunden`,Posts:`Beiträge`,"Search posts, tags and authors":`Nach Posts, Tags und Autoren suchen`,"Show more results":`Mehr Ergebnisse anzeigen`,Tags:`Tags`},jn={Authors:`ΣΥΓΓΡΑΦΕΙΣ`,Cancel:`Ακύρωση`,"Clear search":``,"No matches found":`Δεν βρέθηκαν αποτελέσματα`,Posts:`ΑΝΑΡΤΗΣΕΙΣ`,"Search posts, tags and authors":`Αναζήτηση αναρτήσεων, ετικετών και συγγραφέων`,"Show more results":`Εμφάνιση περισσότερων αποτελεσμάτων`,Tags:`ΕΤΙΚΕΤΕΣ`},Mn={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Nn={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Pn={Authors:`Autores`,Cancel:`Cancelar`,"Clear search":``,"No matches found":`No se encontraron resultados`,Posts:`Publicaciones`,"Search posts, tags and authors":`Buscar publicaciones, etiquetas y autores`,"Show more results":`Mostrar más resultados`,Tags:`Etiquetas`},Fn={Authors:`Autorid`,Cancel:`Tühista`,"Clear search":``,"No matches found":`Vasteid ei leitud`,Posts:`Postitused`,"Search posts, tags and authors":`Otsi postitusi, silte ja autoreid`,"Show more results":`Näita rohkem tulemusi`,Tags:`Sildid`},In={Authors:`Autoreak`,Cancel:`Utzi`,"Clear search":``,"No matches found":`Ez da bat datorren ezer topatu`,Posts:`Artikuluak`,"Search posts, tags and authors":`Bilatu artikuluak, etiketak eta autoreak`,"Show more results":`Erakutsi emaitza gehiago`,Tags:`Etiketak`},Ln={Authors:`نویسندگان`,Cancel:`لغو`,"Clear search":``,"No matches found":`موردی یافت نشد`,Posts:`نوشته‌ها`,"Search posts, tags and authors":`جست‌وجوی نوشته‌ها، برچسب‌ها و نویسندگان`,"Show more results":`نمایش نتایج بیشتر`,Tags:`برچسب‌ها`},Rn={Authors:`Kirjoittajat`,Cancel:`Peruuta`,"Clear search":``,"No matches found":`Ei hakutuloksia`,Posts:`Kirjoitukset`,"Search posts, tags and authors":`Etsi kirjoituksia, tunnisteita ja kirjoittajia`,"Show more results":`Näytä enemmän tuloksia`,Tags:`Tunnisteet`},zn={Authors:`Auteurs`,Cancel:`Annuler`,"Clear search":``,"No matches found":`Aucun résultat trouvé`,Posts:`Articles`,"Search posts, tags and authors":`Rechercher des articles, des catégories et des auteurs`,"Show more results":`Plus de résultats`,Tags:`Catégories`},Bn={Authors:`Ùghdaran`,Cancel:`Sguir dheth`,"Clear search":``,"No matches found":`Cha deach dad a lorg a fhreagras ris na lorg thu`,Posts:`Postaichean`,"Search posts, tags and authors":`Lorg sna postaichean, tagaichean agus ùghdaran`,"Show more results":`Seall barrachd thoraidhean`,Tags:`Tagaichean`},Vn={Authors:`מחברים`,Cancel:`ביטול`,"Clear search":``,"No matches found":`לא נמצאו התאמות`,Posts:`פוסטים`,"Search posts, tags and authors":`חיפוש פוסטים, תגיות ומחברים`,"Show more results":`הצגת תוצאות נוספות`,Tags:`תגיות`},Hn={Authors:`लेखक`,Cancel:`रद्द करें`,"Clear search":``,"No matches found":`कोई मैच नहीं मिला`,Posts:`पोस्ट`,"Search posts, tags and authors":`पोस्ट, टैग और लेखक की तलाश करें`,"Show more results":`और परिणाम दिखाएं`,Tags:`टैग`},Un={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Wn={Authors:`Szerzők`,Cancel:`Mégse`,"Clear search":``,"No matches found":`Nincs találat`,Posts:`Bejegyzések`,"Search posts, tags and authors":`Keresés a bejegyzések, a címkék és a szerzők között`,"Show more results":`További találatok megjelenítése`,Tags:`Címkék`},Gn={Authors:`Penulis`,Cancel:`Batalkan`,"Clear search":``,"No matches found":`Tidak ada hasil yang ditemukan`,Posts:`Postingan`,"Search posts, tags and authors":`Cari postingan, tag, dan penulis`,"Show more results":`Tampilkan lebih banyak hasil`,Tags:`Tag`},Kn={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},qn={Authors:`Autori`,Cancel:`Annulla`,"Clear search":``,"No matches found":`Nessun risultato trovato`,Posts:`Articoli`,"Search posts, tags and authors":`Cerca articoli, tag e autori`,"Show more results":`Mostra più risultati`,Tags:`Tag`},Jn={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Yn={Authors:`작성자`,Cancel:`취소`,"Clear search":``,"No matches found":`일치하는 결과가 없어요`,Posts:`게시물`,"Search posts, tags and authors":`게시물, 태그, 작성자 검색`,"Show more results":`더 많은 결과 보기`,Tags:`태그`},Xn={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Zn={Authors:`Autoriai`,Cancel:`Atšaukti`,"Clear search":``,"No matches found":`Atitikmenų nerasta`,Posts:`Įrašai`,"Search posts, tags and authors":`Ieškoti įrašų, žymų ir autorių`,"Show more results":`Rodyti daugiau rezultatų`,Tags:`Žymos`},Qn={Authors:`Autori`,Cancel:`Atcelt`,"Clear search":``,"No matches found":`Nav atrasta neviena atbilstība`,Posts:`Ziņas`,"Search posts, tags and authors":`Meklēt ziņas, atzīmes un autorus`,"Show more results":`Rādīt vairāk rezultātu`,Tags:`Tagi`},$n={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},er={Authors:`Нийтлэгчид`,Cancel:`Цуцлах`,"Clear search":``,"No matches found":`Тохирох хайлтын үр дүн олдсонгүй`,Posts:`Нийтлэлүүд`,"Search posts, tags and authors":`Нийтлэл, ангилал, нийтлэгчдээр хайх`,"Show more results":`Илүү олон үр дүн харуулах`,Tags:`Ангилалууд`},tr={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},nr={Authors:`Forfattere`,Cancel:`Avbryt`,"Clear search":``,"No matches found":`Ingen treff funnet`,Posts:`Innlegg`,"Search posts, tags and authors":`Søk i innlegg, etiketter og forfattere`,"Show more results":`Vis flere resultater`,Tags:`Etiketter`},rr={Authors:`लेखकहरू`,Cancel:`रद्द गर्नुहोस्`,"Clear search":``,"No matches found":`कुनै परिणाम भेटिएन`,Posts:`पोस्टहरू`,"Search posts, tags and authors":`पोस्टहरू, ट्यागहरू र लेखकहरू खोज्नुहोस्`,"Show more results":`थप परिणामहरू देखाउनुहोस्`,Tags:`ट्यागहरू`},ir={Authors:`Auteurs`,Cancel:`Annuleren`,"Clear search":``,"No matches found":`Geen resultaten gevonden`,Posts:`Berichten`,"Search posts, tags and authors":`Zoek berichten, tags en auteurs`,"Show more results":`Meer resultaten weergeven`,Tags:`Tags`},ar={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},or={Authors:`ਲੇਖਕ`,Cancel:`ਰੱਦ ਕਰੋ`,"Clear search":``,"No matches found":`ਕੋਈ ਮੇਲ ਨਹੀਂ ਮਿਲਿਆ`,Posts:`ਪੋਸਟਾਂ`,"Search posts, tags and authors":`ਪੋਸਟਾਂ, ਟੈਗ ਅਤੇ ਲੇਖਕ ਖੋਜੋ`,"Show more results":`ਹੋਰ ਨਤੀਜੇ ਦਿਖਾਓ`,Tags:`ਟੈਗ`},sr={Authors:`Autorzy`,Cancel:`Anuluj`,"Clear search":``,"No matches found":`Nie znaleziono dopasowań`,Posts:`Posty`,"Search posts, tags and authors":`Szukaj postów, tagów lub autorów`,"Show more results":`Pokaż więcej wyników`,Tags:`Tagi`},cr={Authors:`Autores`,Cancel:`Cancelar`,"Clear search":``,"No matches found":`Nenhum resultado encontrado`,Posts:`Publicações`,"Search posts, tags and authors":`Procurar publicações, marcadores e autores`,"Show more results":`Mostrar mais resultados`,Tags:`Marcadores`},lr={Authors:`Autores`,Cancel:`Cancelar`,"Clear search":``,"No matches found":`Nenhum resultado encontrado`,Posts:`Publicações`,"Search posts, tags and authors":`Buscar posts, tags e autores`,"Show more results":`Mostrar mais resultados`,Tags:`Tags`},ur={Authors:`Autori`,Cancel:`Anulează`,"Clear search":``,"No matches found":`Nu s-au găsit rezultate`,Posts:`Postări`,"Search posts, tags and authors":`Caută postări, etichete și autori`,"Show more results":`Afișează mai multe rezultate`,Tags:`Etichete`},dr={Authors:`Авторы`,Cancel:`Отмена`,"Clear search":``,"No matches found":`Совпадений не найдено`,Posts:`Записи`,"Search posts, tags and authors":`Поиск по записям, тегам и авторам`,"Show more results":`Показать больше результатов`,Tags:`Теги`},fr={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},pr={Authors:`Autori`,Cancel:`Zrušiť`,"Clear search":``,"No matches found":`Nenašli sa žiadne výsledky`,Posts:`Príspevky`,"Search posts, tags and authors":`Vyhľadajte príspevky, tagy a autorov`,"Show more results":`Zobraziť viac výsledkov`,Tags:`Tagy`},mr={Authors:`Avtorji`,Cancel:`Prekliči`,"Clear search":``,"No matches found":`Ni najdenih zadetkov`,Posts:`Članki`,"Search posts, tags and authors":`Iščite članke, oznake in avtorje`,"Show more results":`Prikaži več rezultatov`,Tags:`Oznake`},hr={Authors:`Autorët`,Cancel:`Anulo`,"Clear search":``,"No matches found":`Nuk u gjet asnjë rezultat`,Posts:`Postimet`,"Search posts, tags and authors":`Kërko postime, etiketa dhe autorë`,"Show more results":`Shfaq më shumë rezultate`,Tags:`Etiketat`},gr={Authors:`Autori`,Cancel:`Otkažite`,"Clear search":``,"No matches found":`Nema rezultata`,Posts:`Objave`,"Search posts, tags and authors":`Pretražite objave, tag-ove i autore`,"Show more results":`Prikažite više rezultata`,Tags:`Tag-ovi`},_r={Authors:`Аутори`,Cancel:`Откажите`,"Clear search":``,"No matches found":`Нема резултата`,Posts:`Објаве`,"Search posts, tags and authors":`Претражите објаве, tag-ове и ауторе`,"Show more results":`Прикажите више резултата`,Tags:`Tag-ови`},vr={Authors:`Författare`,Cancel:`Avbryt`,"Clear search":``,"No matches found":`Inga träffar hittade`,Posts:`Inlägg`,"Search posts, tags and authors":`Sök inlägg, taggar och författare`,"Show more results":`Visa fler resultat`,Tags:`Taggar`},yr={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},br={Authors:`ஆசிரியர்கள்`,Cancel:`ரத்து செய்`,"Clear search":``,"No matches found":`பொருத்தங்கள் எதுவும் இல்லை`,Posts:`பதிவுகள்`,"Search posts, tags and authors":`பதிவுகள், குறிச்சொற்கள் மற்றும் ஆசிரியர்களைத் தேடுங்கள்`,"Show more results":`மேலும் முடிவுகளைக் காட்டு`,Tags:`குறிச்சொற்கள்`},xr={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Sr={Authors:`Yazarlar`,Cancel:`İptal`,"Clear search":``,"No matches found":`Eşleşme bulunamadı`,Posts:`Yazılar`,"Search posts, tags and authors":`Yazıları, etiketleri ve yazarları ara`,"Show more results":`Daha fazla sonuç göster`,Tags:`Etiketler`},Cr={Authors:`Автори`,Cancel:`Скасувати`,"Clear search":``,"No matches found":`Збігів не знайдено`,Posts:`Публікації`,"Search posts, tags and authors":`Шукайте публікацій, теги та авторів`,"Show more results":`Показати більше результатів`,Tags:`Теги`},wr={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Tr={Authors:``,Cancel:``,"Clear search":``,"No matches found":``,Posts:``,"Search posts, tags and authors":``,"Show more results":``,Tags:``},Er={Authors:`Tác giả`,Cancel:`Hủy`,"Clear search":``,"No matches found":`Không tìm thấy`,Posts:`Bài viết`,"Search posts, tags and authors":`Tìm bài viết, thẻ và tác giả`,"Show more results":`Xem thêm kết quả`,Tags:`Thẻ`},Dr={Authors:`作者`,Cancel:`取消`,"Clear search":``,"No matches found":`未找到匹配项`,Posts:`文章`,"Search posts, tags and authors":`搜索文章、标签和作者`,"Show more results":`显示更多结果`,Tags:`标签`},Or={Authors:`作者`,Cancel:`取消`,"Clear search":``,"No matches found":`無相符結果`,Posts:`文章`,"Search posts, tags and authors":`搜尋文章、標籤與作者`,"Show more results":`更多結果`,Tags:`標籤`},Z=e=>typeof e==`string`,kr=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Ar=e=>e==null?``:``+e,jr=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Mr=/###/g,Nr=e=>e&&e.indexOf(`###`)>-1?e.replace(Mr,`.`):e,Pr=e=>!e||Z(e),Fr=(e,t,n)=>{let r=Z(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Pr(e))return{};let t=Nr(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Pr(e)?{}:{obj:e,k:Nr(r[i])}},Ir=(e,t,n)=>{let{obj:r,k:i}=Fr(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Fr(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Fr(e,o,Object),s&&s.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Lr=(e,t,n,r)=>{let{obj:i,k:a}=Fr(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Rr=(e,t)=>{let{obj:n,k:r}=Fr(e,t);if(n)return n[r]},zr=(e,t,n)=>{let r=Rr(e,n);return r===void 0?Rr(t,n):r},Br=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?Z(e[r])||e[r]instanceof String||Z(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Br(e[r],t[r],n):e[r]=t[r]);return e},Vr=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Hr={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},Ur=e=>Z(e)?e.replace(/[&<>"'\/]/g,e=>Hr[e]):e,Wr=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},Gr=[` `,`,`,`?`,`!`,`;`],Kr=new Wr(20),qr=(e,t,n)=>{t||=``,n||=``;let r=Gr.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=Kr.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Jr=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`.`;if(!e)return;if(e[t])return e[t];let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Yr=e=>e&&e.replace(`_`,`-`),Xr={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Q=new class e{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||Xr,this.options=t,this.debug=t.debug}log(){var e=[...arguments];return this.forward(e,`log`,``,!0)}warn(){var e=[...arguments];return this.forward(e,`warn`,``,!0)}error(){var e=[...arguments];return this.forward(e,`error`,``)}deprecate(){var e=[...arguments];return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(Z(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Zr=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){var t=[...arguments].slice(1);this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[n,r]=e;for(let e=0;e<r;e++)n(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(n=>{let[r,i]=n;for(let n=0;n<i;n++)r.apply(r,[e,...t])})}},Qr=class extends Zr{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):Z(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Rr(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!Z(n)?s:Jr(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Ir(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let r in n)(Z(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Rr(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Br(s,n,i):s={...s,...n},Ir(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.options.compatibilityAPI===`v1`?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},$r={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}},ei={},ti=class e extends Zr{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),jr([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=Q.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;let n=this.resolve(e,t);return n&&n.res!==void 0}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!qr(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:Z(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:Z(i)?[i]:i}}translate(t,n,r){if(typeof n!=`object`&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n==`object`&&(n={...n}),n||={},t==null)return``;Array.isArray(t)||(t=[String(t)]);let i=n.returnDetails===void 0?this.options.returnDetails:n.returnDetails,a=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()===`cimode`){if(u){let e=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${e}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:o}let d=this.resolve(t,n),f=d&&d.res,p=d&&d.usedKey||o,m=d&&d.exactUsedKey||o,h=Object.prototype.toString.apply(f),g=[`[object Number]`,`[object Function]`,`[object RegExp]`],_=n.joinArrays===void 0?this.options.joinArrays:n.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!Z(f)&&typeof f!=`boolean`&&typeof f!=`number`;if(v&&f&&y&&g.indexOf(h)<0&&!(Z(_)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(a){let e=Array.isArray(f),t=e?[]:{},r=e?m:p;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${a}${e}`;t[e]=this.translate(i,{...n,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=f[e])}f=t}}else if(v&&Z(_)&&Array.isArray(f))f=f.join(_),f&&=this.extendTranslation(f,t,n,r);else{let i=!1,s=!1,u=n.count!==void 0&&!Z(n.count),p=e.hasDefaultValue(n),m=u?this.pluralResolver.getSuffix(l,n.count,n):``,h=n.ordinal&&u?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):``,g=u&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),_=g&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${m}`]||n[`defaultValue${h}`]||n.defaultValue;!this.isValidLookup(f)&&p&&(i=!0,f=_),this.isValidLookup(f)||(s=!0,f=o);let v=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:f,y=p&&_!==f&&this.options.updateMissing;if(s||i||y){if(this.logger.log(y?`updateKey`:`missingKey`,l,c,o,y?_:f),a){let e=this.resolve(o,{...n,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let r=(e,t,r)=>{let i=p&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,i,y,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,t,i,y,n),this.emit(`missingKey`,e,c,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);g&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],o+t,n[`defaultValue${t}`]||_)})}):r(e,o,_))}f=this.extendTranslation(f,t,n,d,r),s&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${o}`),(s||i)&&this.options.parseMissingKeyHandler&&(f=this.options.compatibilityAPI===`v1`?this.options.parseMissingKeyHandler(f):this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,i?f:void 0))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let o=Z(e)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),s;if(o){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let c=n.replace&&!Z(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),o){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;s<r&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!==`v1`&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){var e=[...arguments];return i&&i[0]===e[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):a.translate(...e,t)},n)),n.interpolation&&this.interpolator.reset()}let o=n.postProcess||this.options.postProcess,s=Z(o)?[o]:o;return e!=null&&s&&s.length&&n.applyPostProcessor!==!1&&(e=$r.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,r,i,a,o;return Z(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!Z(t.count),d=u&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),f=t.context!==void 0&&(Z(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!ei[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(ei[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(c+e),t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator}${t.context}`;o.push(r),u&&(o.push(r+e),t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!Z(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},ni=e=>e.charAt(0).toUpperCase()+e.slice(1),ri=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Q.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Yr(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Yr(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(Z(e)&&e.indexOf(`-`)>-1){if(typeof Intl<`u`&&Intl.getCanonicalLocales!==void 0)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch{}let t=[`hans`,`hant`,`latn`,`cyrl`,`cans`,`mong`,`arab`],n=e.split(`-`);return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ni(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ni(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ni(n[2].toLowerCase()))),n.join(`-`)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(e.indexOf(`-`)<0&&n.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&n.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===n||e.indexOf(n)===0&&n.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),Z(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return Z(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):Z(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},ii=[{lngs:[`ach`,`ak`,`am`,`arn`,`br`,`fil`,`gun`,`ln`,`mfe`,`mg`,`mi`,`oc`,`pt`,`pt-BR`,`tg`,`tl`,`ti`,`tr`,`uz`,`wa`],nr:[1,2],fc:1},{lngs:`af.an.ast.az.bg.bn.ca.da.de.dev.el.en.eo.es.et.eu.fi.fo.fur.fy.gl.gu.ha.hi.hu.hy.ia.it.kk.kn.ku.lb.mai.ml.mn.mr.nah.nap.nb.ne.nl.nn.no.nso.pa.pap.pms.ps.pt-PT.rm.sco.se.si.so.son.sq.sv.sw.ta.te.tk.ur.yo`.split(`.`),nr:[1,2],fc:2},{lngs:[`ay`,`bo`,`cgg`,`fa`,`ht`,`id`,`ja`,`jbo`,`ka`,`km`,`ko`,`ky`,`lo`,`ms`,`sah`,`su`,`th`,`tt`,`ug`,`vi`,`wo`,`zh`],nr:[1],fc:3},{lngs:[`be`,`bs`,`cnr`,`dz`,`hr`,`ru`,`sr`,`uk`],nr:[1,2,5],fc:4},{lngs:[`ar`],nr:[0,1,2,3,11,100],fc:5},{lngs:[`cs`,`sk`],nr:[1,2,5],fc:6},{lngs:[`csb`,`pl`],nr:[1,2,5],fc:7},{lngs:[`cy`],nr:[1,2,3,8],fc:8},{lngs:[`fr`],nr:[1,2],fc:9},{lngs:[`ga`],nr:[1,2,3,7,11],fc:10},{lngs:[`gd`],nr:[1,2,3,20],fc:11},{lngs:[`is`],nr:[1,2],fc:12},{lngs:[`jv`],nr:[0,1],fc:13},{lngs:[`kw`],nr:[1,2,3,4],fc:14},{lngs:[`lt`],nr:[1,2,10],fc:15},{lngs:[`lv`],nr:[1,2,0],fc:16},{lngs:[`mk`],nr:[1,2],fc:17},{lngs:[`mnk`],nr:[0,1,2],fc:18},{lngs:[`mt`],nr:[1,2,11,20],fc:19},{lngs:[`or`],nr:[2,1],fc:2},{lngs:[`ro`],nr:[1,2,20],fc:20},{lngs:[`sl`],nr:[5,1,2,3],fc:21},{lngs:[`he`,`iw`],nr:[1,2,20,21],fc:22}],ai={1:e=>Number(e>1),2:e=>Number(e!=1),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(e==1?0:e>=2&&e<=4?1:2),7:e=>Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(e==1?0:e==2?1:e!=8&&e!=11?2:3),9:e=>Number(e>=2),10:e=>Number(e==1?0:e==2?1:e<7?2:e<11?3:4),11:e=>Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(e!==0),14:e=>Number(e==1?0:e==2?1:e==3?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:e===0?2:1),17:e=>Number(e==1||e%10==1&&e%100!=11?0:1),18:e=>Number(e==0?0:e==1?1:2),19:e=>Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(e==1?0:e==0||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)},oi=[`v1`,`v2`,`v3`],si=[`v4`],ci={zero:0,one:1,two:2,few:3,many:4,other:5},li=()=>{let e={};return ii.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:ai[t.fc]}})}),e},ui=class{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Q.create(`pluralResolver`),(!this.options.compatibilityJSON||si.includes(this.options.compatibilityJSON))&&(typeof Intl>`u`||!Intl.PluralRules)&&(this.options.compatibilityJSON=`v3`,this.logger.error(`Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.`)),this.rules=li(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let n=Yr(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!e.match(/-|_/))return;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>ci[e]-ci[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),``)}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r=`plural`:r===1&&(r=``));let i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON===`v1`?r===1?``:typeof r==`number`?`_plural_${r.toString()}`:i():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!oi.includes(this.options.compatibilityJSON)}},di=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`.`,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=zr(e,t,n);return!a&&i&&Z(n)&&(a=Jr(e,n,r),a===void 0&&(a=Jr(t,n,r))),a},fi=e=>e.replace(/\$/g,`$$$$`),pi=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Q.create(`interpolator`),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Ur:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?Vr(i):a||`{{`,this.suffix=o?Vr(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?Vr(d):f||Vr(`$t(`),this.nestingSuffix=p?Vr(p):m||Vr(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=di(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(di(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>fi(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?fi(this.escape(e)):fi(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=Z(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!Z(a)&&!this.useRawValueToEscape&&(a=Ar(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!Z(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,c=!0}if(i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!Z(i))return i;Z(i)||(i=Ar(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),c&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},mi=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},hi=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Yr(r),i),t[o]=s),s(n)}},gi=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Q.create(`formatter`),this.options=e,this.formats={number:hi((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:hi((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:hi((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:hi((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:hi((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||`,`}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=hi(t)}format(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=mi(t);if(this.formats[i]){let t=e;try{let o=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},_i=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},vi=class extends Zr{constructor(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Q.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Lr(n.loaded,[i],a),_i(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();Z(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Z(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend&&this.backend.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},yi=()=>({debug:!1,initImmediate:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),Z(e[1])&&(t.defaultValue=e[1]),Z(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0}}),bi=e=>(Z(e.ns)&&(e.ns=[e.ns]),Z(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Z(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),xi=()=>{},Si=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Ci=class e extends Zr{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=bi(e),this.services={},this.logger=Q,this.modules={external:[]},Si(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t==`function`&&(n=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(Z(t.ns)?t.defaultNS=t.ns:t.ns.indexOf(`translation`)<0&&(t.defaultNS=t.ns[0]));let r=yi();this.options={...r,...this.options,...bi(t)},this.options.compatibilityAPI!==`v1`&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let i=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?Q.init(i(this.modules.logger),this.options):Q.init(null,this.options);let t;this.modules.formatter?t=this.modules.formatter:typeof Intl<`u`&&(t=gi);let n=new ri(this.options);this.store=new Qr(this.options.resources,this.options);let a=this.services;a.logger=Q,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new ui(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=i(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new pi(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new vi(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new ti(this.services,this.options),this.translator.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||=xi,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=kr(),o=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),a.resolve(t),n(e,t)};if(this.languages&&this.options.compatibilityAPI!==`v1`&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),a}loadResources(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xi,n=Z(e)?e:this.language;if(typeof e==`function`&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return t();let e=[],r=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){let r=kr();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=xi,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&$r.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=kr();this.emit(`languageChanging`,e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,a)=>{a?(i(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},o=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=Z(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{a(e,n)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,n){var r=this;let i=function(e,t){let a;if(typeof t!=`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([e,t].concat(o))}else a={...t};a.lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs,a.ns=a.ns||i.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||i.keyPrefix);let s=r.options.keySeparator||`.`,c;return c=a.keyPrefix&&Array.isArray(e)?e.map(e=>`${a.keyPrefix}${s}${e}`):a.keyPrefix?`${a.keyPrefix}${s}${e}`:e,r.t(c,a)};return Z(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=kr();return this.options.ns?(Z(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=kr();Z(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return`rtl`;let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services&&this.services.languageUtils||new ri(yi());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xi,r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Qr(this.store.data,i),a.services.resourceStore=a.store),a.translator=new ti(a.services,i),a.translator.on(`*`,function(e){var t=[...arguments].slice(1);a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},$=Ci.createInstance();$.createInstance=Ci.createInstance,$.createInstance,$.dir,$.init,$.loadResources,$.reloadResources,$.use,$.changeLanguage,$.getFixedT,$.t,$.exists,$.setDefaultNamespace,$.hasLoadedNamespace,$.loadNamespaces,$.loadLanguages;var wi=[{code:`af`,label:`Afrikaans`},{code:`ar`,label:`Arabic`},{code:`az`,label:`Azerbaijani`},{code:`bg`,label:`Bulgarian`},{code:`bn`,label:`Bengali`},{code:`bs`,label:`Bosnian`},{code:`ca`,label:`Catalan`},{code:`cs`,label:`Czech`},{code:`da`,label:`Danish`},{code:`de`,label:`German`},{code:`de-CH`,label:`Swiss German`},{code:`el`,label:`Greek`},{code:`en`,label:`English`},{code:`eo`,label:`Esperanto`},{code:`es`,label:`Spanish`},{code:`et`,label:`Estonian`},{code:`eu`,label:`Basque`},{code:`fa`,label:`Persian/Farsi`},{code:`fi`,label:`Finnish`},{code:`fr`,label:`French`},{code:`gd`,label:`Gaelic (Scottish)`},{code:`he`,label:`Hebrew`},{code:`hi`,label:`Hindi`},{code:`hr`,label:`Croatian`},{code:`hu`,label:`Hungarian`},{code:`id`,label:`Indonesian`},{code:`is`,label:`Icelandic`},{code:`it`,label:`Italian`},{code:`ja`,label:`Japanese`},{code:`ko`,label:`Korean`},{code:`kz`,label:`Kazakh`},{code:`lt`,label:`Lithuanian`},{code:`lv`,label:`Latvian`},{code:`mk`,label:`Macedonian`},{code:`mn`,label:`Mongolian`},{code:`ms`,label:`Malay`},{code:`nb`,label:`Norwegian Bokmål`},{code:`ne`,label:`Nepali`},{code:`nl`,label:`Dutch`},{code:`nn`,label:`Norwegian Nynorsk`},{code:`pa`,label:`Punjabi`},{code:`pl`,label:`Polish`},{code:`pt`,label:`Portuguese`},{code:`pt-BR`,label:`Portuguese (Brazil)`},{code:`ro`,label:`Romanian`},{code:`ru`,label:`Russian`},{code:`si`,label:`Sinhala`},{code:`sk`,label:`Slovak`},{code:`sl`,label:`Slovenian`},{code:`sq`,label:`Albanian`},{code:`sr`,label:`Serbian`},{code:`sr-Cyrl`,label:`Serbian (Cyrillic)`},{code:`sv`,label:`Swedish`},{code:`sw`,label:`Swahili`},{code:`ta`,label:`Tamil`},{code:`th`,label:`Thai`},{code:`tr`,label:`Turkish`},{code:`uk`,label:`Ukrainian`},{code:`ur`,label:`Urdu`},{code:`uz`,label:`Uzbek`},{code:`vi`,label:`Vietnamese`},{code:`zh`,label:`Chinese`},{code:`zh-Hant`,label:`Traditional Chinese`}],Ti=wi.map(e=>e.code);function Ei(e){let t=e.default;return{...e,...t&&typeof t==`object`?t:{}}}function Di(e){return function(t,n){return t.reduce((t,r)=>{let i=e(r,n);return i===void 0&&(i=e(`en`,n)),t[r]={[n]:Ei(i??{})},t},{})}}function Oi({generateThemeResources:e,generateResources:t}){return(n=`en`,r=`portal`,i={})=>{let a=$.createInstance(),o={prefix:`{`,suffix:`}`};(r===`theme`||r===`portal`)&&(o.escapeValue=!1);let s=e=>{let n=a.services.languageUtils;for(let i of n.toResolveHierarchy(e))if(!(!Ti.includes(i)||a.hasResourceBundle(i,r)))for(let[e,n]of Object.entries(t([i],r)))a.addResourceBundle(e,r,n[r])},c;return r===`theme`?c=e(n,i):(c={},a.on(`languageChanging`,s)),a.init({lng:n,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:[`nb`,`en`],default:[`en`]},ns:r,defaultNS:r,interpolation:o,resources:c}),a}}function ki(e,t){let n={};for(let[t,r]of Object.entries(e)){let e=/\/locales\/([^/]+)\//.exec(t)?.[1];e&&(n[e]=r)}return Ai(n,t)}function Ai(e,t){let n=Di(t=>e[t]),r=Object.assign(Oi({generateResources:n,generateThemeResources:e=>({[e]:{theme:{}}})}),{LOCALE_DATA:wi,SUPPORTED_LOCALES:Ti,generateResources:n,namespace:t});return r.default=r,r}var ji=ki(Object.assign({"../../locales/af/search.json":bn,"../../locales/ar/search.json":xn,"../../locales/az/search.json":Sn,"../../locales/bg/search.json":Cn,"../../locales/bn/search.json":wn,"../../locales/bs/search.json":Tn,"../../locales/ca/search.json":En,"../../locales/cs/search.json":Dn,"../../locales/da/search.json":On,"../../locales/de/search.json":kn,"../../locales/de-CH/search.json":An,"../../locales/el/search.json":jn,"../../locales/en/search.json":Mn,"../../locales/eo/search.json":Nn,"../../locales/es/search.json":Pn,"../../locales/et/search.json":Fn,"../../locales/eu/search.json":In,"../../locales/fa/search.json":Ln,"../../locales/fi/search.json":Rn,"../../locales/fr/search.json":zn,"../../locales/gd/search.json":Bn,"../../locales/he/search.json":Vn,"../../locales/hi/search.json":Hn,"../../locales/hr/search.json":Un,"../../locales/hu/search.json":Wn,"../../locales/id/search.json":Gn,"../../locales/is/search.json":Kn,"../../locales/it/search.json":qn,"../../locales/ja/search.json":Jn,"../../locales/ko/search.json":Yn,"../../locales/kz/search.json":Xn,"../../locales/lt/search.json":Zn,"../../locales/lv/search.json":Qn,"../../locales/mk/search.json":$n,"../../locales/mn/search.json":er,"../../locales/ms/search.json":tr,"../../locales/nb/search.json":nr,"../../locales/ne/search.json":rr,"../../locales/nl/search.json":ir,"../../locales/nn/search.json":ar,"../../locales/pa/search.json":or,"../../locales/pl/search.json":sr,"../../locales/pt/search.json":cr,"../../locales/pt-BR/search.json":lr,"../../locales/ro/search.json":ur,"../../locales/ru/search.json":dr,"../../locales/si/search.json":fr,"../../locales/sk/search.json":pr,"../../locales/sl/search.json":mr,"../../locales/sq/search.json":hr,"../../locales/sr/search.json":gr,"../../locales/sr-Cyrl/search.json":_r,"../../locales/sv/search.json":vr,"../../locales/sw/search.json":yr,"../../locales/ta/search.json":br,"../../locales/th/search.json":xr,"../../locales/tr/search.json":Sr,"../../locales/uk/search.json":Cr,"../../locales/ur/search.json":wr,"../../locales/uz/search.json":Tr,"../../locales/vi/search.json":Er,"../../locales/zh/search.json":Dr,"../../locales/zh-Hant/search.json":Or}),`search`),{LOCALE_DATA:Mi,SUPPORTED_LOCALES:Ni,generateResources:Pi}=ji;function Fi(){let e=document.createElement(`div`);e.style.visibility=`hidden`,e.style.overflow=`scroll`,document.body.appendChild(e);let t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}var Ii=`[data-ghost-search]`;function Li(e,t){return e.key===`k`&&(e.metaKey||!t&&e.ctrlKey)}function Ri(){let[e]=window.location.hash.slice(1).split(`?`);return e===`/search`||e===`/search/`}function zi({adminUrl:e,apiKey:t,stylesUrl:n,locale:r}){let[{t:i,dir:a,searchIndex:o}]=xe(()=>{let n=ji(r||`en`,`search`),i=n.dir()||`ltr`;return{t:n.t,dir:i,searchIndex:new Vt({adminUrl:e,apiKey:t,dir:i})}}),[s,c]=xe(!1),[l,u]=xe(``),[d,f]=xe(!1),p=Te(!1),m=Te(0),h=Te(null),g=Te(null),_=De(()=>{c(!1),u(``)},[]),v=De(()=>{p.current||(p.current=!0,o.init().then(()=>{f(!0)}))},[o]);return we(()=>{m.current=Fi();let e=()=>{Ri()&&(c(!0),window.history.replaceState(``,document.title,window.location.pathname))},t=/Mac|iPhone|iPad/.test(navigator.platform),n=e=>{Li(e,t)&&document.querySelector(Ii)&&(g.current??=document.activeElement instanceof HTMLElement?document.activeElement:null,c(!0),e.preventDefault(),e.stopPropagation())},r=e=>{let t=e.target instanceof Element?e.target.closest(Ii):null;if(!t)return;g.current??=t instanceof HTMLElement?t:null,e.preventDefault(),c(!0);let n=document.createElement(`input`);n.style.opacity=`0`,n.style.position=`fixed`,n.style.top=`0`,document.body.appendChild(n),n.focus(),setTimeout(()=>{h.current?.focus(),document.body.removeChild(n)},150)},i=e=>{e.target instanceof Element&&e.target.closest(Ii)&&v()};return e(),document.addEventListener(`keydown`,n),document.addEventListener(`click`,r,!0),document.addEventListener(`pointerover`,i,!0),document.addEventListener(`focusin`,i,!0),window.addEventListener(`hashchange`,e,!1),()=>{document.removeEventListener(`keydown`,n),document.removeEventListener(`click`,r,!0),document.removeEventListener(`pointerover`,i,!0),document.removeEventListener(`focusin`,i,!0),window.removeEventListener(`hashchange`,e,!1)}},[]),we(()=>{if(!s)return;v();let e=document.body,t=``,n=``;try{t=e.style.overflow,n=window.getComputedStyle(e).getPropertyValue(`margin-right`),e.style.overflow=`hidden`,m.current&&e.scrollHeight>window.innerHeight&&(e.style.marginRight=`calc(${n} + ${m.current}px)`)}catch{}return()=>{try{e.style.overflow=t||``,!n||n===`0px`?e.style.marginRight=``:e.style.marginRight=n}catch{}g.current?.focus({preventScroll:!0}),g.current=null}},[s,v]),s?V(Ie.Provider,{value:{searchIndex:o,indexComplete:d,searchValue:l,setSearchValue:u,closePopup:_,inputRef:h,stylesUrl:n,t:i,dir:a},children:V(yn,{})}):null}var Bi=`sodo-search-root`;function Vi(){let e=document.createElement(`div`);return e.id=Bi,document.body.appendChild(e),e}function Hi(){let e=document.querySelector(`script[data-sodo-search]`);return e?{adminUrl:e.dataset.sodoSearch,apiKey:e.dataset.key,stylesUrl:e.dataset.styles,locale:e.dataset.locale||`en`}:{}}function Ui(){let{adminUrl:e,apiKey:t,stylesUrl:n,locale:r}=Hi();se(V(zi,{adminUrl:(e||window.location.origin).replace(/\/+$/,``),apiKey:t,locale:r,stylesUrl:n}),Vi())}Ui()})();