From 396b8a29082373b7715914ba3feda54f4908f54a Mon Sep 17 00:00:00 2001 From: James Denyer Date: Wed, 8 Jan 2025 14:56:30 -0800 Subject: [PATCH] adding insights to primary pulumi get-started section, rebuilding bundles --- assets/css/bundle.css | 12 +++ assets/css/marketing.css | 3 + assets/js/bundle.js | 71 +----------------- assets/js/marketing.js | 1 + content/docs/iac/get-started/_index.md | 100 ++++++++++++------------- 5 files changed, 64 insertions(+), 123 deletions(-) diff --git a/assets/css/bundle.css b/assets/css/bundle.css index 42733f856ba2..064b58b5d733 100644 --- a/assets/css/bundle.css +++ b/assets/css/bundle.css @@ -1,9 +1,21 @@ +/*!***************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./src/scss/main.scss ***! + \***************************************************************************************************************************************************************************************************************/ @import url(https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&display=swap); +/*!*******************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./src/scss/main.scss (1) ***! + \*******************************************************************************************************************************************************************************************************************/ @import url(https://unpkg.com/swiper@6.5.6/swiper-bundle.min.css); +/*!***************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/@algolia/autocomplete-theme-classic/dist/theme.min.css ***! + \***************************************************************************************************************************************************/ /*! @algolia/autocomplete-theme-classic 1.9.2 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */ :root{--aa-search-input-height:44px;--aa-input-icon-size:20px;--aa-base-unit:16;--aa-spacing-factor:1;--aa-spacing:calc(var(--aa-base-unit)*var(--aa-spacing-factor)*1px);--aa-spacing-half:calc(var(--aa-spacing)/2);--aa-panel-max-height:650px;--aa-base-z-index:9999;--aa-font-size:calc(var(--aa-base-unit)*1px);--aa-font-family:inherit;--aa-font-weight-medium:500;--aa-font-weight-semibold:600;--aa-font-weight-bold:700;--aa-icon-size:20px;--aa-icon-stroke-width:1.6;--aa-icon-color-rgb:119,119,163;--aa-icon-color-alpha:1;--aa-action-icon-size:20px;--aa-text-color-rgb:38,38,39;--aa-text-color-alpha:1;--aa-primary-color-rgb:62,52,211;--aa-primary-color-alpha:0.2;--aa-muted-color-rgb:128,126,163;--aa-muted-color-alpha:0.6;--aa-panel-border-color-rgb:128,126,163;--aa-panel-border-color-alpha:0.3;--aa-input-border-color-rgb:128,126,163;--aa-input-border-color-alpha:0.8;--aa-background-color-rgb:255,255,255;--aa-background-color-alpha:1;--aa-input-background-color-rgb:255,255,255;--aa-input-background-color-alpha:1;--aa-selected-color-rgb:179,173,214;--aa-selected-color-alpha:0.205;--aa-description-highlight-background-color-rgb:245,223,77;--aa-description-highlight-background-color-alpha:0.5;--aa-detached-media-query:(max-width:680px);--aa-detached-modal-media-query:(min-width:680px);--aa-detached-modal-max-width:680px;--aa-detached-modal-max-height:500px;--aa-overlay-color-rgb:115,114,129;--aa-overlay-color-alpha:0.4;--aa-panel-shadow:0 0 0 1px rgba(35,38,59,0.1),0 6px 16px -4px rgba(35,38,59,0.15);--aa-scrollbar-width:13px;--aa-scrollbar-track-background-color-rgb:234,234,234;--aa-scrollbar-track-background-color-alpha:1;--aa-scrollbar-thumb-background-color-rgb:var(--aa-background-color-rgb);--aa-scrollbar-thumb-background-color-alpha:1}@media (hover:none) and (pointer:coarse){:root{--aa-spacing-factor:1.2;--aa-action-icon-size:22px}}body.dark,body[data-theme=dark]{--aa-text-color-rgb:183,192,199;--aa-primary-color-rgb:146,138,255;--aa-muted-color-rgb:146,138,255;--aa-input-background-color-rgb:0,3,9;--aa-background-color-rgb:21,24,42;--aa-selected-color-rgb:146,138,255;--aa-selected-color-alpha:0.25;--aa-description-highlight-background-color-rgb:0 255 255;--aa-description-highlight-background-color-alpha:0.25;--aa-icon-color-rgb:119,119,163;--aa-panel-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--aa-scrollbar-track-background-color-rgb:44,46,64;--aa-scrollbar-thumb-background-color-rgb:var(--aa-background-color-rgb)}.aa-Autocomplete *,.aa-DetachedFormContainer *,.aa-Panel *{box-sizing:border-box}.aa-Autocomplete,.aa-DetachedFormContainer,.aa-Panel{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-family:inherit;font-family:var(--aa-font-family);font-size:calc(16 * 1px);font-size:var(--aa-font-size);font-weight:400;line-height:1em;margin:0;padding:0;text-align:left}.aa-Form{align-items:center;background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-input-background-color-rgb),var(--aa-input-background-color-alpha));border:1px solid rgba(128, 126, 163,0.8);border:1px solid rgba(var(--aa-input-border-color-rgb),var(--aa-input-border-color-alpha));border-radius:3px;display:flex;line-height:1em;margin:0;position:relative;width:100%}.aa-Form:focus-within{border-color:rgba(62, 52, 211,1);border-color:rgba(var(--aa-primary-color-rgb),1);box-shadow:rgba(62, 52, 211,0.2) 0 0 0 2px,inset rgba(62, 52, 211,0.2) 0 0 0 2px;box-shadow:rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 2px,inset rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 2px;outline:medium none currentColor}.aa-InputWrapperPrefix{align-items:center;display:flex;flex-shrink:0;height:44px;height:var(--aa-search-input-height);order:1}.aa-Label,.aa-LoadingIndicator{cursor:auto;flex-shrink:0;height:100%;padding:0;text-align:left}.aa-Label svg,.aa-LoadingIndicator svg{color:rgba(62, 52, 211,1);color:rgba(var(--aa-primary-color-rgb),1);height:auto;max-height:20px;max-height:var(--aa-input-icon-size);stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);width:20px;width:var(--aa-input-icon-size)}.aa-LoadingIndicator,.aa-SubmitButton{height:100%;padding-left:calc((16 * 1 * 1px)*0.75 - 1px);padding-left:calc(calc(16 * 1 * 1px)*0.75 - 1px);padding-left:calc(var(--aa-spacing)*0.75 - 1px);padding-right:calc((16 * 1 * 1px) / 2);padding-right:calc(calc(16 * 1 * 1px) / 2);padding-right:var(--aa-spacing-half);width:calc((16 * 1 * 1px)*1.75 + 20px - 1px);width:calc(calc(16 * 1 * 1px)*1.75 + 20px - 1px);width:calc(var(--aa-spacing)*1.75 + var(--aa-icon-size) - 1px)}@media (hover:none) and (pointer:coarse){.aa-LoadingIndicator,.aa-SubmitButton{padding-left:calc(((16 * 1 * 1px) / 2)/2 - 1px);padding-left:calc(calc(calc(16 * 1 * 1px) / 2)/2 - 1px);padding-left:calc(var(--aa-spacing-half)/2 - 1px);width:calc(20px + (16 * 1 * 1px)*1.25 - 1px);width:calc(20px + calc(16 * 1 * 1px)*1.25 - 1px);width:calc(var(--aa-icon-size) + var(--aa-spacing)*1.25 - 1px)}}.aa-SubmitButton{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;margin:0}.aa-LoadingIndicator{align-items:center;display:flex;justify-content:center}.aa-LoadingIndicator[hidden]{display:none}.aa-InputWrapper{order:3;position:relative;width:100%}.aa-Input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font:inherit;height:44px;height:var(--aa-search-input-height);padding:0;width:100%}.aa-Input::-moz-placeholder{color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));opacity:1}.aa-Input::placeholder{color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));opacity:1}.aa-Input:focus{border-color:none;box-shadow:none;outline:none}.aa-Input::-webkit-search-cancel-button,.aa-Input::-webkit-search-decoration,.aa-Input::-webkit-search-results-button,.aa-Input::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.aa-InputWrapperSuffix{align-items:center;display:flex;height:44px;height:var(--aa-search-input-height);order:4}.aa-ClearButton{align-items:center;background:none;border:0;color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));cursor:pointer;display:flex;height:100%;margin:0;padding:0 calc((16 * 1 * 1px)*0.83333 - .5px);padding:0 calc(calc(16 * 1 * 1px)*0.83333 - .5px);padding:0 calc(var(--aa-spacing)*0.83333 - .5px)}@media (hover:none) and (pointer:coarse){.aa-ClearButton{padding:0 calc((16 * 1 * 1px)*0.66667 - .5px);padding:0 calc(calc(16 * 1 * 1px)*0.66667 - .5px);padding:0 calc(var(--aa-spacing)*0.66667 - .5px)}}.aa-ClearButton:focus,.aa-ClearButton:hover{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha))}.aa-ClearButton[hidden]{display:none}.aa-ClearButton svg{stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);width:20px;width:var(--aa-icon-size)}.aa-Panel{background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));border-radius:calc((16 * 1 * 1px)/4);border-radius:calc(calc(16 * 1 * 1px)/4);border-radius:calc(var(--aa-spacing)/4);box-shadow:0 0 0 1px rgba(35, 38, 59, 0.1), 0 6px 16px -4px rgba(35, 38, 59, 0.15);box-shadow:var(--aa-panel-shadow);margin:8px 0 0;overflow:hidden;position:absolute;transition:opacity .2s ease-in,filter .2s ease-in}@media screen and (prefers-reduced-motion){.aa-Panel{transition:none}}.aa-Panel button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;margin:0;padding:0}.aa-PanelLayout{height:100%;margin:0;max-height:650px;max-height:var(--aa-panel-max-height);overflow-y:auto;padding:0;position:relative;text-align:left}.aa-PanelLayoutColumns--twoGolden{display:grid;grid-template-columns:39.2% auto;overflow:hidden;padding:0}.aa-PanelLayoutColumns--two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;padding:0}.aa-PanelLayoutColumns--three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;padding:0}.aa-Panel--stalled .aa-Source{filter:grayscale(1);opacity:.8}.aa-Panel--scrollable{margin:0;max-height:650px;max-height:var(--aa-panel-max-height);overflow-x:hidden;overflow-y:auto;padding:calc((16 * 1 * 1px) / 2);padding:calc(calc(16 * 1 * 1px) / 2);padding:var(--aa-spacing-half);scrollbar-color:rgba(255, 255, 255,1) rgba(234, 234, 234,1);scrollbar-color:rgba(var(--aa-scrollbar-thumb-background-color-rgb),var(--aa-scrollbar-thumb-background-color-alpha)) rgba(var(--aa-scrollbar-track-background-color-rgb),var(--aa-scrollbar-track-background-color-alpha));scrollbar-width:thin}.aa-Panel--scrollable::-webkit-scrollbar{width:13px;width:var(--aa-scrollbar-width)}.aa-Panel--scrollable::-webkit-scrollbar-track{background-color:rgba(234, 234, 234,1);background-color:rgba(var(--aa-scrollbar-track-background-color-rgb),var(--aa-scrollbar-track-background-color-alpha))}.aa-Panel--scrollable::-webkit-scrollbar-thumb{background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-scrollbar-thumb-background-color-rgb),var(--aa-scrollbar-thumb-background-color-alpha));border-radius:9999px;border:3px solid rgba(234, 234, 234,1);border:3px solid rgba(var(--aa-scrollbar-track-background-color-rgb),var(--aa-scrollbar-track-background-color-alpha));border-right-width:2px}.aa-Source{margin:0;padding:0;position:relative;width:100%}.aa-Source:empty{display:none}.aa-SourceNoResults{font-size:1em;margin:0;padding:calc(16 * 1 * 1px);padding:var(--aa-spacing)}.aa-List{list-style:none;margin:0}.aa-List,.aa-SourceHeader{padding:0;position:relative}.aa-SourceHeader{margin:calc((16 * 1 * 1px) / 2) .5em calc((16 * 1 * 1px) / 2) 0;margin:calc(calc(16 * 1 * 1px) / 2) .5em calc(calc(16 * 1 * 1px) / 2) 0;margin:var(--aa-spacing-half) .5em var(--aa-spacing-half) 0}.aa-SourceHeader:empty{display:none}.aa-SourceHeaderTitle{background:rgba(255, 255, 255,1);background:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));color:rgba(62, 52, 211,1);color:rgba(var(--aa-primary-color-rgb),1);display:inline-block;font-size:.8em;font-weight:600;font-weight:var(--aa-font-weight-semibold);margin:0;padding:0 calc((16 * 1 * 1px) / 2) 0 0;padding:0 calc(calc(16 * 1 * 1px) / 2) 0 0;padding:0 var(--aa-spacing-half) 0 0;position:relative;z-index:9999;z-index:var(--aa-base-z-index)}.aa-SourceHeaderLine{border-bottom:1px solid rgba(62, 52, 211,1);border-bottom:1px solid rgba(var(--aa-primary-color-rgb),1);display:block;height:2px;left:0;margin:0;opacity:.3;padding:0;position:absolute;right:0;top:calc((16 * 1 * 1px) / 2);top:calc(calc(16 * 1 * 1px) / 2);top:var(--aa-spacing-half);z-index:calc(9999 - 1);z-index:calc(var(--aa-base-z-index) - 1)}.aa-SourceFooterSeeAll{background:linear-gradient(180deg,rgba(255, 255, 255,1),rgba(128,126,163,.14));background:linear-gradient(180deg,rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha)),rgba(128,126,163,.14));border:1px solid rgba(128, 126, 163,0.6);border:1px solid rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));border-radius:5px;box-shadow:inset 0 0 2px #fff,0 2px 2px -1px rgba(76,69,88,.15);color:inherit;font-size:.95em;font-weight:500;font-weight:var(--aa-font-weight-medium);padding:.475em 1em .6em;-webkit-text-decoration:none;text-decoration:none}.aa-SourceFooterSeeAll:focus,.aa-SourceFooterSeeAll:hover{border:1px solid rgba(62, 52, 211,1);border:1px solid rgba(var(--aa-primary-color-rgb),1);color:rgba(62, 52, 211,1);color:rgba(var(--aa-primary-color-rgb),1)}.aa-Item{align-items:center;border-radius:3px;cursor:pointer;display:grid;min-height:calc((16 * 1 * 1px)*2.5);min-height:calc(calc(16 * 1 * 1px)*2.5);min-height:calc(var(--aa-spacing)*2.5);padding:calc(((16 * 1 * 1px) / 2)/2);padding:calc(calc(calc(16 * 1 * 1px) / 2)/2);padding:calc(var(--aa-spacing-half)/2)}.aa-Item[aria-selected=true]{background-color:rgba(179, 173, 214,0.205);background-color:rgba(var(--aa-selected-color-rgb),var(--aa-selected-color-alpha))}.aa-Item[aria-selected=true] .aa-ActiveOnly,.aa-Item[aria-selected=true] .aa-ItemActionButton{visibility:visible}.aa-ItemIcon{align-items:center;background:rgba(255, 255, 255,1);background:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));border-radius:3px;box-shadow:inset 0 0 0 1px rgba(128, 126, 163,0.3);box-shadow:inset 0 0 0 1px rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha));color:rgba(119, 119, 163,1);color:rgba(var(--aa-icon-color-rgb),var(--aa-icon-color-alpha));display:flex;flex-shrink:0;font-size:.7em;height:calc(20px + ((16 * 1 * 1px) / 2));height:calc(20px + calc(calc(16 * 1 * 1px) / 2));height:calc(var(--aa-icon-size) + var(--aa-spacing-half));justify-content:center;overflow:hidden;stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);text-align:center;width:calc(20px + ((16 * 1 * 1px) / 2));width:calc(20px + calc(calc(16 * 1 * 1px) / 2));width:calc(var(--aa-icon-size) + var(--aa-spacing-half))}.aa-ItemIcon img{height:auto;max-height:calc(20px + ((16 * 1 * 1px) / 2) - 8px);max-height:calc(20px + calc(calc(16 * 1 * 1px) / 2) - 8px);max-height:calc(var(--aa-icon-size) + var(--aa-spacing-half) - 8px);max-width:calc(20px + ((16 * 1 * 1px) / 2) - 8px);max-width:calc(20px + calc(calc(16 * 1 * 1px) / 2) - 8px);max-width:calc(var(--aa-icon-size) + var(--aa-spacing-half) - 8px);width:auto}.aa-ItemIcon svg{height:20px;height:var(--aa-icon-size);width:20px;width:var(--aa-icon-size)}.aa-ItemIcon--alignTop{align-self:flex-start}.aa-ItemIcon--noBorder{background:none;box-shadow:none}.aa-ItemIcon--picture{height:96px;width:96px}.aa-ItemIcon--picture img{max-height:100%;max-width:100%;padding:calc((16 * 1 * 1px) / 2);padding:calc(calc(16 * 1 * 1px) / 2);padding:var(--aa-spacing-half)}.aa-ItemContent{align-items:center;cursor:pointer;display:grid;gap:calc((16 * 1 * 1px) / 2);gap:calc(calc(16 * 1 * 1px) / 2);grid-gap:calc((16 * 1 * 1px) / 2);grid-gap:calc(calc(16 * 1 * 1px) / 2);grid-gap:var(--aa-spacing-half);gap:var(--aa-spacing-half);grid-auto-flow:column;line-height:1.25em;overflow:hidden}.aa-ItemContent:empty{display:none}.aa-ItemContent mark{background:none;color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-style:normal;font-weight:700;font-weight:var(--aa-font-weight-bold)}.aa-ItemContent--dual{display:flex;flex-direction:column;justify-content:space-between;text-align:left}.aa-ItemContent--dual .aa-ItemContentSubtitle,.aa-ItemContent--dual .aa-ItemContentTitle{display:block}.aa-ItemContent--indented{padding-left:calc(20px + (16 * 1 * 1px));padding-left:calc(20px + calc(16 * 1 * 1px));padding-left:calc(var(--aa-icon-size) + var(--aa-spacing))}.aa-ItemContentBody{display:grid;gap:calc(((16 * 1 * 1px) / 2)/2);gap:calc(calc(calc(16 * 1 * 1px) / 2)/2);grid-gap:calc(((16 * 1 * 1px) / 2)/2);grid-gap:calc(calc(calc(16 * 1 * 1px) / 2)/2);grid-gap:calc(var(--aa-spacing-half)/2);gap:calc(var(--aa-spacing-half)/2)}.aa-ItemContentTitle{display:inline-block;margin:0 .5em 0 0;max-width:100%;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.aa-ItemContentSubtitle{font-size:.92em}.aa-ItemContentSubtitleIcon:before{border-color:rgba(128, 126, 163,.64);border-color:rgba(var(--aa-muted-color-rgb),.64);border-style:solid;content:"";display:inline-block;left:1px;position:relative;top:-3px}.aa-ItemContentSubtitle--inline .aa-ItemContentSubtitleIcon:before{border-width:0 0 1.5px;margin-left:calc((16 * 1 * 1px) / 2);margin-left:calc(calc(16 * 1 * 1px) / 2);margin-left:var(--aa-spacing-half);margin-right:calc(((16 * 1 * 1px) / 2)/2);margin-right:calc(calc(calc(16 * 1 * 1px) / 2)/2);margin-right:calc(var(--aa-spacing-half)/2);width:calc(((16 * 1 * 1px) / 2) + 2px);width:calc(calc(calc(16 * 1 * 1px) / 2) + 2px);width:calc(var(--aa-spacing-half) + 2px)}.aa-ItemContentSubtitle--standalone{align-items:center;color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));display:grid;gap:calc((16 * 1 * 1px) / 2);gap:calc(calc(16 * 1 * 1px) / 2);grid-gap:calc((16 * 1 * 1px) / 2);grid-gap:calc(calc(16 * 1 * 1px) / 2);grid-gap:var(--aa-spacing-half);gap:var(--aa-spacing-half);grid-auto-flow:column;justify-content:start}.aa-ItemContentSubtitle--standalone .aa-ItemContentSubtitleIcon:before{border-radius:0 0 0 3px;border-width:0 0 1.5px 1.5px;height:calc((16 * 1 * 1px) / 2);height:calc(calc(16 * 1 * 1px) / 2);height:var(--aa-spacing-half);width:calc((16 * 1 * 1px) / 2);width:calc(calc(16 * 1 * 1px) / 2);width:var(--aa-spacing-half)}.aa-ItemContentSubtitleCategory{color:rgba(128, 126, 163,1);color:rgba(var(--aa-muted-color-rgb),1);font-weight:500}.aa-ItemContentDescription{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-size:.85em;max-width:100%;overflow-x:hidden;text-overflow:ellipsis}.aa-ItemContentDescription:empty{display:none}.aa-ItemContentDescription mark{background:rgba(245, 223, 77,0.5);background:rgba(var(--aa-description-highlight-background-color-rgb),var(--aa-description-highlight-background-color-alpha));color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-style:normal;font-weight:500;font-weight:var(--aa-font-weight-medium)}.aa-ItemContentDash{color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));display:none;opacity:.4}.aa-ItemContentTag{background-color:rgba(62, 52, 211,0.2);background-color:rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha));border-radius:3px;margin:0 .4em 0 0;padding:.08em .3em}.aa-ItemLink,.aa-ItemWrapper{align-items:center;color:inherit;display:grid;gap:calc(((16 * 1 * 1px) / 2)/2);gap:calc(calc(calc(16 * 1 * 1px) / 2)/2);grid-gap:calc(((16 * 1 * 1px) / 2)/2);grid-gap:calc(calc(calc(16 * 1 * 1px) / 2)/2);grid-gap:calc(var(--aa-spacing-half)/2);gap:calc(var(--aa-spacing-half)/2);grid-auto-flow:column;justify-content:space-between;width:100%}.aa-ItemLink{color:inherit;-webkit-text-decoration:none;text-decoration:none}.aa-ItemActions{display:grid;grid-auto-flow:column;height:100%;justify-self:end;margin:0 calc((16 * 1 * 1px)/-3);margin:0 calc(calc(16 * 1 * 1px)/-3);margin:0 calc(var(--aa-spacing)/-3);padding:0 2px 0 0}.aa-ItemActionButton{align-items:center;background:none;border:0;color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));cursor:pointer;display:flex;flex-shrink:0;padding:0}.aa-ItemActionButton:focus svg,.aa-ItemActionButton:hover svg{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha))}@media (hover:none) and (pointer:coarse){.aa-ItemActionButton:focus svg,.aa-ItemActionButton:hover svg{color:inherit}}.aa-ItemActionButton svg{color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));margin:0;margin:calc(calc(16 * 1 * 1px)/3);margin:calc(var(--aa-spacing)/3);stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);width:20px;width:var(--aa-action-icon-size)}.aa-ActiveOnly{visibility:hidden}.aa-PanelHeader{align-items:center;background:rgba(62, 52, 211,1);background:rgba(var(--aa-primary-color-rgb),1);color:#fff;display:grid;height:var(--aa-modal-header-height);margin:0;padding:calc((16 * 1 * 1px) / 2) calc(16 * 1 * 1px);padding:calc(calc(16 * 1 * 1px) / 2) calc(16 * 1 * 1px);padding:var(--aa-spacing-half) var(--aa-spacing);position:relative}.aa-PanelHeader:after{background-image:linear-gradient(rgba(255, 255, 255,1),rgba(255, 255, 255,0));background-image:linear-gradient(rgba(var(--aa-background-color-rgb),1),rgba(var(--aa-background-color-rgb),0));bottom:calc(((16 * 1 * 1px) / 2)*-1);bottom:calc(calc(calc(16 * 1 * 1px) / 2)*-1);bottom:calc(var(--aa-spacing-half)*-1);content:"";height:calc((16 * 1 * 1px) / 2);height:calc(calc(16 * 1 * 1px) / 2);height:var(--aa-spacing-half);left:0;pointer-events:none;position:absolute;right:0;z-index:9999;z-index:var(--aa-base-z-index)}.aa-PanelFooter{background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));box-shadow:inset 0 1px 0 rgba(128, 126, 163,0.3);box-shadow:inset 0 1px 0 rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha));display:flex;justify-content:space-between;margin:0;padding:calc(16 * 1 * 1px);padding:var(--aa-spacing);position:relative;z-index:9999;z-index:var(--aa-base-z-index)}.aa-PanelFooter:after{background-image:linear-gradient(rgba(255, 255, 255,0),rgba(128, 126, 163,0.6));background-image:linear-gradient(rgba(var(--aa-background-color-rgb),0),rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha)));content:"";height:calc(16 * 1 * 1px);height:var(--aa-spacing);left:0;opacity:.12;pointer-events:none;position:absolute;right:0;top:calc((16 * 1 * 1px)*-1);top:calc(calc(16 * 1 * 1px)*-1);top:calc(var(--aa-spacing)*-1);z-index:calc(9999 - 1);z-index:calc(var(--aa-base-z-index) - 1)}.aa-DetachedContainer{background:rgba(255, 255, 255,1);background:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));bottom:0;box-shadow:0 0 0 1px rgba(35, 38, 59, 0.1), 0 6px 16px -4px rgba(35, 38, 59, 0.15);box-shadow:var(--aa-panel-shadow);display:flex;flex-direction:column;left:0;margin:0;overflow:hidden;padding:0;position:fixed;right:0;top:0;z-index:9999;z-index:var(--aa-base-z-index)}.aa-DetachedContainer:after{height:32px}.aa-DetachedContainer .aa-SourceHeader{margin:calc((16 * 1 * 1px) / 2) 0 calc((16 * 1 * 1px) / 2) 2px;margin:calc(calc(16 * 1 * 1px) / 2) 0 calc(calc(16 * 1 * 1px) / 2) 2px;margin:var(--aa-spacing-half) 0 var(--aa-spacing-half) 2px}.aa-DetachedContainer .aa-Panel{background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));border-radius:0;box-shadow:none;flex-grow:1;margin:0;padding:0;position:relative}.aa-DetachedContainer .aa-PanelLayout{bottom:0;box-shadow:none;left:0;margin:0;max-height:none;overflow-y:auto;position:absolute;right:0;top:0;width:100%}.aa-DetachedFormContainer{border-bottom:1px solid rgba(128, 126, 163,0.3);border-bottom:1px solid rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha));display:flex;flex-direction:row;justify-content:space-between;margin:0;padding:calc((16 * 1 * 1px) / 2);padding:calc(calc(16 * 1 * 1px) / 2);padding:var(--aa-spacing-half)}.aa-DetachedCancelButton{background:none;border:0;border-radius:3px;color:inherit;color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));cursor:pointer;font:inherit;margin:0 0 0 calc((16 * 1 * 1px) / 2);margin:0 0 0 calc(calc(16 * 1 * 1px) / 2);margin:0 0 0 var(--aa-spacing-half);padding:0 calc((16 * 1 * 1px) / 2);padding:0 calc(calc(16 * 1 * 1px) / 2);padding:0 var(--aa-spacing-half)}.aa-DetachedCancelButton:focus,.aa-DetachedCancelButton:hover{box-shadow:inset 0 0 0 1px rgba(128, 126, 163,0.3);box-shadow:inset 0 0 0 1px rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha))}.aa-DetachedContainer--modal{border-radius:6px;bottom:inherit;height:auto;margin:0 auto;max-width:680px;max-width:var(--aa-detached-modal-max-width);position:absolute;top:3%}.aa-DetachedContainer--modal .aa-PanelLayout{max-height:500px;max-height:var(--aa-detached-modal-max-height);padding-bottom:calc((16 * 1 * 1px) / 2);padding-bottom:calc(calc(16 * 1 * 1px) / 2);padding-bottom:var(--aa-spacing-half);position:static}.aa-DetachedSearchButton{align-items:center;background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-input-background-color-rgb),var(--aa-input-background-color-alpha));border:1px solid rgba(128, 126, 163,0.8);border:1px solid rgba(var(--aa-input-border-color-rgb),var(--aa-input-border-color-alpha));border-radius:3px;color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));cursor:pointer;display:flex;font:inherit;font-family:inherit;font-family:var(--aa-font-family);font-size:calc(16 * 1px);font-size:var(--aa-font-size);height:44px;height:var(--aa-search-input-height);margin:0;padding:0 calc(44px/8);padding:0 calc(var(--aa-search-input-height)/8);position:relative;text-align:left;width:100%}.aa-DetachedSearchButton:focus{border-color:rgba(62, 52, 211,1);border-color:rgba(var(--aa-primary-color-rgb),1);box-shadow:rgba(62, 52, 211,0.2) 0 0 0 3px,inset rgba(62, 52, 211,0.2) 0 0 0 2px;box-shadow:rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 3px,inset rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 2px;outline:medium none currentColor}.aa-DetachedSearchButtonIcon{align-items:center;color:rgba(62, 52, 211,1);color:rgba(var(--aa-primary-color-rgb),1);cursor:auto;display:flex;flex-shrink:0;height:100%;justify-content:center;width:calc(20px + (16 * 1 * 1px));width:calc(20px + calc(16 * 1 * 1px));width:calc(var(--aa-icon-size) + var(--aa-spacing))}.aa-DetachedSearchButtonQuery{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),1);line-height:1.25em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aa-DetachedSearchButtonPlaceholder[hidden]{display:none}.aa-Detached{height:100vh;overflow:hidden}.aa-DetachedOverlay{background-color:rgba(115, 114, 129,0.4);background-color:rgba(var(--aa-overlay-color-rgb),var(--aa-overlay-color-alpha));height:100vh;left:0;margin:0;padding:0;position:fixed;right:0;top:0;z-index:calc(9999 - 1);z-index:calc(var(--aa-base-z-index) - 1)}.aa-GradientBottom,.aa-GradientTop{height:calc((16 * 1 * 1px) / 2);height:calc(calc(16 * 1 * 1px) / 2);height:var(--aa-spacing-half);left:0;pointer-events:none;position:absolute;right:0;z-index:9999;z-index:var(--aa-base-z-index)}.aa-GradientTop{background-image:linear-gradient(rgba(255, 255, 255,1),rgba(255, 255, 255,0));background-image:linear-gradient(rgba(var(--aa-background-color-rgb),1),rgba(var(--aa-background-color-rgb),0));top:0}.aa-GradientBottom{background-image:linear-gradient(rgba(255, 255, 255,0),rgba(255, 255, 255,1));background-image:linear-gradient(rgba(var(--aa-background-color-rgb),0),rgba(var(--aa-background-color-rgb),1));border-bottom-left-radius:calc((16 * 1 * 1px)/4);border-bottom-left-radius:calc(calc(16 * 1 * 1px)/4);border-bottom-left-radius:calc(var(--aa-spacing)/4);border-bottom-right-radius:calc((16 * 1 * 1px)/4);border-bottom-right-radius:calc(calc(16 * 1 * 1px)/4);border-bottom-right-radius:calc(var(--aa-spacing)/4);bottom:0}@media (hover:none) and (pointer:coarse){.aa-DesktopOnly{display:none}}@media (hover:hover){.aa-TouchOnly{display:none}} +/*!*******************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./src/scss/main.scss (2) ***! + \*******************************************************************************************************************************************************************************************************************/ /*! tailwindcss v2.2.15 | MIT License | https://tailwindcss.com */ /*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ diff --git a/assets/css/marketing.css b/assets/css/marketing.css index b7570294f479..a77e747464af 100644 --- a/assets/css/marketing.css +++ b/assets/css/marketing.css @@ -1,3 +1,6 @@ +/*!*********************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].use[1]!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].use[3]!./src/scss/_marketing.scss ***! + \*********************************************************************************************************************************************************************************************************************/ /*! tailwindcss v2.2.15 | MIT License | https://tailwindcss.com */ /*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ diff --git a/assets/js/bundle.js b/assets/js/bundle.js index 3aae152544ce..6b48b3744d3c 100644 --- a/assets/js/bundle.js +++ b/assets/js/bundle.js @@ -1,70 +1 @@ -<<<<<<< HEAD -(()=>{var e={290:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=o()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=i(e,2),r=t[0],o=t[1];return Promise.all([r,o||n.miss(r)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=o();return i[JSON.stringify(e)]=t,r().setItem(n,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function a(e){var t=o(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return a({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return a({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return a({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return a({caches:t}).clear()}))}}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var s=r(),a=i&&i.miss||function(){return Promise.resolve()};return s.then((function(e){return a(e)})).then((function(){return s}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function u(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function d(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var h={Read:1,Write:2,Any:3},m=1,v=2,g=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:h.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||h.Any}}var w="GET",_="POST";function S(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===m||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===g&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(o(n),o(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return b(e)})):t}}))}function x(e,t,r,i){var s=[],a=function(e,t){if(e.method!==w&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,i),l=function(e,t){var r=n(n({},e.headers),t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,i),c=r.method,u=r.method!==w?{}:n(n({},r.data),i.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),u),i.queryParameters),p=0,f=function t(n,o){var u=n.pop();if(void 0===u)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:E(s)};var f={data:a,headers:l,method:c,url:O(u,r.path,d),connectTimeout:o(p,e.timeouts.connect),responseTimeout:o(p,i.timeout)},h=function(e){var t={request:f,response:e,host:u,triesLeft:n.length};return s.push(t),t},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var i=h(r);return r.isTimedOut&&p++,Promise.all([e.logger.info("Retryable failure",C(i)),e.hostsCache.set(u,y(u,r.isTimedOut?g:v))]).then((function(){return t(n,o)}))},onFail:function(e){throw h(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,E(s))}};return e.requester.send(f).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)}))};return S(e.hostsCache,t).then((function(e){return f(o(e.statelessHosts).reverse(),e.getTimeout)}))}function k(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function O(e,t,n){var r=$(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function $(e){return Object.keys(e).map((function(t){return d("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function E(e){return e.map((function(e){return C(e)}))}function C(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var T=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===p.WithinHeaders?r:{}},queryParameters:function(){return e===p.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:p.WithinHeaders,t,e.apiKey),o=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,o=e.requestsCache,s=e.responsesCache,a=e.timeouts,l=e.userAgent,c=e.hosts,u=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:o,responsesCache:s,timeouts:a,userAgent:l,headers:e.headers,queryParameters:u,hosts:c.map((function(e){return b(e)})),read:function(e,t){var n=f(t,d.timeouts.read),r=function(){return x(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,r()).then((function(e){return Promise.all([d.requestsCache.delete(o),e])}),(function(e){return Promise.all([d.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(o,e)}})},write:function(e,t){return x(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Write)})),e,f(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:h.Read},{url:"".concat(t,".algolia.net"),accept:h.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return u({transporter:o,appId:t,addAlgoliaAgent:function(e,t){o.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then((function(){}))}},e.methods)},P=function(e){return function(t,n){return t.method===w?e.transporter.read(t,n):e.transporter.write(t,n)}},A=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},j=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{params:$(e.params||{})})}));return e.transporter.read({method:_,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},I=function(e){return function(t,i){return Promise.all(t.map((function(t){var o=t.params,s=o.facetName,a=o.facetQuery,l=r(o,["facetName","facetQuery"]);return A(e)(t.indexName,{methods:{searchForFacetValues:M}}).searchForFacetValues(s,a,n(n({},i),l))})))}},L=function(e){return function(t,n,r){return e.transporter.read({method:_,path:d("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},D=function(e){return function(t,n){return e.transporter.read({method:_,path:d("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},M=function(e){return function(t,n,r){return e.transporter.read({method:_,path:d("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},N=1,R=2,F=3;function B(e,t,r){var i,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,i=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},o=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(o),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(i=F,{debug:function(e,t){return N>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return R>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:l(),requestsCache:l({serializable:!1}),hostsCache:a({caches:[s({key:"".concat("4.17.0","-").concat(e)}),l()]}),userAgent:k("4.17.0").add({segment:"Browser",version:"lite"}),authMode:p.WithinQueryParameters};return T(n(n(n({},o),r),{},{methods:{search:j,searchForFacetValues:I,multipleQueries:j,multipleSearchForFacetValues:I,customRequest:P,initIndex:function(e){return function(t){return A(e)(t,{methods:{search:D,searchForFacetValues:M,findAnswers:L}})}}}}))}return B.version="4.17.0",B}()},28:()=>{!function(e){var t=1,n=window.setInterval((function(){r(t),++t>2&&(t=0)}),11e3);function r(t){return e(".carousel-always-visible").length?(i(),o(),void s()):e(".carousel-always-visible-cli-only").length?(a(0),void l(0)):(e(".carousel-item").css("opacity",0).css("pointer-events","none").eq(t).css("opacity",1).css("pointer-events","auto"),e(".carousel-item-description").css("opacity",0).css("pointer-events","none").eq(t).css("opacity",1).css("pointer-events","auto"),e(".carousel-item-label").removeClass("border-purple-700").removeClass("text-purple-700").removeClass("hover:text-purple-700").addClass("text-purple-200").addClass("hover:text-purple-300").eq(t).addClass("border-purple-700").addClass("text-purple-700").addClass("hover:text-purple-700"),void(0===t?i():1===t?o():2===t&&s()))}function i(){e(".menu").css("opacity",0),e(".menu").find(".row").removeClass("bg-gray-600").eq(0).addClass("bg-gray-600"),a(0,(function(){e(".menu").each((function(t,n){var r=parseInt(e(n).attr("data-delay"))||0;0===t&&setTimeout((function(){e(n).find(".row").removeClass("bg-gray-600").eq(1).addClass("bg-gray-600")}),600),setTimeout((function(){e(n).css("opacity",1)}),r)}))}))}function o(){a(1),l(1)}function s(){var t=e("#carousel-console .tab");t.css("opacity",0).eq(0).css("opacity",1),setTimeout((function(){t.eq(0).css("opacity",0),t.eq(1).css("opacity",1)}),5e3)}function a(t,n){var r=e(".carousel-item").eq(t).find(".line.typed span"),i=500;r.each((function(t,n){var r=n.textContent.split("");e(n).addClass("typing").html(r.map((e=>""+e+"")).join("").toString())}));var o=e(""),s=e(".carousel-item").eq(t).find(".char");s.map((function(t,r){i+=Math.ceil(75*Math.random()),setTimeout((function(){"\n"===r.textContent?e(r).css("opacity",1).prepend(o):e(r).css("opacity",1).append(o),t===s.length-1&&setTimeout((function(){o.remove(),"function"==typeof n&&n()}),600)}),i),"\n"!==r.textContent&&";"!==r.textContent||(i+=1e3)}))}function l(t){var n=e(".carousel-item").eq(t).find(".line.full");n.css("opacity",0);var r=2e3;n.each((function(t,n){var i=parseInt(e(n).attr("data-delay"))||75;r+=Math.ceil(Math.random()*i),setTimeout((function(){e(n).css("opacity",1)}),r)}))}r(0),e(".carousel-item-label").click((function(){clearInterval(n),r(e(".carousel-item-label").index(this))}))}(jQuery)},506:()=>{!function(e){var t=1,n=window.setInterval((function(){r(t),++t>3&&(t=0)}),5e3);function r(t){e(".code-tabbed-content").scrollTop(0).scrollLeft(0),e(".code-tabbed-tab").removeClass("active").eq(t).addClass("active"),e(".code-tabbed-content-item").removeClass("active").eq(t).addClass("active")}r(0),e(".code-tabbed-tab").click((function(){clearInterval(n),r(e(".code-tabbed-tab").index(this))}))}(jQuery)},756:()=>{$((function(){$("#upcoming-talks-select").on("click",(function(){$("#upcoming-talks").removeClass("hidden"),$("#past-talks").addClass("hidden"),$("#upcoming-talks-select").addClass("is-selected"),$("#past-talks-select").removeClass("is-selected")})),$("#past-talks-select").on("click",(function(){$("#upcoming-talks").addClass("hidden"),$("#past-talks").removeClass("hidden"),$("#upcoming-talks-select").removeClass("is-selected"),$("#past-talks-select").addClass("is-selected")}))}))},161:()=>{$((function(){var e=window.analytics&&window.analytics.track&&"function"==typeof window.analytics.track;function t(t,n,r){var i={answer:t,comments:n||"",email:r||"",url:window.location.pathname,category:"Documentation Feedback",label:t};e?window.analytics.track("docs-feedback",i):console.log("Skipped call to analytics.track:","docs-feedback",i)}$("#docsFeedbackContainer").removeClass("hidden"),["#docsFeedbackYes","#docsFeedbackNo"].forEach((function(e){var n="#docsFeedbackYes"===e?"Yes":"No";$(e).on("click",(function(){$("#feedbackLongForm").removeClass("hidden"),function(e){var n=$("#feedbackLongForm"),r=n.parent();$("body").append(n),$("#docsSubmitFeedback").on("click",(function(){var n=$("#feedbackAdditionalComments").val().toString().trim(),r=$("#feedbackEmail").val().toString().trim();t(e,n,r),$("#feedbackAdditionalComments").val(""),$("#feedbackEmail").val(""),$("#feedbackButtons").addClass("hidden"),$("#feedbackLongForm").addClass("hidden"),$("#feedbackThankYou").removeClass("hidden")})),$("#docsCloseFeedbackLongForm").on("click",(function(){t(e,"",""),$("#feedbackAdditionalComments").val(""),$("#feedbackEmail").val(""),$("#feedbackButtons").addClass("hidden"),$("#feedbackLongForm").addClass("hidden"),$("#feedbackThankYou").removeClass("hidden"),r.append(n)})),$(window).on("beforeunload",(function(){$("#feedbackLongForm").hasClass("hidden")||t(e,"","")}))}(n)}))}))}))},40:()=>{let e=$(".docs-main-nav-toggle-wrapper"),t=$(".docs-nav-toggle-icon");function n(){$(this).width()<=1280&&(e.hasClass("docs-nav-show")?(t.removeClass("open-docs-main-nav"),t.addClass("close-docs-main-nav")):e.hasClass("docs-nav-hide")&&(t.removeClass("close-docs-main-nav"),t.addClass("open-docs-main-nav")));let n=$(".main-nav"),r=$(".docs-nav-toggle"),i=$(".docs-type-nav-search");$(".section-docs .docs-list-main").length>0&&($(".section-docs .docs-list-main").get(0).getBoundingClientRect().y<=0?(n.css("margin-top",i.height()-Math.max($(".top-nav-container").get(0).getBoundingClientRect().y,0)),r.css("top",94+i.height()-Math.max($(".top-nav-container").get(0).getBoundingClientRect().y,0))):n.css("margin-top",0)),$(this).width()>1280?(e.removeClass("docs-nav-show"),e.removeClass("docs-nav-hide")):e.hasClass("docs-nav-hide")||e.hasClass("docs-nav-show")||e.addClass("docs-nav-hide")}function r(){let t=$(".docs-toc-desktop");window.innerWidth>1024&&window.innerWidth<=1280?e.hasClass("docs-nav-show")?t.hide():t.show():window.innerWidth>1280?t.show():t.hide()}function i(){$(".docs-main-nav").css("height",$(".docs-footer").height()+window.innerHeight)}$(window).on("resize",(function(){n(),r(),i()})).trigger("resize"),$(window).on("scroll",(function(){n()})).trigger("resize"),$(window).on("load",(function(){n(),r(),i()})),function(n,i){i(".docs-nav-toggle").on("click",(function(){e.toggleClass("docs-nav-show"),e.toggleClass("docs-nav-hide"),t.toggleClass("close-docs-main-nav"),t.toggleClass("open-docs-main-nav"),r()}));let o=i("#accordion-checkbox-package-card"),s=i("#accordion-package-card");o.on("change",(function(){o.is(":checked")?s.css("background","#fff"):s.css("background","#f9f9f9")}));let a=i("#collapse-content-button"),l=i("#expand-content-button");function c(){i(".docs-main-content").addClass("docs-content-width-expanded"),window.location.pathname.startsWith("/registry")&&i(".docs-main-content").addClass("expand-registry"),a.removeClass("hide"),l.addClass("hide"),window.localStorage.setItem("content-width-state","expanded")}function u(){i(".docs-main-content").removeClass("docs-content-width-expanded"),a.addClass("hide"),l.removeClass("hide"),window.localStorage.setItem("content-width-state","collapsed")}l.on("click",c),a.on("click",u),"expanded"===window.localStorage.getItem("content-width-state")?c():u()}(document,jQuery)},21:()=>{$((function(){function e(e,t){var n=e.map((function(e){return".highlight .chroma .language-"+e})).join(", ");$(n).each((function(){var e=$(this);e.html(e.html().replace(t,'$1'))}))}e(["bash","sh","shell","zsh"],/([ |\t]*\$ )/gim),e(["bat","batch","batchfile","powershell","posh","pwsh"],/([ |\t]*><\/span> )/gim)}))},490:()=>{const e=(e,t)=>{const n="amazon",r="google cloud",i="google",o=$(".all-packages").find(".package"),s=void 0===e.find((e=>"type"===e.group)),a=void 0===e.find((e=>"category"===e.group));e.length>0||t?($(o).addClass("hidden"),$(o).each(((o,l)=>{const c=$(l).find("[data-category]"),u=c.attr("data-type"),d=c.attr("data-category"),p="native-provider"===u,f=!!e.find((e=>"type"===e.group&&e.value===u))||e.find((e=>"type"===e.group&&"provider"===e.value))&&p,h=!!e.find((e=>"category"===e.group&&e.value===d)),m=c.attr("data-title").toLowerCase(),v=null==t?void 0:t.trim().toLowerCase();let g;g=v===n||"aws"===v?m.includes(n)||m.includes("aws"):"gcp"===v||v===r||v===i?m.includes("gcp")||m.includes(r)||m.includes(i):m.includes(v),!f&&!s||!h&&!a||t&&!g||$(l).removeClass("hidden")}))):$(o).removeClass("hidden")};$(".section-registry").on("filterSelect",(t=>{const n=t.target,r=t.detail,i=$("pulumi-registry-list-search").get(0),o=$(i).find(".registry-filter-input").val();e(r,o);const s=$("ul.active-tags");s.empty(),r.forEach((e=>{const t=$($("#active-tag-template").html());t.appendTo(s),t.attr("data-filter-group",e.group).attr("data-filter-value",e.value),t.find("span").text(e.label),t.find("button").on("click",(()=>n.deselect(e)))})),$(".packages, .active-tags").attr("data-selected-types",r.filter((e=>"type"===e.group)).map((e=>e.value)).join(",")).attr("data-selected-categories",r.filter((e=>"category"===e.group)).map((e=>e.value)).join(","));const a=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(a),$("pulumi-filter-select-option-group").each(((e,t)=>t.close()))})),$(".section-registry .no-results .reset").on("click",(t=>{t.stopPropagation();$("pulumi-registry-list-search").get(0).reset();$("pulumi-filter-select").get(0).reset(),e([],"");const n=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(n)})),$(".section-registry").on("packageSearch",(t=>{const n=t.detail,r=[],i=$("ul.active-tags").find("li");i.length>0&&i.each(((e,t)=>{const n=$(t),i=n.attr("data-filter-group"),o=n.attr("data-filter-value"),s=n.attr("data-filter-label");r.push({group:i,value:o,label:s})})),e(r,n);const o=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(o)})),document.addEventListener("DOMContentLoaded",(function(){const e=$(".logo-nav-button"),t=$(".logo-nav-bg-mask"),n=$("#logo-nav-menu");function r(){n.toggleClass("hidden");const r=n.is(":visible");e.attr("aria-expanded",`${r}`),$(".logo-nav-button .mobile-menu-toggle-icon").toggleClass("hidden"),t.toggleClass("hidden")}e.on("click",r),t.on("click",r),$(document).on("click",(function(t){0===$(t.target).closest(e).length&&0===$(t.target).closest(n).length&&n.is(":visible")&&r()})),$(document).on("scroll",(function(){window.scrollY>53&&n.is(":visible")&&r()}))}))},245:()=>{$(document).on("rendered",(function(){$("#billing-period").each((function(e,t){t.addEventListener("change",(function(e){e&&e.target&&e.target.checked?($(".billing-price-monthly").each((function(e,t){$(t).hide()})),$(".billing-price-annually").each((function(e,t){$(t).show()}))):($(".billing-price-monthly").each((function(e,t){$(t).show()})),$(".billing-price-annually").each((function(e,t){$(t).hide()})))}))}))}))},366:()=>{$((function(){$("#pricingStartTrial").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#pricingStartTrialBottomCTA").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#businessCriticalStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#enterpriseStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#teamStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#closePricingTrialOptionsDialog").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")})),$("#startServiceTrial").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")})),$("#startSelfHostedTrial").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")}))}))},744:()=>{$((function(){$("#iac-pricing-select").on("click",(function(){$(".esc-price").addClass("hidden"),$(".iac-price").removeClass("hidden"),$("#esc-pricing-select").removeClass("border-blue-600 bg-violet-100"),$("#esc-pricing-select").addClass("border-gray-300"),$("#esc-pricing-select-text").removeClass("rainbow-text"),$("#iac-pricing-select").addClass("border-blue-600 bg-violet-100"),$("#iac-pricing-select-text").addClass("rainbow-text")})),$("#esc-pricing-select").on("click",(function(){$(".iac-price").addClass("hidden"),$(".esc-price").removeClass("hidden"),$("#iac-pricing-select").removeClass("border-blue-600 bg-violet-100"),$("#iac-pricing-select").addClass("border-gray-300"),$("#iac-pricing-select-text").removeClass("rainbow-text"),$("#esc-pricing-select").addClass("border-blue-600 bg-violet-100"),$("#esc-pricing-select-text").addClass("rainbow-text")}))}))},734:()=>{$((function(){const e=["iac-select","esc-select","insights-select"],t=["crossguard-select","deployments-select","copilot-select","management-select"];e.forEach((t=>{$(`#${t}`).on("click",(function(){e.forEach((e=>{e!==t&&($(`#${e}-content`).addClass("hidden"),$(`#${e}`).removeClass("border-blue-600"),$(`#${e}-text`).removeClass("rainbow-text"))})),$(`#${t}`).addClass("border-blue-600"),$(`#${t}-text`).addClass("rainbow-text"),$(`#${t}-content`).removeClass("hidden")}))})),t.forEach((e=>{$(`#${e}`).on("click",(function(){t.forEach((t=>{t!==e&&($(`#${t}-content`).addClass("hidden"),$(`#${t}`).removeClass("border-blue-600"),$(`#${t}-text`).removeClass("rainbow-text"))})),$(`#${e}`).addClass("border-blue-600"),$(`#${e}-text`).addClass("rainbow-text"),$(`#${e}-content`).removeClass("hidden")}))}))}))},140:()=>{const e=document.location.pathname;if("/docs/intro/concepts/programming-model/"===e||"/docs/reference/programming-model/"===e){var t={"#additionalsecretoutputs":"/docs/concepts/resources/#additionalsecretoutputs","#aliases":"/docs/concepts/resources/#aliases","#all":"/docs/concepts/inputs-outputs/#all","#apply":"/docs/concepts/inputs-outputs/#apply","#assets-and-archives":"/docs/concepts/assets-archives/","#autonaming":"/docs/concepts/resources/#autonaming","#components":"/docs/concepts/resources/#components","#config":"/docs/concepts/config","#custom-resources":"/docs/concepts/resources/#custom-resources","#declaring-infrastructure":"/docs/concepts/#overview","#deletebeforereplace":"/docs/concepts/resources/#deletebeforereplace","#dependson":"/docs/concepts/resources/#dependson","#dynamicproviders":"/docs/concepts/resources/#dynamicproviders","#explicit-provider-configuration":"/docs/concepts/resources/#explicit-provider-configuration","#import":"/docs/concepts/resources/#import","#introduction":"/docs/intro/concepts","#lifting":"/docs/concepts/inputs-outputs/#lifting","#names":"/docs/concepts/resources/#names","#outputs":"/docs/concepts/inputs-outputs","#outputs-and-strings":"/docs/concepts/inputs-outputs/#outputs-and-strings","#program-structure":"/docs/concepts/#overview","#programs":"/docs/concepts/#overview","#providers":"/docs/concepts/resources/#providers","#reading-configuration-values":"/docs/concepts/config/#code","#resource-get":"/docs/concepts/resources/#resource-get","#resource-providers":"/docs/concepts/resources/#providers","#resourceoptions":"/docs/concepts/resources/#options","#resources":"/docs/concepts/resources","#runtime":"/docs/concepts/","#runtime-functions":"/docs/concepts/","#secrets":"/docs/concepts/secrets","#stack-outputs":"/docs/concepts/stack/#outputs","#stack-references":"/docs/concepts/stack/#stack-references","#transformations":"/docs/concepts/resources/#transformations"}[location.hash];t&&(location.href=t)}},498:()=>{const e=e=>{const t=$(".event-list").find(".event-card"),n=$(".event-list").find(".month-label");$(n).css("display","none");const r=$(".pulumi-event-list-container").find(".no-results");$(r).removeClass("hidden"),e.length>0?$(t).each(((t,n)=>{const i=$(n).attr("data-filters").split(" "),o=$(n).attr("data-month-label");if(i.includes(location.hash.slice(1))){let t=0;i.forEach((n=>{e.includes(n)&&t++})),t>0?($(r).addClass("hidden"),$(n).css("display","block"),$(`.month-label.${o}`).css("display","block")):$(n).css("display","none")}else $(n).css("display","none")})):$(t).each(((e,t)=>{const n=$(t).attr("data-filters").split(" "),i=$(t).attr("data-month-label");if(n.includes(location.hash.slice(1)))$(r).addClass("hidden"),$(t).css("display","block"),$(`.month-label.${i}`).css("display","block");else{$(t).css("display","none");$(t).attr("data-month-label")}}))};$(".pulumi-event-list-container").on("filterSelect",(t=>{const n=t.detail,r=[];n.forEach((e=>{r.push(e.value)})),e(r)})),$(window).on("hashchange",(function(){const t=$("pulumi-filter-select-option").toArray();let n=[];t.forEach((e=>{const t=e.shadowRoot;$(t).find(".selected").length>0&&n.push(e.value)})),e(n)})),$((function(){const e=document.getElementById("event-list-filter-nav");if(e){$("#slideForward").on("click",(function(){e.scrollLeft+=180})),$("#slideBackwards").on("click",(function(){e.scrollLeft-=180}));const t={root:document.getElementById("event-list-filter-nav"),threshold:1},n=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting?$("#slideForward").addClass("hidden"):$("#slideForward").removeClass("hidden")}))}),t),r=document.querySelector("#event-list-filter-nav li:last-of-type");n.observe(r);const i=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting?$("#slideBackwards").addClass("hidden"):$("#slideBackwards").removeClass("hidden")}))}),t),o=document.querySelector("#event-list-filter-nav li:first-of-type");i.observe(o)}}))},399:()=>{$((function(){const e={"/docs/get-started/":"get-started-with-pulumi-toc-header","/docs/":"intro-toc-header","/docs/using-pulumi/":"user-guides-toc-header","/docs/concepts/":"reference-toc-header","/docs/support/":"support-toc-header","/docs/iac/adopting-pulumi/converters/":"converters-toc-header"};Object.keys(e).map((t=>{const n=document.getElementById(e[t]);if(n&&(n.classList.remove("active"),document.location.pathname===t)){const e=document.getElementById("left-nav");n.classList.add("active"),e.scrollTop=n.offsetTop-100}}))}))},931:()=>{$(document).ready((function(){if(window&&window.analytics&&"function"==typeof window.analytics.track){const n=$("a"),r=(new Date).getTime();function e(e,t){const n=$(e);if(!n)return;const i=n.attr("data-track"),o=(n.attr("href")||"").replace(/https?:\/\//g,""),s=i||o.replace(/^#/,"anchor-").replace(/^\//,"").split("/").join("-"),a=("/"===window.location.pathname?"home":window.location.pathname).split("/").filter((function(e){return""!==e})).map((function(e){return e})).concat(s,t).join("-"),l={element_id:a,destinationPath:n.attr("href"),url:window.location.pathname,category:"User Interaction",label:a,value:void 0};n.on("click",(function(e){l.value=((new Date).getTime()-r)/1e3,window.analytics.track("link-click",l)}))}for(var t=0;t{"use strict";n.r(t),n.d(t,{scopeCss:()=>A});const r="-shadowcsshost",i="-shadowcssslotted",o="-shadowcsscontext",s=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",a=new RegExp("("+r+s,"gim"),l=new RegExp("("+o+s,"gim"),c=new RegExp("("+i+s,"gim"),u=r+"-no-combinator",d=/-shadowcsshost-no-combinator([^\s]*)/,p=[/::shadow/g,/::content/g],f=/-shadowcsshost/gim,h=/:host/gim,m=/::slotted/gim,v=/:host-context/gim,g=/\/\*\s*[\s\S]*?\*\//g,y=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,b=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,w=/([{}])/g,_="%BLOCK%",S=(e,t)=>{const n=x(e);let r=0;return n.escapedString.replace(b,((...e)=>{const i=e[2];let o="",s=e[4],a="";s&&s.startsWith("{"+_)&&(o=n.blocks[r++],s=s.substring(_.length+1),a="{");const l=t({selector:i,content:o});return`${e[1]}${l.selector}${e[3]}${a}${l.content}${s}`}))},x=e=>{const t=e.split(w),n=[],r=[];let i=0,o=[];for(let e=0;e0?o.push(s):(o.length>0&&(r.push(o.join("")),n.push(_),o=[]),n.push(s)),"{"===s&&i++}o.length>0&&(r.push(o.join("")),n.push(_));return{escapedString:n.join(""),blocks:r}},k=(e,t,n)=>e.replace(t,((...e)=>{if(e[2]){const t=e[2].split(","),r=[];for(let i=0;ie+t.replace(r,"")+n,$=(e,t,n)=>t.indexOf(r)>-1?O(e,t,n):e+t+n+", "+t+" "+e+n,E=(e,t)=>{const n=(e=>(e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(t);return!n.test(e)},C=(e,t,n)=>{const r="."+(t=t.replace(/\[is=([^\]]*)\]/g,((e,...t)=>t[0]))),i=e=>{let i=e.trim();if(!i)return"";if(e.indexOf(u)>-1)i=((e,t,n)=>{if(f.lastIndex=0,f.test(e)){const t=`.${n}`;return e.replace(d,((e,n)=>n.replace(/([^:]*)(:*)(.*)/,((e,n,r,i)=>n+t+r+i)))).replace(f,t+" ")}return t+" "+e})(e,t,n);else{const t=e.replace(f,"");if(t.length>0){const e=t.match(/([^:]*)(:*)(.*)/);e&&(i=e[1]+r+e[2]+e[3])}}return i},o=(e=>{const t=[];let n,r=0;return n=(e=e.replace(/(\[[^\]]*\])/g,((e,n)=>{const i=`__ph-${r}__`;return t.push(n),r++,i}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((e,n,i)=>{const o=`__ph-${r}__`;return t.push(i),r++,n+o})),{content:n,placeholders:t}})(e);let s,a="",l=0;const c=/( |>|\+|~(?!=))\s*/g;let p=!((e=o.content).indexOf(u)>-1);for(;null!==(s=c.exec(e));){const t=s[1],n=e.slice(l,s.index).trim();p=p||n.indexOf(u)>-1;a+=`${p?i(n):n} ${t} `,l=c.lastIndex}const h=e.substring(l);return p=p||h.indexOf(u)>-1,a+=p?i(h):h,m=o.placeholders,a.replace(/__ph-(\d+)__/g,((e,t)=>m[+t]));var m},T=(e,t,n,r,i)=>S(e,(e=>{let i=e.selector,o=e.content;"@"!==e.selector[0]?i=((e,t,n,r)=>e.split(",").map((e=>r&&e.indexOf("."+r)>-1?e.trim():E(e,t)?C(e,t,n).trim():e.trim())).join(", "))(e.selector,t,n,r):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(o=T(e.content,t,n,r));return{selector:i.replace(/\s{2,}/g," ").trim(),content:o}})),P=(e,t,n,s,d)=>{const f=((e,t)=>{const n="."+t+" > ",r=[];return e=e.replace(c,((...e)=>{if(e[2]){const t=e[2].trim(),i=e[3],o=n+t+i;let s="";for(let t=e[4]-1;t>=0;t--){const n=e[5][t];if("}"===n||","===n)break;s=n+s}const a=s+o,l=`${s.trimRight()}${o.trim()}`;if(a.trim()!==l.trim()){const e=`${l}, ${a}`;r.push({orgSelector:a,updatedSelector:e})}return o}return u+e[3]})),{selectors:r,cssText:e}})(e=(e=>k(e,l,$))(e=(e=>k(e,a,O))(e=e.replace(v,o).replace(h,r).replace(m,i))),s);return e=(e=>p.reduce(((e,t)=>e.replace(t," ")),e))(e=f.cssText),t&&(e=T(e,t,n,s)),{cssText:(e=(e=e.replace(/-shadowcsshost-no-combinator/g,`.${n}`)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:f.selectors}},A=(e,t,n)=>{const r=t+"-h",i=t+"-s",o=e.match(y)||[];e=(e=>e.replace(g,""))(e);const s=[];if(n){const t=e=>{const t=`/*!@___${s.length}___*/`,n=`/*!@${e.selector}*/`;return s.push({placeholder:t,comment:n}),e.selector=t+e.selector,e};e=S(e,(e=>"@"!==e.selector[0]?t(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=S(e.content,t),e):e))}const a=P(e,t,r,i);return e=[a.cssText,...o].join("\n"),n&&s.forEach((({placeholder:t,comment:n})=>{e=e.replace(t,n)})),a.slottedSelectors.forEach((t=>{e=e.replace(t.orgSelector,t.updatedSelector)})),e}},263:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=263,e.exports=t}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=!1,t=!0,r=!1,i=!0,o=!0,s=!0,a=!0,l=!0,c=!0,u=!0,d=!0,p=!0,f=!0,h=!0,m=!0,v=!1,g=!0,y=!0,b=!0,w=!0,_=!0,S=!0,x=!0,k=!0,O=!0,E=!0,C=!0,T=!0,P=!0,A=!0,j=!0,I=!0,L=!0,D=!0,M=!0,N=!0,R=!0,F=!0,B=!0,H=!0,V=!0,q=!0,z=!0,U=!0,W=!1,K=!1,G=!1,J=!1,Y=!1,Q=!1,X=!1,Z=!1,ee=!1,te=!0,ne=!1,re=!0,ie=!1,oe=!0,se=!0,ae=!0,le=!1,ce=!0,ue=!0,de=!1,pe=!1,fe=!1,he=!0,me="app";let ve,ge,ye,be,we=0,_e=!1,Se=!1,xe=!1,ke=!1,Oe=null,$e=0,Ee=!1;const Ce="undefined"!=typeof window?window:{},Te=(le&&Ce.CSS,Ce.document||{head:{}}),Pe=(Ce.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)}),Ae=!ie||!O||(()=>(Te.head.attachShadow+"").indexOf("[native")>-1)(),je=(()=>{let e=!1;try{Te.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),Ie=!!ce&&(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),Le=(e,t,n,r)=>{p&&n&&(v&&(n=r?n.filter((([e])=>32&e)):n.filter((([e])=>!(32&e)))),n.map((([n,r,i])=>{const o=g?Me(e,n):e,s=De(t,i),a=Ne(n);Pe.ael(o,r,s,a),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>Pe.rel(o,r,s,a)))})))},De=(e,t)=>n=>{try{Z?256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n]):e.$hostElement$[t](n)}catch(e){en(e)}},Me=(e,t)=>h&&4&t?Te:f&&8&t?Ce:m&&16&t?Te.body:v&&32&t?e.parentElement:e,Ne=e=>je?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e),Re="s-id",Fe="sty-id",Be="c-id",He="http://www.w3.org/1999/xlink",Ve=(e,t="")=>{if(ee&&performance.mark){const n=`st:${e}:${t}:${we++}`;return performance.mark(n),()=>performance.measure(`[Stencil] ${e}() <${t}>`,n)}return()=>{}},qe=new WeakMap,ze=(e,t,n)=>{let r=an.get(e);Ie&&n?(r=r||new CSSStyleSheet,r.replace(t)):r=t,an.set(e,r)},Ue=(e,t,n,r)=>{let i=Ke(t,n),o=an.get(i);if(!he)return i;if(e=11===e.nodeType?e:Te,o)if("string"==typeof o){e=e.head||e;let n,s=qe.get(e);if(s||qe.set(e,s=new Set),!s.has(i)){if(Q&&e.host&&(n=e.querySelector(`[${Fe}="${i}"]`)))n.innerHTML=o;else{if(le&&Pe.$cssShim$){n=Pe.$cssShim$.createHostStyle(r,i,o,!!(10&t.$flags$));const e=n["s-sc"];e&&(i=e,s=null)}else n=Te.createElement("style"),n.innerHTML=o;(Y||W)&&n.setAttribute(Fe,i),e.insertBefore(n,e.querySelector("link"))}s&&s.add(i)}}else ce&&!e.adoptedStyleSheets.includes(o)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i},We=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=Ve("attachStyles",t.$tagName$),o=Ue(O&&Ae&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);(O||k)&&C&&10&r&&(n["s-sc"]=o,n.classList.add(o+"-h"),k&&2&r&&n.classList.add(o+"-s")),i()},Ke=(e,t)=>"sc-"+(w&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),Ge=e=>ln.map((t=>t(e))).find((e=>!!e)),Je={},Ye=e=>"object"===(e=typeof e)||"function"===e,Qe=(e,t,...n)=>{let r=null,i=null,o=null,s=!1,a=!1,l=[];const c=t=>{for(let n=0;ne[t])).join(" "))}if(G&&l.some(et)&&nn("The must be the single root component. Make sure:\n- You are NOT using hostData() and in the same component.\n- is used once, and it's the single root component of the render() function."),M&&"function"==typeof e)return e(null===t?{}:t,l,tt);const u=Xe(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),N&&(u.$key$=i),te&&(u.$name$=o),u},Xe=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return I&&(n.$attrs$=null),N&&(n.$key$=null),te&&(n.$name$=null),n},Ze={},et=e=>e&&e.$tag$===Ze,tt={forEach:(e,t)=>e.map(nt).forEach(t),map:(e,t)=>e.map(nt).map(t).map(rt)},nt=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),rt=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),Qe(e.vtag,t,...e.vchildren||[])}const t=Xe(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},it=e=>{const t=Object.keys(e),n=t.indexOf("type"),r=t.indexOf("min"),i=t.indexOf("max"),o=t.indexOf("min"),s=t.indexOf("value");-1!==s&&(s should be set after "min", "max", "type" and "step"')},ot=(e,t,n,r,i,o)=>{if(n!==r){let s=Zt(e,t),a=t.toLowerCase();if(D&&"class"===t){const t=e.classList,i=at(n),o=at(r);t.remove(...i.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!i.includes(e))))}else if(V&&"style"===t){if(j)for(const t in n)r&&null!=r[t]||(!Y&&t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(!Y&&t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if(N&&"key"===t);else if(F&&"ref"===t)r&&r(e);else if(!R||(Z?s:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(B){const l=Ye(r);if((s||l&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{let i=null==r?"":r;"list"===t?s=!1:null!=n&&e[t]==i||(e[t]=i)}}catch(e){}let c=!1;L&&a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(L&&c?e.removeAttributeNS(He,t):e.removeAttribute(t)):(!s||4&o||i)&&!l&&(r=!0===r?"":r,L&&c?e.setAttributeNS(He,t,r):e.setAttribute(t,r))}}else t="-"===t[2]?t.slice(3):Zt(Ce,a)?a.slice(2):a[2]+t.slice(3),n&&Pe.rel(e,t,n,!1),r&&Pe.ael(e,t,r,!1)}},st=/\s/,at=e=>e?e.split(st):[],lt=(e,t,n,r)=>{const i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||Je,s=t.$attrs$||Je;if(j)for(r in o)r in s||ot(i,r,o[r],void 0,n,t.$flags$);for(r in s)ot(i,r,o[r],s[r],n,t.$flags$)},ct=(e,t,n,r)=>{let i,o,s,a=t.$children$[n],l=0;if(te&&!_e&&(xe=!0,"slot"===a.$tag$&&(ve&&r.classList.add(ve+"-s"),a.$flags$|=a.$children$?2:1)),G&&a.$elm$&&nn(`The JSX ${null!==a.$text$?`"${a.$text$}" text`:`"${a.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),q&&null!==a.$text$)i=a.$elm$=Te.createTextNode(a.$text$);else if(te&&1&a.$flags$)i=a.$elm$=K||Y?xt(a):Te.createTextNode("");else{if(A&&!ke&&(ke="svg"===a.$tag$),i=a.$elm$=A?Te.createElementNS(ke?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",te&&2&a.$flags$?"slot-fb":a.$tag$):Te.createElement(te&&2&a.$flags$?"slot-fb":a.$tag$),A&&ke&&"foreignObject"===a.$tag$&&(ke=!1),I&<(null,a,ke),(O||k)&&(e=>null!=e)(ve)&&i["s-si"]!==ve&&i.classList.add(i["s-si"]=ve),a.$children$)for(l=0;l{Pe.$flags$|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const r=n[e];r["s-hn"]!==ye&&r["s-ol"]&&(mt(r).insertBefore(r,ht(r)),r["s-ol"].remove(),r["s-ol"]=void 0,xe=!0),t&&ut(r,t)}Pe.$flags$&=-2},dt=(e,t,n,r,i,o)=>{let s,a=te&&e["s-cr"]&&e["s-cr"].parentNode||e;for(O&&a.shadowRoot&&a.tagName===ye&&(a=a.shadowRoot);i<=o;++i)r[i]&&(s=ct(null,n,i,e),s&&(r[i].$elm$=s,a.insertBefore(s,te?ht(t):t)))},pt=(e,t,n,r,i)=>{for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,_t(r),te&&(Se=!0,i["s-ol"]?i["s-ol"].remove():ut(i,!0)),i.remove())},ft=(e,t)=>e.$tag$===t.$tag$&&(te&&"slot"===e.$tag$?e.$name$===t.$name$:!N||e.$key$===t.$key$),ht=e=>e&&e["s-ol"]||e,mt=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,vt=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,o=t.$tag$,s=t.$text$;let a;q&&null!==s?q&&te&&(a=n["s-cr"])?a.parentNode.textContent=s:q&&e.$text$!==s&&(n.data=s):(A&&(ke="svg"===o||"foreignObject"!==o&&ke),(I||x)&&(E&&"slot"===o||lt(e,t,ke)),j&&null!==r&&null!==i?((e,t,n,r)=>{let i,o,s=0,a=0,l=0,c=0,u=t.length-1,d=t[0],p=t[u],f=r.length-1,h=r[0],m=r[f];for(;s<=u&&a<=f;)if(null==d)d=t[++s];else if(null==p)p=t[--u];else if(null==h)h=r[++a];else if(null==m)m=r[--f];else if(ft(d,h))vt(d,h),d=t[++s],h=r[++a];else if(ft(p,m))vt(p,m),p=t[--u],m=r[--f];else if(ft(d,m))!te||"slot"!==d.$tag$&&"slot"!==m.$tag$||ut(d.$elm$.parentNode,!1),vt(d,m),e.insertBefore(d.$elm$,p.$elm$.nextSibling),d=t[++s],m=r[--f];else if(ft(p,h))!te||"slot"!==d.$tag$&&"slot"!==m.$tag$||ut(p.$elm$.parentNode,!1),vt(p,h),e.insertBefore(p.$elm$,d.$elm$),p=t[--u],h=r[++a];else{if(l=-1,N)for(c=s;c<=u;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===h.$key$){l=c;break}N&&l>=0?(o=t[l],o.$tag$!==h.$tag$?i=ct(t&&t[a],n,l,e):(vt(o,h),t[l]=void 0,i=o.$elm$),h=r[++a]):(i=ct(t&&t[a],n,a,e),h=r[++a]),i&&(te?mt(d.$elm$).insertBefore(i,ht(d.$elm$)):d.$elm$.parentNode.insertBefore(i,d.$elm$))}s>u?dt(e,null==r[f+1]?null:r[f+1].$elm$,n,r,a,f):j&&a>f&&pt(t,s,u)})(n,r,t,i):null!==i?(j&&q&&null!==e.$text$&&(n.textContent=""),dt(n,null,t,i,0,i.length-1)):j&&null!==r&&pt(r,0,r.length-1),A&&ke&&"svg"===o&&(ke=!1))},gt=e=>{let t,n,r,i,o,s,a=e.childNodes;for(n=0,r=a.length;n{let t,n,r,i,o,s,a=0,l=e.childNodes,c=l.length;for(;a=0;s--)n=r[s],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(wt(n,i)?(o=yt.find((e=>e.$nodeToRelocate$===n)),Se=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=t:yt.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&yt.map((e=>{wt(e.$nodeToRelocate$,n["s-sn"])&&(o=yt.find((e=>e.$nodeToRelocate$===n)),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))}))):yt.some((e=>e.$nodeToRelocate$===n))||yt.push({$nodeToRelocate$:n}));1===t.nodeType&&bt(t)}},wt=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,_t=e=>{F&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(_t))},St=(e,t)=>{const n=e.$hostElement$,r=e.$cmpMeta$,i=e.$vnode$||Xe(null,null),o=et(t)?t:Qe(null,null,t);if(ye=n.tagName,G&&Array.isArray(t)&&t.some(et))throw new Error(`The must be the single root component.\nLooks like the render() function of "${ye.toLowerCase()}" is returning an array that contains the .\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n {content}\n );\n}\n `);if(x&&r.$attrsToReflect$&&(o.$attrs$=o.$attrs$||{},r.$attrsToReflect$.map((([e,t])=>o.$attrs$[t]=n[e]))),o.$tag$=null,o.$flags$|=4,e.$vnode$=o,o.$elm$=i.$elm$=O&&n.shadowRoot||n,(k||O)&&(ve=n["s-sc"]),te&&(ge=n["s-cr"],_e=Ae&&0!=(1&r.$flags$),Se=!1),vt(i,o),te){if(Pe.$flags$|=1,xe){let e,t,n,r,i,s;bt(o.$elm$);let a=0;for(;aTe.createComment(` (host=${ye.toLowerCase()})`),kt=e=>Te.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),Ot=(e,t,n)=>{const r=(e=>Z?Qt(e).$hostElement$:e)(e);return{emit:e=>(G&&!r.isConnected&&rn(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),$t(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e}))}},$t=(e,t,n)=>{const r=Pe.ce(t,n);return e.dispatchEvent(r),r},Et=(e,t)=>{pe&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},Ct=(e,t)=>{if(U&&j&&(e.$flags$|=16),pe&&4&e.$flags$)return void(e.$flags$|=512);Et(e,e.$ancestorComponent$);const n=()=>Tt(e,t);return U?gn(n):n()},Tt=(e,t)=>{const n=e.$hostElement$,r=Ve("scheduleUpdate",e.$cmpMeta$.$tagName$),i=Z?e.$lazyInstance$:n;let o;return t?(Z&&p&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((([e,t])=>Lt(i,e,t))),e.$queuedListeners$=null)),Mt(n,"componentWillLoad"),s&&(o=Lt(i,"componentWillLoad"))):(Mt(n,"componentWillUpdate"),a&&(o=Lt(i,"componentWillUpdate"))),Mt(n,"componentWillRender"),l&&(o=Dt(o,(()=>Lt(i,"componentWillRender")))),r(),Dt(o,(()=>Pt(e,i,t)))},Pt=async(e,t,n)=>{const r=e.$hostElement$,i=Ve("update",e.$cmpMeta$.$tagName$),o=r["s-rc"];P&&n&&We(e);const s=Ve("render",e.$cmpMeta$.$tagName$);if(G&&(e.$flags$|=1024),Y?await At(e,t,r):At(e,t,r),le&&Pe.$cssShim$&&Pe.$cssShim$.updateHost(r),G&&(e.$renderCount$++,e.$flags$&=-1025),Y)try{Rt(r),n&&(1&e.$cmpMeta$.$flags$?r["s-en"]="":2&e.$cmpMeta$.$flags$&&(r["s-en"]="c"))}catch(e){en(e,r)}if(pe&&o&&(o.map((e=>e())),r["s-rc"]=void 0),s(),i(),pe){const t=r["s-p"],n=()=>jt(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}else jt(e)},At=(t,n,r)=>{const i=!!e,o=!!Z,s=!!U,a=!!j;try{if(Oe=n,n=(i||n.render)&&n.render(),a&&s&&(t.$flags$&=-17),(a||o)&&(t.$flags$|=2),d||x)if(H||x){if(Y)return Promise.resolve(n).then((e=>St(t,e)));St(t,n)}else r.textContent=n}catch(e){en(e,t.$hostElement$)}return Oe=null,null},jt=e=>{const n=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=Ve("postUpdate",n),a=Z?e.$lazyInstance$:r,l=e.$ancestorComponent$;o&&(G&&(e.$flags$|=1024),Lt(a,"componentDidRender"),G&&(e.$flags$&=-1025)),Mt(r,"componentDidRender"),64&e.$flags$?(i&&(G&&(e.$flags$|=1024),Lt(a,"componentDidUpdate"),G&&(e.$flags$&=-1025)),Mt(r,"componentDidUpdate"),s()):(e.$flags$|=64,pe&&C&&Nt(r),t&&(G&&(e.$flags$|=2048),Lt(a,"componentDidLoad"),G&&(e.$flags$&=-2049)),Mt(r,"componentDidLoad"),s(),pe&&(e.$onReadyResolve$(r),l||It(n))),W&&r["s-hmr-load"]&&r["s-hmr-load"](),b&&Z&&e.$onInstanceResolve$(r),pe&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&vn((()=>Ct(e,!1))),e.$flags$&=-517)},It=e=>{C&&Nt(Te.documentElement),fe&&(Pe.$flags$|=2),vn((()=>$t(Ce,"appload",{detail:{namespace:me}}))),ee&&performance.measure&&performance.measure(`[Stencil] ${me} initial load (by ${e})`,"st:app:start")},Lt=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){en(e)}},Dt=(e,t)=>e&&e.then?e.then(t):t(),Mt=(e,t)=>{X&&$t(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:me}})},Nt=e=>re?e.classList.add("hydrated"):ne?e.setAttribute("hydrated",""):void 0,Rt=e=>{const t=e.children;if(null!=t)for(let e=0,n=t.length;e{let a,l,c,u;if(1===o.nodeType){for(a=o.getAttribute(Be),a&&(l=a.split("."),l[0]!==s&&"0"!==l[0]||(c={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(c),o.removeAttribute(Be),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,e=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))),u=o.childNodes.length-1;u>=0;u--)Ft(e,t,n,r,i,o.childNodes[u],s);if(o.shadowRoot)for(u=o.shadowRoot.childNodes.length-1;u>=0;u--)Ft(e,t,n,r,i,o.shadowRoot.childNodes[u],s)}else if(8===o.nodeType)l=o.nodeValue.split("."),l[1]!==s&&"0"!==l[1]||(a=l[0],c={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(c.$elm$=o.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),o.remove(),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===s&&("s"===a?(c.$tag$="slot",l[5]?o["s-sn"]=c.$name$=l[5]:o["s-sn"]="",o["s-sr"]=!0,O&&r&&(c.$elm$=Te.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),o.parentNode.insertBefore(c.$elm$,o),o.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),n.push(c),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c):"r"===a&&(O&&r?o.remove():te&&(i["s-cr"]=o,o["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=Xe(null,o.textContent);t.$elm$=o,t.$index$="0",e.$children$=[t]}},Bt=(e,t)=>{if(1===e.nodeType){let n=0;for(;n{const i=Qt(e),o=Z?i.$hostElement$:e,s=i.$instanceValues$.get(t),a=i.$flags$,l=Z?i.$lazyInstance$:o;var c,u;if(c=n,u=r.$members$[t][0],n=null==c||Ye(c)?c:oe&&4&u?"false"!==c&&(""===c||!!c):se&&2&u?parseFloat(c):ae&&1&u?String(c):c,!(Z&&8&a&&void 0!==s||n===s)&&(i.$instanceValues$.set(t,n),G&&(1024&i.$flags$?rn(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",o,"\nNew value",n,"\nOld value",s):2048&i.$flags$&&rn(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",o,"\nNew value",n,"\nOld value",s)),!Z||l)){if(z&&r.$watchers$&&128&a){const e=r.$watchers$[t];e&&e.map((e=>{try{l[e](n,s,t)}catch(e){en(e,o)}}))}if(j&&2==(18&a)){if(ue&&l.componentShouldUpdate&&!1===l.componentShouldUpdate(n,s,t))return;Ct(i,!1)}}},Vt=(e,t,n)=>{if(y&&t.$members$){z&&e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),i=e.prototype;if(r.map((([e,[r]])=>{(S||T)&&(31&r||(!Z||2&n)&&32&r)?Object.defineProperty(i,e,{get(){return t=e,Qt(this).$instanceValues$.get(t);var t},set(i){if(G){const i=Qt(this);0==(1&n)&&0==(8&i.$flags$)&&0!=(31&r)&&0==(1024&r)&&rn(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)}Ht(this,e,i,t)},configurable:!0,enumerable:!0}):Z&&b&&1&n&&64&r&&Object.defineProperty(i,e,{value(...t){const n=Qt(this);return n.$onInstancePromise$.then((()=>n.$lazyInstance$[e](...t)))}})})),_&&(!Z||1&n)){const n=new Map;i.attributeChangedCallback=function(e,t,r){Pe.jmp((()=>{const t=n.get(e);this.hasOwnProperty(t)&&(r=this[t],delete this[t]),this[t]=(null!==r||"boolean"!=typeof this[t])&&r}))},e.observedAttributes=r.filter((([e,t])=>15&t[0])).map((([e,r])=>{const i=r[1]||e;return n.set(i,e),x&&512&r[0]&&t.$attrsToReflect$.push([e,i]),i}))}}return e},qt=async(e,t,r,i,o)=>{if((Z||Y||P)&&0==(32&t.$flags$)){if(Z||Q){if(t.$flags$|=32,(o=sn(r,t,i)).then){const e=(s=`st:load:${r.$tagName$}:${t.$modeName$}`,a=`[Stencil] Load module for <${r.$tagName$}>`,ee&&performance.mark?(0===performance.getEntriesByName(s).length&&performance.mark(s),()=>{0===performance.getEntriesByName(a).length&&performance.measure(a,s)}):()=>{});o=await o,e()}if((G||K)&&!o)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);y&&!o.isProxied&&(z&&(r.$watchers$=o.watchers),Vt(o,r,2),o.isProxied=!0);const e=Ve("createInstance",r.$tagName$);y&&(t.$flags$|=8);try{new o(t)}catch(e){en(e)}y&&(t.$flags$&=-9),z&&(t.$flags$|=128),e(),zt(t.$lazyInstance$)}else o=e.constructor,t.$flags$|=32,customElements.whenDefined(r.$tagName$).then((()=>t.$flags$|=128));if(P&&o.style){let i=o.style;w&&"string"!=typeof i&&(i=i[t.$modeName$=Ge(e)],Y&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));const s=Ke(r,t.$modeName$);if(!an.has(s)){const e=Ve("registerStyles",r.$tagName$);!Y&&O&&ie&&8&r.$flags$&&(i=await Promise.resolve().then(n.bind(n,351)).then((e=>e.scopeCss(i,s,!1)))),ze(s,i,!!(1&r.$flags$)),e()}}}var s,a;const l=t.$ancestorComponent$,c=()=>Ct(t,!0);pe&&l&&l["s-rc"]?l["s-rc"].push(c):c()},zt=e=>{Z&&c&&Lt(e,"connectedCallback")},Ut=e=>{if(0==(1&Pe.$flags$)){const t=Qt(e),n=t.$cmpMeta$,r=Ve("connectedCallback",n.$tagName$);if(v&&Le(e,t,n.$listeners$,!0),1&t.$flags$)Le(e,t,n.$listeners$,!1),zt(t.$lazyInstance$);else{let r;if(t.$flags$|=1,Q&&(r=e.getAttribute(Re),r)){if(O&&Ae&&1&n.$flags$){const t=w?Ue(e.shadowRoot,n,e.getAttribute("s-mode")):Ue(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}((e,t,n,r)=>{const i=Ve("hydrateClient",t),o=e.shadowRoot,s=[],a=O&&o?[]:null,l=r.$vnode$=Xe(t,null);Pe.$orgLocNodes$||Bt(Te.body,Pe.$orgLocNodes$=new Map),e[Re]=n,e.removeAttribute(Re),Ft(l,s,[],a,e,e,n),s.map((e=>{const n=e.$hostId$+"."+e.$nodeId$,r=Pe.$orgLocNodes$.get(n),i=e.$elm$;r&&Ae&&""===r["s-en"]&&r.parentNode.insertBefore(i,r.nextSibling),o||(i["s-hn"]=t,r&&(i["s-ol"]=r,i["s-ol"]["s-nr"]=i)),Pe.$orgLocNodes$.delete(n)})),O&&o&&a.map((e=>{e&&o.appendChild(e)})),i()})(e,n.$tagName$,r,t)}if(te&&!r&&(Y||(E||O)&&12&n.$flags$)&&Wt(e),pe){let n=e;for(;n=n.parentNode||n.host;)if(Q&&1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Et(t,t.$ancestorComponent$=n);break}}S&&!Y&&n.$members$&&Object.entries(n.$members$).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),de?vn((()=>qt(e,t,n))):qt(e,t,n)}r()}},Wt=e=>{const t=e["s-cr"]=Te.createComment(K?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Kt=e=>{if(0==(1&Pe.$flags$)){const t=Qt(e),n=Z?t.$lazyInstance$:e;p&&t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0),le&&Pe.$cssShim$&&Pe.$cssShim$.removeHost(e),Z&&u&&Lt(n,"disconnectedCallback"),r&&Lt(n,"componentDidUnload")}},Gt=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};y&&(n.$members$=t[2]),p&&(n.$listeners$=t[3]),z&&(n.$watchers$=e.$watchers$),x&&(n.$attrsToReflect$=[]),O&&!Ae&&1&n.$flags$&&(n.$flags$|=8);const r=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){Xt(this,n)},connectedCallback(){Ut(this),c&&r&&r.call(this)},disconnectedCallback(){Kt(this),u&&i&&i.call(this)}}),e.is=n.$tagName$,Vt(e,n,3)},Jt=e=>{Ae?e.attachShadow({mode:"open"}):e.shadowRoot=e},Yt=new WeakMap,Qt=e=>Yt.get(e),Xt=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return G&&(n.$renderCount$=0),b&&Z&&(n.$onInstancePromise$=new Promise((e=>n.$onInstanceResolve$=e))),pe&&(n.$onReadyPromise$=new Promise((e=>n.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[]),Le(e,n,t.$listeners$,!1),Yt.set(e,n)},Zt=(e,t)=>t in e,en=(e,t)=>(be||console.error)(e,t),tn=J?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],nn=(...e)=>console.error(...tn,...e),rn=(...e)=>console.warn(...tn,...e),on=new Map,sn=(e,t,r)=>{const i=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$;if(G&&"string"!=typeof o)return void nn(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);const s=!W&&on.get(o);return s?s[i]:n(263)(`./${o}.entry.js${W&&r?"?s-hmr="+r:""}`).then((e=>(W||on.set(o,e),e[i])),en)},an=new Map,ln=[],cn=[],un=[],dn=[],pn=(e,t)=>n=>{e.push(n),Ee||(Ee=!0,t&&4&Pe.$flags$?vn(mn):Pe.raf(mn))},fn=e=>{for(let t=0;t{let n=0,r=0;for(;n{if(fe&&$e++,fn(cn),fe){const e=2==(6&Pe.$flags$)?performance.now()+14*Math.ceil(.1*$e):1/0;hn(un,e),hn(dn,e),un.length>0&&(dn.push(...un),un.length=0),(Ee=cn.length+un.length+dn.length>0)?Pe.raf(mn):$e=0}else fn(un),(Ee=cn.length>0)&&Pe.raf(mn)},vn=e=>(e=>Promise.resolve(e))().then(e),gn=pn(un,!0);var yn,bn=new Uint8Array(16);function wn(){if(!yn&&!(yn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yn(bn)}const _n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Sn(e){return"string"==typeof e&&_n.test(e)}for(var xn=[],kn=0;kn<256;++kn)xn.push((kn+256).toString(16).substr(1));function On(e,t,n){var r=(e=e||{}).random||(e.rng||wn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(xn[e[t+0]]+xn[e[t+1]]+xn[e[t+2]]+xn[e[t+3]]+"-"+xn[e[t+4]]+xn[e[t+5]]+"-"+xn[e[t+6]]+xn[e[t+7]]+"-"+xn[e[t+8]]+xn[e[t+9]]+"-"+xn[e[t+10]]+xn[e[t+11]]+xn[e[t+12]]+xn[e[t+13]]+xn[e[t+14]]+xn[e[t+15]]).toLowerCase();if(!Sn(n))throw TypeError("Stringified UUID is invalid");return n}(r)}const $n={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};function En(e){let t=2166136261;const n=e.length;for(let r=0;r>>0}function Cn(e,t,n){return 2===n?En(En(e+t)+"")%1e4/1e4:1===n?En(t+e)%1e3/1e3:null}function Tn(e,t){return e>=t[0]&&e{r.push([e.searchParams.get(n)||"",t,!1])})),!r.some((e=>!function(e,t,n){try{let r=t.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");return n&&(r="\\/?"+r.replace(/(^\/|\/$)/g,"")+"\\/?"),new RegExp("^"+r+"$","i").test(e)}catch(e){return!1}}(e[0],e[1],e[2])))}catch(e){return!1}}function In(e,t,n){try{const r=new URL(e,"https://_");if("regex"===t){const e=Pn(n);return!!e&&(e.test(r.href)||e.test(r.href.substring(r.origin.length)))}return"simple"===t&&jn(r,n)}catch(e){return!1}}function Ln(e,t,n){(t=void 0===t?1:t)<0?t=0:t>1&&(t=1);const r=function(e){return e<=0?[]:new Array(e).fill(1/e)}(e);(n=n||r).length!==e&&(n=r);const i=n.reduce(((e,t)=>t+e),0);(i<.99||i>1.01)&&(n=r);let o=0;return n.map((e=>{const n=o;return o+=e,[n,n+t*e]}))}const Dn=e=>Uint8Array.from(atob(e),(e=>e.charCodeAt(0)));async function Mn(e,t,n){if(t=t||"",!(n=n||globalThis.crypto&&globalThis.crypto.subtle||$n.SubtleCrypto))throw new Error("No SubtleCrypto implementation found");try{const r=await n.importKey("raw",Dn(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[i,o]=e.split("."),s=await n.decrypt({name:"AES-CBC",iv:Dn(i)},r,Dn(o));return(new TextDecoder).decode(s)}catch(e){throw new Error("Failed to decrypt")}}function Nn(e){return"string"==typeof e?e:JSON.stringify(e)}function Rn(e){"number"==typeof e&&(e+=""),e&&"string"==typeof e||(e="0");const t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return 3===t.length&&t.push("~"),t.map((e=>e.match(/^[0-9]+$/)?e.padStart(5," "):e)).join("-")}function Fn(e){return"object"==typeof e&&null!==e}function Bn(e){return e.urlPatterns&&e.variations.some((e=>Fn(e)&&"urlRedirect"in e))?"redirect":e.variations.some((e=>Fn(e)&&(e.domMutations||"js"in e||"css"in e)))?"visual":"unknown"}async function Hn(e,t){return new Promise((n=>{let r,i=!1;const o=e=>{i||(i=!0,r&&clearTimeout(r),n(e||null))};t&&(r=setTimeout((()=>o()),t)),e.then((e=>o(e))).catch((()=>o()))}))}const Vn={staleTTL:6e4,maxAge:144e5,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:2e4,disableCache:!1},qn=$n,zn={fetchFeaturesCall:e=>{let{host:t,clientKey:n,headers:r}=e;return qn.fetch("".concat(t,"/api/features/").concat(n),{headers:r})},fetchRemoteEvalCall:e=>{let{host:t,clientKey:n,payload:r,headers:i}=e;const o={method:"POST",headers:{"Content-Type":"application/json",...i},body:JSON.stringify(r)};return qn.fetch("".concat(t,"/api/eval/").concat(n),o)},eventSourceCall:e=>{let{host:t,clientKey:n,headers:r}=e;return r?new qn.EventSource("".concat(t,"/sub/").concat(n),{headers:r}):new qn.EventSource("".concat(t,"/sub/").concat(n))},startIdleListener:()=>{let e;if(!("undefined"!=typeof window&&"undefined"!=typeof document))return;const t=()=>{"visible"===document.visibilityState?(window.clearTimeout(e),Jn.forEach((e=>{e&&"idle"===e.state&&ur(e)}))):"hidden"===document.visibilityState&&(e=window.setTimeout(er,Vn.idleStreamInterval))};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(qn.localStorage=globalThis.localStorage)}catch(Di){}const Un=new Map;let Wn=!1;const Kn=new Map,Gn=new Map,Jn=new Map,Yn=new Set;function Qn(e){Object.assign(Vn,e),Vn.backgroundSync||(Yn.clear(),Jn.forEach(dr),Un.clear(),zn.stopIdleListener())}async function Xn(e){let{instance:t,timeout:n,skipCache:r,allowStale:i,backgroundSync:o}=e;return o||(Vn.backgroundSync=!1),async function(e){let{instance:t,allowStale:n,timeout:r,skipCache:i}=e;const o=nr(t),s=rr(t),a=new Date,l=new Date(a.getTime()-Vn.maxAge+Vn.staleTTL);await async function(){if(Wn)return;Wn=!0;try{if(qn.localStorage){const e=await qn.localStorage.getItem(Vn.cacheKey);if(!Vn.disableCache&&e){const t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach((e=>{let[t,n]=e;Kn.set(t,{...n,staleAt:new Date(n.staleAt)})})),ir()}}}catch(e){}if(!Vn.disableIdleStreams){const e=zn.startIdleListener();e&&(zn.stopIdleListener=e)}}();const c=Vn.disableCache||i?void 0:Kn.get(s);if(c&&(n||c.staleAt>a)&&c.staleAt>l)return c.sse&&Yn.add(o),c.staleAt{e&&(e.state="idle",cr(e))}))}async function tr(){try{if(!qn.localStorage)return;await qn.localStorage.setItem(Vn.cacheKey,JSON.stringify(Array.from(Kn.entries())))}catch(e){}}function nr(e){const[t,n]=e.getApiInfo();return"".concat(t,"||").concat(n)}function rr(e){const t=nr(e);if(!e.isRemoteEval())return t;const n=e.getAttributes(),r=e.getCacheKeyAttributes()||Object.keys(e.getAttributes()),i={};r.forEach((e=>{i[e]=n[e]}));const o=e.getForcedVariations(),s=e.getUrl();return"".concat(t,"||").concat(JSON.stringify({ca:i,fv:o,url:s}))}function ir(){const e=Array.from(Kn.entries()).map((e=>{let[t,n]=e;return{key:t,staleAt:n.staleAt.getTime()}})).sort(((e,t)=>e.staleAt-t.staleAt)),t=Math.min(Math.max(0,Kn.size-Vn.maxEntries),Kn.size);for(let n=0;nasync function(e,t){await e.setPayload(t||e.getPayload())}(e,n)))}async function sr(e){const{apiHost:t,apiRequestHeaders:n}=e.getApiHosts(),r=e.getClientKey(),i=e.isRemoteEval(),o=nr(e),s=rr(e);let a=Gn.get(s);if(!a){a=(i?zn.fetchRemoteEvalCall({host:t,clientKey:r,payload:{attributes:e.getAttributes(),forcedVariations:e.getForcedVariations(),forcedFeatures:Array.from(e.getForcedFeatures().entries()),url:e.getUrl()},headers:n}):zn.fetchFeaturesCall({host:t,clientKey:r,headers:n})).then((e=>{if(!e.ok)throw new Error("HTTP error: ".concat(e.status));return"enabled"===e.headers.get("x-sse-support")&&Yn.add(o),e.json()})).then((t=>(or(o,s,t),ar(e),Gn.delete(s),{data:t,success:!0,source:"network"}))).catch((e=>(Gn.delete(s),{data:null,source:"error",success:!1,error:e}))),Gn.set(s,a)}return a}function ar(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=nr(e),r=rr(e),{streamingHost:i,streamingHostRequestHeaders:o}=e.getApiHosts(),s=e.getClientKey();if(t&&Yn.add(n),Vn.backgroundSync&&Yn.has(n)&&qn.EventSource){if(Jn.has(n))return;const e={src:null,host:i,clientKey:s,headers:o,cb:t=>{try{if("features-updated"===t.type){const e=Un.get(n);e&&e.forEach((e=>{sr(e)}))}else if("features"===t.type){const e=JSON.parse(t.data);or(n,r,e)}e.errors=0}catch(t){lr(e)}},errors:0,state:"active"};Jn.set(n,e),ur(e)}}function lr(e){if("idle"!==e.state&&(e.errors++,e.errors>3||e.src&&2===e.src.readyState)){const t=Math.pow(3,e.errors-3)*(1e3+1e3*Math.random());cr(e),setTimeout((()=>{["idle","active"].includes(e.state)||ur(e)}),Math.min(t,3e5))}}function cr(e){e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null,"active"===e.state&&(e.state="disabled"))}function ur(e){e.src=zn.eventSourceCall({host:e.host,clientKey:e.clientKey,headers:e.headers}),e.state="active",e.src.addEventListener("features",e.cb),e.src.addEventListener("features-updated",e.cb),e.src.onerror=()=>lr(e),e.src.onopen=()=>{e.errors=0}}function dr(e,t){cr(e),Jn.delete(t)}var pr=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,fr={revert:function(){}},hr=new Map,mr=new Set;function vr(e){var t=hr.get(e);return t||(t={element:e,attributes:{}},hr.set(e,t)),t}function gr(e,t,n,r,i){var o=n(e),s={isDirty:!1,originalValue:o,virtualValue:o,mutations:[],el:e,_positionTimeout:null,observer:new MutationObserver((function(){if("position"!==t||!s._positionTimeout){"position"===t&&(s._positionTimeout=setTimeout((function(){s._positionTimeout=null}),1e3));var r=n(e);"position"===t&&r.parentNode===s.virtualValue.parentNode&&r.insertBeforeNode===s.virtualValue.insertBeforeNode||r!==s.virtualValue&&(s.originalValue=r,i(s))}})),mutationRunner:i,setValue:r,getCurrentValue:n};return"position"===t&&e.parentNode?s.observer.observe(e.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):s.observer.observe(e,function(e){return"html"===e?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[e]}}(t)),s}function yr(e,t){var n=t.getCurrentValue(t.el);t.virtualValue=e,e&&"string"!=typeof e?n&&e.parentNode===n.parentNode&&e.insertBeforeNode===n.insertBeforeNode||(t.isDirty=!0,Nr()):e!==n&&(t.isDirty=!0,Nr())}function br(e){var t=e.originalValue;e.mutations.forEach((function(e){return t=e.mutate(t)})),yr(function(e){jr||(jr=document.createElement("div"));return jr.innerHTML=e,jr.innerHTML}(t),e)}function wr(e){var t=new Set(e.originalValue.split(/\s+/).filter(Boolean));e.mutations.forEach((function(e){return e.mutate(t)})),yr(Array.from(t).filter(Boolean).join(" "),e)}function _r(e){var t=e.originalValue;e.mutations.forEach((function(e){return t=e.mutate(t)})),yr(t,e)}function Sr(e){var t=e.originalValue;e.mutations.forEach((function(e){var n=function(e){var t=e.parentSelector,n=e.insertBeforeSelector,r=document.querySelector(t);if(!r)return null;var i=n?document.querySelector(n):null;return n&&!i?null:{parentNode:r,insertBeforeNode:i}}(e.mutate());t=n||t})),yr(t,e)}var xr=function(e){return e.innerHTML},kr=function(e,t){return e.innerHTML=t};function Or(e){var t=vr(e);return t.html||(t.html=gr(e,"html",xr,kr,br)),t.html}var $r=function(e){return{parentNode:e.parentElement,insertBeforeNode:e.nextElementSibling}},Er=function(e,t){t.insertBeforeNode&&!t.parentNode.contains(t.insertBeforeNode)||t.parentNode.insertBefore(e,t.insertBeforeNode)};function Cr(e){var t=vr(e);return t.position||(t.position=gr(e,"position",$r,Er,Sr)),t.position}var Tr=function(e,t){return t?e.className=t:e.removeAttribute("class")},Pr=function(e){return e.className};function Ar(e){var t=vr(e);return t.classes||(t.classes=gr(e,"class",Pr,Tr,wr)),t.classes}var jr,Ir;function Lr(e,t){var n,r=vr(e);return r.attributes[t]||(r.attributes[t]=gr(e,t,(n=t,function(e){var t;return null!=(t=e.getAttribute(n))?t:null}),function(e){return function(t,n){return null!==n?t.setAttribute(e,n):t.removeAttribute(e)}}(t),_r)),r.attributes[t]}function Dr(e,t,n){if(n.isDirty){n.isDirty=!1;var r=n.virtualValue;n.mutations.length||function(e,t){var n,r,i=hr.get(e);if(i)if("html"===t)null==(n=i.html)||null==(r=n.observer)||r.disconnect(),delete i.html;else if("class"===t){var o,s;null==(o=i.classes)||null==(s=o.observer)||s.disconnect(),delete i.classes}else if("position"===t){var a,l;null==(a=i.position)||null==(l=a.observer)||l.disconnect(),delete i.position}else{var c,u,d;null==(c=i.attributes)||null==(u=c[t])||null==(d=u.observer)||d.disconnect(),delete i.attributes[t]}}(e,t),n.setValue(e,r)}}function Mr(e,t){e.html&&Dr(t,"html",e.html),e.classes&&Dr(t,"class",e.classes),e.position&&Dr(t,"position",e.position),Object.keys(e.attributes).forEach((function(n){Dr(t,n,e.attributes[n])}))}function Nr(){hr.forEach(Mr)}function Rr(e){if("position"!==e.kind||1!==e.elements.size){var t=new Set(e.elements);document.querySelectorAll(e.selector).forEach((function(n){t.has(n)||(e.elements.add(n),function(e,t){var n=null;"html"===e.kind?n=Or(t):"class"===e.kind?n=Ar(t):"attribute"===e.kind?n=Lr(t,e.attribute):"position"===e.kind&&(n=Cr(t)),n&&(n.mutations.push(e),n.mutationRunner(n))}(e,n))}))}}function Fr(e){e.elements.forEach((function(t){return function(e,t){var n=null;if("html"===e.kind?n=Or(t):"class"===e.kind?n=Ar(t):"attribute"===e.kind?n=Lr(t,e.attribute):"position"===e.kind&&(n=Cr(t)),n){var r=n.mutations.indexOf(e);-1!==r&&n.mutations.splice(r,1),n.mutationRunner(n)}}(e,t)})),e.elements.clear(),mr.delete(e)}function Br(){mr.forEach(Rr)}function Hr(e){return"undefined"==typeof document?fr:(mr.add(e),Rr(e),{revert:function(){Fr(e)}})}function Vr(e,t){return Hr({kind:"html",elements:new Set,mutate:t,selector:e})}function qr(e,t){return Hr({kind:"position",elements:new Set,mutate:t,selector:e})}function zr(e,t){return Hr({kind:"class",elements:new Set,mutate:t,selector:e})}function Ur(e,t,n){return pr.test(t)?"class"===t||"className"===t?zr(e,(function(e){var t=n(Array.from(e).join(" "));e.clear(),t&&t.split(/\s+/g).filter(Boolean).forEach((function(t){return e.add(t)}))})):Hr({kind:"attribute",attribute:t,elements:new Set,mutate:n,selector:e}):fr}"undefined"!=typeof document&&(Ir||(Ir=new MutationObserver((function(){Br()}))),Br(),Ir.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}));var Wr={html:Vr,classes:zr,attribute:Ur,position:qr,declarative:function(e){var t=e.selector,n=e.action,r=e.value,i=e.attribute,o=e.parentSelector,s=e.insertBeforeSelector;if("html"===i){if("append"===n)return Vr(t,(function(e){return e+(null!=r?r:"")}));if("set"===n)return Vr(t,(function(){return null!=r?r:""}))}else if("class"===i){if("append"===n)return zr(t,(function(e){r&&e.add(r)}));if("remove"===n)return zr(t,(function(e){r&&e.delete(r)}));if("set"===n)return zr(t,(function(e){e.clear(),r&&e.add(r)}))}else if("position"===i){if("set"===n&&o)return qr(t,(function(){return{insertBeforeSelector:s,parentSelector:o}}))}else{if("append"===n)return Ur(t,i,(function(e){return null!==e?e+(null!=r?r:""):null!=r?r:""}));if("set"===n)return Ur(t,i,(function(){return null!=r?r:""}));if("remove"===n)return Ur(t,i,(function(){return null}))}return fr}};const Kr={};function Gr(e,t,n){n=n||{};for(const[r,i]of Object.entries(t))switch(r){case"$or":if(!ei(e,i,n))return!1;break;case"$nor":if(ei(e,i,n))return!1;break;case"$and":if(!ti(e,i,n))return!1;break;case"$not":if(Gr(e,i,n))return!1;break;default:if(!Yr(i,Jr(e,r),n))return!1}return!0}function Jr(e,t){const n=t.split(".");let r=e;for(let e=0;e0&&t.filter((e=>"$"===e[0])).length===t.length}function Xr(e,t){return Array.isArray(e)?e.some((e=>t.includes(e))):t.includes(e)}function Zr(e,t,n,r){switch(e){case"$veq":return Rn(t)===Rn(n);case"$vne":return Rn(t)!==Rn(n);case"$vgt":return Rn(t)>Rn(n);case"$vgte":return Rn(t)>=Rn(n);case"$vlt":return Rn(t)n;case"$gte":return t>=n;case"$exists":return n?null!=t:null==t;case"$in":return!!Array.isArray(n)&&Xr(t,n);case"$inGroup":return Xr(t,r[n]||[]);case"$notInGroup":return!Xr(t,r[n]||[]);case"$nin":return!!Array.isArray(n)&&!Xr(t,n);case"$not":return!Yr(n,t,r);case"$size":return!!Array.isArray(t)&&Yr(n,t.length,r);case"$elemMatch":return function(e,t,n){if(!Array.isArray(e))return!1;const r=Qr(t)?e=>Yr(t,e,n):e=>Gr(e,t,n);for(let t=0;t{}))}this.ready&&this.refreshStickyBuckets(this.getPayload())}async setPayload(e){this._payload=e;const t=await this.decryptPayload(e);this._decryptedPayload=t,await this.refreshStickyBuckets(t),t.features&&(this._ctx.features=t.features),t.savedGroups&&(this._ctx.savedGroups=t.savedGroups),t.experiments&&(this._ctx.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,this._render()}initSync(e){this._initialized=!0;const t=e.payload;if(t.encryptedExperiments||t.encryptedFeatures)throw new Error("initSync does not support encrypted payloads");if(this._ctx.stickyBucketService&&!this._ctx.stickyBucketAssignmentDocs)throw new Error("initSync requires you to pass stickyBucketAssignmentDocs into the GrowthBook constructor");if(this._payload=t,this._decryptedPayload=t,t.features&&(this._ctx.features=t.features),t.experiments&&(this._ctx.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,e.streaming){if(!this._ctx.clientKey)throw new Error("Must specify clientKey to enable streaming");ar(this,!0),Zn(this)}return this}async init(e){if(this._initialized=!0,(e=e||{}).cacheSettings&&Qn(e.cacheSettings),e.payload){if(await this.setPayload(e.payload),e.streaming){if(!this._ctx.clientKey)throw new Error("Must specify clientKey to enable streaming");ar(this,!0),Zn(this)}return{success:!0,source:"init"}}{const{data:t,...n}=await this._refresh({...e,allowStale:!0});return e.streaming&&Zn(this),await this.setPayload(t||{}),n}}async loadFeatures(e){this._initialized=!0,(e=e||{}).autoRefresh&&(this._ctx.subscribeToChanges=!0);const{data:t}=await this._refresh({...e,allowStale:!0});await this.setPayload(t||{}),this._canSubscribe()&&Zn(this)}async refreshFeatures(e){const t=await this._refresh({...e||{},allowStale:!1});t.data&&await this.setPayload(t.data)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){const e=this._ctx.apiHost||"https://cdn.growthbook.io";return{apiHost:e.replace(/\/*$/,""),streamingHost:(this._ctx.streamingHost||e).replace(/\/*$/,""),apiRequestHeaders:this._ctx.apiHostRequestHeaders,streamingHostRequestHeaders:this._ctx.streamingHostRequestHeaders}}getClientKey(){return this._ctx.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}isRemoteEval(){return this._ctx.remoteEval||!1}getCacheKeyAttributes(){return this._ctx.cacheKeyAttributes}async _refresh(e){var t;let{timeout:n,skipCache:r,allowStale:i,streaming:o}=e;if(!this._ctx.clientKey)throw new Error("Missing clientKey");return Xn({instance:this,timeout:n,skipCache:r||this._ctx.disableCache,allowStale:i,backgroundSync:null===(t=null!=o?o:this._ctx.backgroundSync)||void 0===t||t})}_render(){if(this._renderer)try{this._renderer()}catch(e){console.error("Failed to render",e)}}setFeatures(e){this._ctx.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,t,n){const r=await Mn(e,t||this._ctx.decryptionKey,n);this.setFeatures(JSON.parse(r))}setExperiments(e){this._ctx.experiments=e,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(e,t,n){const r=await Mn(e,t||this._ctx.decryptionKey,n);this.setExperiments(JSON.parse(r))}async decryptPayload(e,t,n){if((e={...e}).encryptedFeatures){try{e.features=JSON.parse(await Mn(e.encryptedFeatures,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedFeatures}if(e.encryptedExperiments){try{e.experiments=JSON.parse(await Mn(e.encryptedExperiments,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedExperiments}if(e.encryptedSavedGroups){try{e.savedGroups=JSON.parse(await Mn(e.encryptedSavedGroups,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedSavedGroups}return e}async setAttributes(e){this._ctx.attributes=e,this._ctx.stickyBucketService&&await this.refreshStickyBuckets(),this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}async updateAttributes(e){return this.setAttributes({...this._ctx.attributes,...e})}async setAttributeOverrides(e){this._attributeOverrides=e,this._ctx.stickyBucketService&&await this.refreshStickyBuckets(),this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}async setForcedVariations(e){this._ctx.forcedVariations=e||{},this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}setForcedFeatures(e){this._forcedFeatureValues=e,this._render()}async setURL(e){if(e!==this._ctx.url){if(this._ctx.url=e,this._redirectedUrl="",this._ctx.remoteEval)return await this._refreshForRemoteEval(),void this._updateAllAutoExperiments(!0);this._updateAllAutoExperiments(!0)}}getAttributes(){return{...this._ctx.attributes,...this._attributeOverrides}}getForcedVariations(){return this._ctx.forcedVariations||{}}getForcedFeatures(){return this._forcedFeatureValues||new Map}getStickyBucketAssignmentDocs(){return this._ctx.stickyBucketAssignmentDocs||{}}getUrl(){return this._ctx.url||""}getFeatures(){return this._ctx.features||{}}getExperiments(){return this._ctx.experiments||[]}getCompletedChangeIds(){return Array.from(this._completedChangeIds)}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}_canSubscribe(){var e;return(null===(e=this._ctx.backgroundSync)||void 0===e||e)&&this._ctx.subscribeToChanges}async _refreshForRemoteEval(){if(!this._ctx.remoteEval)return;if(!this._initialized)return;const e=await this._refresh({allowStale:!1});e.data&&await this.setPayload(e.data)}getAllResults(){return new Map(this._assigned)}destroy(){var e;this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._completedChangeIds.clear(),this._deferredTrackingCalls.clear(),this._trackedFeatures={},this._rtQueue=[],this._payload=void 0,this._rtTimer&&clearTimeout(this._rtTimer),e=this,Un.forEach((t=>t.delete(e))),ni&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach((e=>{e.undo()})),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(e){this._renderer=e}forceVariation(e,t){this._ctx.forcedVariations=this._ctx.forcedVariations||{},this._ctx.forcedVariations[e]=t,this._ctx.remoteEval?this._refreshForRemoteEval():(this._updateAllAutoExperiments(),this._render())}run(e){const{result:t}=this._run(e,null);return this._fireSubscriptions(e,t),t}triggerExperiment(e){if(this._triggeredExpKeys.add(e),!this._ctx.experiments)return null;return this._ctx.experiments.filter((t=>t.key===e)).map((e=>this._runAutoExperiment(e))).filter((e=>null!==e))}triggerAutoExperiments(){this._autoExperimentsAllowed=!0,this._updateAllAutoExperiments(!0)}_runAutoExperiment(e,t){const n=this._activeAutoExperiments.get(e);if(e.manual&&!this._triggeredExpKeys.has(e.key)&&!n)return null;let r,i;this._isAutoExperimentBlockedByContext(e)?r=this._getResult(e,-1,!1,""):(({result:r,trackingCall:i}=this._run(e,null)),this._fireSubscriptions(e,r));const o=JSON.stringify(r.value);if(!t&&r.inExperiment&&n&&n.valueHash===o)return r;if(n&&this._undoActiveAutoExperiment(e),r.inExperiment){const t=Bn(e);if("redirect"===t&&r.value.urlRedirect&&e.urlPatterns){const t=e.persistQueryString?function(e,t){let n,r;try{n=new URL(e),r=new URL(t)}catch(e){return console.error("Unable to merge query strings: ".concat(e)),t}return n.searchParams.forEach(((e,t)=>{r.searchParams.has(t)||r.searchParams.set(t,e)})),r.toString()}(this._getContextUrl(),r.value.urlRedirect):r.value.urlRedirect;if(An(t,e.urlPatterns))return this.log("Skipping redirect because original URL matches redirect URL",{id:e.key}),r;this._redirectedUrl=t;const{navigate:n,delay:o}=this._getNavigateFunction();var s;if(n)if(ni)Promise.all([...i?[Hn(i,null!==(s=this._ctx.maxNavigateDelay)&&void 0!==s?s:1e3)]:[],new Promise((e=>{var t;return window.setTimeout(e,null!==(t=this._ctx.navigateDelay)&&void 0!==t?t:o)}))]).then((()=>{try{n(t)}catch(e){console.error(e)}}));else try{n(t)}catch(e){console.error(e)}}else if("visual"===t){const t=this._ctx.applyDomChangesCallback?this._ctx.applyDomChangesCallback(r.value):this._applyDOMChanges(r.value);t&&this._activeAutoExperiments.set(e,{undo:t,valueHash:o})}}return r}_undoActiveAutoExperiment(e){const t=this._activeAutoExperiments.get(e);t&&(t.undo(),this._activeAutoExperiments.delete(e))}_updateAllAutoExperiments(e){if(!this._autoExperimentsAllowed)return;const t=this._ctx.experiments||[],n=new Set(t);this._activeAutoExperiments.forEach(((e,t)=>{n.has(t)||(e.undo(),this._activeAutoExperiments.delete(t))}));for(const n of t){const t=this._runAutoExperiment(n,e);if(null!=t&&t.inExperiment&&"redirect"===Bn(n))break}}_fireSubscriptions(e,t){const n=e.key,r=this._assigned.get(n);r&&r.result.inExperiment===t.inExperiment&&r.result.variationId===t.variationId||(this._assigned.set(n,{experiment:e,result:t}),this._subscriptions.forEach((n=>{try{n(e,t)}catch(e){console.error(e)}})))}_trackFeatureUsage(e,t){if("override"===t.source)return;const n=JSON.stringify(t.value);if(this._trackedFeatures[e]!==n){if(this._trackedFeatures[e]=n,this._ctx.onFeatureUsage)try{this._ctx.onFeatureUsage(e,t)}catch(e){}ni&&window.fetch&&(this._rtQueue.push({key:e,on:t.on}),this._rtTimer||(this._rtTimer=window.setTimeout((()=>{this._rtTimer=0;const e=[...this._rtQueue];this._rtQueue=[],this._ctx.realtimeKey&&window.fetch("https://rt.growthbook.io/?key=".concat(this._ctx.realtimeKey,"&events=").concat(encodeURIComponent(JSON.stringify(e))),{cache:"no-cache",mode:"no-cors"}).catch((()=>{}))}),this._ctx.realtimeInterval||2e3)))}}_getFeatureResult(e,t,n,r,i,o){const s={value:t,on:!!t,off:!t,source:n,ruleId:r||""};return i&&(s.experiment=i),o&&(s.experimentResult=o),this._trackFeatureUsage(e,s),s}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,t){const n=this.evalFeature(e).value;return null===n?t:n}feature(e){return this.evalFeature(e)}evalFeature(e){return this._evalFeature(e)}_evalFeature(e,t){if((t=t||{evaluatedFeatures:new Set}).evaluatedFeatures.has(e))return this._getFeatureResult(e,null,"cyclicPrerequisite");if(t.evaluatedFeatures.add(e),t.id=e,this._forcedFeatureValues.has(e))return this._getFeatureResult(e,this._forcedFeatureValues.get(e),"override");if(!this._ctx.features||!this._ctx.features[e])return this._getFeatureResult(e,null,"unknownFeature");const n=this._ctx.features[e];if(n.rules)e:for(const r of n.rules){if(r.parentConditions)for(const n of r.parentConditions){const r=this._evalFeature(n.id,t);if("cyclicPrerequisite"===r.source)return this._getFeatureResult(e,null,"cyclicPrerequisite");if(!Gr({value:r.value},n.condition||{})){if(n.gate)return this._getFeatureResult(e,null,"prerequisite");continue e}}if(r.filters&&this._isFilteredOut(r.filters))continue;if("force"in r){if(r.condition&&!this._conditionPasses(r.condition))continue;if(!this._isIncludedInRollout(r.seed||e,r.hashAttribute,this._ctx.stickyBucketService&&!r.disableStickyBucketing?r.fallbackAttribute:void 0,r.range,r.coverage,r.hashVersion))continue;return r.tracks&&r.tracks.forEach((e=>{this._track(e.experiment,e.result)})),this._getFeatureResult(e,r.force,"force",r.id)}if(!r.variations)continue;const n={variations:r.variations,key:r.key||e};"coverage"in r&&(n.coverage=r.coverage),r.weights&&(n.weights=r.weights),r.hashAttribute&&(n.hashAttribute=r.hashAttribute),r.fallbackAttribute&&(n.fallbackAttribute=r.fallbackAttribute),r.disableStickyBucketing&&(n.disableStickyBucketing=r.disableStickyBucketing),void 0!==r.bucketVersion&&(n.bucketVersion=r.bucketVersion),void 0!==r.minBucketVersion&&(n.minBucketVersion=r.minBucketVersion),r.namespace&&(n.namespace=r.namespace),r.meta&&(n.meta=r.meta),r.ranges&&(n.ranges=r.ranges),r.name&&(n.name=r.name),r.phase&&(n.phase=r.phase),r.seed&&(n.seed=r.seed),r.hashVersion&&(n.hashVersion=r.hashVersion),r.filters&&(n.filters=r.filters),r.condition&&(n.condition=r.condition);const{result:i}=this._run(n,e);if(this._fireSubscriptions(n,i),i.inExperiment&&!i.passthrough)return this._getFeatureResult(e,i.value,"experiment",r.id,n,i)}return this._getFeatureResult(e,void 0===n.defaultValue?null:n.defaultValue,"defaultValue")}_isIncludedInRollout(e,t,n,r,i,o){if(!r&&void 0===i)return!0;if(!r&&0===i)return!1;const{hashValue:s}=this._getHashAttribute(t,n);if(!s)return!1;const a=Cn(e,s,o||1);return null!==a&&(r?Tn(a,r):void 0===i||a<=i)}_conditionPasses(e){return Gr(this.getAttributes(),e,this._ctx.savedGroups||{})}_isFilteredOut(e){return e.some((e=>{const{hashValue:t}=this._getHashAttribute(e.attribute);if(!t)return!0;const n=Cn(e.seed,t,e.hashVersion||2);return null===n||!e.ranges.some((e=>Tn(n,e)))}))}_run(e,t){const n=e.key,r=e.variations.length;if(r<2)return{result:this._getResult(e,-1,!1,t)};if(!1===this._ctx.enabled)return{result:this._getResult(e,-1,!1,t)};if((e=this._mergeOverrides(e)).urlPatterns&&!An(this._getContextUrl(),e.urlPatterns))return{result:this._getResult(e,-1,!1,t)};const i=function(e,t,n){if(!t)return null;const r=t.split("?")[1];if(!r)return null;const i=r.replace(/#.*/,"").split("&").map((e=>e.split("=",2))).filter((t=>{let[n]=t;return n===e})).map((e=>{let[,t]=e;return parseInt(t)}));return i.length>0&&i[0]>=0&&i[0]=0,a=t,c=!!n}if(!l){if(e.filters){if(this._isFilteredOut(e.filters))return{result:this._getResult(e,-1,!1,t)}}else if(e.namespace&&!function(e,t){const n=Cn("__"+t[0],e,1);return null!==n&&n>=t[1]&&ne&&e.experiment&&e.result)).map((e=>[this._getTrackKey(e.experiment,e.result),e])))}async fireDeferredTrackingCalls(){if(!this._ctx.trackingCallback)return;const e=[];this._deferredTrackingCalls.forEach((t=>{t&&t.experiment&&t.result?e.push(this._track(t.experiment,t.result)):console.error("Invalid deferred tracking call",{call:t})})),this._deferredTrackingCalls.clear(),await Promise.all(e)}setTrackingCallback(e){this._ctx.trackingCallback=e,this.fireDeferredTrackingCalls()}_getTrackKey(e,t){return t.hashAttribute+t.hashValue+e.key+t.variationId}async _track(e,t){const n=this._getTrackKey(e,t);if(this._ctx.trackingCallback){if(!this._trackedExperiments.has(n)){this._trackedExperiments.add(n);try{await this._ctx.trackingCallback(e,t)}catch(e){console.error(e)}}}else this._deferredTrackingCalls.has(n)||this._deferredTrackingCalls.set(n,{experiment:e,result:t})}_mergeOverrides(e){const t=e.key,n=this._ctx.overrides;return n&&n[t]&&"string"==typeof(e=Object.assign({},e,n[t])).url&&(e.url=Pn(e.url)),e}_getHashAttribute(e,t){let n=e||"id",r="";return this._attributeOverrides[n]?r=this._attributeOverrides[n]:this._ctx.attributes?r=this._ctx.attributes[n]||"":this._ctx.user&&(r=this._ctx.user[n]||""),!r&&t&&(this._attributeOverrides[t]?r=this._attributeOverrides[t]:this._ctx.attributes?r=this._ctx.attributes[t]||"":this._ctx.user&&(r=this._ctx.user[t]||""),r&&(n=t)),{hashAttribute:n,hashValue:r}}_getResult(e,t,n,r,i,o){let s=!0;(t<0||t>=e.variations.length)&&(t=0,s=!1);const{hashAttribute:a,hashValue:l}=this._getHashAttribute(e.hashAttribute,this._ctx.stickyBucketService&&!e.disableStickyBucketing?e.fallbackAttribute:void 0),c=e.meta?e.meta[t]:{},u={key:c.key||""+t,featureId:r,inExperiment:s,hashUsed:n,variationId:t,value:e.variations[t],hashAttribute:a,hashValue:l,stickyBucketUsed:!!o};return c.name&&(u.name=c.name),void 0!==i&&(u.bucket=i),c.passthrough&&(u.passthrough=c.passthrough),u}_getContextUrl(){return this._ctx.url||(ni?window.location.href:"")}_urlIsValid(e){const t=this._getContextUrl();if(!t)return!1;const n=t.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!e.test(t)||!!e.test(n)}_hasGroupOverlap(e){const t=this._ctx.groups||{};for(let n=0;ne.js)))return!0}else{if("redirect"!==t)return!0;if(this._ctx.disableUrlRedirectExperiments)return!0;try{const t=new URL(this._getContextUrl());for(const n of e.variations){if(!n||!n.urlRedirect)continue;const e=new URL(n.urlRedirect);if(this._ctx.disableCrossOriginUrlRedirectExperiments){if(e.protocol!==t.protocol)return!0;if(e.host!==t.host)return!0}}}catch(t){return this.log("Error parsing current or redirect URL",{id:e.key,error:t}),!0}}return!(!e.changeId||!(this._ctx.blockedChangeIds||[]).includes(e.changeId))}getRedirectUrl(){return this._redirectedUrl}_getNavigateFunction(){return this._ctx.navigate?{navigate:this._ctx.navigate,delay:0}:ni?{navigate:e=>{window.location.replace(e)},delay:100}:{navigate:null,delay:0}}_applyDOMChanges(e){if(!ni)return;const t=[];if(e.css){const n=document.createElement("style");n.innerHTML=e.css,document.head.appendChild(n),t.push((()=>n.remove()))}if(e.js){const n=document.createElement("script");n.innerHTML=e.js,this._ctx.jsInjectionNonce&&(n.nonce=this._ctx.jsInjectionNonce),document.head.appendChild(n),t.push((()=>n.remove()))}return e.domMutations&&e.domMutations.forEach((e=>{t.push(Wr.declarative(e).revert)})),()=>{t.forEach((e=>e()))}}_deriveStickyBucketIdentifierAttributes(e){const t=new Set,n=e&&e.features?e.features:this.getFeatures(),r=e&&e.experiments?e.experiments:this.getExperiments();return Object.keys(n).forEach((e=>{const r=n[e];if(r.rules)for(const e of r.rules)e.variations&&(t.add(e.hashAttribute||"id"),e.fallbackAttribute&&t.add(e.fallbackAttribute))})),r.map((e=>{t.add(e.hashAttribute||"id"),e.fallbackAttribute&&t.add(e.fallbackAttribute)})),Array.from(t)}async refreshStickyBuckets(e){if(this._ctx.stickyBucketService){const t=this._getStickyBucketAttributes(e);this._ctx.stickyBucketAssignmentDocs=await this._ctx.stickyBucketService.getAllAssignments(t)}}_getStickyBucketAssignments(e,t){if(!this._ctx.stickyBucketAssignmentDocs)return{};const{hashAttribute:n,hashValue:r}=this._getHashAttribute(e),i="".concat(n,"||").concat(Nn(r)),{hashAttribute:o,hashValue:s}=this._getHashAttribute(t),a=s?"".concat(o,"||").concat(Nn(s)):null,l={};return a&&this._ctx.stickyBucketAssignmentDocs[a]&&Object.assign(l,this._ctx.stickyBucketAssignmentDocs[a].assignments||{}),this._ctx.stickyBucketAssignmentDocs[i]&&Object.assign(l,this._ctx.stickyBucketAssignmentDocs[i].assignments||{}),l}_getStickyBucketVariation(e){let{expKey:t,expBucketVersion:n,expHashAttribute:r,expFallbackAttribute:i,expMinBucketVersion:o,expMeta:s}=e;n=n||0,o=o||0,r=r||"id",s=s||[];const a=this._getStickyBucketExperimentKey(t,n),l=this._getStickyBucketAssignments(r,i);if(o>0)for(let e=0;e<=o;e++){if(void 0!==l[this._getStickyBucketExperimentKey(t,e)])return{variation:-1,versionIsBlocked:!0}}const c=l[a];if(void 0===c)return{variation:-1};const u=s.findIndex((e=>e.key===c));return u<0?{variation:-1}:{variation:u}}_getStickyBucketExperimentKey(e,t){return t=t||0,"".concat(e,"__").concat(t)}_getStickyBucketAttributes(e){const t={};return this._ctx.stickyBucketIdentifierAttributes=this._deriveStickyBucketIdentifierAttributes(e),this._ctx.stickyBucketIdentifierAttributes.forEach((e=>{const{hashValue:n}=this._getHashAttribute(e);t[e]=Nn(n)})),t}_generateStickyBucketAssignmentDoc(e,t,n){const r="".concat(e,"||").concat(t),i=this._ctx.stickyBucketAssignmentDocs&&this._ctx.stickyBucketAssignmentDocs[r]&&this._ctx.stickyBucketAssignmentDocs[r].assignments||{},o={...i,...n};return{key:r,doc:{attributeName:e,attributeValue:t,assignments:o},changed:JSON.stringify(i)!==JSON.stringify(o)}}}({apiHost:"https://cdn.growthbook.io",clientKey:window.growthbook_sdk_key,decryptionKey:window.growthbook_decrypt_key,enableDevMode:window.growthbook_dev_mode});function oi(e){const t=window.location.search.substring(1).split("&");let n=null;return t.forEach((t=>{const r=t.split("=");r[0]===e&&(n=decodeURIComponent(r[1].replace(/\+/g,"%20")))})),n}function si(){return document.cookie.split(";").reduce(((e,t)=>{const n=t.indexOf("="),r=t.substring(0,n).trim(),i=t.substring(n+1).trim();return e[r]=i,e}),{})}ii.init({streaming:!0}),window.analytics.ready((function(){ii.setTrackingCallback(((e,t)=>{window.analytics.track("Experiment Viewed",{experimentId:e.key,variationId:t.key})})),ii.setAttributes(Object.assign(Object.assign({},ii.getAttributes()),{id:window.analytics.user().anonymousId(),userId:window.analytics.user().id(),url:window.location.href,path:window.location.pathname,query:window.location.search,referrer:document.referrer,utmCampaign:oi("utm_campaign"),utmSource:oi("utm_source"),utmMedium:oi("utm_medium"),utmTerm:oi("utm_term"),utmContent:oi("utm_content")}))}));const ai=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.showSidebar=!1}componentWillLoad(){this.showSidebar=ii.isOn("copilot-on-docs"),ii.setRenderer((()=>this.showSidebar=ii.isOn("copilot-on-docs")))}render(){return!0===this.showSidebar?Qe(Ze,null,Qe("aside",{id:"ai-sidebar-target"}),Qe("iframe",{id:"ai-sidebar-host",src:this.copilotSrc})):Qe(Ze,null)}static get style(){return":host{display:block}"}},li=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.redirectUrl="/pulumi-up/thank-you/",this.isModalOpen=!1,this.displayingContent="session-select",this.selectedSessions=[],this.skippedSessionSelection=!1,this.processingFormSubmissions=!1,this.formProcessor=void 0,this.error=void 0,this.submittedFormValues={},this.onMessage=e=>{var t;if("hsFormCallback"!==(null===(t=e.data)||void 0===t?void 0:t.type)||!this.isModalOpen)return;const n=e.data.eventName;if("onFormReady"===n&&this.processingFormSubmissions&&this.handleFormSubmissions(),"onFormSubmit"===n){const e=this.el.querySelectorAll("form input"),t={};e.forEach((e=>{"checkbox"!==e.type&&(t[e.name]=e.value)})),this.submittedFormValues=t,setTimeout((()=>{this.selectedSessions=[...this.selectedSessions.slice(1)],this.processingFormSubmissions=!0,0===this.selectedSessions.length&&(window.location.href=this.redirectUrl)}),500)}},this.handleButtonClick=e=>{e.preventDefault(),this.isModalOpen=!0,document.querySelector("body").className+=" disable-scroll"},this.handleCloseModal=e=>{e.preventDefault(),this.isModalOpen=!1,this.skippedSessionSelection||(this.displayingContent="session-select",this.selectedSessions=[]),document.querySelector("body").className=document.querySelector("body").className.replace("disable-scroll","")},this.handleSessionSelection=e=>{const t=this.selectedSessions.indexOf(e);-1===t?this.selectedSessions.push(e):this.selectedSessions.splice(t,1)},this.handleGotToSessionSelect=e=>{e.preventDefault(),this.displayingContent="session-select"}}handleEventSessionInfo(e){this.parsedEventSessions=JSON.parse(e)}handleSkipSessionSelection(e){1===e.length&&(this.selectedSessions.push(e[0].hubspot_form_id),this.displayingContent="form",this.skippedSessionSelection=!0)}componentWillLoad(){this.handleEventSessionInfo(this.eventSessions),this.handleSkipSessionSelection(this.parsedEventSessions)}componentDidLoad(){window.addEventListener("message",this.onMessage)}disconnectedCallback(){window.removeEventListener("message",this.onMessage)}handleGoToForm(e,t){e.preventDefault(),0!==this.selectedSessions.length?(this.displayingContent=t,this.error=void 0):this.error="You must select at least one of the above options."}handleFormSubmissions(){if(0===this.selectedSessions.length)return void(window.location.href=this.redirectUrl);this.el.querySelectorAll("form input[type='checkbox']")[1].click(),setTimeout((()=>{const e=Object.keys(this.submittedFormValues);if(e.length>0)for(let t=0;t{this.el.querySelector("form input[type='submit']").click()}),500)}renderSessionSelectionItem(e){const t=this.selectedSessions.indexOf(e.hubspot_form_id)>-1;return Qe("li",null,Qe("label",{class:"session-selection-item"},Qe("div",{class:"checkbox-container"},Qe("input",{type:"checkbox",id:e.title,name:e.title,onChange:()=>this.handleSessionSelection(e.hubspot_form_id),checked:t}),Qe("span",{class:"checkmark"})),Qe("div",{class:"checkbox-label"},Qe("h6",null,e.title),Qe("p",null,e.description))))}renderSessionSelectContent(){return[Qe("div",{class:"session-select-container"},Qe("p",null,"Please select all the options you'd like to register for:"),Qe("ul",{class:"session-select-list"},this.parsedEventSessions.map((e=>this.renderSessionSelectionItem(e))))),Qe("div",{class:"next-button-container"},Qe("a",{href:"#",class:`${this.buttonClass} modal-button`,onClick:e=>this.handleGoToForm(e,"form")},"Next"),this.error?Qe("p",{class:"error-message"},this.error):null)]}renderForm(e){return this.processingFormSubmissions?Qe("div",null,Qe("h4",null,Qe("i",{class:"fas fa-spinner fa-spin"})),Qe("div",{class:"invisible",ref:e=>this.formProcessor=e},Qe("pulumi-hubspot-form",{key:e,formId:e}))):Qe("div",{class:"registration-form-container"},this.skippedSessionSelection?null:Qe("a",{href:"#",onClick:this.handleGotToSessionSelect},"← Go back to select sessions."),Qe("div",{class:"registration-form"},Qe("pulumi-hubspot-form",{formId:this.selectedSessions[0]})))}renderContent(){switch(console.log("rendering content"),this.displayingContent){case"session-select":return this.renderSessionSelectContent();case"form":return console.log("rendering form"),this.renderForm(this.selectedSessions[0])}}renderModal(){return Qe("div",{class:"event-session-modal-container"},Qe("div",{class:"modal-container"},Qe("div",{class:"modal"},Qe("div",{class:"title-container"},Qe("div",{class:"title-text"},Qe("h4",null,this.modalTitle)),Qe("div",{class:"close-icon"},Qe("i",{class:"fa fa-times",onClick:this.handleCloseModal}))),this.renderContent())))}render(){return Qe(Ze,null,Qe("div",null,Qe("div",null,Qe("a",{class:this.buttonClass,href:"#",onClick:this.handleButtonClick},this.buttonText)),this.isModalOpen?this.renderModal():null))}get el(){return this}static get watchers(){return{eventSessions:["handleEventSessionInfo"]}}static get style(){return':host{display:block}.event-session-modal-container{position:fixed;width:100%;height:100%;background-color:black;z-index:9999;top:0;left:0}.event-session-modal-container .hidden{display:none}.event-session-modal-container .modal-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.event-session-modal-container .modal-container h2,.event-session-modal-container .modal-container h3,.event-session-modal-container .modal-container h4,.event-session-modal-container .modal-container h5,.event-session-modal-container .modal-container h6,.event-session-modal-container .modal-container p{color:black}.event-session-modal-container .modal-container .modal{height:85%;width:85%;background-color:white;border-radius:5px;padding:1.5rem;overflow-y:scroll}.event-session-modal-container .modal-container .modal .title-container{display:flex;border-bottom:1px solid black}.event-session-modal-container .modal-container .modal .title-container .title-text{width:75%;text-align:left}.event-session-modal-container .modal-container .modal .title-container .title-text h2{color:black}.event-session-modal-container .modal-container .modal .title-container .close-icon{width:25%;text-align:right}.event-session-modal-container .modal-container .modal .title-container .close-icon i{cursor:pointer;font-size:1.5rem}.event-session-modal-container .modal-container .modal .session-select-container{text-align:left}.event-session-modal-container .modal-container .modal .session-select-container p{font-size:1.25rem;margin-top:2rem}.event-session-modal-container .modal-container .modal .session-select-list{list-style:none;text-align:left;display:flex;flex-wrap:wrap;align-items:stretch}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container{width:10%;position:relative;cursor:pointer}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input{position:absolute;opacity:0;height:0;width:0}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark{position:absolute;height:25px;width:25px;border:2px solid #805ac3;border-radius:5px;background-color:white}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark:after{content:"";position:absolute;display:none;left:8px;top:5px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark{background-color:#805ac3}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark:after{display:block}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-label{width:90%}.event-session-modal-container .modal-container .modal .session-select-list li{width:50%;padding:0.75rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list li{width:100%}}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item{height:100%;display:flex;justify-items:center;align-items:start;cursor:pointer;border:1px solid black;border-radius:5px;padding:1rem;border-radius:5px}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item:hover{background-color:#f9f9fa}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item p{font-size:1rem;margin-top:0.5rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item h6{padding-left:1rem}}.event-session-modal-container .modal-container .modal .next-button-container{text-align:right}.event-session-modal-container .modal-container .modal .next-button-container .modal-button{display:inline-block}.event-session-modal-container .modal-container .modal .next-button-container .modal-button:hover{background-color:#4d3675}.event-session-modal-container .modal-container .modal .next-button-container .error-message{color:red}.event-session-modal-container .modal-container .modal .registration-form-container{text-align:left;padding-top:0.5rem}.event-session-modal-container .modal-container .modal .registration-form-container a{color:black}.event-session-modal-container .modal-container .modal .registration-form-container a:hover{text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form{max-width:36rem;margin:0 auto;text-align:left}.event-session-modal-container .modal-container .modal .registration-form form{padding:0.25rem}.event-session-modal-container .modal-container .modal .registration-form a{color:black;text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form a:hover{font-weight:bold}'}},ci=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.buttonClass="",this.loading=!0,this.isLoggedIn=!1}componentWillRender(){var e;try{const t=null!==(e=si().pulumi_web_user_info)&&void 0!==e?e:"j:{}",n=JSON.parse(decodeURIComponent(t).slice(2));n&&n.userId&&""!==n.userId&&(this.isLoggedIn=!0)}catch(e){}this.loading=!1}render(){if(!this.loading)return this.isLoggedIn?Qe("a",{class:this.buttonClass,"data-track":"header-signup",href:"https://app.pulumi.com/signup?utm_source=header-button",target:"_blank",rel:"noopener noreferrer",title:"Dashboard"},"Dashboard"):Qe("a",{class:this.buttonClass,"data-track":"header-signup",href:"https://app.pulumi.com/signup?utm_source=header-button",title:"Sign up"},"Sign up")}static get style(){return":host{display:block}"}},ui=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.leftItems="",this.centerItems="",this.rightItems="",this.imageClass="",this.columnOne=[],this.columnTwo=[],this.columnThree=[]}componentDidLoad(){this.columnOne=this.shuffleArray(this.leftItems.split(",")),this.columnTwo=this.shuffleArray(this.centerItems.split(",")),this.columnThree=this.shuffleArray(this.rightItems.split(",")),this.startRotators()}shuffleArray(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}startRotators(){this.columnOneRotator=setInterval((()=>this.incrementColumnOne()),400),setTimeout((()=>{this.columnTwoRotator=setInterval((()=>this.incrementColumnTwo()),400)}),500),setTimeout((()=>{this.columnThreeRotator=setInterval((()=>this.incrementColumnThree()),400)}),1e3),setTimeout((()=>this.stopRotators()),3e3)}stopRotators(){clearInterval(this.columnOneRotator),setTimeout((()=>clearInterval(this.columnTwoRotator)),500),setTimeout((()=>clearInterval(this.columnThreeRotator)),1e3),setTimeout((()=>this.startRotators()),1e4)}incrementColumnOne(){this.columnOne=this.updateOrder(this.columnOne)}incrementColumnTwo(){this.columnTwo=this.updateOrder(this.columnTwo)}incrementColumnThree(){this.columnThree=this.updateOrder(this.columnThree)}updateOrder(e){const t=[...e],n=t.shift();return t.push(n),t}render(){const e=this.columnOne[0],t=this.columnTwo[0],n=this.columnThree[0];return Qe(Ze,null,Qe("div",null,Qe("div",{class:"slot-container"},Qe("div",{class:"item-container"},Qe("img",{key:e,class:this.imageClass,src:e})),Qe("div",{class:"separator-container"},"+"),Qe("div",{class:"item-container"},Qe("img",{key:t,class:this.imageClass,src:t})),Qe("div",{class:"separator-container"},"+"),Qe("div",{class:"item-container"},Qe("img",{key:n,class:this.imageClass,src:n})))))}static get style(){return"home-slots .slot-container{display:flex;align-items:center;justify-items:center;text-align:center}home-slots .slot-container .item-container{width:25%;text-align:center}home-slots .slot-container .item-container img{animation:fadeIn 500ms}home-slots .slot-container .separator-container{width:12.5%;text-align:center}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}"}},di=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.buttonClass="",this.loading=!0,this.isLoggedIn=!1}componentWillRender(){var e;try{const t=null!==(e=si().pulumi_web_user_info)&&void 0!==e?e:"j:{}",n=JSON.parse(decodeURIComponent(t).slice(2));n&&n.userId&&""!==n.userId&&(this.isLoggedIn=!0)}catch(e){}this.loading=!1}render(){if(!this.loading)return this.isLoggedIn?Qe("a",{class:this.buttonClass,href:"https://app.pulumi.com/?create-organization=1",target:"_blank"},this.signedInText):Qe("a",{class:this.buttonClass,href:"https://app.pulumi.com/signup/",target:"_blank"},this.signedOutText)}};var pi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function fi(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}function hi(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var mi=fi((function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",s=16,a=32,l=64,c=128,u=256,d=1/0,p=9007199254740991,f=NaN,h=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",a],["partialRight",l],["rearg",u]],v="[object Arguments]",g="[object Array]",y="[object Boolean]",b="[object Date]",w="[object Error]",_="[object Function]",S="[object GeneratorFunction]",x="[object Map]",k="[object Number]",O="[object Object]",$="[object Promise]",E="[object RegExp]",C="[object Set]",T="[object String]",P="[object Symbol]",A="[object WeakMap]",j="[object ArrayBuffer]",I="[object DataView]",L="[object Float32Array]",D="[object Float64Array]",M="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",H="[object Uint16Array]",V="[object Uint32Array]",q=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,G=RegExp(W.source),J=RegExp(K.source),Y=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+/,oe=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",$e="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Pe="["+Se+"]",Ae="["+Ce+"]",je="["+xe+"]",Ie="\\d+",Le="["+ke+"]",De="["+Oe+"]",Me="[^"+Se+Ce+Ie+ke+Oe+$e+"]",Ne="\\ud83c[\\udffb-\\udfff]",Re="[^"+Se+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+$e+"]",Ve="\\u200d",qe="(?:"+De+"|"+Me+")",ze="(?:"+He+"|"+Me+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+je+"|"+Ne+")"+"?",Ge="["+Ee+"]?",Je=Ge+Ke+("(?:"+Ve+"(?:"+[Re,Fe,Be].join("|")+")"+Ge+Ke+")*"),Ye="(?:"+[Le,Fe,Be].join("|")+")"+Je,Qe="(?:"+[Re+je+"?",je,Fe,Be,Pe].join("|")+")",Xe=RegExp(Te,"g"),Ze=RegExp(je,"g"),et=RegExp(Ne+"(?="+Ne+")|"+Qe+Je,"g"),tt=RegExp([He+"?"+De+"+"+Ue+"(?="+[Ae,He,"$"].join("|")+")",ze+"+"+We+"(?="+[Ae,He+qe,"$"].join("|")+")",He+"?"+qe+"+"+Ue,He+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ye].join("|"),"g"),nt=RegExp("["+Ve+Se+xe+Ee+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,st={};st[L]=st[D]=st[M]=st[N]=st[R]=st[F]=st[B]=st[H]=st[V]=!0,st[v]=st[g]=st[j]=st[y]=st[I]=st[b]=st[w]=st[_]=st[x]=st[k]=st[O]=st[E]=st[C]=st[T]=st[A]=!1;var at={};at[v]=at[g]=at[j]=at[I]=at[y]=at[b]=at[L]=at[D]=at[M]=at[N]=at[R]=at[x]=at[k]=at[O]=at[E]=at[C]=at[T]=at[P]=at[F]=at[B]=at[H]=at[V]=!0,at[w]=at[_]=at[A]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof pi&&pi&&pi.Object===Object&&pi,pt="object"==typeof self&&self&&self.Object===Object&&self,ft=dt||pt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,vt=mt&&mt.exports===ht,gt=vt&&dt.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||gt&>.binding&>.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,_t=yt&&yt.isMap,St=yt&&yt.isRegExp,xt=yt&&yt.isSet,kt=yt&&yt.isTypedArray;function Ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function $t(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function jt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function tn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),on=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+lt[e]}function an(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,i=0,s=[];++n",""":'"',"'":"'"});var gn=function e(t){var oe,Se=(t=null==t?ft:gn.defaults(ft.Object(),t,gn.pick(ft,it))).Array,xe=t.Date,ke=t.Error,Oe=t.Function,$e=t.Math,Ee=t.Object,Ce=t.RegExp,Te=t.String,Pe=t.TypeError,Ae=Se.prototype,je=Oe.prototype,Ie=Ee.prototype,Le=t["__core-js_shared__"],De=je.toString,Me=Ie.hasOwnProperty,Ne=0,Re=(oe=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",Fe=Ie.toString,Be=De.call(Ee),He=ft._,Ve=Ce("^"+De.call(Me).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=vt?t.Buffer:n,ze=t.Symbol,Ue=t.Uint8Array,We=qe?qe.allocUnsafe:n,Ke=cn(Ee.getPrototypeOf,Ee),Ge=Ee.create,Je=Ie.propertyIsEnumerable,Ye=Ae.splice,Qe=ze?ze.isConcatSpreadable:n,et=ze?ze.iterator:n,nt=ze?ze.toStringTag:n,lt=function(){try{var e=ho(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,pt=xe&&xe.now!==ft.Date.now&&xe.now,ht=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=$e.ceil,gt=$e.floor,yt=Ee.getOwnPropertySymbols,Rt=qe?qe.isBuffer:n,Wt=t.isFinite,yn=Ae.join,bn=cn(Ee.keys,Ee),wn=$e.max,_n=$e.min,Sn=xe.now,xn=t.parseInt,kn=$e.random,On=Ae.reverse,$n=ho(t,"DataView"),En=ho(t,"Map"),Cn=ho(t,"Promise"),Tn=ho(t,"Set"),Pn=ho(t,"WeakMap"),An=ho(Ee,"create"),jn=Pn&&new Pn,In={},Ln=Ho($n),Dn=Ho(En),Mn=Ho(Cn),Nn=Ho(Tn),Rn=Ho(Pn),Fn=ze?ze.prototype:n,Bn=Fn?Fn.valueOf:n,Hn=Fn?Fn.toString:n;function Vn(e){if(ia(e)&&!Ks(e)&&!(e instanceof Wn)){if(e instanceof Un)return e;if(Me.call(e,"__wrapped__"))return Vo(e)}return new Un(e)}var qn=function(){function e(){}return function(t){if(!ra(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function zn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ur(e,t,r,i,o,s){var a,l=1&t,c=2&t,u=4&t;if(r&&(a=o?r(e,i,o,s):r(e)),a!==n)return a;if(!ra(e))return e;var d=Ks(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ai(e,a)}else{var p=go(e),f=p==_||p==S;if(Qs(e))return Oi(e,l);if(p==O||p==v||f&&!o){if(a=c||f?{}:bo(e),!l)return c?function(e,t){return ji(e,vo(e),t)}(e,function(e,t){return e&&ji(t,Da(t),e)}(a,e)):function(e,t){return ji(e,mo(e),t)}(e,sr(a,e))}else{if(!at[p])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case j:return $i(e);case y:case b:return new r(+e);case I:return function(e,t){var n=t?$i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case D:case M:case N:case R:case F:case B:case H:case V:return Ei(e,n);case x:return new r;case k:case T:return new r(e);case E:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new r;case P:return i=e,Bn?Ee(Bn.call(i)):{}}var i}(e,p,l)}}s||(s=new Qn);var h=s.get(e);if(h)return h;s.set(e,a),ca(e)?e.forEach((function(n){a.add(ur(n,t,r,n,e,s))})):oa(e)&&e.forEach((function(n,i){a.set(i,ur(n,t,r,i,e,s))}));var m=d?n:(u?c?so:oo:c?Da:La)(e);return Et(m||e,(function(n,i){m&&(n=e[i=n]),rr(a,i,ur(n,t,r,i,e,s))})),a}function dr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Ee(e);i--;){var o=r[i],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function pr(e,t,i){if("function"!=typeof e)throw new Pe(r);return Lo((function(){e.apply(n,i)}),t)}function fr(e,t,n,r){var i=-1,o=At,s=!0,a=e.length,l=[],c=t.length;if(!a)return l;n&&(t=It(t,Qt(n))),r?(o=jt,s=!1):t.length>=200&&(o=Zt,s=!1,t=new Yn(t));e:for(;++i-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(En||Gn),string:new Kn}},Jn.prototype.delete=function(e){var t=po(this,e).delete(e);return this.size-=t?1:0,t},Jn.prototype.get=function(e){return po(this,e).get(e)},Jn.prototype.has=function(e){return po(this,e).has(e)},Jn.prototype.set=function(e,t){var n=po(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,i),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(e,t),this.size=n.size,this};var hr=Di(Sr),mr=Di(xr,!0);function vr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,r){for(var i=-1,o=e.length;++i0&&n(a)?t>1?br(a,t-1,n,r,i):Lt(i,a):r||(i[i.length]=a)}return i}var wr=Mi(),_r=Mi(!0);function Sr(e,t){return e&&wr(e,t,La)}function xr(e,t){return e&&_r(e,t,La)}function kr(e,t){return Pt(t,(function(t){return ea(e[t])}))}function Or(e,t){for(var r=0,i=(t=_i(t,e)).length;null!=e&&rt}function Tr(e,t){return null!=e&&Me.call(e,t)}function Pr(e,t){return null!=e&&t in Ee(e)}function Ar(e,t,r){for(var i=r?jt:At,o=e[0].length,s=e.length,a=s,l=Se(s),c=1/0,u=[];a--;){var d=e[a];a&&t&&(d=It(d,Qt(t))),c=_n(d.length,c),l[a]=!r&&(t||o>=120&&d.length>=120)?new Yn(a&&d):n}d=e[0];var p=-1,f=l[0];e:for(;++p=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Kr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)a!==e&&Ye.call(a,l,1),Ye.call(e,l,1);return e}function Jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;_o(i)?Ye.call(e,i,1):fi(e,i)}}return e}function Yr(e,t){return e+gt(kn()*(t-e+1))}function Qr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Do(To(e,t,sl),e+"")}function Zr(e){return Zn(qa(e))}function ei(e,t){var n=qa(e);return Ro(n,cr(t,0,n.length))}function ti(e,t,r,i){if(!ra(e))return e;for(var o=-1,s=(t=_i(t,e)).length,a=s-1,l=e;null!=l&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Se(i);++r>>1,s=e[o];null!==s&&!da(s)&&(n?s<=t:s=200){var c=t?null:Qi(e);if(c)return dn(c);s=!1,i=Zt,l=new Yn}else l=t?[]:a;e:for(;++r=i?e:oi(e,t,r)}var ki=dt||function(e){return ft.clearTimeout(e)};function Oi(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function $i(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Ei(e,t){var n=t?$i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ci(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,s=da(e),a=t!==n,l=null===t,c=t==t,u=da(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!u&&e1?r[o-1]:n,a=o>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&So(r[0],r[1],a)&&(s=o<3?n:s,o=1),t=Ee(t);++i-1?o[s?t[a]:a]:n}}function Hi(e){return io((function(t){var i=t.length,o=i,s=Un.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new Pe(r);if(s&&!l&&"wrapper"==lo(a))var l=new Un([],!0)}for(o=l?o:i;++o1&&y.reverse(),p&&ul))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=2&r?new Yn:n;for(s.set(e,t),s.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Et(m,(function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function No(e){var t=0,r=0;return function(){var i=Sn(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ro(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ls(e,r)}));function ms(e){var t=Vn(e);return t.__chain__=!0,t}function vs(e,t){return t(e)}var gs=io((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Wn&&_o(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:vs,args:[o],thisArg:n}),new Un(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var ys=Ii((function(e,t,n){Me.call(e,n)?++e[n]:ar(e,n,1)}));var bs=Bi(Wo),ws=Bi(Ko);function _s(e,t){return(Ks(e)?Et:hr)(e,uo(t,3))}function Ss(e,t){return(Ks(e)?Ct:mr)(e,uo(t,3))}var xs=Ii((function(e,t,n){Me.call(e,n)?e[n].push(t):ar(e,n,[t])}));var ks=Xr((function(e,t,n){var r=-1,i="function"==typeof t,o=Js(e)?Se(e.length):[];return hr(e,(function(e){o[++r]=i?Ot(t,e,n):jr(e,t,n)})),o})),Os=Ii((function(e,t,n){ar(e,n,t)}));function $s(e,t){return(Ks(e)?It:Hr)(e,uo(t,3))}var Es=Ii((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Cs=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&So(e,t[0],t[1])?t=[]:n>2&&So(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,br(t,1),[])})),Ts=pt||function(){return ft.Date.now()};function Ps(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Zi(e,c,n,n,n,n,t)}function As(e,t){var i;if("function"!=typeof t)throw new Pe(r);return e=ga(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var js=Xr((function(e,t,n){var r=1;if(n.length){var i=un(n,co(js));r|=a}return Zi(e,r,t,n,i)})),Is=Xr((function(e,t,n){var r=3;if(n.length){var i=un(n,co(Is));r|=a}return Zi(t,r,e,n,i)}));function Ls(e,t,i){var o,s,a,l,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Pe(r);function m(t){var r=o,i=s;return o=s=n,d=t,l=e.apply(i,r)}function v(e){return d=e,c=Lo(y,t),p?m(e):l}function g(e){var r=e-u;return u===n||r>=t||r<0||f&&e-d>=a}function y(){var e=Ts();if(g(e))return b(e);c=Lo(y,function(e){var n=t-(e-u);return f?_n(n,a-(e-d)):n}(e))}function b(e){return c=n,h&&o?m(e):(o=s=n,l)}function w(){var e=Ts(),r=g(e);if(o=arguments,s=this,u=e,r){if(c===n)return v(u);if(f)return ki(c),c=Lo(y,t),m(u)}return c===n&&(c=Lo(y,t)),l}return t=ba(t)||0,ra(i)&&(p=!!i.leading,a=(f="maxWait"in i)?wn(ba(i.maxWait)||0,t):a,h="trailing"in i?!!i.trailing:h),w.cancel=function(){c!==n&&ki(c),d=0,o=u=s=c=n},w.flush=function(){return c===n?l:b(Ts())},w}var Ds=Xr((function(e,t){return pr(e,1,t)})),Ms=Xr((function(e,t,n){return pr(e,ba(t)||0,n)}));function Ns(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ns.Cache||Jn),n}function Rs(e){if("function"!=typeof e)throw new Pe(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ns.Cache=Jn;var Fs=Si((function(e,t){var n=(t=1==t.length&&Ks(t[0])?It(t[0],Qt(uo())):It(br(t,1),Qt(uo()))).length;return Xr((function(r){for(var i=-1,o=_n(r.length,n);++i=t})),Ws=Ir(function(){return arguments}())?Ir:function(e){return ia(e)&&Me.call(e,"callee")&&!Je.call(e,"callee")},Ks=Se.isArray,Gs=bt?Qt(bt):function(e){return ia(e)&&Er(e)==j};function Js(e){return null!=e&&na(e.length)&&!ea(e)}function Ys(e){return ia(e)&&Js(e)}var Qs=Rt||bl,Xs=wt?Qt(wt):function(e){return ia(e)&&Er(e)==b};function Zs(e){if(!ia(e))return!1;var t=Er(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aa(e)}function ea(e){if(!ra(e))return!1;var t=Er(e);return t==_||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ta(e){return"number"==typeof e&&e==ga(e)}function na(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ra(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ia(e){return null!=e&&"object"==typeof e}var oa=_t?Qt(_t):function(e){return ia(e)&&go(e)==x};function sa(e){return"number"==typeof e||ia(e)&&Er(e)==k}function aa(e){if(!ia(e)||Er(e)!=O)return!1;var t=Ke(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Be}var la=St?Qt(St):function(e){return ia(e)&&Er(e)==E};var ca=xt?Qt(xt):function(e){return ia(e)&&go(e)==C};function ua(e){return"string"==typeof e||!Ks(e)&&ia(e)&&Er(e)==T}function da(e){return"symbol"==typeof e||ia(e)&&Er(e)==P}var pa=kt?Qt(kt):function(e){return ia(e)&&na(e.length)&&!!st[Er(e)]};var fa=Gi(Br),ha=Gi((function(e,t){return e<=t}));function ma(e){if(!e)return[];if(Js(e))return ua(e)?hn(e):Ai(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=go(e);return(t==x?ln:t==C?dn:qa)(e)}function va(e){return e?(e=ba(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ga(e){var t=va(e),n=t%1;return t==t?n?t-n:t:0}function ya(e){return e?cr(ga(e),0,h):0}function ba(e){if("number"==typeof e)return e;if(da(e))return f;if(ra(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ra(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=me.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):he.test(e)?f:+e}function wa(e){return ji(e,Da(e))}function _a(e){return null==e?"":di(e)}var Sa=Li((function(e,t){if($o(t)||Js(t))ji(t,La(t),e);else for(var n in t)Me.call(t,n)&&rr(e,n,t[n])})),xa=Li((function(e,t){ji(t,Da(t),e)})),ka=Li((function(e,t,n,r){ji(t,Da(t),e,r)})),Oa=Li((function(e,t,n,r){ji(t,La(t),e,r)})),$a=io(lr);var Ea=Xr((function(e,t){e=Ee(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&So(t[0],t[1],o)&&(i=1);++r1),t})),ji(e,so(e),n),r&&(n=ur(n,7,no));for(var i=t.length;i--;)fi(n,t[i]);return n}));var Fa=io((function(e,t){return null==e?{}:function(e,t){return Kr(e,t,(function(t,n){return Pa(e,n)}))}(e,t)}));function Ba(e,t){if(null==e)return{};var n=It(so(e),(function(e){return[e]}));return t=uo(t),Kr(e,n,(function(e,n){return t(e,n[0])}))}var Ha=Xi(La),Va=Xi(Da);function qa(e){return null==e?[]:Xt(e,La(e))}var za=Ri((function(e,t,n){return t=t.toLowerCase(),e+(n?Ua(t):t)}));function Ua(e){return Za(_a(e).toLowerCase())}function Wa(e){return(e=_a(e))&&e.replace(be,rn).replace(Ze,"")}var Ka=Ri((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ga=Ri((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ja=Ni("toLowerCase");var Ya=Ri((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Qa=Ri((function(e,t,n){return e+(n?" ":"")+Za(t)}));var Xa=Ri((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Za=Ni("toUpperCase");function el(e,t,r){return e=_a(e),(t=r?n:t)===n?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var tl=Xr((function(e,t){try{return Ot(e,n,t)}catch(e){return Zs(e)?e:new ke(e)}})),nl=io((function(e,t){return Et(t,(function(t){t=Bo(t),ar(e,t,js(e[t],e))})),e}));function rl(e){return function(){return e}}var il=Hi(),ol=Hi(!0);function sl(e){return e}function al(e){return Nr("function"==typeof e?e:ur(e,1))}var ll=Xr((function(e,t){return function(n){return jr(n,e,t)}})),cl=Xr((function(e,t){return function(n){return jr(e,n,t)}}));function ul(e,t,n){var r=La(t),i=kr(t,r);null!=n||ra(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=kr(t,La(t)));var o=!(ra(n)&&"chain"in n&&!n.chain),s=ea(e);return Et(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Ai(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function dl(){}var pl=Ui(It),fl=Ui(Tt),hl=Ui(Nt);function ml(e){return xo(e)?Ut(Bo(e)):function(e){return function(t){return Or(t,e)}}(e)}var vl=Ki(),gl=Ki(!0);function yl(){return[]}function bl(){return!1}var wl=zi((function(e,t){return e+t}),0),_l=Yi("ceil"),Sl=zi((function(e,t){return e/t}),1),xl=Yi("floor");var kl,Ol=zi((function(e,t){return e*t}),1),$l=Yi("round"),El=zi((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Pe(r);return e=ga(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Ps,Vn.assign=Sa,Vn.assignIn=xa,Vn.assignInWith=ka,Vn.assignWith=Oa,Vn.at=$a,Vn.before=As,Vn.bind=js,Vn.bindAll=nl,Vn.bindKey=Is,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ks(e)?e:[e]},Vn.chain=ms,Vn.chunk=function(e,t,r){t=(r?So(e,t,r):t===n)?1:wn(ga(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,a=Se(mt(i/t));oo?0:o+r),(i=i===n||i>o?o:ga(i))<0&&(i+=o),i=r>i?0:ya(i);r>>0)?(e=_a(e))&&("string"==typeof t||null!=t&&!la(t))&&!(t=di(t))&&an(e)?xi(hn(e),0,r):e.split(t,r):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Pe(r);return t=null==t?0:wn(ga(t),0),Xr((function(n){var r=n[t],i=xi(n,0,t);return r&&Lt(i,r),Ot(e,this,i)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?oi(e,1,t):[]},Vn.take=function(e,t,r){return e&&e.length?oi(e,0,(t=r||t===n?1:ga(t))<0?0:t):[]},Vn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?oi(e,(t=i-(t=r||t===n?1:ga(t)))<0?0:t,i):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?mi(e,uo(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?mi(e,uo(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Pe(r);return ra(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Ls(e,t,{leading:i,maxWait:t,trailing:o})},Vn.thru=vs,Vn.toArray=ma,Vn.toPairs=Ha,Vn.toPairsIn=Va,Vn.toPath=function(e){return Ks(e)?It(e,Bo):da(e)?[e]:Ai(Fo(_a(e)))},Vn.toPlainObject=wa,Vn.transform=function(e,t,n){var r=Ks(e),i=r||Qs(e)||pa(e);if(t=uo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ra(e)&&ea(o)?qn(Ke(e)):{}}return(i?Et:Sr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Vn.unary=function(e){return Ps(e,1)},Vn.union=is,Vn.unionBy=os,Vn.unionWith=ss,Vn.uniq=function(e){return e&&e.length?pi(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?pi(e,uo(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?pi(e,n,t):[]},Vn.unset=function(e,t){return null==e||fi(e,t)},Vn.unzip=as,Vn.unzipWith=ls,Vn.update=function(e,t,n){return null==e?e:hi(e,t,wi(n))},Vn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:hi(e,t,wi(r),i)},Vn.values=qa,Vn.valuesIn=function(e){return null==e?[]:Xt(e,Da(e))},Vn.without=cs,Vn.words=el,Vn.wrap=function(e,t){return Bs(wi(t),e)},Vn.xor=us,Vn.xorBy=ds,Vn.xorWith=ps,Vn.zip=fs,Vn.zipObject=function(e,t){return yi(e||[],t||[],rr)},Vn.zipObjectDeep=function(e,t){return yi(e||[],t||[],ti)},Vn.zipWith=hs,Vn.entries=Ha,Vn.entriesIn=Va,Vn.extend=xa,Vn.extendWith=ka,ul(Vn,Vn),Vn.add=wl,Vn.attempt=tl,Vn.camelCase=za,Vn.capitalize=Ua,Vn.ceil=_l,Vn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ba(r))==r?r:0),t!==n&&(t=(t=ba(t))==t?t:0),cr(ba(e),t,r)},Vn.clone=function(e){return ur(e,4)},Vn.cloneDeep=function(e){return ur(e,5)},Vn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:n)},Vn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:n)},Vn.conformsTo=function(e,t){return null==t||dr(e,t,La(t))},Vn.deburr=Wa,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=Sl,Vn.endsWith=function(e,t,r){e=_a(e),t=di(t);var i=e.length,o=r=r===n?i:cr(ga(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},Vn.eq=qs,Vn.escape=function(e){return(e=_a(e))&&J.test(e)?e.replace(K,on):e},Vn.escapeRegExp=function(e){return(e=_a(e))&&re.test(e)?e.replace(ne,"\\$&"):e},Vn.every=function(e,t,r){var i=Ks(e)?Tt:vr;return r&&So(e,t,r)&&(t=n),i(e,uo(t,3))},Vn.find=bs,Vn.findIndex=Wo,Vn.findKey=function(e,t){return Ft(e,uo(t,3),Sr)},Vn.findLast=ws,Vn.findLastIndex=Ko,Vn.findLastKey=function(e,t){return Ft(e,uo(t,3),xr)},Vn.floor=xl,Vn.forEach=_s,Vn.forEachRight=Ss,Vn.forIn=function(e,t){return null==e?e:wr(e,uo(t,3),Da)},Vn.forInRight=function(e,t){return null==e?e:_r(e,uo(t,3),Da)},Vn.forOwn=function(e,t){return e&&Sr(e,uo(t,3))},Vn.forOwnRight=function(e,t){return e&&xr(e,uo(t,3))},Vn.get=Ta,Vn.gt=zs,Vn.gte=Us,Vn.has=function(e,t){return null!=e&&yo(e,t,Tr)},Vn.hasIn=Pa,Vn.head=Jo,Vn.identity=sl,Vn.includes=function(e,t,n,r){e=Js(e)?e:qa(e),n=n&&!r?ga(n):0;var i=e.length;return n<0&&(n=wn(i+n,0)),ua(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ht(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ga(n);return i<0&&(i=wn(r+i,0)),Ht(e,t,i)},Vn.inRange=function(e,t,r){return t=va(t),r===n?(r=t,t=0):r=va(r),function(e,t,n){return e>=_n(t,n)&&e=-9007199254740991&&e<=p},Vn.isSet=ca,Vn.isString=ua,Vn.isSymbol=da,Vn.isTypedArray=pa,Vn.isUndefined=function(e){return e===n},Vn.isWeakMap=function(e){return ia(e)&&go(e)==A},Vn.isWeakSet=function(e){return ia(e)&&"[object WeakSet]"==Er(e)},Vn.join=function(e,t){return null==e?"":yn.call(e,t)},Vn.kebabCase=Ka,Vn.last=Zo,Vn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=ga(r))<0?wn(i+o,0):_n(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Bt(e,qt,o,!0)},Vn.lowerCase=Ga,Vn.lowerFirst=Ja,Vn.lt=fa,Vn.lte=ha,Vn.max=function(e){return e&&e.length?gr(e,sl,Cr):n},Vn.maxBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Cr):n},Vn.mean=function(e){return zt(e,sl)},Vn.meanBy=function(e,t){return zt(e,uo(t,2))},Vn.min=function(e){return e&&e.length?gr(e,sl,Br):n},Vn.minBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Br):n},Vn.stubArray=yl,Vn.stubFalse=bl,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=Ol,Vn.nth=function(e,t){return e&&e.length?Ur(e,ga(t)):n},Vn.noConflict=function(){return ft._===this&&(ft._=He),this},Vn.noop=dl,Vn.now=Ts,Vn.pad=function(e,t,n){e=_a(e);var r=(t=ga(t))?fn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(gt(i),n)+e+Wi(mt(i),n)},Vn.padEnd=function(e,t,n){e=_a(e);var r=(t=ga(t))?fn(e):0;return t&&rt){var i=e;e=t,t=i}if(r||e%1||t%1){var o=kn();return _n(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Yr(e,t)},Vn.reduce=function(e,t,n){var r=Ks(e)?Dt:Kt,i=arguments.length<3;return r(e,uo(t,4),n,i,hr)},Vn.reduceRight=function(e,t,n){var r=Ks(e)?Mt:Kt,i=arguments.length<3;return r(e,uo(t,4),n,i,mr)},Vn.repeat=function(e,t,r){return t=(r?So(e,t,r):t===n)?1:ga(t),Qr(_a(e),t)},Vn.replace=function(){var e=arguments,t=_a(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,r){var i=-1,o=(t=_i(t,e)).length;for(o||(o=1,e=n);++ip)return[];var n=h,r=_n(e,h);t=uo(t),e-=h;for(var i=Jt(r,t);++n=s)return e;var l=r-fn(i);if(l<1)return i;var c=a?xi(a,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(a&&(l+=c.length-l),la(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Ce(o.source,_a(fe.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(di(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+i},Vn.unescape=function(e){return(e=_a(e))&&G.test(e)?e.replace(W,vn):e},Vn.uniqueId=function(e){var t=++Ne;return _a(e)+t},Vn.upperCase=Xa,Vn.upperFirst=Za,Vn.each=_s,Vn.eachRight=Ss,Vn.first=Jo,ul(Vn,(kl={},Sr(Vn,(function(e,t){Me.call(Vn.prototype,t)||(kl[t]=e)})),kl),{chain:!1}),Vn.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),Et(["drop","take"],(function(e,t){Wn.prototype[e]=function(r){r=r===n?1:wn(ga(r),0);var i=this.__filtered__&&!t?new Wn(this):this.clone();return i.__filtered__?i.__takeCount__=_n(r,i.__takeCount__):i.__views__.push({size:_n(r,h),type:e+(i.__dir__<0?"Right":"")}),i},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(sl)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return jr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Rs(uo(e)))},Wn.prototype.slice=function(e,t){e=ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Wn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(h)},Sr(Wn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Vn[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(Vn.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof Wn,c=a[0],u=l||Ks(t),d=function(e){var t=o.apply(Vn,Lt([e],a));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=s&&!p,m=l&&!f;if(!s&&u){t=m?t:new Wn(this);var v=e.apply(t,a);return v.__actions__.push({func:vs,args:[d],thisArg:n}),new Un(v,p)}return h&&m?e.apply(this,a):(v=this.thru(d),h?i?v.value()[0]:v.value():v)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ks(i)?i:[],e)}return this[n]((function(n){return t.apply(Ks(n)?n:[],e)}))}})),Sr(Wn.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";Me.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}})),In[Vi(n,2).name]=[{name:"wrapper",func:n}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ai(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ai(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ai(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ks(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,r=this;r instanceof zn;){var i=Vo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:vs,args:[rs],thisArg:n}),new Un(t,this.__chain__)}return this.thru(rs)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return vi(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,et&&(Vn.prototype[et]=function(){return this}),Vn}();mt?((mt.exports=gn)._=gn,ht._=gn):ft._=gn}).call(pi)}));const vi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.filterContent="",this.debouncedFilterTree=mi.debounce(this.debouncedFilterTree,300)}componentWillLoad(){this.loadNavigationData().then((()=>{}))}async loadNavigationData(){this.isLoading=!0;try{const e=await fetch(`/registry/packages/navs/${this.packageName}.json`),t=await e.json();this.parsedNodes=t,this.currentlyRenderedNodes=this.parsedNodes}catch(e){return}this.isLoading=!1}filterTreeToMatchingContent(e,t,n,r){const i=this.filterTreeToMatchingRecursive(e,t,n,r);this.currentlyRenderedNodes=i}filterTreeToMatchingRecursive(e,t,n,r,i={},o=[""]){t.map((t=>{const s=o.join("")+t.name,a=o.join(""),l=n?n.name:"",c=!!i[s],u=!!n&&!!i[l],d=!!r&&!!i[a];if(!c){if(t.name.toLowerCase().includes(this.filterContent)){if(!u&&n){const t=Object.assign(Object.assign({},n),{children:[],isExpanded:!0,rootName:l});e.push(t),i[l]=!0}if(!d&&r){const t=Object.assign(Object.assign({},r),{children:[],isExpanded:!0,parentName:n.name,rootName:l});e.push(t),i[a]=!0}if(r){const n=Object.assign(Object.assign({},t),{children:[],parentName:r.name,isExpanded:!0,rootName:l});e.push(n),i[s]=!0}else if(n){const r=Object.assign(Object.assign({},t),{children:[],parentName:n.name,isExpanded:!0,rootName:l});e.push(r),i[s]=!0}else{const n=Object.assign(Object.assign({},t),{children:[],parentName:void 0,isExpanded:!0,rootName:l});e.push(n),i[s]=!0}}if(t.children){const r=n||t,s=n?t:null;this.filterTreeToMatchingRecursive(e,t.children,r,s,i,o.concat([t.name]))}}}));const s=e.filter((e=>void 0===e.parentName));return s.map((t=>{var n;t.children=e.filter((e=>e.parentName===t.name)),null===(n=t.children)||void 0===n||n.map((n=>{n.children=e.filter((e=>e.parentName===n.name&&e.rootName===t.name))}))})),[...s]}onChange(e){this.debouncedFilterTree(e)}onClearFilter(){this.filterContent="",this.currentlyRenderedNodes=this.parsedNodes}debouncedFilterTree(e){this.filterContent=e.target.value.trim().toLowerCase(),this.filterContent.length<2?this.currentlyRenderedNodes=this.parsedNodes:this.filterTreeToMatchingContent([],this.parsedNodes)}getFilterAndNavTree(){var e,t;return Qe("div",{class:"filter-and-nav-tree"},Qe("div",{class:"input-container"},Qe("input",{class:"navigation-filter-input",placeholder:"Filter",onInput:this.onChange.bind(this),value:this.filterContent}),this.filterContent&&Qe("div",{class:"clear-container"},Qe("button",{onClick:this.onClearFilter.bind(this),class:"clear-filter-button"},"X"))),1===(null===(e=this.filterContent)||void 0===e?void 0:e.length)&&Qe("div",{class:"filter-help-text"},"Provide at least two characters to filter."),(null===(t=this.currentlyRenderedNodes)||void 0===t?void 0:t.length)<1&&Qe("div",{class:"no-results"},"No results found. Try a different filter."),Qe("pulumi-api-doc-nav-tree",{class:"nav-tree",baseDirectory:this.baseDirectory,nodes:this.currentlyRenderedNodes}))}getLoadingState(){return Qe("div",{class:"loading"},Qe("i",{class:"loading-icon fas fa-spinner"}),Qe("span",{class:"loading-text"},"Loading..."))}render(){return Qe("section",{class:"api-doc-nav"},this.isLoading?this.getLoadingState():this.getFilterAndNavTree())}static get style(){return'.api-doc-nav{width:100%;max-width:375px}.api-doc-nav .filter-help-text{font-size:14px}.api-doc-nav .no-results{font-size:14px}.api-doc-nav .loading .loading-icon{margin-right:1rem}.api-doc-nav .navigation-header{font-family:var(--heading-font);font-weight:400;font-size:18px;color:#000;margin-top:0;margin-bottom:14px}.api-doc-nav .input-container{display:inline-block;position:relative;margin-left:12px}.api-doc-nav .input-container .clear-container{position:absolute;display:flex;align-items:center;margin-right:20px;top:0;right:0;height:100%}.api-doc-nav .input-container .clear-filter-button{display:flex;align-items:center;justify-content:center;height:18px;width:18px;font-size:xx-small;background:#dcdcdc;color:#808080;border-radius:50%;border:none;cursor:pointer;padding:0px}.api-doc-nav .input-container .navigation-filter-input{font-family:"Gilroy";font-size:16px;height:20px;width:90%;border-radius:4px;border:1px solid #000;padding:10px;margin-top:0;box-sizing:content-box}.api-doc-nav .input-container .navigation-filter-input:focus{outline-color:#4d5bd9}.api-doc-nav .nav-tree{width:100%;min-width:100%;max-width:100%}.api-doc-nav .nav-tree{display:block}.api-doc-nav .filter-and-nav-tree{margin-right:12px}'}},gi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.depth=0}componentWillLoad(){this.isExpanded=!!this.node.isExpanded||this.isNodeInPathForCurrentlyVisiblePage(this.node.name)}onExpansionChange(e,t=!1){t&&(window.location.href=e),this.isExpanded=!this.isExpanded}handleLinkClick(e,t){e.stopPropagation(),window.location.href=t}componentShouldUpdate(e,t,n){if("isExpanded"===n)return!0!==t||!1!==e}getIcon(e){return Qe("div",{class:"symbol-container"},Qe("slot",{name:"before-content"},Qe("span",{class:`symbol ${e}`})))}isNodeInPathForCurrentlyVisiblePage(e){return window.location.pathname.includes(`/${e}/`)}shouldNodeBeSelected(e){return window.location.pathname.split("/").filter((e=>""!==e)).join("/")===e.split("/").filter((e=>""!==e)).join("/")}getChildNodes(e,t,n=1,r=this.href){const i=Qe("pulumi-tree-item",{slot:"item",selected:!1,expanded:!1,title:"dummy"});return!t&&(null==e?void 0:e.length)?i:null==e?void 0:e.map((e=>{const t="/"===e.link.charAt(e.link.length-1)?e.link:`${e.link}/`,i=`${r}${t}`,o=!!e.children&&0===e.children.length;return Qe("details",{open:this.isExpanded,"data-expandable":e.children&&e.children.length>0?"true":"false",class:"nav-tree-item nested",id:e.name,title:e.name,onClick:()=>this.onExpansionChange(i,!o)},Qe("summary",{class:"content-container "+(o?"":"is-link"),"data-selected":this.shouldNodeBeSelected(i)?"true":"false"},Qe("a",{class:`depth-${n}`,href:i,onClick:e=>this.handleLinkClick(e,i)},this.getIcon(e.type),Qe("span",{class:"link-container"},e.name))),this.getChildNodes(e.children,this.isExpanded,n+1,i))}))}render(){return Qe("details",{open:this.isExpanded,"data-expandable":this.node.children&&this.node.children.length>0?"true":"false",class:"nav-tree-item nested",id:this.node.name,title:this.node.name,onClick:()=>this.onExpansionChange(this.href,0===this.node.children.length)},Qe("summary",{class:"content-container","data-selected":this.shouldNodeBeSelected(this.href)?"true":"false"},Qe("a",{class:`depth-${this.depth}`,href:this.href,onClick:e=>this.handleLinkClick(e,this.href)},this.getIcon(this.node.type),Qe("span",{class:"link-container"},this.node.name))),this.getChildNodes(this.node.children,this.isExpanded))}},yi=class extends HTMLElement{constructor(){super(),this.__registerHost()}getNodes(e=this.nodes){return null==e?void 0:e.map((e=>{const t="/"===e.link.charAt(e.link.length-1)?e.link:`${e.link}/`,n=`${this.baseDirectory}${t}`;return Qe("pulumi-api-doc-nav-node",{node:e,isExpanded:e.isExpanded,href:n})}))}render(){return Qe("div",null,this.getNodes())}static get style(){return'@charset "UTF-8";.symbol-container{height:100%;display:flex;align-items:center}.symbol{height:14px;width:14px;border-width:1px;border-style:solid;box-sizing:border-box;border-radius:50%;margin-right:6px}.symbol.module,.symbol.function,.symbol.resource{display:flex;align-items:center;justify-content:center;box-sizing:border-box}.symbol.module{border-color:#1d8673}.symbol.module:before{content:"M";color:#1d8673;font-size:9px;font-weight:700}.symbol.function{border-color:red}.symbol.function:before{content:"F";color:red;font-size:9px;font-weight:700}.symbol.resource{border-color:#3e49ae}.symbol.resource:before{content:"R";color:#3e49ae;font-size:9px;font-weight:700}.nav-tree-item a{height:100%;display:flex;align-items:center;text-decoration:none;color:#2b2b2c;max-width:24ch}.nav-tree-item a:hover{text-decoration:underline}.nav-tree-item summary{width:100%;padding-left:8px}@media (max-width: 1279px){.nav-tree-item summary.depth-0{max-width:12ch}.nav-tree-item summary.depth-1{max-width:10ch}.nav-tree-item summary.depth-2{max-width:8ch}}@media (min-width: 1280px){.nav-tree-item summary.depth-0{max-width:24ch}.nav-tree-item summary.depth-1{max-width:22ch}.nav-tree-item summary.depth-2{max-width:20ch}}.content-container{height:100%;width:100%;display:flex;align-items:center}.link-container{display:block;overflow:hidden;text-overflow:ellipsis}details{padding:0.25rem 0.5rem}details summary{list-style:none;padding:0.25rem 0rem;cursor:pointer}details summary:hover{background-color:#f9f9f9}details summary.is-link:hover{text-decoration:underline}details summary[data-selected=true]{background-color:#e0e0e0;font-weight:bold}details summary[data-selected=true] a:hover{text-decoration:none}details summary::-webkit-details-marker{display:none}details summary a{padding:0.25rem}details[data-expandable]>summary::before{font-family:"Font Awesome 5 Free";font-weight:900;content:"";display:inline-block;cursor:none;visibility:hidden}details[data-expandable=true]>summary::before{margin-right:0.5rem;cursor:pointer;visibility:visible}details[data-expandable=true][open]>summary::before{transform:rotate(90deg)}'}},bi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.paused=!0,this.isLoading=!1,this.error=!1}componentDidLoad(){const e=this.getAudio();e&&(e.volume=1,e.muted=!1),e.addEventListener("pause",(()=>this.paused=!0)),e.addEventListener("play",(()=>this.paused=!1))}toggleMute(){if(this.isLoading)return;const e=this.getAudio();e.paused?(this.isLoading=!0,e.play().then((()=>{this.isLoading=!1})).catch((()=>{this.error=!0}))):e.pause()}getAudio(){return this.el.querySelector("audio")}renderError(){return Qe("div",{class:"audio-container"},Qe("div",{class:"error-callout"},"Music Cannot Be Played"))}renderAudio(){const e=this.paused?this.pausedText:this.playingText,t=this.isLoading?"fa-cog fa-spin":"fas fa-music";return Qe("div",{class:"audio-container",onClick:this.toggleMute.bind(this)},Qe("div",{class:"audio-button"},Qe("i",{class:`fas ${t}`}),e),Qe("audio",{preload:"none",loop:!0},Qe("source",{src:this.url,type:"audio/mpeg"})))}render(){return this.error?this.renderError():this.renderAudio()}get el(){return this}},wi=(()=>{let e;return{getStore:()=>e,setStore:t=>{e=t},getState:()=>e&&e.getState(),mapDispatchToProps:(t,n)=>{Object.keys(n).forEach((r=>{const i=n[r];Object.defineProperty(t,r,{get:()=>(...t)=>e.dispatch(i(...t)),configurable:!0,enumerable:!0})}))},mapStateToProps:(t,n)=>{const r=(r,i)=>{const o=n(e.getState());Object.keys(o).forEach((e=>{const n=o[e];t[e]=n}))},i=e.subscribe((()=>r()));return r(),i}}})();var _i;!function(e){e.SET_LANGUAGE="SET_LANGUAGE",e.SET_K8S_LANGUAGE="SET_K8S_LANGUAGE",e.SET_INPUT_KIND="SET_INPUT_KIND",e.SET_OS="SET_OS",e.SET_CLOUD="SET_CLOUD",e.SET_PERSONA="SET_PERSONA",e.SET_BACKEND="SET_BACKEND",e.DISMISS_BANNER="DISMISS_BANNER",e.GET_USER_INFO="GET_USER_INFO"}(_i||(_i={}));const Si=e=>(t,n)=>{t({type:_i.DISMISS_BANNER,payload:{name:e,dismissedAt:Date.now()}})},xi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.dismissible=!0,this.visible=!1}onRendered(e){wi.mapDispatchToProps(this,{dismissBanner:Si}),this.storeUnsubscribe=wi.mapStateToProps(this,(e=>({visible:!!this.name&&!e.banners.dismissed.find((e=>e.name===this.name))})))}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return Qe("div",null,Qe("slot",null),Qe("div",{class:"dismiss",onClick:e=>this.dismiss(e),title:"Dismiss"},Qe("span",null,"×")))}dismiss(e){this.dismissBanner(this.name)}static get style(){return"pulumi-banner{display:block;position:relative}pulumi-banner .dismiss{cursor:pointer;display:none;position:absolute;top:50%;right:16px;transform:translateY(-50%)}pulumi-banner[dismissible] .dismiss{display:block}pulumi-banner[dismissed]{display:none}"}},ki=class extends HTMLElement{constructor(){super(),this.__registerHost()}onModeChange(e){"local"===e&&this.storeUnsubscribe&&this.storeUnsubscribe()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}onRendered(e){this.mode="global","global"===this.mode&&(this.storeUnsubscribe=wi.mapStateToProps(this,(e=>{const{preferences:{language:t,k8sLanguage:n,os:r,cloud:i,persona:o,backend:s}}=e;switch(this.type){case"language":return{selection:t};case"k8s-language":return{selection:n};case"os":return{selection:r};case"cloud":return{selection:i};case"persona":return{selection:o};case"backend":return{selection:s}}})))}render(){const e=this.values?this.values.split(",").map((e=>e.trim())):[],t=this.selection&&(this.selection===this.value||e.includes(this.selection));return Qe("div",{class:t?"active":""},Qe("slot",null))}get el(){return this}static get watchers(){return{mode:["onModeChange"]}}static get style(){return"pulumi-choosable>*{display:none}pulumi-choosable>*.active{display:inherit}"}},Oi=e=>(t,n)=>t(e),$i=e=>Oi({key:e,type:_i.SET_LANGUAGE}),Ei=e=>Oi({key:e,type:_i.SET_K8S_LANGUAGE}),Ci=e=>Oi({key:e,type:_i.SET_OS}),Ti=e=>Oi({key:e,type:_i.SET_CLOUD}),Pi=e=>Oi({key:e,type:_i.SET_PERSONA}),Ai=e=>Oi({key:e,type:_i.SET_BACKEND}),ji=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.currentOptions=[],this.supportedBackEnds=[{key:"service",name:"Service",preview:!1},{key:"self-managed",name:"Self Managed",preview:!1}],this.supportedPersonas=[{key:"developer",name:"Developers",preview:!1},{key:"devops",name:"DevOps & Infra Teams",preview:!1},{key:"security",name:"Security Engineers",preview:!1},{key:"leader",name:"Engineering Leaders",preview:!1}],this.supportedLanguages=[{key:"typescript",name:"TypeScript",extension:"ts",preview:!1},{key:"javascript",name:"JavaScript",extension:"js",preview:!1},{key:"python",name:"Python",extension:"py",preview:!1},{key:"go",name:"Go",extension:"go",preview:!1},{key:"csharp",name:"C#",extension:"cs",preview:!1},{key:"fsharp",name:"F#",extension:"fs",preview:!1},{key:"visualbasic",name:"VB",extension:"vb",preview:!1},{key:"java",name:"Java",extension:"java",preview:!1},{key:"yaml",name:"YAML",extension:"yaml",preview:!1}],this.supportedk8sLanguages=[{key:"typescript",name:"TypeScript",preview:!1},{key:"typescript-kx",name:"TypeScript KX",preview:!1},{key:"yaml",name:"YAML",preview:!1}],this.supportedOSs=[{key:"macos",name:"macOS",preview:!1},{key:"windows",name:"Windows",preview:!1},{key:"linux",name:"Linux",preview:!1}],this.supportedClouds=[{key:"aws",name:"AWS",preview:!1},{key:"azure",name:"Azure",preview:!1},{key:"gcp",name:"Google Cloud",preview:!1},{key:"kubernetes",name:"Kubernetes",preview:!1},{key:"digitalocean",name:"DigitalOcean",preview:!1},{key:"oci",name:"Oracle Cloud",preview:!1},{key:"docker",name:"Docker",preview:!1}]}componentWillLoad(){this.parseOptions()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}componentDidRender(){this.applyChoice()}onRendered(e){this.mode="global",this.optionStyle="tabbed",this.parseOptions(),wi.mapDispatchToProps(this,{setLanguage:$i,setK8sLanguage:Ei,setOS:Ci,setCloud:Ti,setPersona:Pi,setBackEnd:Ai}),this.storeUnsubscribe=wi.mapStateToProps(this,(e=>{const{preferences:{language:t,k8sLanguage:n,os:r,cloud:i,persona:o,backend:s}}=e,a=e=>{if(!this.currentOptions.find((t=>t.key===e))){const t=this.currentOptions[0];e=t.key,this.choosables.length>0?(this.mode="local",this.choosables.forEach((e=>{e.setAttribute("mode","local")})),setTimeout((()=>this.storeUnsubscribe()))):setTimeout((()=>this.setChoice(this.type,t)))}return{selection:e}};switch(this.type){case"language":return a(t);case"k8s-language":return a(n);case"os":return a(r);case"cloud":return a(i);case"persona":return a(o);case"backend":return a(s);default:return{}}}))}render(){return Qe(Ze,{selection:this.selection},Qe("ul",null,this.currentOptions.map((e=>Qe("li",{class:this.selection===e.key?"active":""},Qe("a",{onClick:t=>this.makeChoice(t,this.type,e)},e.name," ",e.preview?Qe("span",null,"PREVIEW"):""))))),Qe("slot",null))}get choosables(){return this.el.querySelectorAll("pulumi-choosable")}parseOptions(){if(this.currentOptions=[],!this.type)throw new Error("Chooser attribute `type` is required.");if(!this.options)throw new Error("Chooser attribute `options` is required.");try{const e=this.options.split(",").map((e=>e.trim()));this.mapOptions(this.type,e)}catch(e){throw console.error(`Error parsing chooser options "${this.options}"`),e}}mapOptions(e,t){let n=[];switch(e){case"language":n=this.supportedLanguages;break;case"k8s-language":n=this.supportedk8sLanguages;break;case"os":n=this.supportedOSs;break;case"cloud":n=this.supportedClouds;break;case"persona":n=this.supportedPersonas;break;case"backend":n=this.supportedBackEnds}this.currentOptions=n.filter((e=>t.includes(e.key)))}makeChoice(e,t,n){this.setChoice(t,n);var r=e.target,i=r.getBoundingClientRect().top;window.requestAnimationFrame((()=>{const e=this.getDistanceFromDocumentTop(r);window.scroll(0,e-i)}))}getDistanceFromDocumentTop(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}setChoice(e,t){const n=t.key;if(this.selection=n,"local"!==this.mode)switch(e){case"language":this.setLanguage(n);break;case"k8s-language":this.setK8sLanguage(n);break;case"os":this.setOS(n);break;case"cloud":this.setCloud(n);break;case"persona":this.setPersona(n);break;case"backend":this.setBackEnd(n)}}applyChoice(){this.selection&&this.choosables.forEach((e=>{e.setAttribute("selection",this.selection)}))}get el(){return this}static get style(){return"pulumi-chooser[option-style=none]>ul{display:none}pulumi-chooser>*{display:inherit}pulumi-chooser pulumi-choosable{display:inherit}"}},Ii=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultFormId=""}componentWillLoad(){this.parsedItems=JSON.parse(this.items).map((e=>({key:e.key,label:e.label?e.label:e.key.charAt(0).toUpperCase()+e.key.slice(1),hubspotFormId:e.hubspot_form_id,cta:e.cta})));const e=oi("form");if(e){const t=this.parsedItems.find((t=>t.key.toLowerCase()===e.toLowerCase()));if(t)return void(this.defaultFormId=t.hubspotFormId)}}render(){return Qe("pulumi-multi-select-form",{items:this.parsedItems,selectClass:this.selectClass,labelClass:this.labelClass,labelText:"Why are you contacting us today?",defaultFormId:this.defaultFormId})}static get style(){return":host{display:block}"}};function Li(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function Di(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1||Ki(document.body,e)||function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=Ki(t,e);return document.body.removeChild(t),n}(e)||function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),Gi(r);var i=document.execCommand("copy");return Ji(),document.body.removeChild(t),i}(e["text/plain"])?[2,!0]:[2,!1]}))}))}function Qi(e){return Li(this,void 0,void 0,(function(){return Di(this,(function(t){if(Vi)return[2,Vi(e)];if(!Yi(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}const Xi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.sourceFiles=[],this.theme="",this.converting=!1,this.convertible=!1,this.alertDismissed=!1,this.supportedLanguages=[{key:"typescript",name:"TypeScript",filename:"index.ts"},{key:"python",name:"Python",filename:"__main__.py"},{key:"go",name:"Go",filename:"main.go"},{key:"csharp",name:"C#",filename:"MyStack.cs"}]}componentDidLoad(){try{this.validateProps(),this.validateGlobals(),this.prepareEditors(),this.prepareSourceFiles()}catch(e){console.error(e.message)}}get inputEditorEl(){return this.el.querySelector("#editor-input")}get outputEditorEl(){return this.el.querySelector("#editor-output")}get inputEditorMode(){switch(this.from){case"tf":return"ruby";case"kube":case"cf":return"yaml";case"arm":return"javascript"}}get inputEditorValue(){return this.inputEditor.getValue()}get inputEditorDefaultFilename(){switch(this.from){case"tf":return"main.tf";case"kube":return"kube.yaml";case"arm":return"azuredeploy.json";case"cf":return"aws.yaml"}}get sourceLanguageName(){switch(this.from){case"tf":return"Terraform";case"kube":return"Kubernetes YAML";case"arm":return"ARM";case"cf":return"CloudFormation"}}get endpointPath(){switch(this.from){case"tf":return"convert";case"arm":return"convertARM";case"kube":return"convertKube";case"cf":return"convertCFN"}}get conversionTool(){switch(this.from){case"tf":return{name:"the Terraform converter",githubURL:"https://github.com/pulumi/pulumi"};case"kube":return{name:"the Kubernetes converter",githubURL:"https://github.com/pulumi/pulumi"};case"arm":return{name:"the ARM converter",githubURL:"https://github.com/pulumi/pulumi"};case"cf":return{name:"cf2pulumi",githubURL:"https://github.com/pulumi/pulumi-aws-native"};default:return{name:`${this.from}2pulumi`,githubURL:"https://github.com/pulumi/pulumi"}}}validateGlobals(){if([typeof CodeMirror,typeof JSZip,typeof saveAs].filter((e=>"undefined"===e)).length>0)throw new Error("The pulumi-convert component requires CodeMirror, JZSip, and FileSaver. Please ensure each of these scripts has been loaded into global before using it.")}validateProps(){const e=[];this.from&&["tf","kube","arm","cf"].includes(this.from)||e.push("A valid `from` attribute is required.");try{this.endpointURL=new URL(this.endpoint)}catch(t){e.push("A valid `endpoint` attribute is required.")}if(this.examples||console.warn("A list of examples was provided."),this.theme||console.warn("A CodeMirror theme was not specified. The Using `material-ocean`."),e.length)throw new Error(e.join("\n"))}prepareEditors(){this.selectedOutputLanguage=this.supportedLanguages[0];const e={lineNumbers:!0,theme:this.theme||""};this.inputEditor=CodeMirror.fromTextArea(this.inputEditorEl,Object.assign(Object.assign({},e),{indentUnit:["kube","cf"].includes(this.from)?2:4,mode:this.inputEditorMode})),this.outputEditor=CodeMirror.fromTextArea(this.outputEditorEl,Object.assign(Object.assign({},e),{readOnly:!0})),this.inputEditor.on("change",(()=>{this.convertible=""!==this.inputEditorValue.trim(),this.selectedSourceFile===this.customSourceFile&&(this.customSourceFile.code=this.inputEditorValue)})),this.inputEditor.on("keydown",((e,t)=>{!t.metaKey||"Enter"!==t.key&&"s"!==t.key||(t.preventDefault(),this.convert())}))}prepareSourceFiles(){if(this.sourceFiles=[],this.examples&&this.examples.length>0)try{this.sourceFiles.push(...JSON.parse(this.examples))}catch(e){console.error("Failed to load examples:",e)}this.customSourceFile={name:"Custom",description:`Convert your own ${this.sourceLanguageName} code.`,filename:this.inputEditorDefaultFilename,code:""},this.sourceFiles.push(this.customSourceFile),this.selectSourceFile(this.sourceFiles[0]),this.convert()}selectSourceFile(e){this.selectedSourceFile=e,this.inputEditor.setValue(e.code),this.inputEditor.clearHistory(),this.convert()}selectOutputLanguage(e){this.selectedOutputLanguage=e,this.convert()}setOutputResult(e){this.outputResult=e,this.outputEditor.setValue(e?e.code:"")}copyToClipboard(){Qi(this.outputEditor.getValue())}downloadZip(){const e=new JSZip;e.file(this.outputResult.filename,this.outputResult.code),e.generateAsync({type:"blob"}).then((e=>{saveAs(e,`${this.from}2pulumi.zip`)}))}dismissAlert(){this.alertDismissed=!0}async convert(){var e;this.setOutputResult(null);const t=this.inputEditorValue,n=this.selectedOutputLanguage;if(t){this.converting=!0,this.alertDismissed=!1;try{const r=await fetch([this.endpointURL,this.endpointPath].join("/"),{method:"POST",mode:"cors",body:JSON.stringify({code:t,language:n.key})}),i=await r.json();if(i.error)this.setOutputResult({filename:"",code:"",diagnostics:i.diagnostics||"",status:{success:!1,message:i.error}});else if(i.files){let[t,r]=Object.entries(i.files)[0];t.match(/\w+\.\w+/)||(t=this.supportedLanguages.find((e=>e.key===n.key)).filename);const o=(null===(e=i.diagnostics)||void 0===e?void 0:e.replace(/^no diagnostics$/,""))||"";t&&r&&this.setOutputResult({filename:t,code:r,diagnostics:o,status:{success:!0,message:t}}),o&&(this.outputResult.diagnostics=o)}}catch(e){console.error(`Submission failed: ${e}`)}this.converting=!1}}get statusBarClasses(){const e=["status-bar"];return this.converting&&e.push("converting"),this.outputResult&&(this.outputResult.diagnostics?e.push("warn"):e.push(this.outputResult.status.success?"success":"error")),e.join(" ")}combineClasses(...e){return e.filter((e=>e&&""!==e)).join(" ")}trackEventLabel(e){return this.from&&this.selectedOutputLanguage?["convert",this.from,e,this.selectedOutputLanguage.key].join("-"):""}renderToolDescription(){let e=this.conversionTool.githubURL?Qe("a",{href:this.conversionTool.githubURL},this.conversionTool.name):this.conversionTool.name;switch(this.from){case"tf":e=Qe("code",null,"pulumi convert --from terraform");break;case"arm":e=Qe("code",null,"pulumi convert --from arm");break;case"kube":e=Qe("code",null,"pulumi convert --from kubernetes")}return Qe("p",null,"Your code will be converted with"," ",e,", an open-source command-line tool we built to make it as easy as possible for you to migrate your existing ",this.sourceLanguageName," projects to Pulumi. The resulting file can be copied or downloaded for use with ",Qe("a",{href:"https://pulumi.com/start"},"a new Pulumi project"),".")}renderWindowBar(){return Qe("div",{class:"window-bar"},Qe("div",{class:"window-bar-buttons"},Qe("div",{class:"window-bar-button"}),Qe("div",{class:"window-bar-button"}),Qe("div",{class:"window-bar-button"})))}renderTab(e,t,n,r,i){return Qe("li",{onClick:i.bind(this,e),"data-track":this.trackEventLabel("tab"),class:this.combineClasses("tab",e===t?"active":""),title:r},Qe("span",{class:"label"},n),Qe("span",{class:"indicator"}))}renderConvertButton(e){var t;const n=`Convert this ${this.sourceLanguageName} code to ${null===(t=this.selectedOutputLanguage)||void 0===t?void 0:t.name}`,r=Qe("button",{onClick:this.convert.bind(this),"data-track":this.trackEventLabel("button"),class:this.combineClasses("btn-convert",this.converting?"converting":""),title:n,disabled:!this.convertible||this.converting},Qe("span",{class:"label"},"Convert"),Qe("span",{class:"icon"}));return e?Qe("pulumi-tooltip",null,r,Qe("span",{slot:"content"},n)):r}renderDismissAlertButton(){return Qe("button",{class:"toggle",title:"Dismiss this message",onClick:this.dismissAlert.bind(this)},Qe("span",{class:"icon"}))}renderStatusBar(e){var t,n,r,i;switch(e){case"input":return Qe("div",{class:"status-bar"},Qe("span",{class:"message"},null===(t=this.selectedSourceFile)||void 0===t?void 0:t.filename,(null===(n=this.selectedSourceFile)||void 0===n?void 0:n.description)?` • ${this.selectedSourceFile.description}`:""));case"output":return Qe("div",{class:this.statusBarClasses},Qe("span",{class:"icon"}),Qe("span",{class:"message"},null===(i=null===(r=this.outputResult)||void 0===r?void 0:r.status)||void 0===i?void 0:i.message),Qe("div",{class:this.combineClasses("alert","alert-error",this.alertDismissed?"dismissed":void 0)},this.renderDismissAlertButton(),Qe("p",null,Qe("strong",null,"Sorry, we were unable to convert your code.")),Qe("p",null,"There could be a problem with the code you submitted, or it might use a feature ",this.conversionTool.name," doesn't support. Join us in"," ",Qe("a",{href:"https://slack.pulumi.com/"},"Community Slack")," for help.")),Qe("div",{class:this.combineClasses("alert","alert-warn",this.alertDismissed?"dismissed":void 0)},this.renderDismissAlertButton(),Qe("p",null,Qe("strong",null,"Sorry, we were unable to convert your code completely.")),Qe("p",null,"The code was valid, but ",this.conversionTool.name," was unable to convert it completely. There could be a problem with the code you submitted, or it might use a feature ",this.conversionTool.name," doesn't support. Join us in ",Qe("a",{href:"https://slack.pulumi.com/"},"Community Slack")," for help.")));default:return Qe("div",{class:"status-bar"},Qe("span",{class:"message"}," "))}}renderDiagnostics(){var e,t;if(null===(e=this.outputResult)||void 0===e?void 0:e.diagnostics)return console.log("Conversion completed with errors. Diagnostics:"),console.log(null===(t=this.outputResult)||void 0===t?void 0:t.diagnostics),Qe("div",{class:"diagnostics"},Qe("p",null,Qe("strong",null,"Diagnostics:")),Qe("p",{class:"details"},this.outputResult.diagnostics))}render(){return Qe("div",null,Qe("div",{id:"editors"},Qe("div",{class:"editor editor-input"},Qe("div",{class:"editor-heading"},Qe("h3",null,Qe("span",{class:"editor-step"},"1"),"Start with some ",this.sourceLanguageName,"."),Qe("p",null,"We've included a few examples for reference — feel free to edit them as you like, or replace them with your own code. (And don't worry, we send your code over SSL and don't store anything on our servers.) When you're ready to transform your ",this.sourceLanguageName," code to Pulumi, select ",Qe("strong",null,"Convert"),".")),Qe("div",{class:"editor-container"},this.renderWindowBar(),Qe("ul",{class:"tabs"},this.sourceFiles.map((e=>this.renderTab(e,this.selectedSourceFile,e.name,e.description,this.selectSourceFile))),Qe("li",{class:"actions"},this.renderConvertButton(!0))),Qe("textarea",{id:"editor-input"}),this.renderStatusBar("input"))),Qe("div",{class:this.combineClasses("editor","editor-output",this.converting?"converting":"")},Qe("div",{class:"editor-heading"},Qe("h3",null,Qe("span",{class:"editor-step"},"2"),"Turn it into your language of choice."),this.renderToolDescription(),Qe("div",null,this.renderConvertButton(!1))),Qe("div",{class:"editor-container"},this.renderWindowBar(),Qe("ul",{class:"tabs"},this.supportedLanguages.map((e=>this.renderTab(e,this.selectedOutputLanguage,e.name,e.name,this.selectOutputLanguage))),Qe("li",{class:"actions"},Qe("pulumi-tooltip",null,Qe("button",{onClick:this.copyToClipboard.bind(this),"data-track":this.trackEventLabel("copy"),class:"btn-copy"},Qe("i",null)),Qe("span",{slot:"content"},"Copy to clipboard")),Qe("pulumi-tooltip",null,Qe("button",{onClick:this.downloadZip.bind(this),"data-track":this.trackEventLabel("download"),class:"btn-download"},Qe("i",null)),Qe("span",{slot:"content"},"Download as .zip")))),Qe("div",{class:"editor-spinner"}),Qe("textarea",{id:"editor-output"}),this.renderStatusBar("output")),this.renderDiagnostics())))}get el(){return this}static get style(){return"pulumi-convert{display:block}pulumi-convert textarea{opacity:0}"}},Zi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.textClass="",this.containerClass="",this.valueLabelClass="",this.countdownOverText=""}componentWillLoad(){const e=new Date(this.dateString).getTime();this.generateCountdownData(e),setInterval((()=>this.generateCountdownData(e)),1e3)}generateCountdownData(e){const t=e-Date.now();this.countdownData={remainingTimeInMS:t,days:Math.floor(t/864e5),hours:Math.floor(t%864e5/36e5),minutes:Math.floor(t%36e5/6e4),seconds:Math.floor(t%6e4/1e3)}}renderValueLabel(e){return Qe("span",{class:this.valueLabelClass},e)}renderCountdownPart(e,t){return Qe("p",{class:this.textClass},e,this.renderValueLabel(t))}renderCountdown(){const{days:e,hours:t,minutes:n,seconds:r,remainingTimeInMS:i}=this.countdownData;return Qe("div",{class:this.containerClass},i>0?[this.renderCountdownPart(e,"Days"),this.renderCountdownPart(t,"Hours"),this.renderCountdownPart(n,"Minutes"),this.renderCountdownPart(r,"Seconds")]:Qe("p",{class:this.textClass},this.countdownOverText))}render(){return Qe(Ze,null,this.countdownData&&this.renderCountdown())}static get style(){return":host{display:block}"}},eo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.containerClass="",this.valueLabelClass=""}componentWillLoad(){const e=new Date(this.dateString).getTime();this.generateCountdownData(e),setInterval((()=>this.generateCountdownData(e)),1e3)}generateCountdownData(e){const t=e-Date.now(),n=Math.floor(t/6048e5),r=Math.floor(t%6048e5/864e5),i=Math.floor(t%864e5/36e5),o=Math.floor(t%36e5/6e4),s=Math.floor(t%6e4/1e3),a=n/52*100,l=r/7*100,c=i/24*100,u=o/60*100,d=s/60*100;this.countdownData={remainingTimeInMS:t,weeks:n,days:r,hours:i,minutes:o,seconds:s,weeksPercent:a,daysPercent:l,hoursPercent:c,minutesPercent:u,secondsPercent:d}}renderValueLabel(e){return Qe("span",{class:this.valueLabelClass},e)}renderNumberCircle(e,t){return t<=0&&(t=0,e=0),Qe("div",{class:"timer-wrapper"},Qe("div",{class:"circle",style:{"--p":`${t}`}},e))}renderCountdownPart(e,t,n){return Qe("div",{class:"mx-4 text-center"},this.renderNumberCircle(e,n),this.renderValueLabel(t))}renderCountdown(){const{weeks:e,days:t,hours:n,minutes:r,seconds:i,weeksPercent:o,daysPercent:s,hoursPercent:a,minutesPercent:l,secondsPercent:c}=this.countdownData;return Qe("div",{class:this.containerClass},[this.renderCountdownPart(e,"Weeks",o),this.renderCountdownPart(t,"Days",s),this.renderCountdownPart(n,"Hours",a),this.renderCountdownPart(r,"Minutes",l),this.renderCountdownPart(i,"Seconds",c)])}render(){return Qe(Ze,null,this.countdownData&&this.renderCountdown())}static get style(){return".timer-wrapper{height:75px;width:75px;display:flex;align-items:center;justify-content:center}.circle{border-radius:50%;border:5px solid transparent;position:relative;width:100%;height:100%;background:linear-gradient(#fff, #fff) content-box no-repeat, conic-gradient(#805ac3 calc(var(--p)*1%), 0, #ededed 100%) border-box;display:flex;justify-content:center;align-items:center}"}},to=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this)}componentWillLoad(){const e=new Date(this.date),t=this.timeonly?{timeZoneName:"short",hour:"numeric",minute:"2-digit"}:{timeZoneName:"long",weekday:"short",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"};this.date=e.toLocaleString(void 0,t)}render(){return Qe("time",{class:this.class||""},Qe("span",null,this.date))}static get style(){return":host{display:block}"}},no=class extends HTMLElement{constructor(){super(),this.__registerHost()}addLogo(e){return Object.assign(Object.assign({},e),{logo:function(){switch(e.source){case"twitter":return Qe("img",{class:"w-6",src:"/logos/tech/twitter.svg"});case"reddit":return Qe("img",{class:"w-6",src:"/logos/tech/reddit.svg"});case"email":return Qe("i",{class:"fas fa-envelope text-gray-500 text-xl"});case"blog":return Qe("i",{class:"fas fa-blog text-gray-500 text-xl"});case"slack":return Qe("img",{class:"w-6",src:"/logos/tech/slack.svg"});case"linkedin":return Qe("img",{class:"w-6",src:"/logos/tech/linkedin.svg"});default:return Qe("a",null,e.source)}}()})}enableLink(e){return!["slack","email"].includes(e)}render(){let e=JSON.parse(this.quotes).sort(((e,t)=>e.featured&&t.featured?0:e.featured&&!t.featured?-1:!e.featured&&t.featured?1:void 0)).map(this.addLogo).reduce(((e,t,n)=>(n%2?e[1].push(t):e[0].push(t),e)),[[],[]]);return Qe("div",{class:"lg:flex flex-row block"},e.map((e=>Qe("div",{class:"lg:w-6/12 w-12/12 mx-8"},e.map((e=>Qe("div",{class:"quote-card my-8 p-2 rounded-lg max-w-80"},Qe("a",{class:"flex flex-col",href:this.enableLink(e.source)?e.link:void 0,target:"_blank",rel:"noopener noreferrer"},Qe("div",{class:"w-full flex-grow text-justify p-3 text-gray-700"},'"',e.message,'"'),Qe("div",{class:"flex flex-row"},Qe("div",{class:"p-3 text-gray-500"},e.author),Qe("div",{class:"flex-grow"}),Qe("div",{class:"p-3"},e.logo))))))))))}static get style(){return"pulumi-developer-quotes .quote-card{box-shadow:0 6px 36px rgba(0, 0, 0, 0.1)}pulumi-developer-quotes .quote-card:hover{box-shadow:10px 15px 60px rgba(0, 0, 0, 0.2)}"}},ro=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.expandedMenuIDs=""}onClick(e){const t=e.target,n=t.nodeName.toLowerCase();"button"!==n&&"i"!==n||(t.closest("li").classList.toggle("expanded"),e.stopPropagation(),e.preventDefault())}componentDidRender(){const e=this.el.querySelector("a.active");if(e){let t=e.closest("pulumi-docs-nav li.expandable");for(;t;)t.classList.add("expanded"),t=t.parentElement.closest("pulumi-docs-nav li.expandable")}this.expandedMenuIDs.split(",").forEach((e=>{""!==e&&this.el.querySelectorAll(`[data-menu-id='${e}']`).forEach((e=>{e.classList.add("expanded")}))}))}render(){return Qe("slot",null)}get el(){return this}static get style(){return"pulumi-docs-nav{display:block}"}},io=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Qe("div",null,Qe("slot",null))}static get style(){return""}},oo=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillRender(){const e=Array.from(this.el.querySelectorAll("pulumi-examples h3"));e.forEach((e=>{const t=document.createElement("span");e.prepend(t),e.addEventListener("click",(t=>{t.target.classList.contains("anchorjs-link")||this.toggle(e)}))})),e&&e.length>0&&this.toggle(e[0])}toggle(e){e.classList.toggle("expanded");let t=e.nextElementSibling;for(;t&&"DIV"===t.nodeName;)t.classList.toggle("expanded"),t=t.nextElementSibling}render(){return Qe("div",null,Qe("slot",null))}get el(){return this}static get style(){return""}},so=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this),this.filterSelect=Ot(this,"filterSelect",7),this.filters=[]}reset(){return this.options.forEach((e=>e.selected=!1)),this.groups.forEach((e=>e.close())),this.filterSelect.emit([]),Promise.resolve(null)}select(e){return this.options.forEach((t=>{t.value===e.value&&t.select()})),Promise.resolve()}deselect(e){return this.options.forEach((t=>{t.value===e.value&&t.deselect()})),Promise.resolve()}onOptionChange(e){e.stopPropagation(),this.filters=this.options.filter((e=>e.selected)).map((e=>({group:e.closest("pulumi-filter-select-option-group").name,value:e.value,label:e.label}))),this.filterSelect.emit(this.filters)}get groups(){return Array.from(this.el.querySelectorAll("pulumi-filter-select-option-group"))}get options(){return Array.from(this.el.querySelectorAll("pulumi-filter-select-option"))}render(){return Qe("div",null,Qe("slot",null))}get el(){return this}static get style(){return"div {\n display: flex;\n }"}},ao=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this),this.optionChange=Ot(this,"optionChange",7)}select(){return this.selected=!0,this.emit(),Promise.resolve()}deselect(){return this.selected=!1,this.emit(),Promise.resolve()}onChange(e){this.selected=e.target.checked,this.emit()}emit(){this.optionChange.emit({option:{value:this.value,selected:this.selected,label:this.label}})}render(){return Qe("div",null,Qe("label",null,Qe("input",{type:"checkbox",value:this.value,onChange:this.onChange.bind(this),checked:this.selected,class:""+(this.selected?"selected":"")}),Qe("slot",null)))}get el(){return this}static get style(){return"label {\n white-space: nowrap;\n }\n\n input {\n margin-right: 0.5em;\n }"}},lo=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this)}onToggle(){this.expanded=!this.expanded}onDocumentClick(e){!this.el.contains(e.target)&&this.expanded&&this.close()}close(){return this.expanded=!1,Promise.resolve(null)}render(){return Qe("div",null,Qe("div",{class:"button",role:"button",onClick:this.onToggle.bind(this)},Qe("span",{class:"toggle",part:"toggle"},Qe("slot",{name:"toggle"}))),Qe("div",{class:"menu"},Qe("div",null,Qe("slot",null))))}get el(){return this}static get style(){return'.menu {\n position: relative;\n transition: all 100ms;\n opacity: 0;\n top: -2px;\n pointer-events: none;\n z-index: 10;\n }\n\n .menu > div {\n position: absolute;\n }\n\n .button {\n cursor: pointer;\n }\n\n .button .toggle {\n margin-right: 0.5em;\n }\n\n .toggle {\n display: flex;\n }\n\n .toggle slot {\n position: relative;\n display: block;\n width: 100%;\n }\n\n :host([expanded]) .menu {\n opacity: 1;\n top: 0;\n pointer-events: auto;\n }\n\n .toggle slot::after {\n position: absolute;\n right: 0.5em;\n top: 50%;\n transform: translateY(-50%);\n content: "▾";\n }\n\n :host([expanded]) .toggle slot::after {\n transform: rotate(180deg) translateY(50%);\n }'}},co=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.departments=[]}componentWillLoad(){this.fetchJobs()}async fetchJobs(){this.loading=!0;try{const e=await fetch("https://boards-api.greenhouse.io/v1/boards/pulumicorporation/departments"),t=await e.json();t&&t.departments&&(this.departments=t.departments.filter((e=>e.jobs.length>0)))}catch(e){console.error(e)}this.loading=!1}renderLoadingSpinner(){return Qe("div",{class:"loading-spinner"})}renderJobsList(){return this.departments.length>0?Qe("ul",{class:"departments"},this.departments.map((e=>Qe("li",null,Qe("h4",null,e.name),Qe("ul",{class:"jobs"},e.jobs.map((e=>Qe("li",null,Qe("a",{class:"job-title",href:e.absolute_url,target:"_blank",rel:"noreferrer noopener"},e.title),Qe("div",{class:"job-location"},e.location.name))))))))):Qe("div",null,Qe("p",null,"There are no open positions at this time."))}render(){return this.loading?this.renderLoadingSpinner():this.renderJobsList()}},uo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.isLoading=!0,this.didLoad=!1}componentWillLoad(){if(!this.formId)throw new Error("The required attribute `form-id` was not provided.");this.hubspotFormTargetId=`hubspotForm_${this.formId}`}componentDidLoad(){const e=window.hbspt;e?this.createForm(e):this.loadHubSpotFormsScript(),this.messageHandler=this.onMessage.bind(this),window.addEventListener("message",this.messageHandler)}disconnectedCallback(){window.removeEventListener("message",this.messageHandler)}onMessage(e){var t;if("hsFormCallback"!==(null===(t=e.data)||void 0===t?void 0:t.type))return;const n=e.data.eventName,r=this.getUTMCookieData();if("onFormReady"===n){this.isLoading=!1,this.didLoad=!0;this.el.querySelectorAll('input[type="hidden"]').forEach((e=>{const t=e.closest("fieldset");t&&(t.style.display="none")}));const e=this.el.querySelector('input[name="last_utm_campaign"]');e&&(e.value=r.campaign);const t=this.el.querySelector('input[name="last_utm_source"]');t&&(t.value=r.source);const n=this.el.querySelector('input[name="last_utm_medium"]');n&&(n.value=r.medium),this.setInternalAdId()}if("onFormSubmit"===n){const e=this.el.querySelector('input[name="email"]');this.notifySegment(e.value,r)}"onFormDefinitionFetchError"===n&&(this.isLoading=!1,this.didLoad=!1)}notifySegment(e,t){const n=window.analytics;if(n&&n.track&&"function"==typeof n.track&&""!==e){const r={formId:this.formId,email:e,utmCampaign:t.campaign,utmSource:t.source,utmMedium:t.medium};n.track("form-submission",r)}}setInternalAdId(){const e=oi("iaid");if(e){const t=this.el.querySelector('input[name="last_internal_ad_conversion"]');t&&(t.value=e)}}getUTMCookieData(){const e=si(),t=(e.__utmzz||"").split("|").reduce(((e,t)=>{const n=t.split("=");return e[n[0]]=n[1],e}),{});return{campaign:t.utmccn||"(not set)",source:t.utmcsr||"(direct)",medium:t.utmcmd||"(none)"}}loadHubSpotFormsScript(){const e=document.createElement("script");e.setAttribute("src","//js.hsforms.net/forms/v2.js"),e.onload=()=>{const e=window.hbspt;e?this.createForm(e):(this.isLoading=!1,this.didLoad=!1)},e.onerror=()=>{this.isLoading=!1,this.didLoad=!1},document.body.appendChild(e)}createForm(e){e.forms.create({portalId:"4429525",formId:this.formId,css:"",cssClass:this.class,goToWebinarWebinarKey:this.goToWebinarKey,target:`#${this.hubspotFormTargetId}`,sfdcCampaignId:this.salesforceCampaignId})}renderIsLoadingForm(){return Qe("p",null,Qe("i",{class:"fa fa-spinner fa-spin mr-2"}))}renderFailedToLoadForm(){return Qe("p",null,"There was a problem loading this form. Please try refreshing your browser, and if you continue to see this message, let us know at"," ",Qe("a",{href:"mailto:support@pulumi.com"},"support@pulumi.com"),".")}render(){return Qe("div",{id:this.hubspotFormTargetId},this.didLoad||this.isLoading?this.renderIsLoadingForm():this.renderFailedToLoadForm())}get el(){return this}static get style(){return":host{display:block}"}},po=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultTooltipContent="Copy command"}componentWillLoad(){this.tooltipContent=this.defaultTooltipContent}componentDidLoad(){this.os||(this.os=this.detectOS())}detectOS(){const e=navigator.appVersion;return-1!==e.indexOf("Win")?"windows":-1!==e.indexOf("Mac")?"macos":"linux"}get installCommand(){return{macos:"brew install pulumi",windows:"choco install pulumi",linux:"curl -fsSL https://get.pulumi.com | sh"}[this.os]}copyToClipboard(){Qi(this.installCommand.toString()).then((()=>{this.tooltipContent="Copied!",setTimeout((()=>this.tooltipContent=this.defaultTooltipContent),3e3)}))}render(){return Qe("div",null,Qe("div",{class:"command-text"},Qe("p",null,Qe("span",null,this.installCommand))),Qe("div",{class:"copy-button"},Qe("pulumi-tooltip",null,Qe("button",{onClick:this.copyToClipboard.bind(this)},Qe("i",{class:"far fa-copy"})),Qe("span",{slot:"content"},this.tooltipContent))))}get el(){return this}static get style(){return":host{display:block}"}},fo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.items=[],this.defaultFormId="",this.formSubmitted=!1}componentWillLoad(){""!==this.defaultFormId&&(this.selectedItem=this.items.find((e=>e.hubspotFormId===this.defaultFormId)),this.selectedItem)||(this.selectedItem=this.items[0])}componentDidLoad(){this.windowEventHandler=this.handleWindowMessage.bind(this),window.addEventListener("message",this.windowEventHandler)}disconnectedCallback(){window.removeEventListener("message",this.windowEventHandler)}handleWindowMessage(e){if("hsFormCallback"===e.data.type&&"onFormReady"===e.data.eventName){this.el.querySelector("form.hs-form").addEventListener("submit",this.handleFormSubmit.bind(this))}}handleFormSubmit(){this.formSubmitted=!0}handleSelectChange(e){this.selectedItem=this.items.find((t=>t.hubspotFormId===e))}render(){var e;const t=null===(e=this.selectedItem)||void 0===e?void 0:e.hubspotFormId;return Qe("div",null,this.formSubmitted?null:Qe("span",null,Qe("span",{class:this.labelClass||""},this.labelText),Qe("select",{class:this.selectClass||"",onInput:e=>this.handleSelectChange(e.target.value)},this.items.map((e=>{const n=e.hubspotFormId===t;return Qe("option",{value:e.hubspotFormId,selected:n},e.label?e.label:e.key)})))),this.selectedItem.cta?Qe("div",{class:"mt-8"},Qe("a",{class:"btn-secondary",href:this.selectedItem.cta.url},this.selectedItem.cta.label)):Qe("pulumi-hubspot-form",{key:t,"form-id":t}))}get el(){return this}static get style(){return":host{display:block}"}},ho=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.duration="month",this.resourceCount=500,this.utilization=100,this.deploymentsExpanded=!1,this.deploymentMinutes=0}updateDuration(e){this.duration=e}getCostPerDeploymentMinute(){return.01}getFreeDeploymentMinutes(){return"month"===this.duration?3e3:100}getEstimatedCredits(){return"month"===this.duration?this.resourceCount*(this.utilization/100*24)*30:this.resourceCount*(this.utilization/100*24)}getEstimatedDeploymentMinutes(){return"month"===this.duration?30*this.deploymentMinutes:this.deploymentMinutes}updateDeploymentsExpanded(){this.deploymentsExpanded=!this.deploymentsExpanded}getFreeCredits(){return"month"===this.duration?15e4:5e3}getCostPerCredit(){return 5e-4}getTotal(){if(this.deploymentsExpanded){const e=(this.getEstimatedDeploymentMinutes()-this.getFreeDeploymentMinutes())*this.getCostPerDeploymentMinute(),t=(this.getEstimatedCredits()-this.getFreeCredits())*this.getCostPerCredit()+(e>0?e:0);return t>0?t:0}{const e=(this.getEstimatedCredits()-this.getFreeCredits())*this.getCostPerCredit();return e>0?e:0}}isTotalOverMax(){return this.getTotal()>1670&&"month"===this.duration||this.getTotal()>55&&"day"===this.duration}showFormattedTotal(){return`$${this.formatNumber(this.getTotal())} / ${"day"===this.duration?"day":"mo"}`}updateResourceCount(e){const t=e.target.value.trim();this.resourceCount=""===t?0:parseInt(t)}updateUtilization(e){const t=e.target.value.trim();this.utilization=""===t?1:parseInt(t)}updateDeploymentMinutes(e){const t=e.target.value.trim();this.deploymentMinutes=""===t?0:parseInt(t)}formatNumber(e){return(new Intl.NumberFormat).format(Math.round(e))}render(){return Qe("div",{class:"calculator"},Qe("h3",null,"IaC Cost estimator"),Qe("div",{class:"edition"},"Team Edition"),Qe("div",{class:"content"},Qe("div",{class:"inputs"},Qe("div",{class:"field"},Qe("div",{class:"title"},"Number of resources"),Qe("div",{class:"details"},Qe("div",{class:"description"},"All cloud resources cost the same amount in Pulumi Cloud. Look at your cloud account and enter here the number of resources."),Qe("div",{class:"input"},Qe("input",{class:"resource-count",type:"number",min:"0",onInput:e=>this.updateResourceCount(e),value:this.resourceCount})))),Qe("div",{class:"field"},Qe("div",{class:"title"},"Utilization"),Qe("div",{class:"details"},Qe("div",{class:"description"},"If you have resources that are being spun up and down throughout the day, estimate the percentage of the time the total resource count will be reached."),Qe("div",{class:"utilization"},Qe("div",{class:"input"},Qe("input",{type:"number",min:"1",max:"100",onInput:e=>this.updateUtilization(e),value:this.utilization}),Qe("span",{class:"percent"},"%")),Qe("input",{type:"range",min:"1",max:"100",step:"1",onInput:e=>this.updateUtilization(e),value:this.utilization,class:"range purple"})))),Qe("div",{class:this.deploymentsExpanded?"deployments":"deployments collapsed"},Qe("div",{class:"default"},Qe("i",{class:"fas fa-rocket"}),Qe("div",{class:"details"},Qe("div",{class:"title"},"Add on Pulumi Deployments"),Qe("div",{class:"subtitle"},"Run deployments remotely with a button, Git push, or REST API")),Qe("button",{onClick:()=>this.updateDeploymentsExpanded()},Qe("i",{class:this.deploymentsExpanded?"fas fa-minus":"fas fa-plus"}))),Qe("div",{class:this.deploymentsExpanded?"field visible":"field"},Qe("div",{class:"title"},"Deployment minutes per day"),Qe("div",{class:"details"},Qe("div",{class:"description"},"Deployment minutes refer to the duration of time elapsed when running deployments on Pulumi’s compute. Use your current update times and add buffer for any workflows that need to happen."),Qe("div",{class:"input"},Qe("input",{type:"number",min:"0",onInput:e=>this.updateDeploymentMinutes(e),value:this.deploymentMinutes})))))),Qe("div",{class:"outputs"},Qe("div",{class:"gradient"}),Qe("div",{class:"contents"},Qe("div",{class:"duration"},Qe("button",{class:"day"===this.duration?"active":null,onClick:()=>this.updateDuration("day")},"Per day"),Qe("button",{class:"month"===this.duration?"active":null,onClick:()=>this.updateDuration("month")},"Per month")),Qe("div",{class:"items"},Qe("div",{class:"item"},Qe("span",null,"Estimated credits per ",this.duration),Qe("span",null,this.formatNumber(this.getEstimatedCredits()))),Qe("div",{class:"item"},Qe("span",null,"Free credits included"),Qe("span",null,this.formatNumber(this.getFreeCredits()))),Qe("div",{class:"item"},Qe("span",null,"Cost per credit"),Qe("span",null,"$",this.getCostPerCredit())),Qe("div",{class:this.deploymentsExpanded?"deployment-total visible":"deployment-total"},Qe("div",{class:"subtitle"},"Deployments"),Qe("div",{class:"item"},Qe("span",null,"Estimated deployment minutes per ",this.duration),Qe("span",null,this.formatNumber(this.getEstimatedDeploymentMinutes()))),Qe("div",{class:"item"},Qe("span",null,"Deployment minutes included"),Qe("span",null,this.formatNumber(this.getFreeDeploymentMinutes()))),Qe("div",{class:"item"},Qe("span",null,"Cost per deployment minute"),Qe("span",null,"$",this.getCostPerDeploymentMinute())))),Qe("div",{class:"divider"}),Qe("div",{class:this.isTotalOverMax()?"total over-max":"total"},Qe("span",{class:"contact"},Qe("a",{href:"/contact/?form=sales"},"Contact sales"),"for bulk discounts"),Qe("span",{class:this.isTotalOverMax()?"blurred":""},this.showFormattedTotal()))))))}static get style(){return'.calculator{margin-right:36px;margin-left:36px}.calculator h3{text-align:center;color:#000;font-family:"Gilroy";font-size:48px;font-weight:500}.calculator .edition{text-align:center;font-family:"Gilroy";font-size:28px;margin-bottom:36px}.calculator .content{display:flex;flex-direction:row;gap:60px}.calculator .inputs{display:flex;flex-direction:column;flex-grow:1}.calculator .field{margin-bottom:36px}.calculator .field .title{color:#131314;font-family:"Gilroy";font-size:24px;font-weight:500}.calculator .field .details{display:flex;flex-direction:row;justify-content:space-between}.calculator .field .details .description{width:400px;font-family:"Inter";font-size:16px;font-style:normal;font-weight:400;color:#2f3032}.calculator .field .details .utilization{margin-top:0px}.calculator .field .details .input{width:140px;padding:8px 12px;border-radius:4px;border:1px solid #bebfc9;height:48px}.calculator .field .details .input input{all:unset;width:80%}.calculator .field .details .input .percent{color:lightgray}.calculator .outputs{width:50%;max-width:530px;border-radius:12px;background:#fff;box-shadow:0px 6px 36px 0px rgba(0, 0, 0, 0.14)}.calculator .outputs .contents{display:flex;padding:36px;flex-direction:column;align-items:flex-start;gap:36px}.calculator .outputs .gradient{border-radius:12px 12px 0px 0px;height:8px;background:linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%)}.calculator .outputs .duration{display:flex;align-self:center}.calculator .outputs .duration button{display:flex;padding:8px 12px;align-items:flex-start;color:#8e8f97;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;border:1px solid #8e8f97}.calculator .outputs .duration button:first-of-type{border-radius:4px 0px 0px 4px}.calculator .outputs .duration button:last-of-type{border-radius:0px 4px 4px 0px}.calculator .outputs .duration button.active{color:#131314;background-color:#f2eff9;border:1px solid #805ac3}.calculator .outputs .items,.calculator .outputs .deployment-total{display:flex;flex-direction:column;gap:12px;color:#2f3032;font-family:"Inter";font-size:16px;font-weight:400;width:100%}.calculator .outputs .items .item,.calculator .outputs .deployment-total .item{flex-grow:1;display:flex;gap:36px;justify-content:space-between}.calculator .outputs .divider{width:100%;border-bottom:1px solid #bebfc9}.calculator .outputs .deployment-total{display:none}.calculator .outputs .deployment-total.visible{display:flex}.calculator .outputs .deployment-total .subtitle{font-weight:600}.calculator .outputs .deployment-total .item{margin-left:16px}.calculator .outputs .total{display:flex;width:100%;color:#805ac3;font-family:"Inter";font-size:30px;font-style:normal;font-weight:700;justify-content:end;gap:4px}.calculator .outputs .total .contact{display:none}.calculator .outputs .total.over-max{justify-content:space-between}.calculator .outputs .total.over-max .contact{align-self:center;display:inline-block;font-size:16px;line-height:24px;font-weight:600;color:#131314}.calculator .outputs .total.over-max .contact a{color:#4d5bd9;margin-right:4px}.calculator .outputs .total.over-max .blurred{filter:blur(16px)}.calculator input::-webkit-outer-spin-button,.calculator input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.calculator input[type=number]{-moz-appearance:textfield}.calculator .deployments{border-radius:4px;border:1px solid #805ac3;display:flex;flex-direction:column;width:100%;padding:24px}.calculator .deployments i{color:#805ac3;height:24px;width:24px;font-size:24px}.calculator .deployments.collapsed:hover{background:rgba(242, 239, 249, 0.5)}.calculator .deployments .default{display:flex;align-items:center;gap:24px}.calculator .deployments .default .details{flex-grow:1;display:flex;flex-direction:column;color:#2f3032}.calculator .deployments .default .details .title{font-family:"Inter";font-size:18px;font-weight:600;margin-bottom:16px}.calculator .deployments .default .details .subtitle{font-family:"Inter";font-size:16px;font-weight:400;line-height:normal}.calculator .deployments .field{margin-top:60px;display:none;margin-bottom:0px;flex-direction:column}.calculator .deployments .field.visible{display:flex}.range{-webkit-appearance:none;-moz-appearance:none;width:140px;display:block;margin-top:16px}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none;border-radius:10px;background:#4776e6;background:linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%);height:7.5px}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;border:2px solid;border-radius:50%;height:16px;width:16px;bottom:4px;position:relative;background-color:rgba(242, 239, 249, 0.5);cursor:-webkit-grab;-webkit-transition:border 1000ms ease;transition:border 1000ms ease}.range.purple::-webkit-slider-thumb{border-color:#805ac3}@media (max-width: 1280px){.calculator .field .details{flex-direction:column}.calculator .field .details .input{margin-top:16px}}@media (max-width: 1024px){.calculator .content{flex-direction:column}.calculator .outputs{width:100%;max-width:1200px}}@media (max-width: 640px){.calculator .field .details .description{width:100%}.calculator .field .details .input{width:100%}.range{width:100%}}'}},mo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.packageSearch=Ot(this,"packageSearch",7),this.filterContent="",this.debouncedFilter=mi.debounce(this.debouncedFilter,300)}debouncedFilter(e){this.filterContent=e.value,this.packageSearch.emit(this.filterContent)}onChange(e){this.debouncedFilter(e)}onClearFilter(){this.filterContent="",this.packageSearch.emit(this.filterContent)}reset(){this.filterContent=""}render(){return Qe("div",{class:"input-container"},Qe("i",{class:"search-icon fas fa-filter"}),Qe("input",{class:"registry-filter-input",placeholder:"Filter by package name...",onInput:e=>this.onChange(e.target),value:this.filterContent,autocomplete:"off"}),this.filterContent&&Qe("div",{class:"clear-container"},Qe("button",{onClick:this.onClearFilter.bind(this),class:"clear-filter-button"},Qe("i",{class:"fas fa-times"}))))}static get style(){return'.input-container{display:inline-block;position:relative;width:100%;max-width:550px}.input-container .clear-container{position:absolute;display:flex;align-items:center;margin-right:6px;top:0;right:0;height:100%}.input-container .search-icon{position:absolute;display:flex;align-items:center;height:100%;padding-left:12px;color:#b0b0b0}.input-container .clear-filter-button{display:flex;align-items:center;justify-content:center;height:18px;width:18px;font-size:xx-small;background:#dcdcdc;color:#808080;border-radius:50%;border:none;cursor:pointer;padding:0px}.input-container .registry-filter-input{font-family:"Inter";font-size:14px;height:36px;width:100%;border-radius:4px;border:2px solid #000;padding:6px;padding-left:40px;margin-top:0}.input-container .registry-filter-input:focus{outline-color:#4d5bd9}.input-container .registry-filter-input::placeholder{font-style:italic;color:#808080}'}},vo=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){fetch("https://www.pulumi.com/uploads/related-resources/2022-12-19.json").then((e=>e.json())).then((e=>{const t=e;if(t){const e=this.packageName.toLowerCase(),n=this.moduleName.toLowerCase(),r=this.resourceName.toLowerCase();this.related=t[e]&&t[e][n]?t[e][n][r]:void 0}})).catch((e=>console.error(e)))}render(){if(!this.related)return Qe("div",null);const e=this.packageName.toLowerCase();return Qe("div",{class:"container"},Qe("hr",{class:"mr-5"}),Qe("div",{class:"heading"},"Related Resources"),this.related.map((t=>{const n=t.split("/");let r=n.slice(0,n.length-1).join("/");const i=n[n.length-1],o=`/registry/packages/${e}/api-docs/${r.toLowerCase()}/${i.toLowerCase()}/`;return Qe("div",{class:"links"},Qe("a",{href:o},`${r}`,".",`${i}`))})))}};function go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bo(e){for(var t=1;t({persona:"developer",language:"typescript",k8sLanguage:"typescript",os:Lo(),cloud:"aws",backend:"service"}))(),t)=>{switch(t.type){case _i.SET_LANGUAGE:return Object.assign(Object.assign({},e),{language:t.key});case _i.SET_K8S_LANGUAGE:return Object.assign(Object.assign({},e),{k8sLanguage:t.key});case _i.SET_OS:return Object.assign(Object.assign({},e),{os:t.key});case _i.SET_CLOUD:return Object.assign(Object.assign({},e),{cloud:t.key});case _i.SET_PERSONA:return Object.assign(Object.assign({},e),{persona:t.key});case _i.SET_BACKEND:return Object.assign(Object.assign({},e),{backend:t.key});default:return e}},banners:(e={dismissed:[]},t)=>{if(t.type===_i.DISMISS_BANNER){const{name:n,dismissedAt:r}=t.payload;return Object.assign(Object.assign({},e),{dismissed:[...e.dismissed.filter((e=>e.name!==n)),{name:n,dismissedAt:r}]})}return e},user:(e=(()=>({id:Do().userId}))(),t)=>t.type===_i.GET_USER_INFO?Object.assign(Object.assign({},e),{id:Do().userId}):e}),No=()=>{let e;try{e=localStorage.getItem("pulumi_state")}catch(e){console.error("Failed to read pulumi_state from localStorage:",e)}const t=e?JSON.parse(e):{},n=Oo(Mo,function(e){let t={};try{if(e.banners&&Array.isArray(e.banners.dismissed)){const n=Date.now()-3456e5;t.banners={dismissed:e.banners.dismissed.filter((e=>!!e.name&&e.dismissedAt&&e.dismissedAt>n))}}e.preferences&&(t.preferences={language:e.preferences.language||"typescript",os:e.preferences.os||"macos",cloud:e.preferences.cloud||"aws",k8sLanguage:e.preferences.k8sLanguage||"typescript",persona:e.preferences.persona||"developer",backend:e.backend||"service"})}catch(e){return t}return t}(t),Ao.composeWithDevTools(To(Io)));return n.subscribe((()=>{const e=n.getState();try{localStorage.setItem("pulumi_state",JSON.stringify(e))}catch(e){console.error("Failed to save pulumi_state:",e)}})),setInterval((()=>{n.dispatch({type:_i.GET_USER_INFO})}),3e3),n};const Ro=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.rendered=Ot(this,"rendered",7)}componentWillLoad(){wi.setStore(No()),wi.mapDispatchToProps(this,{setLanguage:$i})}componentDidRender(){this.setSelectedLanguage(),this.rendered.emit()}render(){return Qe("div",null)}setSelectedLanguage(){const e=oi("language");e&&this.setLanguage(e);const t=window.location.hash;if(t){const e=t.split("_").slice(-1).find((e=>["typescript","javascript","csharp","go","python"].includes(e)));e&&this.setLanguage(e)}}},Fo=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentDidLoad(){this.runSlotMachine()}runSlotMachine(){this.leftSwiper.stopSwiper(),this.centerSwiper.stopSwiper(),this.rightSwiper.stopSwiper(),setTimeout((()=>{this.leftSwiper.startSwiper()}),100),setTimeout((()=>{this.centerSwiper.startSwiper()}),500),setTimeout((()=>{this.rightSwiper.startSwiper()}),1e3),setTimeout((()=>{this.leftSwiper.stopSwiper()}),3e3),setTimeout((()=>{this.centerSwiper.stopSwiper()}),3500),setTimeout((()=>{this.rightSwiper.stopSwiper()}),4e3),setTimeout((()=>{this.leftSwiper.startSwiper(),this.centerSwiper.startSwiper(),this.rightSwiper.startSwiper(),this.runSlotMachine()}),7e3)}renderImageList(e){const t=this.imageClass||"";return e.map((e=>Qe("pulumi-swipeable",null,Qe("img",{class:t,src:e,alt:""}))))}render(){return Qe("ul",null,Qe("li",null,Qe("pulumi-swiper",{ref:e=>this.leftSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.leftImages.split(",")))),Qe("li",null,Qe("pulumi-swiper",{ref:e=>this.centerSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.centerImages.split(",")))),Qe("li",null,Qe("pulumi-swiper",{ref:e=>this.rightSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.rightImages.split(",")))))}static get style(){return":host{display:block}"}},Bo=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Qe(Ze,{class:"swiper-slide"},Qe("slot",null))}};function Ho(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Vo(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Ho(t[n])&&Ho(e[n])&&Object.keys(t[n]).length>0&&Vo(e[n],t[n])}))}var qo={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function zo(){var e="undefined"!=typeof document?document:{};return Vo(e,qo),e}var Uo={document:qo,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Wo(){var e="undefined"!=typeof window?window:{};return Vo(e,Uo),e}function Ko(e){return Ko=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ko(e)}function Go(e,t){return Go=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Go(e,t)}function Jo(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Yo(e,t,n){return Yo=Jo()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Go(i,n.prototype),i},Yo.apply(null,arguments)}function Qo(e){var t="function"==typeof Map?new Map:void 0;return Qo=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Yo(e,arguments,Ko(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Go(r,e)},Qo(e)}var Xo=function(e){var t,n;function r(t){var n,r,i;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),i=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return i},set:function(e){i.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Qo(Array));function Zo(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Zo(e)):t.push(e)})),t}function es(e,t){return Array.prototype.filter.call(e,t)}function ts(e,t){var n=Wo(),r=zo(),i=[];if(!t&&e instanceof Xo)return e;if(!e)return new Xo(i);if("string"==typeof e){var o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var s="div";0===o.indexOf("0})).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;f-=1){var h=p[f];o&&h.listener===o||o&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===o?(d.removeEventListener(c,h.proxyListener,s),p.splice(f,1)):o||(d.removeEventListener(c,h.proxyListener,s),p.splice(f,1))}}return this},trigger:function(){for(var e=Wo(),t=arguments.length,n=new Array(t),r=0;r0})),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}}return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",(function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=Wo();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var e=Wo(),t=zo(),n=this[0],r=n.getBoundingClientRect(),i=t.body,o=n.clientTop||i.clientTop||0,s=n.clientLeft||i.clientLeft||0,a=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+a-o,left:r.left+l-s}}return null},css:function(e,t){var n,r=Wo();if(1===arguments.length){if("string"!=typeof e){for(n=0;nt-1)return ts([]);if(e<0){var n=t+e;return ts(n<0?[]:[this[n]])}return ts([this[e]])},append:function(){for(var e,t=zo(),n=0;n=0;n-=1)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof Xo)for(n=0;n0?e?this[0].nextElementSibling&&ts(this[0].nextElementSibling).is(e)?ts([this[0].nextElementSibling]):ts([]):this[0].nextElementSibling?ts([this[0].nextElementSibling]):ts([]):ts([])},nextAll:function(e){var t=[],n=this[0];if(!n)return ts([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?ts(r).is(e)&&t.push(r):t.push(r),n=r}return ts(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&ts(t.previousElementSibling).is(e)?ts([t.previousElementSibling]):ts([]):t.previousElementSibling?ts([t.previousElementSibling]):ts([])}return ts([])},prevAll:function(e){var t=[],n=this[0];if(!n)return ts([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?ts(r).is(e)&&t.push(r):t.push(r),n=r}return ts(t)},parent:function(e){for(var t=[],n=0;n6&&(r=r.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),i=new o.WebKitCSSMatrix("none"===r?"":r)):n=(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=o.WebKitCSSMatrix?i.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=o.WebKitCSSMatrix?i.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}function cs(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function us(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"],n=1;n=0,observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),ns}function fs(e){return void 0===e&&(e={}),rs||(rs=function(e){var t=(void 0===e?{}:e).userAgent,n=ps(),r=Wo(),i=r.navigator.platform,o=t||r.navigator.userAgent,s={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/),u=o.match(/(iPad).*OS\s([\d_]+)/),d=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===i,h="MacIntel"===i;return!u&&h&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(a+"x"+l)>=0&&((u=o.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),h=!1),c&&!f&&(s.os="android",s.android=!0),(u||p||d)&&(s.os="ios",s.ios=!0),s}(e)),rs}function hs(){return is||(is=function(){var e,t=Wo();return{isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),is}Object.keys(os).forEach((function(e){Object.defineProperty(ts.fn,e,{value:os[e],writable:!0})}));const ms={name:"resize",create:function(){var e=this;us(e,{resize:{observer:null,createObserver:function(){e&&!e.destroyed&&e.initialized&&(e.resize.observer=new ResizeObserver((function(t){var n=e.width,r=e.height,i=n,o=r;t.forEach((function(t){var n=t.contentBoxSize,r=t.contentRect,s=t.target;s&&s!==e.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)})),i===n&&o===r||e.resize.resizeHandler()})),e.resize.observer.observe(e.el))},removeObserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=Wo();e.params.resizeObserver&&void 0!==Wo().ResizeObserver?e.resize.createObserver():(t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler))},destroy:function(e){var t=Wo();e.resize.removeObserver(),t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};function vs(){return vs=Object.assign||function(e){for(var t=1;t=0&&t.eventsAnyListeners.splice(n,1),t},off:function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((function(r,i){(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit:function(){var e,t,n,r=this;if(!r.eventsListeners)return r;for(var i=arguments.length,o=new Array(i),s=0;s=0&&(b=parseFloat(b.replace("%",""))/100*o),e.virtualSize=-b,s?u.css({marginLeft:"",marginTop:""}):u.css({marginRight:"",marginBottom:""}),r.slidesPerColumn>1&&(x=Math.floor(d/r.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/r.slidesPerColumn)*r.slidesPerColumn,"auto"!==r.slidesPerView&&"row"===r.slidesPerColumnFill&&(x=Math.max(x,r.slidesPerView*r.slidesPerColumn)));for(var O,$,E,C=r.slidesPerColumn,T=x/C,P=Math.floor(d/r.slidesPerColumn),A=0;A1){var I=void 0,L=void 0,D=void 0;if("row"===r.slidesPerColumnFill&&r.slidesPerGroup>1){var M=Math.floor(A/(r.slidesPerGroup*r.slidesPerColumn)),N=A-r.slidesPerColumn*r.slidesPerGroup*M,R=0===M?r.slidesPerGroup:Math.min(Math.ceil((d-M*C*r.slidesPerGroup)/C),r.slidesPerGroup);I=(L=N-(D=Math.floor(N/R))*R+M*r.slidesPerGroup)+D*x/C,j.css({"-webkit-box-ordinal-group":I,"-moz-box-ordinal-group":I,"-ms-flex-order":I,"-webkit-order":I,order:I})}else"column"===r.slidesPerColumnFill?(D=A-(L=Math.floor(A/C))*C,(L>P||L===P&&D===C-1)&&(D+=1)>=C&&(D=0,L+=1)):L=A-(D=Math.floor(A/T))*T;j.css(t("margin-top"),0!==D&&r.spaceBetween&&r.spaceBetween+"px")}if("none"!==j.css("display")){if("auto"===r.slidesPerView){var F=getComputedStyle(j[0]),B=j[0].style.transform,H=j[0].style.webkitTransform;if(B&&(j[0].style.transform="none"),H&&(j[0].style.webkitTransform="none"),r.roundLengths)k=e.isHorizontal()?j.outerWidth(!0):j.outerHeight(!0);else{var V=n(F,"width"),q=n(F,"padding-left"),z=n(F,"padding-right"),U=n(F,"margin-left"),W=n(F,"margin-right"),K=F.getPropertyValue("box-sizing");if(K&&"border-box"===K)k=V+U+W;else{var G=j[0],J=G.clientWidth;k=V+q+z+U+W+(G.offsetWidth-J)}}B&&(j[0].style.transform=B),H&&(j[0].style.webkitTransform=H),r.roundLengths&&(k=Math.floor(k))}else k=(o-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),u[A]&&(u[A].style[t("width")]=k+"px");u[A]&&(u[A].swiperSlideSize=k),h.push(k),r.centeredSlides?(w=w+k/2+_/2+b,0===_&&0!==A&&(w=w-o/2-b),0===A&&(w=w-o/2-b),Math.abs(w)<.001&&(w=0),r.roundLengths&&(w=Math.floor(w)),S%r.slidesPerGroup==0&&p.push(w),f.push(w)):(r.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&p.push(w),f.push(w),w=w+k+b),e.virtualSize+=k+b,_=k,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+v,s&&a&&("slide"===r.effect||"coverflow"===r.effect)&&i.css({width:e.virtualSize+r.spaceBetween+"px"}),r.setWrapperSize)i.css((($={})[t("width")]=e.virtualSize+r.spaceBetween+"px",$));if(r.slidesPerColumn>1)if(e.virtualSize=(k+r.spaceBetween)*x,e.virtualSize=Math.ceil(e.virtualSize/r.slidesPerColumn)-r.spaceBetween,i.css(((E={})[t("width")]=e.virtualSize+r.spaceBetween+"px",E)),r.centeredSlides){O=[];for(var Y=0;Y1&&p.push(e.virtualSize-o)}if(0===p.length&&(p=[0]),0!==r.spaceBetween){var ee,te=e.isHorizontal()&&s?"marginLeft":t("marginRight");u.filter((function(e,t){return!r.cssMode||t!==u.length-1})).css(((ee={})[te]=b+"px",ee))}if(r.centeredSlides&&r.centeredSlidesBounds){var ne=0;h.forEach((function(e){ne+=e+(r.spaceBetween?r.spaceBetween:0)}));var re=(ne-=r.spaceBetween)-o;p=p.map((function(e){return e<0?-m:e>re?re+v:e}))}if(r.centerInsufficientSlides){var ie=0;if(h.forEach((function(e){ie+=e+(r.spaceBetween?r.spaceBetween:0)})),(ie-=r.spaceBetween)1)if(n.params.centeredSlides)n.visibleSlides.each((function(e){r.push(e)}));else for(t=0;tn.slides.length&&!i)break;r.push(s(a))}else r.push(s(n.activeIndex));for(t=0;to?l:o}o&&n.$wrapperEl.css("height",o+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t=0&&c1&&u<=t.size||c<=0&&u>=t.size)&&(t.visibleSlides.push(a),t.visibleSlidesIndexes.push(s),r.eq(s).addClass(n.slideVisibleClass))}a.progress=i?-l:l}t.visibleSlides=ts(t.visibleSlides)}},updateProgress:function(e){var t=this;if(void 0===e){var n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}var r=t.params,i=t.maxTranslate()-t.minTranslate(),o=t.progress,s=t.isBeginning,a=t.isEnd,l=s,c=a;0===i?(o=0,s=!0,a=!0):(s=(o=(e-t.minTranslate())/i)<=0,a=o>=1),us(t,{progress:o,isBeginning:s,isEnd:a}),(r.watchSlidesProgress||r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!s||c&&!a)&&t.emit("fromEdge"),t.emit("progress",o)},updateSlidesClasses:function(){var e,t=this,n=t.slides,r=t.params,i=t.$wrapperEl,o=t.activeIndex,s=t.realIndex,a=t.virtual&&r.virtual.enabled;n.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass),(e=a?t.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+o+'"]'):n.eq(o)).addClass(r.slideActiveClass),r.loop&&(e.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass));var l=e.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===l.length&&(l=n.eq(0)).addClass(r.slideNextClass);var c=e.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&0===c.length&&(c=n.eq(-1)).addClass(r.slidePrevClass),r.loop&&(l.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),c.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,i=n.slidesGrid,o=n.snapGrid,s=n.params,a=n.activeIndex,l=n.realIndex,c=n.snapIndex,u=e;if(void 0===u){for(var d=0;d=i[d]&&r=i[d]&&r=i[d]&&(u=d);s.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(o.indexOf(r)>=0)t=o.indexOf(r);else{var p=Math.min(s.slidesPerGroupSkip,u);t=p+Math.floor((u-p)/s.slidesPerGroup)}if(t>=o.length&&(t=o.length-1),u!==a){var f=parseInt(n.slides.eq(u).attr("data-swiper-slide-index")||u,10);us(n,{snapIndex:t,realIndex:f,previousIndex:a,activeIndex:u}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==f&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")}else t!==c&&(n.snapIndex=t,n.emit("snapIndexChange"))},updateClickedSlide:function(e){var t,n=this,r=n.params,i=ts(e.target).closest("."+r.slideClass)[0],o=!1;if(i)for(var s=0;sc?c:r&&e=c.length&&(g=c.length-1),(p||l.initialSlide||0)===(d||0)&&n&&s.emit("beforeSlideChangeStart");var y,b=-c[g];if(s.updateProgress(b),l.normalizeSlideIndex)for(var w=0;w=S&&_=S&&_=S&&(a=w)}if(s.initialized&&a!==p){if(!s.allowSlideNext&&bs.translate&&b>s.maxTranslate()&&(p||0)!==a)return!1}if(y=a>p?"next":a=e&&(f=e)})),void 0!==f&&(p=a.indexOf(f))<0&&(p=r.activeIndex-1),r.slideTo(p,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===r&&(r=.5);var i=this,o=i.activeIndex,s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){var c=i.snapGrid[a];l-c>(i.snapGrid[a+1]-c)*r&&(o+=i.params.slidesPerGroup)}else{var u=i.snapGrid[a-1];l-u<=(i.snapGrid[a]-u)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,o=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(ts(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?ot.slides.length-t.loopedSlides+i/2?(t.loopFix(),o=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),ss((function(){t.slideTo(o)}))):t.slideTo(o):o>t.slides.length-i?(t.loopFix(),o=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),ss((function(){t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}};const xs={loopCreate:function(){var e=this,t=zo(),n=e.params,r=e.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var i=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var o=n.slidesPerGroup-i.length%n.slidesPerGroup;if(o!==n.slidesPerGroup){for(var s=0;si.length&&(e.loopedSlides=i.length);var l=[],c=[];i.each((function(t,n){var r=ts(t);n=i.length-e.loopedSlides&&l.push(t),r.attr("data-swiper-slide-index",n)}));for(var u=0;u=0;d-=1)r.prepend(ts(l[d].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var e=this;e.emit("beforeLoopFix");var t,n=e.activeIndex,r=e.slides,i=e.loopedSlides,o=e.allowSlidePrev,s=e.allowSlideNext,a=e.snapGrid,l=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var c=-a[n]-e.getTranslate();if(n=r.length-i){t=-r.length+n+i,t+=i,e.slideTo(t,0,!1,!0)&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}e.allowSlidePrev=o,e.allowSlideNext=s,e.emit("loopFix")},loopDestroy:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}};const ks={appendSlide:function(e){var t=this,n=t.$wrapperEl,r=t.params;if(r.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var i=0;i=s)n.appendSlide(t);else{for(var a=o>e?o+1:o,l=[],c=s-1;c>=e;c-=1){var u=n.slides.eq(c);u.remove(),l.unshift(u)}if("object"==typeof t&&"length"in t){for(var d=0;de?o+t.length:o}else r.append(t);for(var p=0;p0))if(!i.isTouched||!i.isMoved)if(!!o.noSwipingClass&&""!==o.noSwipingClass&&a.target&&a.target.shadowRoot&&e.path&&e.path[0]&&(l=ts(e.path[0])),o.noSwiping&&l.closest(o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass)[0])t.allowClick=!0;else if(!o.swipeHandler||l.closest(o.swipeHandler)[0]){s.currentX="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,s.currentY="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY;var c=s.currentX,u=s.currentY,d=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,p=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(d&&(c<=p||c>=r.innerWidth-p)){if("prevent"!==d)return;e.preventDefault()}if(us(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=c,s.startY=u,i.touchStartTime=as(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==a.type){var f=!0;l.is(i.formElements)&&(f=!1),n.activeElement&&ts(n.activeElement).is(i.formElements)&&n.activeElement!==l[0]&&n.activeElement.blur();var h=f&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!h||l[0].isContentEditable||a.preventDefault()}t.emit("touchStart",a)}}}function $s(e){var t=zo(),n=this,r=n.touchEventsData,i=n.params,o=n.touches,s=n.rtlTranslate;if(n.enabled){var a=e;if(a.originalEvent&&(a=a.originalEvent),r.isTouched){if(!r.isTouchEvent||"touchmove"===a.type){var l="touchmove"===a.type&&a.targetTouches&&(a.targetTouches[0]||a.changedTouches[0]),c="touchmove"===a.type?l.pageX:a.pageX,u="touchmove"===a.type?l.pageY:a.pageY;if(a.preventedByNestedSwiper)return o.startX=c,void(o.startY=u);if(!n.allowTouchMove)return n.allowClick=!1,void(r.isTouched&&(us(o,{startX:c,startY:u,currentX:c,currentY:u}),r.touchStartTime=as()));if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(uo.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(co.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&t.activeElement&&a.target===t.activeElement&&ts(a.target).is(r.formElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",a),!(a.targetTouches&&a.targetTouches.length>1)){o.currentX=c,o.currentY=u;var d=o.currentX-o.startX,p=o.currentY-o.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(p,2))=25&&(f=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,r.isScrolling=n.isHorizontal()?f>i.touchAngle:90-f>i.touchAngle);if(r.isScrolling&&n.emit("touchMoveOpposite",a),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){n.allowClick=!1,!i.cssMode&&a.cancelable&&a.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&a.stopPropagation(),r.isMoved||(i.loop&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",a)),n.emit("sliderMove",a),r.isMoved=!0;var h=n.isHorizontal()?d:p;o.diff=h,h*=i.touchRatio,s&&(h=-h),n.swipeDirection=h>0?"prev":"next",r.currentTranslate=h+r.startTranslate;var m=!0,v=i.resistanceRatio;if(i.touchReleaseOnEdges&&(v=0),h>0&&r.currentTranslate>n.minTranslate()?(m=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+h,v))):h<0&&r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(h)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&(0===r.velocities.length&&r.velocities.push({position:o[n.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:o[n.isHorizontal()?"currentX":"currentY"],time:as()})),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}}}else r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",a)}}function Es(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,o=t.rtlTranslate,s=t.$wrapperEl,a=t.slidesGrid,l=t.snapGrid;if(t.enabled){var c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,d=as(),p=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap click",c),p<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)),n.lastClickTime=as(),ss((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=r.followFinger?o?t.translate:-t.translate:-n.currentTranslate,!r.cssMode)if(r.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length1){var f=n.velocities.pop(),h=n.velocities.pop(),m=f.position-h.position,v=f.time-h.time;t.velocity=m/v,t.velocity/=2,Math.abs(t.velocity)150||as()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var g=1e3*r.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;o&&(b=-b);var w,_,S=!1,x=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(bt.minTranslate())r.freeModeMomentumBounce?(b-t.minTranslate()>x&&(b=t.minTranslate()+x),w=t.minTranslate(),S=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),r.loop&&r.centeredSlides&&(_=!0);else if(r.freeModeSticky){for(var k,O=0;O-b){k=O;break}b=-(b=Math.abs(l[k]-b)=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var C=0,T=t.slidesSizesGrid[0],P=0;P=a[P]&&u=a[P]&&(C=P,T=a[a.length-1]-a[a.length-2])}var j=(u-a[C])/T,I=Cr.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(j>=r.longSwipesRatio?t.slideTo(C+I):t.slideTo(C)),"prev"===t.swipeDirection&&(j>1-r.longSwipesRatio?t.slideTo(C+I):t.slideTo(C))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(C+I):t.slideTo(C):("next"===t.swipeDirection&&t.slideTo(C+I),"prev"===t.swipeDirection&&t.slideTo(C))}}}}function Cs(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var r=e.allowSlideNext,i=e.allowSlidePrev,o=e.snapGrid;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}}function Ts(e){var t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ps(){var e=this,t=e.wrapperEl,n=e.rtlTranslate;if(e.enabled){e.previousTranslate=e.translate,e.isHorizontal()?e.translate=n?t.scrollWidth-t.offsetWidth-t.scrollLeft:-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();var r=e.maxTranslate()-e.minTranslate();(0===r?0:(e.translate-e.minTranslate())/r)!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}}var As=!1;function js(){}const Is={attachEvents:function(){var e=this,t=zo(),n=e.params,r=e.touchEvents,i=e.el,o=e.wrapperEl,s=e.device,a=e.support;e.onTouchStart=Os.bind(e),e.onTouchMove=$s.bind(e),e.onTouchEnd=Es.bind(e),n.cssMode&&(e.onScroll=Ps.bind(e)),e.onClick=Ts.bind(e);var l=!!n.nested;if(!a.touch&&a.pointerEvents)i.addEventListener(r.start,e.onTouchStart,!1),t.addEventListener(r.move,e.onTouchMove,l),t.addEventListener(r.end,e.onTouchEnd,!1);else{if(a.touch){var c=!("touchstart"!==r.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};i.addEventListener(r.start,e.onTouchStart,c),i.addEventListener(r.move,e.onTouchMove,a.passiveListener?{passive:!1,capture:l}:l),i.addEventListener(r.end,e.onTouchEnd,c),r.cancel&&i.addEventListener(r.cancel,e.onTouchEnd,c),As||(t.addEventListener("touchstart",js),As=!0)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!a.touch&&s.ios)&&(i.addEventListener("mousedown",e.onTouchStart,!1),t.addEventListener("mousemove",e.onTouchMove,l),t.addEventListener("mouseup",e.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&i.addEventListener("click",e.onClick,!0),n.cssMode&&o.addEventListener("scroll",e.onScroll),n.updateOnWindowResize?e.on(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Cs,!0):e.on("observerUpdate",Cs,!0)},detachEvents:function(){var e=this,t=zo(),n=e.params,r=e.touchEvents,i=e.el,o=e.wrapperEl,s=e.device,a=e.support,l=!!n.nested;if(!a.touch&&a.pointerEvents)i.removeEventListener(r.start,e.onTouchStart,!1),t.removeEventListener(r.move,e.onTouchMove,l),t.removeEventListener(r.end,e.onTouchEnd,!1);else{if(a.touch){var c=!("onTouchStart"!==r.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};i.removeEventListener(r.start,e.onTouchStart,c),i.removeEventListener(r.move,e.onTouchMove,l),i.removeEventListener(r.end,e.onTouchEnd,c),r.cancel&&i.removeEventListener(r.cancel,e.onTouchEnd,c)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!a.touch&&s.ios)&&(i.removeEventListener("mousedown",e.onTouchStart,!1),t.removeEventListener("mousemove",e.onTouchMove,l),t.removeEventListener("mouseup",e.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&i.removeEventListener("click",e.onClick,!0),n.cssMode&&o.removeEventListener("scroll",e.onScroll),e.off(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Cs)}};const Ls={setBreakpoint:function(){var e=this,t=e.activeIndex,n=e.initialized,r=e.loopedSlides,i=void 0===r?0:r,o=e.params,s=e.$el,a=o.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var l=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(l&&e.currentBreakpoint!==l){var c=l in a?a[l]:void 0;c&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=c[e];void 0!==t&&(c[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var u=c||e.originalParams,d=o.slidesPerColumn>1,p=u.slidesPerColumn>1,f=o.enabled;d&&!p?(s.removeClass(o.containerModifierClass+"multirow "+o.containerModifierClass+"multirow-column"),e.emitContainerClasses()):!d&&p&&(s.addClass(o.containerModifierClass+"multirow"),"column"===u.slidesPerColumnFill&&s.addClass(o.containerModifierClass+"multirow-column"),e.emitContainerClasses());var h=u.direction&&u.direction!==o.direction,m=o.loop&&(u.slidesPerView!==o.slidesPerView||h);h&&n&&e.changeDirection(),us(e.params,u);var v=e.params.enabled;us(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!v?e.disable():!f&&v&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",u),m&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",u)}}},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),e&&("container"!==t||n)){var r=!1,i=Wo(),o="window"===t?i.innerWidth:n.clientWidth,s="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}}));a.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var l=0;l1},{"multirow-column":o.slidesPerColumn>1&&"column"===o.slidesPerColumnFill},{android:l.android},{ios:l.ios},{"css-mode":o.cssMode}],t=o.containerModifierClass,n=[],e.forEach((function(e){"object"==typeof e?Object.keys(e).forEach((function(r){e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n);i.push.apply(i,u),a.addClass([].concat(i).join(" ")),r.emitContainerClasses()},removeClasses:function(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" ")),e.emitContainerClasses()}};const Ms={loadImage:function(e,t,n,r,i,o){var s,a=Wo();function l(){o&&o()}ts(e).parent("picture")[0]||e.complete&&i?l():t?((s=new a.Image).onload=l,s.onerror=l,r&&(s.sizes=r),n&&(s.srcset=n),t&&(s.src=t)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;no?"next":ri?"next":r0&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&r?e.isLocked=r<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,n!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),n&&n!==e.isLocked&&(e.isEnd=!1,e.navigation&&e.navigation.update())}},classes:Ds,images:Ms},Bs={},Hs=function(){function e(){for(var t,n,r=arguments.length,i=new Array(r),o=0;o1){var s=[];return ts(n.el).each((function(t){var r=us({},n,{el:t});s.push(new e(r))})),s}var a=this;a.__swiper__=!0,a.support=ps(),a.device=fs({userAgent:n.userAgent}),a.browser=hs(),a.eventsListeners={},a.eventsAnyListeners=[],void 0===a.modules&&(a.modules={}),Object.keys(a.modules).forEach((function(e){var t=a.modules[e];if(t.params){var r=Object.keys(t.params)[0],i=t.params[r];if("object"!=typeof i||null===i)return;if(!(r in n)||!("enabled"in i))return;!0===n[r]&&(n[r]={enabled:!0}),"object"!=typeof n[r]||"enabled"in n[r]||(n[r].enabled=!0),n[r]||(n[r]={enabled:!1})}}));var l,c,u=us({},Ns);return a.useParams(u),a.params=us({},u,Bs,n),a.originalParams=us({},a.params),a.passedParams=us({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach((function(e){a.on(e,a.params.on[e])})),a.params&&a.params.onAny&&a.onAny(a.params.onAny),a.$=ts,us(a,{enabled:a.params.enabled,el:t,classNames:[],slides:ts(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===a.params.direction},isVertical:function(){return"vertical"===a.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEvents:(l=["touchstart","touchmove","touchend","touchcancel"],c=["mousedown","mousemove","mouseup"],a.support.pointerEvents&&(c=["pointerdown","pointermove","pointerup"]),a.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},a.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},a.support.touch||!a.params.simulateTouch?a.touchEventsTouch:a.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:as(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.useModules(),a.emit("_swiper"),a.params.init&&a.init(),a}var t,n,r,i=e.prototype;return i.enable=function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))},i.disable=function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))},i.setProgress=function(e,t){var n=this;e=Math.min(Math.max(e,0),1);var r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()},i.emitContainerClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-container")||0===t.indexOf(e.params.containerModifierClass)}));e.emit("_containerClasses",t.join(" "))}},i.getSlideClasses=function(e){var t=this;return e.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)})).join(" ")},i.emitSlidesClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=[];e.slides.each((function(n){var r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}},i.slidesPerViewDynamic=function(){var e=this,t=e.params,n=e.slides,r=e.slidesGrid,i=e.size,o=e.activeIndex,s=1;if(t.centeredSlides){for(var a,l=n[o].swiperSlideSize,c=o+1;ci&&(a=!0));for(var u=o-1;u>=0;u-=1)n[u]&&!a&&(s+=1,(l+=n[u].swiperSlideSize)>i&&(a=!0))}else for(var d=o+1;d1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}},i.changeDirection=function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(""+n.params.containerModifierClass+r).addClass(""+n.params.containerModifierClass+e),n.emitContainerClasses(),n.params.direction=e,n.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n},i.mount=function(e){var t=this;if(t.mounted)return!0;var n,r=ts(e||t.params.el);return!!(e=r[0])&&(e.swiper=t,e&&e.shadowRoot&&e.shadowRoot.querySelector?(n=ts(e.shadowRoot.querySelector("."+t.params.wrapperClass))).children=function(e){return r.children(e)}:n=r.children("."+t.params.wrapperClass),us(t,{$el:r,el:e,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0)},i.init=function(e){var t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t},i.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n,r=this,i=r.params,o=r.$el,s=r.$wrapperEl,a=r.slides;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),t&&(r.removeClasses(),o.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach((function(e){r.off(e)})),!1!==e&&(r.$el[0].swiper=null,n=r,Object.keys(n).forEach((function(e){try{n[e]=null}catch(e){}try{delete n[e]}catch(e){}}))),r.destroyed=!0),null},e.extendDefaults=function(e){us(Bs,e)},e.installModule=function(t){e.prototype.modules||(e.prototype.modules={});var n=t.name||Object.keys(e.prototype.modules).length+"_"+as();e.prototype.modules[n]=t},e.use=function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)},t=e,r=[{key:"extendedDefaults",get:function(){return Bs}},{key:"defaults",get:function(){return Ns}}],(n=null)&&Rs(t.prototype,n),r&&Rs(t,r),e}();function Vs(){return Vs=Object.assign||function(e){for(var t=1;t0&&(e.isBeginning?n(o,!0):n(o,!1),e.params.watchOverflow&&e.enabled&&o[e.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(e.isEnd?n(i,!0):n(i,!1),e.params.watchOverflow&&e.enabled&&i[e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,n=this,r=n.params.navigation;(r.nextEl||r.prevEl)&&(r.nextEl&&(e=ts(r.nextEl),n.params.uniqueNavElements&&"string"==typeof r.nextEl&&e.length>1&&1===n.$el.find(r.nextEl).length&&(e=n.$el.find(r.nextEl))),r.prevEl&&(t=ts(r.prevEl),n.params.uniqueNavElements&&"string"==typeof r.prevEl&&t.length>1&&1===n.$el.find(r.prevEl).length&&(t=n.$el.find(r.prevEl))),e&&e.length>0&&e.on("click",n.navigation.onNextClick),t&&t.length>0&&t.on("click",n.navigation.onPrevClick),us(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}),n.enabled||(e&&e.addClass(r.lockClass),t&&t.addClass(r.lockClass)))},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),r&&r.length&&(r.off("click",e.navigation.onPrevClick),r.removeClass(e.params.navigation.disabledClass))}};const zs={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){ds(this,{navigation:Vs({},qs)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},"enable disable":function(e){var t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),r&&r[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)},click:function(e,t){var n=e.navigation,r=n.$nextEl,i=n.$prevEl,o=t.target;if(e.params.navigation.hideOnClick&&!ts(o).is(i)&&!ts(o).is(r)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;var s;r?s=r.hasClass(e.params.navigation.hiddenClass):i&&(s=i.hasClass(e.params.navigation.hiddenClass)),!0===s?e.emit("navigationShow"):e.emit("navigationHide"),r&&r.toggleClass(e.params.navigation.hiddenClass),i&&i.toggleClass(e.params.navigation.hiddenClass)}}}};function Us(){return Us=Object.assign||function(e){for(var t=1;t{const n=e.slides;for(let t=0;te.getAttribute("active")));e?this.select(e):!this.selectedTab&&this.tabs.length>0&&this.select(this.tabs[0])}select(e){e&&(this.tabs.forEach((t=>t.setAttribute("active",(t===e).toString()))),this.selectedTab=e,this.tabSelect.emit([{selectedTab:e}]))}get tabs(){return Array.from(this.el.querySelectorAll("pulumi-tab")||[])}labelFor(e){return e.getAttribute("label")||""}partsFor(e){const t=["tab"];return this.selectedTab===e&&t.push("active-tab"),t.join(" ")}render(){return Qe("div",null,Qe("ul",{part:"tabs",role:"tablist"},this.tabs.map((e=>Qe("li",{part:this.partsFor(e),role:"presentation"},Qe("a",{part:"anchor",onClick:this.select.bind(this,e),role:"tab","aria-selected":this.selectedTab===e},this.labelFor(e)))))),Qe("slot",null))}get el(){return this}static get style(){return":host {\n display: block;\n }\n ul {\n display: flex;\n width: 100%;\n align-items: center;\n margin: 0;\n padding: 0;\n width: auto;\n list-style-type: none;\n }\n li {\n display: flex;\n justify-content: center;\n }\n li a {\n cursor: pointer;\n display: flex;\n justify-content: center;\n flex: 1;\n text-align: center;\n white-space: nowrap;\n }"}},Qs=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){this.parsedItems=JSON.parse(this.items),this.tabContent=this.parsedItems.map((e=>e.anchor)),this.selectTab(this.parsedItems[0])}selectTab(e){this.selection=e.anchor,document.getElementById(`${e.anchor}`).classList.remove("hidden");this.tabContent.filter((t=>t!==e.anchor)).forEach((e=>{document.getElementById(`${e}`).classList.add("hidden")}))}render(){return Qe(Ze,null,Qe("ul",null,this.parsedItems.map((e=>Qe("li",{class:this.selection===e.anchor?"active":""},Qe("a",{onClick:()=>this.selectTab(e)},e.label))))))}static get style(){return":host{display:block}"}},Xs=class extends HTMLElement{constructor(){super(),this.__registerHost()}async show(){return new Promise((e=>{this.active=!0,setTimeout((()=>e()),100)}))}async hide(){return new Promise((e=>{this.active=!1,setTimeout((()=>e()),100)}))}componentDidLoad(){this.id=On(),this.active=!1;const e=this.el.querySelector(".tooltip-target");e.addEventListener("mouseover",(()=>this.active=!0)),e.addEventListener("mouseout",(()=>this.active=!1)),e.addEventListener("touchstart",(()=>this.active=!0)),e.addEventListener("touchend",(()=>this.active=!1))}render(){return Qe(Ze,null,Qe("span",{class:"tooltip-target "+(this.active?"active":""),"aria-labelledby":this.id},Qe("slot",null)),Qe("span",{id:this.id,class:"tooltip-content",role:"tooltip"},Qe("slot",{name:"content"})))}get el(){return this}},Zs=class extends HTMLElement{constructor(){super(),this.__registerHost()}handleScroll(){this.setVisibility()}componentWillRender(){this.setVisibility()}render(){let e=`btn-scroll-top fas fa-chevron-up ${this.visible}`;return Qe("a",{class:e,title:"Scroll to top",href:"#"})}setVisibility(){this.visible=window.scrollY>2500?"visible":"hidden"}static get style(){return""}},ea=class extends HTMLElement{constructor(){super(),this.__registerHost()}handleRendered(e){this.storeUnsubscribe=wi.mapStateToProps(this,(e=>{const{user:{id:t}}=e;return{userId:t}}))}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return Qe("span",{class:"signed-out"},Qe("slot",{name:"signed-in"}),Qe("slot",{name:"signed-out"}))}static get style(){return"pulumi-user-toggle{display:inline}pulumi-user-toggle [slot]{display:none}pulumi-user-toggle .signed-out [slot=signed-out]{display:inherit}pulumi-user-toggle .signed-in [slot=signed-in]{display:inherit}"}},ta=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultFormId=""}componentWillLoad(){this.parsedSessions=this.transformSessionData(JSON.parse(this.sessions));const e=oi("date");if(e){const t=new Date(e);if(isNaN(t.getTime()))return;const n=this.parsedSessions.find((e=>{const n=new Date(e.key);return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()}));n&&(this.defaultFormId=n.hubspotFormId)}}transformSessionData(e){return e.map((e=>{const t=new Date(e.datetime);return{hubspotFormId:e.hubspot_form_id,key:t.toLocaleString(void 0,{timeZoneName:"short",weekday:"short",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"})}}))}render(){return Qe("pulumi-multi-select-form",{items:this.parsedSessions,selectClass:this.selectClass,labelClass:this.labelClass,labelText:"Pick A Session",defaultFormId:this.defaultFormId})}static get style(){return":host{display:block}"}},na=Gt(ai,[0,"copilot-sidebar",{copilotSrc:[1,"copilot-src"],showSidebar:[32]}]),ra=Gt(li,[0,"event-session-registration-modal",{buttonClass:[1,"button-class"],buttonText:[1,"button-text"],modalTitle:[1,"modal-title"],eventSessions:[1,"event-sessions"],redirectUrl:[1,"redirect-url"],isModalOpen:[32],displayingContent:[32],selectedSessions:[32],skippedSessionSelection:[32],processingFormSubmissions:[32],formProcessor:[32],error:[32],submittedFormValues:[32]}]),ia=Gt(ci,[0,"header-cta",{buttonClass:[1,"button-class"],loading:[32],isLoggedIn:[32]}]),oa=Gt(ui,[0,"home-slots",{leftItems:[1,"left-items"],centerItems:[1,"center-items"],rightItems:[1,"right-items"],imageClass:[1,"image-class"],columnOne:[32],columnOneRotator:[32],columnTwo:[32],columnTwoRotator:[32],columnThree:[32],columnThreeRotator:[32]}]),sa=Gt(di,[0,"pricing-cta",{buttonClass:[1,"button-class"],signedInText:[1,"signed-in-text"],signedOutText:[1,"signed-out-text"],loading:[32],isLoggedIn:[32]}]),aa=Gt(vi,[0,"pulumi-api-doc-filterable-nav",{baseDirectory:[1,"base-directory"],packageName:[1,"package-name"],isLoading:[32],parsedNodes:[32],currentlyRenderedNodes:[32],filterContent:[32]}]),la=Gt(gi,[4,"pulumi-api-doc-nav-node",{node:[16],href:[1],depth:[2],isExpanded:[1028,"is-expanded"]}]),ca=Gt(yi,[0,"pulumi-api-doc-nav-tree",{nodes:[16],baseDirectory:[1,"base-directory"]}]),ua=Gt(bi,[0,"pulumi-audio",{url:[1],playingText:[1,"playing-text"],pausedText:[1,"paused-text"],paused:[32],isLoading:[32],error:[32]}]),da=Gt(xi,[4,"pulumi-banner",{name:[1],dismissible:[4],visible:[1540]},[[4,"rendered","onRendered"]]]),pa=Gt(ki,[4,"pulumi-choosable",{type:[1025],value:[1025],values:[1025],mode:[1025],selection:[1025]},[[4,"rendered","onRendered"]]]),fa=Gt(ji,[4,"pulumi-chooser",{type:[1025],options:[1025],selection:[1025],optionStyle:[1025,"option-style"],mode:[1025],currentOptions:[32]},[[4,"rendered","onRendered"]]]),ha=Gt(Ii,[0,"pulumi-contact-us-form",{items:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedItems:[32],defaultFormId:[32]}]),ma=Gt(Xi,[0,"pulumi-convert",{from:[1],endpoint:[1],examples:[1],theme:[1],sourceFiles:[32],converting:[32],convertible:[32],alertDismissed:[32]}]),va=Gt(Zi,[0,"pulumi-date-countdown",{dateString:[1,"date-string"],textClass:[1,"text-class"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownOverText:[1,"countdown-over-text"],countdownData:[32]}]),ga=Gt(eo,[0,"pulumi-date-countdown-circles",{dateString:[1,"date-string"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownData:[32]}]),ya=Gt(to,[1,"pulumi-datetime",{class:[1],timeonly:[4],date:[1025]}]),ba=Gt(no,[0,"pulumi-developer-quotes",{quotes:[1]}]),wa=Gt(ro,[4,"pulumi-docs-nav",{expandedMenuIDs:[1025,"expanded-menu-ids"]},[[0,"click","onClick"]]]),_a=Gt(io,[4,"pulumi-example"]),Sa=Gt(oo,[4,"pulumi-examples"]),xa=Gt(so,[1,"pulumi-filter-select",{filters:[32]},[[0,"optionChange","onOptionChange"]]]),ka=Gt(ao,[1,"pulumi-filter-select-option",{label:[1],value:[1],selected:[4]}]),Oa=Gt(lo,[1,"pulumi-filter-select-option-group",{name:[1],expanded:[516]},[[4,"click","onDocumentClick"]]]),$a=Gt(co,[0,"pulumi-greenhouse-jobs-list",{departments:[32],loading:[32]}]),Ea=Gt(uo,[0,"pulumi-hubspot-form",{formId:[1,"form-id"],salesforceCampaignId:[1,"salesforce-campaign-id"],goToWebinarKey:[1,"go-to-webinar-key"],class:[1],isLoading:[32],didLoad:[32]}]),Ca=Gt(po,[0,"pulumi-install",{os:[1025],tooltipContent:[32]}]),Ta=Gt(fo,[0,"pulumi-multi-select-form",{items:[16],selectClass:[1,"select-class"],labelClass:[1,"label-class"],labelText:[1,"label-text"],defaultFormId:[1,"default-form-id"],selectedItem:[32],formSubmitted:[32]}]),Pa=Gt(ho,[0,"pulumi-pricing-calculator",{duration:[32],resourceCount:[32],utilization:[32],deploymentsExpanded:[32],deploymentMinutes:[32]}]),Aa=Gt(mo,[0,"pulumi-registry-list-search",{filterContent:[32]}]),ja=Gt(vo,[0,"pulumi-resource-links",{packageName:[1,"package-name"],moduleName:[1,"module-name"],resourceName:[1,"resource-name"],related:[32]}]),Ia=Gt(Ro,[0,"pulumi-root"]),La=Gt(Fo,[0,"pulumi-slot-machine",{imageClass:[1,"image-class"],leftImages:[1,"left-images"],centerImages:[1,"center-images"],rightImages:[1,"right-images"]}]),Da=Gt(Bo,[4,"pulumi-swipeable"]),Ma=Gt(Gs,[4,"pulumi-swiper",{speed:[2],loop:[4],autoplay:[4],autoplayDelay:[2,"autoplay-delay"],navControls:[4,"nav-controls"],slides:[2],centeredSlides:[4,"centered-slides"],initialSlide:[2,"initial-slide"],direction:[1],enableMouseEvents:[4,"enable-mouse-events"],spaceBetween:[2,"space-between"],swiperID:[32],containerClass:[32],nextBtnClass:[32],previousBtnClass:[32]}]),Na=Gt(Js,[1,"pulumi-tab",{label:[1],active:[4]}]),Ra=Gt(Ys,[1,"pulumi-tabs",{selectedTab:[32]}]),Fa=Gt(Qs,[0,"pulumi-tertiary-nav",{items:[1025],tabContent:[1040],selection:[1032]}]),Ba=Gt(Xs,[4,"pulumi-tooltip",{id:[32],active:[32]}]),Ha=Gt(Zs,[0,"pulumi-top-button",{visible:[32]},[[9,"scroll","handleScroll"]]]),Va=Gt(ea,[4,"pulumi-user-toggle",{userId:[1025,"user-id"]},[[4,"rendered","handleRendered"]]]),qa=Gt(ta,[0,"pulumi-webinar-form-select",{sessions:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedSessions:[32],defaultFormId:[32]}]);class za{constructor(e){this.serviceName=e,this.state=JSON.parse(window.localStorage.getItem(e)||"{}")}getState(){return this.state}getKey(e){return this.state[e]}updateKey(e,t){this.state=Object.assign(this.state,{[e]:t}),window.localStorage.setItem(this.serviceName,JSON.stringify(this.state))}}const Ua=new za("navigation-toggle-state");function Wa(e,t){Ua.updateKey(e.id,t)}function Ka(e){$(e).each((function(e,t){!function(e){$(".toggleButton-topLevel",e).click((function(){$(this).closest(".toggle-topLevel, .toggleVisible-topLevel")[0]==e&&($(e).is(".toggle")?($(e).addClass("toggleVisible").removeClass("toggle"),Wa(e,"expanded")):($(e).addClass("toggle").removeClass("toggleVisible"),Wa(e,"collapsed")))}))}(t)}))}function Ga(e){$(e).each((function(e,t){!function(e){$(".toggleButton",e).click((function(){$(this).closest(".toggle, .toggleVisible")[0]==e&&($(e).is(".toggle")?$(e).addClass("toggleVisible").removeClass("toggle"):$(e).addClass("toggle").removeClass("toggleVisible"))}))}(t)}))}function Ja(){$(".table-of-contents").hide();var e=$(".table-of-contents .content ul.table-of-contents-list");if(e){var t=!1,n=[];if($("h2, h3").each((function(){var r=$(this);if(!(r.closest(".hidden").length>0)){var i=r.attr("id"),o=r.text(),s=r.data("link-title"),a=r.prop("tagName").toLowerCase();if(i&&o){t=!0;var l=$("
  • "+(s||o)+"
  • ");e.append(l),n.push({element:r,listItem:l})}}})),t){$(".table-of-contents").show();const e=()=>{var e;for(var t of n)!e&&t.element.offset().top>=window.scrollY&&(e=t),t.listItem.toggleClass("active",t===e)};$(window).on("scroll",(function(){e()})),e()}}}!function(){const e=e=>{const t=window.location.href,n=$(e).find("a").attr("href");return t.includes(n)};$(".toggle-topLevel, .toggleVisible-topLevel").each((function(t,n){"expanded"==Ua.getKey(n.id)||e(n)?$(n).addClass("toggleVisible").removeClass("toggle"):"collapsed"==Ua.getKey(n.id)&&$(n).addClass("toggle").removeClass("toggleVisible"),$(n).click((function(){const e=$(n).find(".folder-open"),t=$(n).find(".folder");e.length>0?e.addClass("folder").removeClass("folder-open"):t.length>0&&t.addClass("folder-open").removeClass("folder")}))})),$(".toggleVisible, .toggleVisible-topLevel").each((function(t,n){e(n)&&$("#left-nav").animate({scrollTop:$(n).offset().top-145},0)}))}(),function(e){const t=new IntersectionObserver((([t])=>{t.target.classList.toggle("is-pinned",t.intersectionRatio<1);const n=document.querySelector(".header-pinned"),r=document.querySelector(".hide-on-pinned"),i=document.querySelector(".header-hero-title");t.isIntersecting?(e(n).addClass("hidden"),e(n).removeClass("flex"),e(r).removeClass("hidden"),e(r).addClass("flex"),e(i).removeClass("hidden"),e(i).addClass("flex")):(e(n).removeClass("hidden"),e(n).addClass("flex"),e(r).addClass("hidden"),e(r).removeClass("flex"),e(i).addClass("hidden"),e(i).removeClass("flex"))}),{threshold:[1]}),n=document.querySelector(".header-container");if(n)t.observe(n);else{const e=document.querySelector(".top-nav-bar.registry");e&&t.observe(e)}Ga(".toggle"),Ga(".toggleVisible"),Ka(".toggle-topLevel"),Ka(".toggleVisible-topLevel"),Ja(),e(".nav-header-toggle").click((function(){e(".nav-header-items").toggleClass("hidden")})),e(".blog-sidebar-toggle").click((function(){e(".blog-sidebar-content").toggleClass("hidden")})),e(".docs-sidebar-toggle").click((function(){e(".docs-sidebar-content").toggleClass("hidden")})),e("ul[data-shuffle='true']").each((function(t,n){var r=e(n).find("> li");r.each((function(t,n){e(n).css("order",Math.ceil(Math.random()*r.length))})),e(n).removeClass("invisible")})),e('#about-nav li[data-filter-name="who-we-are"]').addClass("active-about-nav-item"),e((function(){e("#about-nav li").click((function(){const t="active-about-nav-item";e(this).addClass(t);const n=e(this).data("filter-name");["who-we-are","what-we-believe","community","history","awards","newsroom","join-us"].filter((e=>e!==n)).forEach((n=>{e(`#about-nav li[data-filter-name="${n}"]`).removeClass(t)}))}))})),e("dl.resources-properties dt.property-required.property-replacement").removeAttr("title").find(".property-indicator").replaceWith('
    This property is required.
    Changes to this property will trigger replacement.
    '),e("dl.resources-properties dt.property-required:not(.property-replacement)").removeAttr("title").find(".property-indicator").replaceWith(' This property is required.'),e("dl.resources-properties dt.property-replacement:not(.property-required)").removeAttr("title").find(".property-indicator").replaceWith(' Changes to this property will trigger replacement.')}(jQuery),function(e,t){"ontouchstart"in e||(t(".nav-header-items li a").mouseenter((function(e){var n=t(e.target).data("submenu");t(".submenu-item").hide(),t(".submenu-item-"+n).show()})),t(".submenu").mouseleave((function(e){e.relatedTarget!==t("nav.nav-main").get(0)&&t(".submenu-item").hide()}))),function(){let e=!1,n=!1;t("#why-pulumi-menu-label").click((function(){t("#mobile-dropdown").scroll(),e?t("#mobile-dropdown").animate({scrollTop:top},300):t("#mobile-dropdown").animate({scrollTop:t("#why-pulumi-mobile-menu").position().top-115},300),e=!e})),t("#learn-menu-label").click((function(){t("#mobile-dropdown").scroll(),n?t("#mobile-dropdown").animate({scrollTop:top},300):t("#mobile-dropdown").animate({scrollTop:t("#learn-mobile-menu").position().top-115},300),n=!n}))}();const n=new za("banner-state"),r=t("#dismissable-banner");"true"!==n.getKey("dismissed")?t(r).css({display:"block"}):t(r).css({display:"none"}),t("#dismiss-banner").on("click",(function(e){e.preventDefault(),t(r).css({display:"none"}),n.updateKey("dismissed","true")}))}(document,jQuery);n(28);function Ya(e){for(var t=window.location.search.substring(1).split("&"),n=0;n0&&($("div,span").each((function(n,r){var i=Qa(r);for(n=0;n0&&t(i[0])}}$(document).on("rendered",(function(){var e;["language","os","cloud","k8s-language","input-kind"].forEach((function(e){var t=Ya(e);t&&Xa(e,t)})),rl("language",Za,"typescript"),-1!==navigator.appVersion.indexOf("Win")?e="windows":-1!==navigator.appVersion.indexOf("Mac")?e="macos":-1!==navigator.appVersion.indexOf("Linux")&&(e="linux"),rl("os",el,e),rl("cloud",tl,"aws"),rl("k8s-language",nl,"typescript")}));n(245),n(21),n(931),n(161);function il(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function ol(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1&&(r.checked=!0):r.checked=!0;var i=document.createElement("label");return i.innerText=e+"s",i.className="cursor-pointer",i.setAttribute("for",r.id),n.appendChild(r),n.appendChild(i),n}function t(){for(var e=$("input[type='checkbox']"),t=[],r=0;r-1)return!0}return!1}var r=$(".event-tags span"),i=$("#eventFilter");if(r.length&&i.length){for(var o=[],s=0;s-1?(al('UA "Edge" => assuming success'),[2,!0]):_l(document.body,e)?(al("copyUsingTempSelection worked"),[2,!0]):function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=_l(t,e);return document.body.removeChild(t),n}(e)?(al("copyUsingTempElem worked"),[2,!0]):function(e){al("copyTextUsingDOM");var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(al("Using shadow DOM."),n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),Sl(r);var i=document.execCommand("copy");return xl(),document.body.removeChild(t),i}(e["text/plain"])?(al("copyTextUsingDOM worked"),[2,!0]):[2,!1]}))}))}!function(){function e(e,t){var n;for(var r in void 0===t&&(t={}),this.types=Object.keys(e),this._items={},e){var i=e[r];this._items[r]="string"==typeof i?Ol(r,i):i}this.presentationStyle=null!==(n=null==t?void 0:t.presentationStyle)&&void 0!==n?n:"unspecified"}e.prototype.getType=function(e){return il(this,void 0,void 0,(function(){return ol(this,(function(t){return[2,this._items[e]]}))}))}}();function Ol(e,t){return new Blob([t],{type:e})}function $l(e){var t="Copy";e.append('
    Copy
    ').on("click","button.copy-button",(function(){var e=$(this),n=e.parent().parent().parent().siblings("pre").children("code"),r=function(e,t){if(!t)return"";var n,r,i,o,s;switch(t=(t=t.replace("\r\n","\n")).trim(),e){case"bash":case"sh":case"shell":case"zsh":n="$ ",r="#",i=/\s+#.*$/m,o="\\",s=" && ";break;case"bat":case"batch":case"batchfile":n="> ",r="::",i=/\s+::.*$/m,o="^",s=" && ";break;case"powershell":case"posh":case"pwsh":n="> ",r="#",i=/\s+#.*$/m,o="`",s="; "}if(n){for(var a=[],l=t.split("\n"),c=!1,u=0;u0&&(t=a.join(s))}return-1!==navigator.appVersion.indexOf("Win")&&(t=t.replace("\n","\r\n")),t}(n.attr("data-lang"),n.text());r&&r.length>0&&function(e){il(this,void 0,void 0,(function(){return ol(this,(function(t){if(hl)return al("Using `navigator.clipboard.writeText()`."),[2,hl(e)];if(!kl(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}(r),e.blur();var i=e.closest("pulumi-tooltip"),o=i.find("[slot='content']"),s=i.get(0);o.text("Copied!"),s.show().then((()=>{setTimeout((function(){s.hide().then((()=>o.text(t)))}),1e3)}));const a=window.analytics,l=a&&a.track&&"function"==typeof a.track;var c=n.attr("data-track");if(l&&c){const e={codeBlockName:c};a.track("copy-code-block",e)}}))}$((function(){$l($(":not(.no-copy) > div.highlight"))}));n(506),n(498),n(490),n(366),n(744),n(734),n(756),n(399),n(40),n(140);var El=n(290),Cl=n.n(El);function Tl(e){return Tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tl(e)}function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Al(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ql(e){return function(e){if(Array.isArray(e))return zl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return zl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gc(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:20,n=[],r=0;r=3||2===n&&r>=4||1===n&&r>=10);function o(t,n,r){if(i&&void 0!==r){var o=r[0].__autocomplete_algoliaCredentials,s={"X-Algolia-Application-Id":o.appId,"X-Algolia-API-Key":o.apiKey};e.apply(void 0,[t].concat(fc(n),[{headers:s}]))}else e.apply(void 0,[t].concat(fc(n)))}return{init:function(t,n){e("init",{appId:t,apiKey:n})},setUserToken:function(t){e("setUserToken",t)},clickedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("clickedObjectIDsAfterSearch",wc(t),t[0].items)},clickedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("clickedObjectIDs",wc(t),t[0].items)},clickedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["clickedFilters"].concat(n))},convertedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("convertedObjectIDsAfterSearch",wc(t),t[0].items)},convertedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("convertedObjectIDs",wc(t),t[0].items)},convertedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["convertedFilters"].concat(n))},viewedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&t.reduce((function(e,t){var n=t.items,r=mc(t,dc);return[].concat(fc(e),fc(bc(gc(gc({},r),{},{objectIDs:(null==n?void 0:n.map((function(e){return e.objectID})))||r.objectIDs})).map((function(e){return{items:n,payload:e}}))))}),[]).forEach((function(e){var t=e.items;return o("viewedObjectIDs",[e.payload],t)}))},viewedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["viewedFilters"].concat(n))}}}function Sc(e){var t=e.items.reduce((function(e,t){var n;return e[t.__autocomplete_indexName]=(null!==(n=e[t.__autocomplete_indexName])&&void 0!==n?n:[]).concat(t),e}),{});return Object.keys(t).map((function(e){return{index:e,items:t[e],algoliaSource:["autocomplete"]}}))}function xc(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function kc(e){return kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kc(e)}function Oc(e){return function(e){if(Array.isArray(e))return $c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&jc({onItemsChange:r,items:n,insights:a,state:t}))}}),0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,r=e.onActive;s("addAlgoliaAgent","insights-plugin"),t({algoliaInsightsPlugin:{__algoliaSearchParameters:{clickAnalytics:!0},insights:a}}),n((function(e){var t=e.item,n=e.state,r=e.event;xc(t)&&i({state:n,event:r,insights:a,item:t,insightsEvents:[Cc({eventName:"Item Selected"},ac({item:t,items:l.current}))]})})),r((function(e){var t=e.item,n=e.state,r=e.event;xc(t)&&o({state:n,event:r,insights:a,item:t,insightsEvents:[Cc({eventName:"Item Active"},ac({item:t,items:l.current}))]})}))},onStateChange:function(e){var t=e.state;c({state:t})},__autocomplete_pluginOptions:e}}function Lc(e){return Lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lc(e)}function Dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mc(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Lc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Lc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Lc(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nc(e,t,n){var r,i=t.initialState;return{getState:function(){return i},dispatch:function(r,o){var s=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0},reshape:function(e){return e.sources}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:Uc(),plugins:i,initialState:eu({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),i.forEach((function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)}))},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),i.forEach((function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)}))},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),i.forEach((function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)}))},getSources:function(n){return Promise.all([].concat(Qc(i.map((function(e){return e.getSources}))),[e.getSources]).filter(Boolean).map((function(e){return function(e,t){var n=[];return Promise.resolve(e(t)).then((function(e){return Array.isArray(e),Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t={getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:sc,onResolve:sc};Object.keys(t).forEach((function(e){t[e].__default=!0}));var r=Kc(Kc({},t),e);return Promise.resolve(r)})))}))}(e,n)}))).then((function(e){return Rc(e)})).then((function(e){return e.map((function(e){return eu(eu({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)}))},onResolve:function(n){e.onResolve(n),t.forEach((function(e){var t;return null===(t=e.onResolve)||void 0===t?void 0:t.call(e,n)}))}})}))}))},navigator:eu({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}function ru(e){return ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ru(e)}function iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ou(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ju,Iu,Lu,Du=null,Mu=(ju=-1,Iu=-1,Lu=void 0,function(e){var t=++ju;return Promise.resolve(e).then((function(e){return Lu&&t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var zu=/((gt|sm)-|galaxy nexus)|samsung[- ]/i;function Uu(e){return Uu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uu(e)}var Wu=["props","refresh","store"],Ku=["inputElement","formElement","panelElement"],Gu=["inputElement"],Ju=["inputElement","maxLength"],Yu=["sourceIndex"],Qu=["sourceIndex"],Xu=["item","source","sourceIndex"];function Zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rd(e){var t=e.props,n=e.refresh,r=e.store,i=nd(e,Wu),o=function(e,t){return void 0!==t?"".concat(e,"-").concat(t):e};return{getEnvironmentProps:function(e){var n=e.inputElement,i=e.formElement,o=e.panelElement;function s(e){!r.getState().isOpen&&r.pendingRequests.isEmpty()||e.target===n||!1===[i,o].some((function(t){return n=t,r=e.target,n===r||n.contains(r);var n,r}))&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return ed({onTouchStart:s,onMouseDown:s,onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},nd(e,Ku))},getRootProps:function(e){return ed({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){e.inputElement;return ed({action:"",noValidate:!0,role:"search",onSubmit:function(o){var s;o.preventDefault(),t.onSubmit(ed({event:o,refresh:n,state:r.getState()},i)),r.dispatch("submit",null),null===(s=e.inputElement)||void 0===s||s.blur()},onReset:function(o){var s;o.preventDefault(),t.onReset(ed({event:o,refresh:n,state:r.getState()},i)),r.dispatch("reset",null),null===(s=e.inputElement)||void 0===s||s.focus()}},nd(e,Gu))},getLabelProps:function(e){var n=e||{},r=n.sourceIndex,i=nd(n,Yu);return ed({htmlFor:"".concat(o(t.id,r),"-input"),id:"".concat(o(t.id,r),"-label")},i)},getInputProps:function(e){var o;function s(e){(t.openOnFocus||Boolean(r.getState().query))&&Nu(ed({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},i)),r.dispatch("focus",null)}var a=e||{},l=(a.inputElement,a.maxLength),c=void 0===l?512:l,u=nd(a,Ju),d=Ou(r.getState()),p=function(e){return Boolean(e&&e.match(zu))}((null===(o=t.environment.navigator)||void 0===o?void 0:o.userAgent)||""),f=null!=d&&d.itemUrl&&!p?"go":"search";return ed({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:f,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:c,type:"search",onChange:function(e){Nu(ed({event:e,props:t,query:e.currentTarget.value.slice(0,c),refresh:n,store:r},i))},onKeyDown:function(e){!function(e){var t=e.event,n=e.props,r=e.refresh,i=e.store,o=qu(e,Fu);if("ArrowUp"===t.key||"ArrowDown"===t.key){var s=function(){var e=n.environment.document.getElementById("".concat(n.id,"-item-").concat(i.getState().activeItemId));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},a=function(){var e=Ou(i.getState());if(null!==i.getState().activeItemId&&e){var n=e.item,s=e.itemInputValue,a=e.itemUrl,l=e.source;l.onActive(Hu({event:t,item:n,itemInputValue:s,itemUrl:a,refresh:r,source:l,state:i.getState()},o))}};t.preventDefault(),!1===i.getState().isOpen&&(n.openOnFocus||Boolean(i.getState().query))?Nu(Hu({event:t,props:n,query:i.getState().query,refresh:r,store:i},o)).then((function(){i.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),a(),setTimeout(s,0)})):(i.dispatch(t.key,{}),a(),s())}else if("Escape"===t.key)t.preventDefault(),i.dispatch(t.key,null),i.pendingRequests.cancelAll();else if("Tab"===t.key)i.dispatch("blur",null),i.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===i.getState().activeItemId||i.getState().collections.every((function(e){return 0===e.items.length})))return void(n.debug||i.pendingRequests.cancelAll());t.preventDefault();var l=Ou(i.getState()),c=l.item,u=l.itemInputValue,d=l.itemUrl,p=l.source;if(t.metaKey||t.ctrlKey)void 0!==d&&(p.onSelect(Hu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o)),n.navigator.navigateNewTab({itemUrl:d,item:c,state:i.getState()}));else if(t.shiftKey)void 0!==d&&(p.onSelect(Hu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o)),n.navigator.navigateNewWindow({itemUrl:d,item:c,state:i.getState()}));else if(t.altKey);else{if(void 0!==d)return p.onSelect(Hu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o)),void n.navigator.navigate({itemUrl:d,item:c,state:i.getState()});Nu(Hu({event:t,nextState:{isOpen:!1},props:n,query:u,refresh:r,store:i},o)).then((function(){p.onSelect(Hu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o))}))}}}(ed({event:e,props:t,refresh:n,store:r},i))},onFocus:s,onBlur:sc,onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||s(n)}},u)},getPanelProps:function(e){return ed({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){var n=e||{},r=n.sourceIndex,i=nd(n,Qu);return ed({role:"listbox","aria-labelledby":"".concat(o(t.id,r),"-label"),id:"".concat(o(t.id,r),"-list")},i)},getItemProps:function(e){var s=e.item,a=e.source,l=e.sourceIndex,c=nd(e,Xu);return ed({id:"".concat(o(t.id,l),"-item-").concat(s.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===s.__autocomplete_id,onMouseMove:function(e){if(s.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",s.__autocomplete_id);var t=Ou(r.getState());if(null!==r.getState().activeItemId&&t){var o=t.item,a=t.itemInputValue,l=t.itemUrl,c=t.source;c.onActive(ed({event:e,item:o,itemInputValue:a,itemUrl:l,refresh:n,source:c,state:r.getState()},i))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var o=a.getItemInputValue({item:s,state:r.getState()}),l=a.getItemUrl({item:s,state:r.getState()});(l?Promise.resolve():Nu(ed({event:e,nextState:{isOpen:!1},props:t,query:o,refresh:n,store:r},i))).then((function(){a.onSelect(ed({event:e,item:s,itemInputValue:o,itemUrl:l,refresh:n,source:a,state:r.getState()},i))}))}},c)}}}function id(e){return id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},id(e)}function od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sd(e){for(var t=1;t=n?null===r?null:0:i}function dd(e){return dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dd(e)}function pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t=5&&((i||!e&&5===r)&&(s.push(r,0,i,n),r=6),e&&(s.push(r,e,0,n),r=6)),i=""},l=0;l"===t?(r=1,i=""):i=t+i[0]:o?t===o?o="":i+=t:'"'===t||"'"===t?o=t:">"===t?(a(),r=1):r&&("="===t?(r=5,n=i,i=""):"/"===t&&(r<5||">"===e[l][c+1])?(a(),3===r&&(s=s[0]),r=s,(s=s[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(a(),r=2):i+=t),3===r&&"!--"===i&&(r=4,s=s[0])}return a(),s}(e)),t),arguments,[])).length>1?t:t[0]}var kd=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n},Od=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(r),n},$d=function(e){var t=e.environment.document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("class","aa-LoadingIcon"),t.setAttribute("viewBox","0 0 100 100"),t.setAttribute("width","20"),t.setAttribute("height","20"),t.innerHTML='\n \n',t},Ed=["ontouchstart","ontouchend","ontouchmove","ontouchcancel"];function Cd(e,t,n){e[t]=null===n?"":"number"!=typeof n?n:n+"px"}function Td(e){this._listeners[e.type](e)}function Pd(e,t,n){var r,i,o=e[t];if("style"===t)if("string"==typeof n)e.style=n;else if(null===n)e.style="";else for(t in n)o&&n[t]===o[t]||Cd(e.style,t,n[t]);else"o"===t[0]&&"n"===t[1]?(r=t!==(t=t.replace(/Capture$/,"")),((i=t.toLowerCase())in e||Ed.includes(i))&&(t=i),t=t.slice(2),e._listeners||(e._listeners={}),e._listeners[t]=n,n?o||e.addEventListener(t,Td,r):e.removeEventListener(t,Td,r)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function Ad(e){return"onChange"===e?"onInput":e}function jd(e,t){for(var n in t)Pd(e,Ad(n),t[n])}function Id(e,t){for(var n in t)"o"===n[0]&&"n"===n[1]||Pd(e,Ad(n),t[n])}var Ld=["children"];function Dd(e){return function(e){if(Array.isArray(e))return Md(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Md(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Md(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Md(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Rd(e){return function(t,n){var r=n.children,i=void 0===r?[]:r,o=Nd(n,Ld),s=e.document.createElement(t);return jd(s,o),s.append.apply(s,Dd(i)),s}}function Fd(e){return Fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fd(e)}var Bd=["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","isDetached","state"];function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vd(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ud(e){return Ud="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ud(e)}function Wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kd(e){for(var t=1;t2&&(s.children=arguments.length>3?Yd.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return cp(e,s,r,i,null)}function cp(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++Xd:i};return null==i&&null!=Qd.vnode&&Qd.vnode(o),o}function up(e){return e.children}function dp(e,t){this.props=e,this.context=t}function pp(e,t){if(null==t)return e.__?pp(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&Zd.sort(np));mp.__r=0}function vp(e,t,n,r,i,o,s,a,l,c){var u,d,p,f,h,m,v,g=r&&r.__k||ip,y=g.length;for(n.__k=[],u=0;u0?cp(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=g[u])||p&&f.key==p.key&&f.type===p.type)g[u]=void 0;else for(d=0;d=0;t--)if((n=e.__k[t])&&(r=bp(n)))return r;return null}function wp(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||op.test(t)?n:n+"px"}function _p(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||wp(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||wp(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?xp:Sp,o):e.removeEventListener(t,o?xp:Sp,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function Sp(e){return this.l[e.type+!1](Qd.event?Qd.event(e):e)}function xp(e){return this.l[e.type+!0](Qd.event?Qd.event(e):e)}function kp(e,t,n,r,i,o,s,a,l){var c,u,d,p,f,h,m,v,g,y,b,w,_,S,x,k=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=Qd.__b)&&c(t);try{e:if("function"==typeof k){if(v=t.props,g=(c=k.contextType)&&r[c.__c],y=c?g?g.props.value:c.__:r,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in k&&k.prototype.render?t.__c=u=new k(v,y):(t.__c=u=new dp(v,y),u.constructor=k,u.render=Cp),g&&g.sub(u),u.props=v,u.state||(u.state={}),u.context=y,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=k.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=sp({},u.__s)),sp(u.__s,k.getDerivedStateFromProps(v,u.__s))),p=u.props,f=u.state,u.__v=t,d)null==k.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==k.getDerivedStateFromProps&&v!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(v,y),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(v,u.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),u.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b0&&void 0!==arguments[0]?arguments[0]:[],t=e;return{get:function(){return t},add:function(e){var n=t[t.length-1];(null==n?void 0:n.isHighlighted)===e.isHighlighted?t[t.length-1]={value:n.value+e.value,isHighlighted:n.isHighlighted}:t.push(e)}}}(n?[{value:n,isHighlighted:!1}]:[]);return t.forEach((function(e){var t=e.split(Ml);r.add({value:t[0],isHighlighted:!0}),""!==t[1]&&r.add({value:t[1],isHighlighted:!1})})),r.get()}function jp(e){return function(e){if(Array.isArray(e))return Ip(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ip(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ip(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ip(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",""":'"',"'":"'"},Np=new RegExp(/\w/i),Rp=/&(amp|quot|lt|gt|#39);/g,Fp=RegExp(Rp.source);function Bp(e,t){var n,r,i,o=e[t],s=(null===(n=e[t+1])||void 0===n?void 0:n.isHighlighted)||!0,a=(null===(r=e[t-1])||void 0===r?void 0:r.isHighlighted)||!0;return Np.test((i=o.value)&&Fp.test(i)?i.replace(Rp,(function(e){return Mp[e]})):i)||a!==s?o.isHighlighted:a}function Hp(e){return Hp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hp(e)}function Vp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qp(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var af={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",detachedSearchButtonQuery:"aa-DetachedSearchButtonQuery",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},lf=function(e,t){var n=e.children;(0,e.render)(n,t)},cf={createElement:lp,Fragment:up,render:Tp};function uf(e){var t=e.panelPlacement,n=e.container,r=e.form,i=e.environment,o=n.getBoundingClientRect(),s=(i.pageYOffset||i.document.documentElement.scrollTop||i.document.body.scrollTop||0)+o.top+o.height;switch(t){case"start":return{top:s,left:o.left};case"end":return{top:s,right:i.document.documentElement.clientWidth-(o.left+o.width)};case"full-width":return{top:s,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":var a=r.getBoundingClientRect();return{top:s,left:a.left,right:i.document.documentElement.clientWidth-(a.left+a.width),width:"unset",maxWidth:"unset"};default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(t)," is not valid."))}}function df(e){return df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},df(e)}function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jf(e){for(var t=1;t0;if(!p.value.core.openOnFocus&&!t.query)return n;var r=Boolean(c.current||p.value.renderer.renderNoResults);return!n&&r||n},__autocomplete_metadata:{userAgents:Ul,options:e}}))})),m=rc(jf({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},p.value.core.initialState)),v={getEnvironmentProps:p.value.renderer.getEnvironmentProps,getFormProps:p.value.renderer.getFormProps,getInputProps:p.value.renderer.getInputProps,getItemProps:p.value.renderer.getItemProps,getLabelProps:p.value.renderer.getLabelProps,getListProps:p.value.renderer.getListProps,getPanelProps:p.value.renderer.getPanelProps,getRootProps:p.value.renderer.getRootProps},g={setActiveItemId:h.value.setActiveItemId,setQuery:h.value.setQuery,setCollections:h.value.setCollections,setIsOpen:h.value.setIsOpen,setStatus:h.value.setStatus,setContext:h.value.setContext,refresh:h.value.refresh,navigator:h.value.navigator},y=a((function(){return xd.bind(p.value.renderer.renderer.createElement)})),b=a((function(){return Jd({autocomplete:h.value,autocompleteScopeApi:g,classNames:p.value.renderer.classNames,environment:p.value.core.environment,isDetached:f.value,placeholder:p.value.core.placeholder,propGetters:v,setIsModalOpen:x,state:m.current,translations:p.value.renderer.translations})}));function w(){jd(b.value.panel,{style:f.value?{}:uf({panelPlacement:p.value.renderer.panelPlacement,container:b.value.root,form:b.value.form,environment:p.value.core.environment})})}function _(e){m.current=e;var t={autocomplete:h.value,autocompleteScopeApi:g,classNames:p.value.renderer.classNames,components:p.value.renderer.components,container:p.value.renderer.container,html:y.value,dom:b.value,panelContainer:f.value?b.value.detachedContainer:p.value.renderer.panelContainer,propGetters:v,state:m.current,renderer:p.value.renderer.renderer},n=!qc(e)&&!c.current&&p.value.renderer.renderNoResults||p.value.renderer.render;!function(e){var t=e.autocomplete,n=e.autocompleteScopeApi,r=e.dom,i=e.propGetters,o=e.state;Id(r.root,i.getRootProps(hf({state:o,props:t.getRootProps({})},n))),Id(r.input,i.getInputProps(hf({state:o,props:t.getInputProps({inputElement:r.input}),inputElement:r.input},n))),jd(r.label,{hidden:"stalled"===o.status}),jd(r.loadingIndicator,{hidden:"stalled"!==o.status}),jd(r.clearButton,{hidden:!o.query}),jd(r.detachedSearchButtonQuery,{textContent:o.query}),jd(r.detachedSearchButtonPlaceholder,{hidden:Boolean(o.query)})}(t),function(e,t){var n=t.autocomplete,r=t.autocompleteScopeApi,i=t.classNames,o=t.html,s=t.dom,a=t.panelContainer,l=t.propGetters,c=t.state,u=t.components,d=t.renderer;if(c.isOpen){a.contains(s.panel)||"loading"===c.status||a.appendChild(s.panel),s.panel.classList.toggle("aa-Panel--stalled","stalled"===c.status);var p=c.collections.filter((function(e){var t=e.source,n=e.items;return t.templates.noResults||n.length>0})).map((function(e,t){var s=e.source,a=e.items;return d.createElement("section",{key:t,className:i.source,"data-autocomplete-source-id":s.sourceId},s.templates.header&&d.createElement("div",{className:i.sourceHeader},s.templates.header({components:u,createElement:d.createElement,Fragment:d.Fragment,items:a,source:s,state:c,html:o})),s.templates.noResults&&0===a.length?d.createElement("div",{className:i.sourceNoResults},s.templates.noResults({components:u,createElement:d.createElement,Fragment:d.Fragment,source:s,state:c,html:o})):d.createElement("ul",pf({className:i.list},l.getListProps(hf({state:c,props:n.getListProps({sourceIndex:t})},r))),a.map((function(e){var a=n.getItemProps({item:e,source:s,sourceIndex:t});return d.createElement("li",pf({key:a.id,className:i.item},l.getItemProps(hf({state:c,props:a},r))),s.templates.item({components:u,createElement:d.createElement,Fragment:d.Fragment,item:e,state:c,html:o}))}))),s.templates.footer&&d.createElement("div",{className:i.sourceFooter},s.templates.footer({components:u,createElement:d.createElement,Fragment:d.Fragment,items:a,source:s,state:c,html:o})))})),f=d.createElement(d.Fragment,null,d.createElement("div",{className:i.panelLayout},p),d.createElement("div",{className:"aa-GradientBottom"})),h=p.reduce((function(e,t){return e[t.props["data-autocomplete-source-id"]]=t,e}),{});e(hf(hf({children:f,state:c,sections:p,elements:h},d),{},{components:u,html:o},r),s.panel)}else a.contains(s.panel)&&a.removeChild(s.panel)}(n,t)}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i();var t=p.value.renderer,n=t.components,r=Pf(t,Cf);u.current=wf(r,p.value.core,{components:Ef(n,(function(e){return!e.value.hasOwnProperty("__autocomplete_componentName")})),initialState:m.current},e),l(),o(),h.value.refresh().then((function(){_(m.current)}))}function x(e){requestAnimationFrame((function(){var t=p.value.core.environment.document.body.contains(b.value.detachedOverlay);e!==t&&(e?(p.value.core.environment.document.body.appendChild(b.value.detachedOverlay),p.value.core.environment.document.body.classList.add("aa-Detached"),b.value.input.focus()):(p.value.core.environment.document.body.removeChild(b.value.detachedOverlay),p.value.core.environment.document.body.classList.remove("aa-Detached")))}))}return r((function(){var e=h.value.getEnvironmentProps({formElement:b.value.form,panelElement:b.value.panel,inputElement:b.value.input});return jd(p.value.core.environment,e),function(){jd(p.value.core.environment,Object.keys(e).reduce((function(e,t){return jf(jf({},e),{},If({},t,void 0))}),{}))}})),r((function(){var e=f.value?p.value.core.environment.document.body:p.value.renderer.panelContainer,t=f.value?b.value.detachedOverlay:b.value.panel;return f.value&&m.current.isOpen&&x(!0),_(m.current),function(){e.contains(t)&&e.removeChild(t)}})),r((function(){var e=p.value.renderer.container;return e.appendChild(b.value.root),function(){e.removeChild(b.value.root)}})),r((function(){var e=nc((function(e){_(e.state)}),0);return d.current=function(t){var n=t.state,r=t.prevState;(f.value&&r.isOpen!==n.isOpen&&x(n.isOpen),f.value||!n.isOpen||r.isOpen||w(),n.query!==r.query)&&p.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach((function(e){0!==e.scrollTop&&(e.scrollTop=0)}));e({state:n})},function(){d.current=void 0}})),r((function(){var e=nc((function(){var e=f.value;f.value=p.value.core.environment.matchMedia(p.value.renderer.detachedMediaQuery).matches,e!==f.value?S({}):requestAnimationFrame(w)}),20);return p.value.core.environment.addEventListener("resize",e),function(){p.value.core.environment.removeEventListener("resize",e)}})),r((function(){if(!f.value)return function(){};function e(e){b.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",e)}function t(t){e(t.matches)}var n=p.value.core.environment.matchMedia(getComputedStyle(p.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));e(n.matches);var r=Boolean(n.addEventListener);return r?n.addEventListener("change",t):n.addListener(t),function(){r?n.removeEventListener("change",t):n.removeListener(t)}})),r((function(){return requestAnimationFrame(w),function(){}})),jf(jf({},g),{},{update:S,destroy:function(){i()}})}function Df(e){return Df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Df(e)}function Mf(e){return function(e){if(Array.isArray(e))return Nf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Nf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nf(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n`(${e[t].map((({label:e})=>`${t}:"${e}"`)).join(" OR ")})`)).join(` ${t} `)}function Gf(e,t){return e.reduce(((e,n)=>{const r=t(n);return e.hasOwnProperty(r)||(e[r]=[]),e[r].push(n),e}),{})}function Jf(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Wf(e),n=t.initialTags,r=t.getTagsSubscribers,i=t.transformSource,o=t.onChange,s=Hf({initialTags:n}),a={setTags:s.set,addTags:s.add};return{name:"aa.tagsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,i=e.setIsOpen,l=e.refresh,c=r();t({tagsPlugin:zf(zf({},a),{},{tags:s.get()})}),n((function(e){var t=e.source,n=e.item,r=c.find((function(e){return e.sourceId===t.sourceId}));r&&s.add([r.getTag({item:n})])})),s.onChange((function(n){var r=n.prevTags;t({tagsPlugin:zf(zf({},a),{},{tags:s.get()})}),i(!0),o(zf(zf({},e),{},{prevTags:r,tags:s.get()})),l()}))},getSources:function(e){var t=e.state;return[i({source:{sourceId:"tagsPlugin",getItems:function(){return s.get()},onSelect:function(e){e.item.remove()},templates:{item:function(e){var t=e.item,n=e.createElement;return n("div",{className:"aa-TagsPlugin-Tag"},n("span",{className:"aa-TagsPlugin-TagLabel"},t.label),n("button",{className:"aa-TagsPlugin-RemoveButton",title:"Remove this tag"},n("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24"},n("path",{d:"M18 6L6 18"}),n("path",{d:"M6 6L18 18"}))))}}},state:t})]},data:zf(zf({},a),{},{get tags(){return s.get()}}),__autocomplete_pluginOptions:e}}({initialTags:e,transformSource:({source:e})=>{},getTagsSubscribers:()=>[{sourceId:"section",getTag:({item:e})=>e}]})}function Yf(e,t){var n,r;null===(r=null===(n=e.context)||void 0===n?void 0:n.tagsPlugin)||void 0===r||r.setTags(t)}function Qf(e){var t,n;return(null===(n=null===(t=e.context)||void 0===t?void 0:t.tagsPlugin)||void 0===n?void 0:n.tags)||[]}const Xf=function(e,t){let n;return(...r)=>(n&&clearTimeout(n),new Promise((i=>{n=setTimeout((()=>i(e(...r))),t)})))}((e=>Promise.resolve(e)),220);function Zf(e){return e>1e3?`${Math.ceil(e/1e3)}K`:e.toString()}function eh(e){return"Registry"===e?"Packages":e}function th(e){switch(e){case"Docs":return"/icons/docs.svg";case"Registry":return"/icons/registry.svg";case"Tutorials":return"/icons/graduation-cap.svg"}return"/icons/list.svg"}let nh,rh,ih,oh,sh;function ah(e){if(nh=e.getAttribute("data-app-id"),rh=e.getAttribute("data-search-key"),ih=e.getAttribute("data-index"),sh=e.getAttribute("data-facets").split(",").map((e=>({label:e,facet:"section"}))),!(nh&&rh&&ih&&sh))return void console.error("Autocomplete element found, but one or more require attributes were missing.");function t(e,t,n){return{sourceId:"sections",getItems:()=>{return t={searchClient:oh,queries:[{indexName:ih,facet:"section",params:{query:e,filters:Kf(Gf(sh,(e=>e.facet)))}}],transformResponse:({facetHits:e})=>(n({facetHits:e}),[])},r=Yl({transformResponse:function(e){return e.facetHits}}),i=t.queries.map((function(e){return Zl(Zl({},e),{},{type:"facet"})})),r(Zl(Zl({},t),{},{queries:i}));var t,r,i},templates:{item:()=>null}}}oh=Cl()(nh,rh);const n=function(){const e={upDownPressed:!1};return window.addEventListener("keydown",(e=>{"k"===e.key.toLowerCase()&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),document.querySelector(".aa-DetachedSearchButton").click())})),window.addEventListener("keydown",(t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||t.target!==document.querySelector(".aa-DetachedFormContainer .aa-Input")||(e.upDownPressed=!0)}),{capture:!0}),document.body.addEventListener("click",(e=>{var t;const n=e.target;if(null==n?void 0:n.closest(".aa-ClearButton")){e.stopPropagation(),e.preventDefault();const r=null===(t=n.closest(".aa-Form"))||void 0===t?void 0:t.querySelector(".aa-Input");r&&(r.value="",r.focus(),r.dispatchEvent(new Event("input")))}})),e}();Lf({container:e,placeholder:"Search (⌘/ctrl-k)",openOnFocus:!1,detachedMediaQuery:"",defaultActiveItemId:0,onStateChange:({state:e,prevState:t,setCollections:r})=>{if(""!==t.query&&""===e.query&&(r([]),Yf(e,sh)),e.activeItemId>=0){const t=document.querySelectorAll(".aa-Item");if(t){const r=t.item(e.activeItemId);r&&n.upDownPressed&&r.scrollIntoView({behavior:"smooth",block:"nearest"})}n.upDownPressed=!1}},getSources:({query:e,state:n,refresh:r,setContext:i})=>{const o=[];return o.push(t(e,0,i)),o.push(function(e,t,n){return{sourceId:"results",getItems:({state:t})=>tc({searchClient:oh,queries:[{indexName:ih,query:e,params:{filters:Kf(Gf(Qf(t),(e=>e.facet))),hitsPerPage:50,page:0}}]}),getItemUrl:({item:e})=>new URL([document.location.origin,e.href].join("")).toString(),templates:{header:({html:e,state:t})=>{const r=t.context.facetHits[0],i=r.reduce(((e,t)=>e+t.count),0);return 1===sh.length?e` -======= -(()=>{var e={290:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=o()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=i(e,2),r=t[0],o=t[1];return Promise.all([r,o||n.miss(r)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=o();return i[JSON.stringify(e)]=t,r().setItem(n,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function a(e){var t=o(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return a({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return a({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return a({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return a({caches:t}).clear()}))}}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var s=r(),a=i&&i.miss||function(){return Promise.resolve()};return s.then((function(e){return a(e)})).then((function(){return s}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function u(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function d(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var h={Read:1,Write:2,Any:3},m=1,v=2,g=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:h.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||h.Any}}var w="GET",_="POST";function S(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===m||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===g&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(o(n),o(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return b(e)})):t}}))}function x(e,t,r,i){var s=[],a=function(e,t){if(e.method!==w&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,i),l=function(e,t){var r=n(n({},e.headers),t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,i),c=r.method,u=r.method!==w?{}:n(n({},r.data),i.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),u),i.queryParameters),p=0,f=function t(n,o){var u=n.pop();if(void 0===u)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:E(s)};var f={data:a,headers:l,method:c,url:O(u,r.path,d),connectTimeout:o(p,e.timeouts.connect),responseTimeout:o(p,i.timeout)},h=function(e){var t={request:f,response:e,host:u,triesLeft:n.length};return s.push(t),t},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var i=h(r);return r.isTimedOut&&p++,Promise.all([e.logger.info("Retryable failure",C(i)),e.hostsCache.set(u,y(u,r.isTimedOut?g:v))]).then((function(){return t(n,o)}))},onFail:function(e){throw h(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,E(s))}};return e.requester.send(f).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)}))};return S(e.hostsCache,t).then((function(e){return f(o(e.statelessHosts).reverse(),e.getTimeout)}))}function k(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function O(e,t,n){var r=$(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function $(e){return Object.keys(e).map((function(t){return d("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function E(e){return e.map((function(e){return C(e)}))}function C(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var T=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===p.WithinHeaders?r:{}},queryParameters:function(){return e===p.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:p.WithinHeaders,t,e.apiKey),o=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,o=e.requestsCache,s=e.responsesCache,a=e.timeouts,l=e.userAgent,c=e.hosts,u=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:o,responsesCache:s,timeouts:a,userAgent:l,headers:e.headers,queryParameters:u,hosts:c.map((function(e){return b(e)})),read:function(e,t){var n=f(t,d.timeouts.read),r=function(){return x(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,r()).then((function(e){return Promise.all([d.requestsCache.delete(o),e])}),(function(e){return Promise.all([d.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(o,e)}})},write:function(e,t){return x(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Write)})),e,f(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:h.Read},{url:"".concat(t,".algolia.net"),accept:h.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return u({transporter:o,appId:t,addAlgoliaAgent:function(e,t){o.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then((function(){}))}},e.methods)},P=function(e){return function(t,n){return t.method===w?e.transporter.read(t,n):e.transporter.write(t,n)}},A=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},j=function(e){return function(t,r){var i=t.map((function(e){return n(n({},e),{},{params:$(e.params||{})})}));return e.transporter.read({method:_,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},I=function(e){return function(t,i){return Promise.all(t.map((function(t){var o=t.params,s=o.facetName,a=o.facetQuery,l=r(o,["facetName","facetQuery"]);return A(e)(t.indexName,{methods:{searchForFacetValues:M}}).searchForFacetValues(s,a,n(n({},i),l))})))}},L=function(e){return function(t,n,r){return e.transporter.read({method:_,path:d("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},D=function(e){return function(t,n){return e.transporter.read({method:_,path:d("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},M=function(e){return function(t,n,r){return e.transporter.read({method:_,path:d("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},N=1,R=2,F=3;function B(e,t,r){var i,o={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,i=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},o=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(o),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(i=F,{debug:function(e,t){return N>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return R>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:l(),requestsCache:l({serializable:!1}),hostsCache:a({caches:[s({key:"".concat("4.17.0","-").concat(e)}),l()]}),userAgent:k("4.17.0").add({segment:"Browser",version:"lite"}),authMode:p.WithinQueryParameters};return T(n(n(n({},o),r),{},{methods:{search:j,searchForFacetValues:I,multipleQueries:j,multipleSearchForFacetValues:I,customRequest:P,initIndex:function(e){return function(t){return A(e)(t,{methods:{search:D,searchForFacetValues:M,findAnswers:L}})}}}}))}return B.version="4.17.0",B}()},28:()=>{!function(e){var t=1,n=window.setInterval((function(){r(t),++t>2&&(t=0)}),11e3);function r(t){return e(".carousel-always-visible").length?(i(),o(),void s()):e(".carousel-always-visible-cli-only").length?(a(0),void l(0)):(e(".carousel-item").css("opacity",0).css("pointer-events","none").eq(t).css("opacity",1).css("pointer-events","auto"),e(".carousel-item-description").css("opacity",0).css("pointer-events","none").eq(t).css("opacity",1).css("pointer-events","auto"),e(".carousel-item-label").removeClass("border-purple-700").removeClass("text-purple-700").removeClass("hover:text-purple-700").addClass("text-purple-200").addClass("hover:text-purple-300").eq(t).addClass("border-purple-700").addClass("text-purple-700").addClass("hover:text-purple-700"),void(0===t?i():1===t?o():2===t&&s()))}function i(){e(".menu").css("opacity",0),e(".menu").find(".row").removeClass("bg-gray-600").eq(0).addClass("bg-gray-600"),a(0,(function(){e(".menu").each((function(t,n){var r=parseInt(e(n).attr("data-delay"))||0;0===t&&setTimeout((function(){e(n).find(".row").removeClass("bg-gray-600").eq(1).addClass("bg-gray-600")}),600),setTimeout((function(){e(n).css("opacity",1)}),r)}))}))}function o(){a(1),l(1)}function s(){var t=e("#carousel-console .tab");t.css("opacity",0).eq(0).css("opacity",1),setTimeout((function(){t.eq(0).css("opacity",0),t.eq(1).css("opacity",1)}),5e3)}function a(t,n){var r=e(".carousel-item").eq(t).find(".line.typed span"),i=500;r.each((function(t,n){var r=n.textContent.split("");e(n).addClass("typing").html(r.map((e=>""+e+"")).join("").toString())}));var o=e(""),s=e(".carousel-item").eq(t).find(".char");s.map((function(t,r){i+=Math.ceil(75*Math.random()),setTimeout((function(){"\n"===r.textContent?e(r).css("opacity",1).prepend(o):e(r).css("opacity",1).append(o),t===s.length-1&&setTimeout((function(){o.remove(),"function"==typeof n&&n()}),600)}),i),"\n"!==r.textContent&&";"!==r.textContent||(i+=1e3)}))}function l(t){var n=e(".carousel-item").eq(t).find(".line.full");n.css("opacity",0);var r=2e3;n.each((function(t,n){var i=parseInt(e(n).attr("data-delay"))||75;r+=Math.ceil(Math.random()*i),setTimeout((function(){e(n).css("opacity",1)}),r)}))}r(0),e(".carousel-item-label").click((function(){clearInterval(n),r(e(".carousel-item-label").index(this))}))}(jQuery)},506:()=>{!function(e){var t=1,n=window.setInterval((function(){r(t),++t>3&&(t=0)}),5e3);function r(t){e(".code-tabbed-content").scrollTop(0).scrollLeft(0),e(".code-tabbed-tab").removeClass("active").eq(t).addClass("active"),e(".code-tabbed-content-item").removeClass("active").eq(t).addClass("active")}r(0),e(".code-tabbed-tab").click((function(){clearInterval(n),r(e(".code-tabbed-tab").index(this))}))}(jQuery)},756:()=>{$((function(){$("#upcoming-talks-select").on("click",(function(){$("#upcoming-talks").removeClass("hidden"),$("#past-talks").addClass("hidden"),$("#upcoming-talks-select").addClass("is-selected"),$("#past-talks-select").removeClass("is-selected")})),$("#past-talks-select").on("click",(function(){$("#upcoming-talks").addClass("hidden"),$("#past-talks").removeClass("hidden"),$("#upcoming-talks-select").removeClass("is-selected"),$("#past-talks-select").addClass("is-selected")}))}))},161:()=>{$((function(){var e=window.analytics&&window.analytics.track&&"function"==typeof window.analytics.track;function t(t,n,r){var i={answer:t,comments:n||"",email:r||"",url:window.location.pathname,category:"Documentation Feedback",label:t};e?window.analytics.track("docs-feedback",i):console.log("Skipped call to analytics.track:","docs-feedback",i)}$("#docsFeedbackContainer").removeClass("hidden"),["#docsFeedbackYes","#docsFeedbackNo"].forEach((function(e){var n="#docsFeedbackYes"===e?"Yes":"No";$(e).on("click",(function(){$("#feedbackLongForm").removeClass("hidden"),function(e){var n=$("#feedbackLongForm"),r=n.parent();$("body").append(n),$("#docsSubmitFeedback").on("click",(function(){var n=$("#feedbackAdditionalComments").val().toString().trim(),r=$("#feedbackEmail").val().toString().trim();t(e,n,r),$("#feedbackAdditionalComments").val(""),$("#feedbackEmail").val(""),$("#feedbackButtons").addClass("hidden"),$("#feedbackLongForm").addClass("hidden"),$("#feedbackThankYou").removeClass("hidden")})),$("#docsCloseFeedbackLongForm").on("click",(function(){t(e,"",""),$("#feedbackAdditionalComments").val(""),$("#feedbackEmail").val(""),$("#feedbackButtons").addClass("hidden"),$("#feedbackLongForm").addClass("hidden"),$("#feedbackThankYou").removeClass("hidden"),r.append(n)})),$(window).on("beforeunload",(function(){$("#feedbackLongForm").hasClass("hidden")||t(e,"","")}))}(n)}))}))}))},40:()=>{let e=$(".docs-main-nav-toggle-wrapper"),t=$(".docs-nav-toggle-icon");function n(){$(this).width()<=1024&&(e.hasClass("docs-nav-show")?(t.removeClass("open-docs-main-nav"),t.addClass("close-docs-main-nav")):e.hasClass("docs-nav-hide")&&(t.removeClass("close-docs-main-nav"),t.addClass("open-docs-main-nav")));let n=$(".main-nav"),r=$(".docs-nav-toggle"),i=$(".docs-type-nav-search");$(".section-docs .docs-list-main").length>0&&($(".section-docs .docs-list-main").get(0).getBoundingClientRect().y<=0?(n.css("margin-top",i.height()-Math.max($(".top-nav-container").get(0).getBoundingClientRect().y,0)),r.css("top",94+i.height()-Math.max($(".top-nav-container").get(0).getBoundingClientRect().y,0))):n.css("margin-top",0)),$(this).width()>1024?(e.removeClass("docs-nav-show"),e.removeClass("docs-nav-hide")):e.hasClass("docs-nav-hide")||e.hasClass("docs-nav-show")||e.addClass("docs-nav-hide")}function r(){let e=$(".docs-toc-desktop");window.innerWidth<1280?e.hide():e.show()}function i(){$(".docs-main-nav").css("height",$(".docs-footer").height()+window.innerHeight)}$(window).on("resize",(function(){n(),r(),i()})).trigger("resize"),$(window).on("scroll",(function(){n()})).trigger("resize"),$(window).on("load",(function(){n(),r(),i()})),function(n,i){i(".docs-nav-toggle").on("click",(function(){e.toggleClass("docs-nav-show"),e.toggleClass("docs-nav-hide"),t.toggleClass("close-docs-main-nav"),t.toggleClass("open-docs-main-nav"),r()}));let o=i("#accordion-checkbox-package-card"),s=i("#accordion-package-card");o.on("change",(function(){o.is(":checked")?s.css("background","#fff"):s.css("background","#f9f9f9")}));let a=i("#collapse-content-button"),l=i("#expand-content-button");function c(){i(".docs-main-content").addClass("docs-content-width-expanded"),window.location.pathname.startsWith("/registry")&&i(".docs-main-content").addClass("expand-registry"),a.removeClass("hide"),l.addClass("hide"),window.localStorage.setItem("content-width-state","expanded")}function u(){i(".docs-main-content").removeClass("docs-content-width-expanded"),a.addClass("hide"),l.removeClass("hide"),window.localStorage.setItem("content-width-state","collapsed")}l.on("click",c),a.on("click",u),"expanded"===window.localStorage.getItem("content-width-state")?c():u()}(document,jQuery)},21:()=>{$((function(){function e(e,t){var n=e.map((function(e){return".highlight .chroma .language-"+e})).join(", ");$(n).each((function(){var e=$(this);e.html(e.html().replace(t,'$1'))}))}e(["bash","sh","shell","zsh"],/([ |\t]*\$ )/gim),e(["bat","batch","batchfile","powershell","posh","pwsh"],/([ |\t]*><\/span> )/gim)}))},490:()=>{const e=(e,t)=>{const n="amazon",r="google cloud",i="google",o=$(".all-packages").find(".package"),s=void 0===e.find((e=>"type"===e.group)),a=void 0===e.find((e=>"category"===e.group));e.length>0||t?($(o).addClass("hidden"),$(o).each(((o,l)=>{const c=$(l).find("[data-category]"),u=c.attr("data-type"),d=c.attr("data-category"),p="native-provider"===u,f=!!e.find((e=>"type"===e.group&&e.value===u))||e.find((e=>"type"===e.group&&"provider"===e.value))&&p,h=!!e.find((e=>"category"===e.group&&e.value===d)),m=c.attr("data-title").toLowerCase(),v=null==t?void 0:t.trim().toLowerCase();let g;g=v===n||"aws"===v?m.includes(n)||m.includes("aws"):"gcp"===v||v===r||v===i?m.includes("gcp")||m.includes(r)||m.includes(i):m.includes(v),!f&&!s||!h&&!a||t&&!g||$(l).removeClass("hidden")}))):$(o).removeClass("hidden")};$(".section-registry").on("filterSelect",(t=>{const n=t.target,r=t.detail,i=$("pulumi-registry-list-search").get(0),o=$(i).find(".registry-filter-input").val();e(r,o);const s=$("ul.active-tags");s.empty(),r.forEach((e=>{const t=$($("#active-tag-template").html());t.appendTo(s),t.attr("data-filter-group",e.group).attr("data-filter-value",e.value),t.find("span").text(e.label),t.find("button").on("click",(()=>n.deselect(e)))})),$(".packages, .active-tags").attr("data-selected-types",r.filter((e=>"type"===e.group)).map((e=>e.value)).join(",")).attr("data-selected-categories",r.filter((e=>"category"===e.group)).map((e=>e.value)).join(","));const a=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(a),$("pulumi-filter-select-option-group").each(((e,t)=>t.close()))})),$(".section-registry .no-results .reset").on("click",(t=>{t.stopPropagation();$("pulumi-registry-list-search").get(0).reset();$("pulumi-filter-select").get(0).reset(),e([],"");const n=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(n)})),$(".section-registry").on("packageSearch",(t=>{const n=t.detail,r=[],i=$("ul.active-tags").find("li");i.length>0&&i.each(((e,t)=>{const n=$(t),i=n.attr("data-filter-group"),o=n.attr("data-filter-value"),s=n.attr("data-filter-label");r.push({group:i,value:o,label:s})})),e(r,n);const o=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(o)})),document.addEventListener("DOMContentLoaded",(function(){const e=$(".logo-nav-button"),t=$(".logo-nav-bg-mask"),n=$("#logo-nav-menu");function r(){n.toggleClass("hidden");const r=n.is(":visible");e.attr("aria-expanded",`${r}`),$(".logo-nav-button .mobile-menu-toggle-icon").toggleClass("hidden"),t.toggleClass("hidden")}e.on("click",r),t.on("click",r),$(document).on("click",(function(t){0===$(t.target).closest(e).length&&0===$(t.target).closest(n).length&&n.is(":visible")&&r()})),$(document).on("scroll",(function(){window.scrollY>53&&n.is(":visible")&&r()}))}))},245:()=>{$(document).on("rendered",(function(){$("#billing-period").each((function(e,t){t.addEventListener("change",(function(e){e&&e.target&&e.target.checked?($(".billing-price-monthly").each((function(e,t){$(t).hide()})),$(".billing-price-annually").each((function(e,t){$(t).show()}))):($(".billing-price-monthly").each((function(e,t){$(t).show()})),$(".billing-price-annually").each((function(e,t){$(t).hide()})))}))}))}))},366:()=>{$((function(){$("#pricingStartTrial").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#pricingStartTrialBottomCTA").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#businessCriticalStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#enterpriseStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#teamStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#closePricingTrialOptionsDialog").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")})),$("#startServiceTrial").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")})),$("#startSelfHostedTrial").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")}))}))},744:()=>{$((function(){$("#iac-pricing-select").on("click",(function(){$(".esc-price").addClass("hidden"),$(".iac-price").removeClass("hidden"),$("#esc-pricing-select").removeClass("border-blue-600 bg-violet-100"),$("#esc-pricing-select").addClass("border-gray-300"),$("#esc-pricing-select-text").removeClass("rainbow-text"),$("#iac-pricing-select").addClass("border-blue-600 bg-violet-100"),$("#iac-pricing-select-text").addClass("rainbow-text")})),$("#esc-pricing-select").on("click",(function(){$(".iac-price").addClass("hidden"),$(".esc-price").removeClass("hidden"),$("#iac-pricing-select").removeClass("border-blue-600 bg-violet-100"),$("#iac-pricing-select").addClass("border-gray-300"),$("#iac-pricing-select-text").removeClass("rainbow-text"),$("#esc-pricing-select").addClass("border-blue-600 bg-violet-100"),$("#esc-pricing-select-text").addClass("rainbow-text")}))}))},734:()=>{$((function(){const e=["iac-select","esc-select","insights-select"],t=["crossguard-select","deployments-select","copilot-select","management-select"];e.forEach((t=>{$(`#${t}`).on("click",(function(){e.forEach((e=>{e!==t&&($(`#${e}-content`).addClass("hidden"),$(`#${e}`).removeClass("border-blue-600"),$(`#${e}-text`).removeClass("rainbow-text"))})),$(`#${t}`).addClass("border-blue-600"),$(`#${t}-text`).addClass("rainbow-text"),$(`#${t}-content`).removeClass("hidden")}))})),t.forEach((e=>{$(`#${e}`).on("click",(function(){t.forEach((t=>{t!==e&&($(`#${t}-content`).addClass("hidden"),$(`#${t}`).removeClass("border-blue-600"),$(`#${t}-text`).removeClass("rainbow-text"))})),$(`#${e}`).addClass("border-blue-600"),$(`#${e}-text`).addClass("rainbow-text"),$(`#${e}-content`).removeClass("hidden")}))}))}))},140:()=>{const e=document.location.pathname;if("/docs/intro/concepts/programming-model/"===e||"/docs/reference/programming-model/"===e){var t={"#additionalsecretoutputs":"/docs/concepts/resources/#additionalsecretoutputs","#aliases":"/docs/concepts/resources/#aliases","#all":"/docs/concepts/inputs-outputs/#all","#apply":"/docs/concepts/inputs-outputs/#apply","#assets-and-archives":"/docs/concepts/assets-archives/","#autonaming":"/docs/concepts/resources/#autonaming","#components":"/docs/concepts/resources/#components","#config":"/docs/concepts/config","#custom-resources":"/docs/concepts/resources/#custom-resources","#declaring-infrastructure":"/docs/concepts/#overview","#deletebeforereplace":"/docs/concepts/resources/#deletebeforereplace","#dependson":"/docs/concepts/resources/#dependson","#dynamicproviders":"/docs/concepts/resources/#dynamicproviders","#explicit-provider-configuration":"/docs/concepts/resources/#explicit-provider-configuration","#import":"/docs/concepts/resources/#import","#introduction":"/docs/intro/concepts","#lifting":"/docs/concepts/inputs-outputs/#lifting","#names":"/docs/concepts/resources/#names","#outputs":"/docs/concepts/inputs-outputs","#outputs-and-strings":"/docs/concepts/inputs-outputs/#outputs-and-strings","#program-structure":"/docs/concepts/#overview","#programs":"/docs/concepts/#overview","#providers":"/docs/concepts/resources/#providers","#reading-configuration-values":"/docs/concepts/config/#code","#resource-get":"/docs/concepts/resources/#resource-get","#resource-providers":"/docs/concepts/resources/#providers","#resourceoptions":"/docs/concepts/resources/#options","#resources":"/docs/concepts/resources","#runtime":"/docs/concepts/","#runtime-functions":"/docs/concepts/","#secrets":"/docs/concepts/secrets","#stack-outputs":"/docs/concepts/stack/#outputs","#stack-references":"/docs/concepts/stack/#stack-references","#transformations":"/docs/concepts/resources/#transformations"}[location.hash];t&&(location.href=t)}},498:()=>{const e=e=>{const t=$(".event-list").find(".event-card"),n=$(".event-list").find(".month-label");$(n).css("display","none");const r=$(".pulumi-event-list-container").find(".no-results");$(r).removeClass("hidden"),e.length>0?$(t).each(((t,n)=>{const i=$(n).attr("data-filters").split(" "),o=$(n).attr("data-month-label");if(i.includes(location.hash.slice(1))){let t=0;i.forEach((n=>{e.includes(n)&&t++})),t>0?($(r).addClass("hidden"),$(n).css("display","block"),$(`.month-label.${o}`).css("display","block")):$(n).css("display","none")}else $(n).css("display","none")})):$(t).each(((e,t)=>{const n=$(t).attr("data-filters").split(" "),i=$(t).attr("data-month-label");if(n.includes(location.hash.slice(1)))$(r).addClass("hidden"),$(t).css("display","block"),$(`.month-label.${i}`).css("display","block");else{$(t).css("display","none");$(t).attr("data-month-label")}}))};$(".pulumi-event-list-container").on("filterSelect",(t=>{const n=t.detail,r=[];n.forEach((e=>{r.push(e.value)})),e(r)})),$(window).on("hashchange",(function(){const t=$("pulumi-filter-select-option").toArray();let n=[];t.forEach((e=>{const t=e.shadowRoot;$(t).find(".selected").length>0&&n.push(e.value)})),e(n)})),$((function(){const e=document.getElementById("event-list-filter-nav");if(e){$("#slideForward").on("click",(function(){e.scrollLeft+=180})),$("#slideBackwards").on("click",(function(){e.scrollLeft-=180}));const t={root:document.getElementById("event-list-filter-nav"),threshold:1},n=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting?$("#slideForward").addClass("hidden"):$("#slideForward").removeClass("hidden")}))}),t),r=document.querySelector("#event-list-filter-nav li:last-of-type");n.observe(r);const i=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting?$("#slideBackwards").addClass("hidden"):$("#slideBackwards").removeClass("hidden")}))}),t),o=document.querySelector("#event-list-filter-nav li:first-of-type");i.observe(o)}}))},399:()=>{$((function(){const e={"/docs/get-started/":"get-started-with-pulumi-toc-header","/docs/":"intro-toc-header","/docs/using-pulumi/":"user-guides-toc-header","/docs/concepts/":"reference-toc-header","/docs/support/":"support-toc-header","/docs/iac/adopting-pulumi/converters/":"converters-toc-header"};Object.keys(e).map((t=>{const n=document.getElementById(e[t]);if(n&&(n.classList.remove("active"),document.location.pathname===t)){const e=document.getElementById("left-nav");n.classList.add("active"),e.scrollTop=n.offsetTop-100}}))}))},931:()=>{$(document).ready((function(){if(window&&window.analytics&&"function"==typeof window.analytics.track){const n=$("a"),r=(new Date).getTime();function e(e,t){const n=$(e);if(!n)return;const i=n.attr("data-track"),o=(n.attr("href")||"").replace(/https?:\/\//g,""),s=i||o.replace(/^#/,"anchor-").replace(/^\//,"").split("/").join("-"),a=("/"===window.location.pathname?"home":window.location.pathname).split("/").filter((function(e){return""!==e})).map((function(e){return e})).concat(s,t).join("-"),l={element_id:a,destinationPath:n.attr("href"),url:window.location.pathname,category:"User Interaction",label:a,value:void 0};n.on("click",(function(e){l.value=((new Date).getTime()-r)/1e3,window.analytics.track("link-click",l)}))}for(var t=0;t{"use strict";n.r(t),n.d(t,{scopeCss:()=>A});const r="-shadowcsshost",i="-shadowcssslotted",o="-shadowcsscontext",s=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",a=new RegExp("("+r+s,"gim"),l=new RegExp("("+o+s,"gim"),c=new RegExp("("+i+s,"gim"),u=r+"-no-combinator",d=/-shadowcsshost-no-combinator([^\s]*)/,p=[/::shadow/g,/::content/g],f=/-shadowcsshost/gim,h=/:host/gim,m=/::slotted/gim,v=/:host-context/gim,g=/\/\*\s*[\s\S]*?\*\//g,y=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,b=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,w=/([{}])/g,_="%BLOCK%",S=(e,t)=>{const n=x(e);let r=0;return n.escapedString.replace(b,((...e)=>{const i=e[2];let o="",s=e[4],a="";s&&s.startsWith("{"+_)&&(o=n.blocks[r++],s=s.substring(_.length+1),a="{");const l=t({selector:i,content:o});return`${e[1]}${l.selector}${e[3]}${a}${l.content}${s}`}))},x=e=>{const t=e.split(w),n=[],r=[];let i=0,o=[];for(let e=0;e0?o.push(s):(o.length>0&&(r.push(o.join("")),n.push(_),o=[]),n.push(s)),"{"===s&&i++}o.length>0&&(r.push(o.join("")),n.push(_));return{escapedString:n.join(""),blocks:r}},k=(e,t,n)=>e.replace(t,((...e)=>{if(e[2]){const t=e[2].split(","),r=[];for(let i=0;ie+t.replace(r,"")+n,$=(e,t,n)=>t.indexOf(r)>-1?O(e,t,n):e+t+n+", "+t+" "+e+n,E=(e,t)=>{const n=(e=>(e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(t);return!n.test(e)},C=(e,t,n)=>{const r="."+(t=t.replace(/\[is=([^\]]*)\]/g,((e,...t)=>t[0]))),i=e=>{let i=e.trim();if(!i)return"";if(e.indexOf(u)>-1)i=((e,t,n)=>{if(f.lastIndex=0,f.test(e)){const t=`.${n}`;return e.replace(d,((e,n)=>n.replace(/([^:]*)(:*)(.*)/,((e,n,r,i)=>n+t+r+i)))).replace(f,t+" ")}return t+" "+e})(e,t,n);else{const t=e.replace(f,"");if(t.length>0){const e=t.match(/([^:]*)(:*)(.*)/);e&&(i=e[1]+r+e[2]+e[3])}}return i},o=(e=>{const t=[];let n,r=0;return n=(e=e.replace(/(\[[^\]]*\])/g,((e,n)=>{const i=`__ph-${r}__`;return t.push(n),r++,i}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((e,n,i)=>{const o=`__ph-${r}__`;return t.push(i),r++,n+o})),{content:n,placeholders:t}})(e);let s,a="",l=0;const c=/( |>|\+|~(?!=))\s*/g;let p=!((e=o.content).indexOf(u)>-1);for(;null!==(s=c.exec(e));){const t=s[1],n=e.slice(l,s.index).trim();p=p||n.indexOf(u)>-1;a+=`${p?i(n):n} ${t} `,l=c.lastIndex}const h=e.substring(l);return p=p||h.indexOf(u)>-1,a+=p?i(h):h,m=o.placeholders,a.replace(/__ph-(\d+)__/g,((e,t)=>m[+t]));var m},T=(e,t,n,r,i)=>S(e,(e=>{let i=e.selector,o=e.content;"@"!==e.selector[0]?i=((e,t,n,r)=>e.split(",").map((e=>r&&e.indexOf("."+r)>-1?e.trim():E(e,t)?C(e,t,n).trim():e.trim())).join(", "))(e.selector,t,n,r):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(o=T(e.content,t,n,r));return{selector:i.replace(/\s{2,}/g," ").trim(),content:o}})),P=(e,t,n,s,d)=>{const f=((e,t)=>{const n="."+t+" > ",r=[];return e=e.replace(c,((...e)=>{if(e[2]){const t=e[2].trim(),i=e[3],o=n+t+i;let s="";for(let t=e[4]-1;t>=0;t--){const n=e[5][t];if("}"===n||","===n)break;s=n+s}const a=s+o,l=`${s.trimRight()}${o.trim()}`;if(a.trim()!==l.trim()){const e=`${l}, ${a}`;r.push({orgSelector:a,updatedSelector:e})}return o}return u+e[3]})),{selectors:r,cssText:e}})(e=(e=>k(e,l,$))(e=(e=>k(e,a,O))(e=e.replace(v,o).replace(h,r).replace(m,i))),s);return e=(e=>p.reduce(((e,t)=>e.replace(t," ")),e))(e=f.cssText),t&&(e=T(e,t,n,s)),{cssText:(e=(e=e.replace(/-shadowcsshost-no-combinator/g,`.${n}`)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:f.selectors}},A=(e,t,n)=>{const r=t+"-h",i=t+"-s",o=e.match(y)||[];e=(e=>e.replace(g,""))(e);const s=[];if(n){const t=e=>{const t=`/*!@___${s.length}___*/`,n=`/*!@${e.selector}*/`;return s.push({placeholder:t,comment:n}),e.selector=t+e.selector,e};e=S(e,(e=>"@"!==e.selector[0]?t(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=S(e.content,t),e):e))}const a=P(e,t,r,i);return e=[a.cssText,...o].join("\n"),n&&s.forEach((({placeholder:t,comment:n})=>{e=e.replace(t,n)})),a.slottedSelectors.forEach((t=>{e=e.replace(t.orgSelector,t.updatedSelector)})),e}},263:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=263,e.exports=t}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=!1,t=!0,r=!1,i=!0,o=!0,s=!0,a=!0,l=!0,c=!0,u=!0,d=!0,p=!0,f=!0,h=!0,m=!0,v=!1,g=!0,y=!0,b=!0,w=!0,_=!0,S=!0,x=!0,k=!0,O=!0,E=!0,C=!0,T=!0,P=!0,A=!0,j=!0,I=!0,L=!0,D=!0,M=!0,N=!0,R=!0,F=!0,B=!0,H=!0,V=!0,q=!0,z=!0,U=!0,W=!1,K=!1,G=!1,J=!1,Y=!1,Q=!1,X=!1,Z=!1,ee=!1,te=!0,ne=!1,re=!0,ie=!1,oe=!0,se=!0,ae=!0,le=!1,ce=!0,ue=!0,de=!1,pe=!1,fe=!1,he=!0,me="app";let ve,ge,ye,be,we=0,_e=!1,Se=!1,xe=!1,ke=!1,Oe=null,$e=0,Ee=!1;const Ce="undefined"!=typeof window?window:{},Te=(le&&Ce.CSS,Ce.document||{head:{}}),Pe=(Ce.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)}),Ae=!ie||!O||(()=>(Te.head.attachShadow+"").indexOf("[native")>-1)(),je=(()=>{let e=!1;try{Te.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),Ie=!!ce&&(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),Le=(e,t,n,r)=>{p&&n&&(v&&(n=r?n.filter((([e])=>32&e)):n.filter((([e])=>!(32&e)))),n.map((([n,r,i])=>{const o=g?Me(e,n):e,s=De(t,i),a=Ne(n);Pe.ael(o,r,s,a),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>Pe.rel(o,r,s,a)))})))},De=(e,t)=>n=>{try{Z?256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n]):e.$hostElement$[t](n)}catch(e){en(e)}},Me=(e,t)=>h&&4&t?Te:f&&8&t?Ce:m&&16&t?Te.body:v&&32&t?e.parentElement:e,Ne=e=>je?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e),Re="s-id",Fe="sty-id",Be="c-id",He="http://www.w3.org/1999/xlink",Ve=(e,t="")=>{if(ee&&performance.mark){const n=`st:${e}:${t}:${we++}`;return performance.mark(n),()=>performance.measure(`[Stencil] ${e}() <${t}>`,n)}return()=>{}},qe=new WeakMap,ze=(e,t,n)=>{let r=an.get(e);Ie&&n?(r=r||new CSSStyleSheet,r.replace(t)):r=t,an.set(e,r)},Ue=(e,t,n,r)=>{let i=Ke(t,n),o=an.get(i);if(!he)return i;if(e=11===e.nodeType?e:Te,o)if("string"==typeof o){e=e.head||e;let n,s=qe.get(e);if(s||qe.set(e,s=new Set),!s.has(i)){if(Q&&e.host&&(n=e.querySelector(`[${Fe}="${i}"]`)))n.innerHTML=o;else{if(le&&Pe.$cssShim$){n=Pe.$cssShim$.createHostStyle(r,i,o,!!(10&t.$flags$));const e=n["s-sc"];e&&(i=e,s=null)}else n=Te.createElement("style"),n.innerHTML=o;(Y||W)&&n.setAttribute(Fe,i),e.insertBefore(n,e.querySelector("link"))}s&&s.add(i)}}else ce&&!e.adoptedStyleSheets.includes(o)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i},We=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=Ve("attachStyles",t.$tagName$),o=Ue(O&&Ae&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);(O||k)&&C&&10&r&&(n["s-sc"]=o,n.classList.add(o+"-h"),k&&2&r&&n.classList.add(o+"-s")),i()},Ke=(e,t)=>"sc-"+(w&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),Ge=e=>ln.map((t=>t(e))).find((e=>!!e)),Je={},Ye=e=>"object"===(e=typeof e)||"function"===e,Qe=(e,t,...n)=>{let r=null,i=null,o=null,s=!1,a=!1,l=[];const c=t=>{for(let n=0;ne[t])).join(" "))}if(G&&l.some(et)&&nn("The must be the single root component. Make sure:\n- You are NOT using hostData() and in the same component.\n- is used once, and it's the single root component of the render() function."),M&&"function"==typeof e)return e(null===t?{}:t,l,tt);const u=Xe(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),N&&(u.$key$=i),te&&(u.$name$=o),u},Xe=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return I&&(n.$attrs$=null),N&&(n.$key$=null),te&&(n.$name$=null),n},Ze={},et=e=>e&&e.$tag$===Ze,tt={forEach:(e,t)=>e.map(nt).forEach(t),map:(e,t)=>e.map(nt).map(t).map(rt)},nt=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),rt=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),Qe(e.vtag,t,...e.vchildren||[])}const t=Xe(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},it=e=>{const t=Object.keys(e),n=t.indexOf("type"),r=t.indexOf("min"),i=t.indexOf("max"),o=t.indexOf("min"),s=t.indexOf("value");-1!==s&&(s should be set after "min", "max", "type" and "step"')},ot=(e,t,n,r,i,o)=>{if(n!==r){let s=Zt(e,t),a=t.toLowerCase();if(D&&"class"===t){const t=e.classList,i=at(n),o=at(r);t.remove(...i.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!i.includes(e))))}else if(V&&"style"===t){if(j)for(const t in n)r&&null!=r[t]||(!Y&&t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(!Y&&t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if(N&&"key"===t);else if(F&&"ref"===t)r&&r(e);else if(!R||(Z?s:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(B){const l=Ye(r);if((s||l&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{let i=null==r?"":r;"list"===t?s=!1:null!=n&&e[t]==i||(e[t]=i)}}catch(e){}let c=!1;L&&a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(L&&c?e.removeAttributeNS(He,t):e.removeAttribute(t)):(!s||4&o||i)&&!l&&(r=!0===r?"":r,L&&c?e.setAttributeNS(He,t,r):e.setAttribute(t,r))}}else t="-"===t[2]?t.slice(3):Zt(Ce,a)?a.slice(2):a[2]+t.slice(3),n&&Pe.rel(e,t,n,!1),r&&Pe.ael(e,t,r,!1)}},st=/\s/,at=e=>e?e.split(st):[],lt=(e,t,n,r)=>{const i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||Je,s=t.$attrs$||Je;if(j)for(r in o)r in s||ot(i,r,o[r],void 0,n,t.$flags$);for(r in s)ot(i,r,o[r],s[r],n,t.$flags$)},ct=(e,t,n,r)=>{let i,o,s,a=t.$children$[n],l=0;if(te&&!_e&&(xe=!0,"slot"===a.$tag$&&(ve&&r.classList.add(ve+"-s"),a.$flags$|=a.$children$?2:1)),G&&a.$elm$&&nn(`The JSX ${null!==a.$text$?`"${a.$text$}" text`:`"${a.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),q&&null!==a.$text$)i=a.$elm$=Te.createTextNode(a.$text$);else if(te&&1&a.$flags$)i=a.$elm$=K||Y?xt(a):Te.createTextNode("");else{if(A&&!ke&&(ke="svg"===a.$tag$),i=a.$elm$=A?Te.createElementNS(ke?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",te&&2&a.$flags$?"slot-fb":a.$tag$):Te.createElement(te&&2&a.$flags$?"slot-fb":a.$tag$),A&&ke&&"foreignObject"===a.$tag$&&(ke=!1),I&<(null,a,ke),(O||k)&&(e=>null!=e)(ve)&&i["s-si"]!==ve&&i.classList.add(i["s-si"]=ve),a.$children$)for(l=0;l{Pe.$flags$|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const r=n[e];r["s-hn"]!==ye&&r["s-ol"]&&(mt(r).insertBefore(r,ht(r)),r["s-ol"].remove(),r["s-ol"]=void 0,xe=!0),t&&ut(r,t)}Pe.$flags$&=-2},dt=(e,t,n,r,i,o)=>{let s,a=te&&e["s-cr"]&&e["s-cr"].parentNode||e;for(O&&a.shadowRoot&&a.tagName===ye&&(a=a.shadowRoot);i<=o;++i)r[i]&&(s=ct(null,n,i,e),s&&(r[i].$elm$=s,a.insertBefore(s,te?ht(t):t)))},pt=(e,t,n,r,i)=>{for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,_t(r),te&&(Se=!0,i["s-ol"]?i["s-ol"].remove():ut(i,!0)),i.remove())},ft=(e,t)=>e.$tag$===t.$tag$&&(te&&"slot"===e.$tag$?e.$name$===t.$name$:!N||e.$key$===t.$key$),ht=e=>e&&e["s-ol"]||e,mt=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,vt=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,o=t.$tag$,s=t.$text$;let a;q&&null!==s?q&&te&&(a=n["s-cr"])?a.parentNode.textContent=s:q&&e.$text$!==s&&(n.data=s):(A&&(ke="svg"===o||"foreignObject"!==o&&ke),(I||x)&&(E&&"slot"===o||lt(e,t,ke)),j&&null!==r&&null!==i?((e,t,n,r)=>{let i,o,s=0,a=0,l=0,c=0,u=t.length-1,d=t[0],p=t[u],f=r.length-1,h=r[0],m=r[f];for(;s<=u&&a<=f;)if(null==d)d=t[++s];else if(null==p)p=t[--u];else if(null==h)h=r[++a];else if(null==m)m=r[--f];else if(ft(d,h))vt(d,h),d=t[++s],h=r[++a];else if(ft(p,m))vt(p,m),p=t[--u],m=r[--f];else if(ft(d,m))!te||"slot"!==d.$tag$&&"slot"!==m.$tag$||ut(d.$elm$.parentNode,!1),vt(d,m),e.insertBefore(d.$elm$,p.$elm$.nextSibling),d=t[++s],m=r[--f];else if(ft(p,h))!te||"slot"!==d.$tag$&&"slot"!==m.$tag$||ut(p.$elm$.parentNode,!1),vt(p,h),e.insertBefore(p.$elm$,d.$elm$),p=t[--u],h=r[++a];else{if(l=-1,N)for(c=s;c<=u;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===h.$key$){l=c;break}N&&l>=0?(o=t[l],o.$tag$!==h.$tag$?i=ct(t&&t[a],n,l,e):(vt(o,h),t[l]=void 0,i=o.$elm$),h=r[++a]):(i=ct(t&&t[a],n,a,e),h=r[++a]),i&&(te?mt(d.$elm$).insertBefore(i,ht(d.$elm$)):d.$elm$.parentNode.insertBefore(i,d.$elm$))}s>u?dt(e,null==r[f+1]?null:r[f+1].$elm$,n,r,a,f):j&&a>f&&pt(t,s,u)})(n,r,t,i):null!==i?(j&&q&&null!==e.$text$&&(n.textContent=""),dt(n,null,t,i,0,i.length-1)):j&&null!==r&&pt(r,0,r.length-1),A&&ke&&"svg"===o&&(ke=!1))},gt=e=>{let t,n,r,i,o,s,a=e.childNodes;for(n=0,r=a.length;n{let t,n,r,i,o,s,a=0,l=e.childNodes,c=l.length;for(;a=0;s--)n=r[s],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(wt(n,i)?(o=yt.find((e=>e.$nodeToRelocate$===n)),Se=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=t:yt.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&yt.map((e=>{wt(e.$nodeToRelocate$,n["s-sn"])&&(o=yt.find((e=>e.$nodeToRelocate$===n)),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))}))):yt.some((e=>e.$nodeToRelocate$===n))||yt.push({$nodeToRelocate$:n}));1===t.nodeType&&bt(t)}},wt=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,_t=e=>{F&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(_t))},St=(e,t)=>{const n=e.$hostElement$,r=e.$cmpMeta$,i=e.$vnode$||Xe(null,null),o=et(t)?t:Qe(null,null,t);if(ye=n.tagName,G&&Array.isArray(t)&&t.some(et))throw new Error(`The must be the single root component.\nLooks like the render() function of "${ye.toLowerCase()}" is returning an array that contains the .\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n {content}\n );\n}\n `);if(x&&r.$attrsToReflect$&&(o.$attrs$=o.$attrs$||{},r.$attrsToReflect$.map((([e,t])=>o.$attrs$[t]=n[e]))),o.$tag$=null,o.$flags$|=4,e.$vnode$=o,o.$elm$=i.$elm$=O&&n.shadowRoot||n,(k||O)&&(ve=n["s-sc"]),te&&(ge=n["s-cr"],_e=Ae&&0!=(1&r.$flags$),Se=!1),vt(i,o),te){if(Pe.$flags$|=1,xe){let e,t,n,r,i,s;bt(o.$elm$);let a=0;for(;aTe.createComment(` (host=${ye.toLowerCase()})`),kt=e=>Te.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),Ot=(e,t,n)=>{const r=(e=>Z?Qt(e).$hostElement$:e)(e);return{emit:e=>(G&&!r.isConnected&&rn(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),$t(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e}))}},$t=(e,t,n)=>{const r=Pe.ce(t,n);return e.dispatchEvent(r),r},Et=(e,t)=>{pe&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},Ct=(e,t)=>{if(U&&j&&(e.$flags$|=16),pe&&4&e.$flags$)return void(e.$flags$|=512);Et(e,e.$ancestorComponent$);const n=()=>Tt(e,t);return U?gn(n):n()},Tt=(e,t)=>{const n=e.$hostElement$,r=Ve("scheduleUpdate",e.$cmpMeta$.$tagName$),i=Z?e.$lazyInstance$:n;let o;return t?(Z&&p&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((([e,t])=>Lt(i,e,t))),e.$queuedListeners$=null)),Mt(n,"componentWillLoad"),s&&(o=Lt(i,"componentWillLoad"))):(Mt(n,"componentWillUpdate"),a&&(o=Lt(i,"componentWillUpdate"))),Mt(n,"componentWillRender"),l&&(o=Dt(o,(()=>Lt(i,"componentWillRender")))),r(),Dt(o,(()=>Pt(e,i,t)))},Pt=async(e,t,n)=>{const r=e.$hostElement$,i=Ve("update",e.$cmpMeta$.$tagName$),o=r["s-rc"];P&&n&&We(e);const s=Ve("render",e.$cmpMeta$.$tagName$);if(G&&(e.$flags$|=1024),Y?await At(e,t,r):At(e,t,r),le&&Pe.$cssShim$&&Pe.$cssShim$.updateHost(r),G&&(e.$renderCount$++,e.$flags$&=-1025),Y)try{Rt(r),n&&(1&e.$cmpMeta$.$flags$?r["s-en"]="":2&e.$cmpMeta$.$flags$&&(r["s-en"]="c"))}catch(e){en(e,r)}if(pe&&o&&(o.map((e=>e())),r["s-rc"]=void 0),s(),i(),pe){const t=r["s-p"],n=()=>jt(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}else jt(e)},At=(t,n,r)=>{const i=!!e,o=!!Z,s=!!U,a=!!j;try{if(Oe=n,n=(i||n.render)&&n.render(),a&&s&&(t.$flags$&=-17),(a||o)&&(t.$flags$|=2),d||x)if(H||x){if(Y)return Promise.resolve(n).then((e=>St(t,e)));St(t,n)}else r.textContent=n}catch(e){en(e,t.$hostElement$)}return Oe=null,null},jt=e=>{const n=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=Ve("postUpdate",n),a=Z?e.$lazyInstance$:r,l=e.$ancestorComponent$;o&&(G&&(e.$flags$|=1024),Lt(a,"componentDidRender"),G&&(e.$flags$&=-1025)),Mt(r,"componentDidRender"),64&e.$flags$?(i&&(G&&(e.$flags$|=1024),Lt(a,"componentDidUpdate"),G&&(e.$flags$&=-1025)),Mt(r,"componentDidUpdate"),s()):(e.$flags$|=64,pe&&C&&Nt(r),t&&(G&&(e.$flags$|=2048),Lt(a,"componentDidLoad"),G&&(e.$flags$&=-2049)),Mt(r,"componentDidLoad"),s(),pe&&(e.$onReadyResolve$(r),l||It(n))),W&&r["s-hmr-load"]&&r["s-hmr-load"](),b&&Z&&e.$onInstanceResolve$(r),pe&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&vn((()=>Ct(e,!1))),e.$flags$&=-517)},It=e=>{C&&Nt(Te.documentElement),fe&&(Pe.$flags$|=2),vn((()=>$t(Ce,"appload",{detail:{namespace:me}}))),ee&&performance.measure&&performance.measure(`[Stencil] ${me} initial load (by ${e})`,"st:app:start")},Lt=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){en(e)}},Dt=(e,t)=>e&&e.then?e.then(t):t(),Mt=(e,t)=>{X&&$t(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:me}})},Nt=e=>re?e.classList.add("hydrated"):ne?e.setAttribute("hydrated",""):void 0,Rt=e=>{const t=e.children;if(null!=t)for(let e=0,n=t.length;e{let a,l,c,u;if(1===o.nodeType){for(a=o.getAttribute(Be),a&&(l=a.split("."),l[0]!==s&&"0"!==l[0]||(c={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(c),o.removeAttribute(Be),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,e=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))),u=o.childNodes.length-1;u>=0;u--)Ft(e,t,n,r,i,o.childNodes[u],s);if(o.shadowRoot)for(u=o.shadowRoot.childNodes.length-1;u>=0;u--)Ft(e,t,n,r,i,o.shadowRoot.childNodes[u],s)}else if(8===o.nodeType)l=o.nodeValue.split("."),l[1]!==s&&"0"!==l[1]||(a=l[0],c={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(c.$elm$=o.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),o.remove(),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===s&&("s"===a?(c.$tag$="slot",l[5]?o["s-sn"]=c.$name$=l[5]:o["s-sn"]="",o["s-sr"]=!0,O&&r&&(c.$elm$=Te.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),o.parentNode.insertBefore(c.$elm$,o),o.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),n.push(c),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c):"r"===a&&(O&&r?o.remove():te&&(i["s-cr"]=o,o["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=Xe(null,o.textContent);t.$elm$=o,t.$index$="0",e.$children$=[t]}},Bt=(e,t)=>{if(1===e.nodeType){let n=0;for(;n{const i=Qt(e),o=Z?i.$hostElement$:e,s=i.$instanceValues$.get(t),a=i.$flags$,l=Z?i.$lazyInstance$:o;var c,u;if(c=n,u=r.$members$[t][0],n=null==c||Ye(c)?c:oe&&4&u?"false"!==c&&(""===c||!!c):se&&2&u?parseFloat(c):ae&&1&u?String(c):c,!(Z&&8&a&&void 0!==s||n===s)&&(i.$instanceValues$.set(t,n),G&&(1024&i.$flags$?rn(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",o,"\nNew value",n,"\nOld value",s):2048&i.$flags$&&rn(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",o,"\nNew value",n,"\nOld value",s)),!Z||l)){if(z&&r.$watchers$&&128&a){const e=r.$watchers$[t];e&&e.map((e=>{try{l[e](n,s,t)}catch(e){en(e,o)}}))}if(j&&2==(18&a)){if(ue&&l.componentShouldUpdate&&!1===l.componentShouldUpdate(n,s,t))return;Ct(i,!1)}}},Vt=(e,t,n)=>{if(y&&t.$members$){z&&e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),i=e.prototype;if(r.map((([e,[r]])=>{(S||T)&&(31&r||(!Z||2&n)&&32&r)?Object.defineProperty(i,e,{get(){return t=e,Qt(this).$instanceValues$.get(t);var t},set(i){if(G){const i=Qt(this);0==(1&n)&&0==(8&i.$flags$)&&0!=(31&r)&&0==(1024&r)&&rn(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)}Ht(this,e,i,t)},configurable:!0,enumerable:!0}):Z&&b&&1&n&&64&r&&Object.defineProperty(i,e,{value(...t){const n=Qt(this);return n.$onInstancePromise$.then((()=>n.$lazyInstance$[e](...t)))}})})),_&&(!Z||1&n)){const n=new Map;i.attributeChangedCallback=function(e,t,r){Pe.jmp((()=>{const t=n.get(e);this.hasOwnProperty(t)&&(r=this[t],delete this[t]),this[t]=(null!==r||"boolean"!=typeof this[t])&&r}))},e.observedAttributes=r.filter((([e,t])=>15&t[0])).map((([e,r])=>{const i=r[1]||e;return n.set(i,e),x&&512&r[0]&&t.$attrsToReflect$.push([e,i]),i}))}}return e},qt=async(e,t,r,i,o)=>{if((Z||Y||P)&&0==(32&t.$flags$)){if(Z||Q){if(t.$flags$|=32,(o=sn(r,t,i)).then){const e=(s=`st:load:${r.$tagName$}:${t.$modeName$}`,a=`[Stencil] Load module for <${r.$tagName$}>`,ee&&performance.mark?(0===performance.getEntriesByName(s).length&&performance.mark(s),()=>{0===performance.getEntriesByName(a).length&&performance.measure(a,s)}):()=>{});o=await o,e()}if((G||K)&&!o)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);y&&!o.isProxied&&(z&&(r.$watchers$=o.watchers),Vt(o,r,2),o.isProxied=!0);const e=Ve("createInstance",r.$tagName$);y&&(t.$flags$|=8);try{new o(t)}catch(e){en(e)}y&&(t.$flags$&=-9),z&&(t.$flags$|=128),e(),zt(t.$lazyInstance$)}else o=e.constructor,t.$flags$|=32,customElements.whenDefined(r.$tagName$).then((()=>t.$flags$|=128));if(P&&o.style){let i=o.style;w&&"string"!=typeof i&&(i=i[t.$modeName$=Ge(e)],Y&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));const s=Ke(r,t.$modeName$);if(!an.has(s)){const e=Ve("registerStyles",r.$tagName$);!Y&&O&&ie&&8&r.$flags$&&(i=await Promise.resolve().then(n.bind(n,351)).then((e=>e.scopeCss(i,s,!1)))),ze(s,i,!!(1&r.$flags$)),e()}}}var s,a;const l=t.$ancestorComponent$,c=()=>Ct(t,!0);pe&&l&&l["s-rc"]?l["s-rc"].push(c):c()},zt=e=>{Z&&c&&Lt(e,"connectedCallback")},Ut=e=>{if(0==(1&Pe.$flags$)){const t=Qt(e),n=t.$cmpMeta$,r=Ve("connectedCallback",n.$tagName$);if(v&&Le(e,t,n.$listeners$,!0),1&t.$flags$)Le(e,t,n.$listeners$,!1),zt(t.$lazyInstance$);else{let r;if(t.$flags$|=1,Q&&(r=e.getAttribute(Re),r)){if(O&&Ae&&1&n.$flags$){const t=w?Ue(e.shadowRoot,n,e.getAttribute("s-mode")):Ue(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}((e,t,n,r)=>{const i=Ve("hydrateClient",t),o=e.shadowRoot,s=[],a=O&&o?[]:null,l=r.$vnode$=Xe(t,null);Pe.$orgLocNodes$||Bt(Te.body,Pe.$orgLocNodes$=new Map),e[Re]=n,e.removeAttribute(Re),Ft(l,s,[],a,e,e,n),s.map((e=>{const n=e.$hostId$+"."+e.$nodeId$,r=Pe.$orgLocNodes$.get(n),i=e.$elm$;r&&Ae&&""===r["s-en"]&&r.parentNode.insertBefore(i,r.nextSibling),o||(i["s-hn"]=t,r&&(i["s-ol"]=r,i["s-ol"]["s-nr"]=i)),Pe.$orgLocNodes$.delete(n)})),O&&o&&a.map((e=>{e&&o.appendChild(e)})),i()})(e,n.$tagName$,r,t)}if(te&&!r&&(Y||(E||O)&&12&n.$flags$)&&Wt(e),pe){let n=e;for(;n=n.parentNode||n.host;)if(Q&&1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Et(t,t.$ancestorComponent$=n);break}}S&&!Y&&n.$members$&&Object.entries(n.$members$).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),de?vn((()=>qt(e,t,n))):qt(e,t,n)}r()}},Wt=e=>{const t=e["s-cr"]=Te.createComment(K?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Kt=e=>{if(0==(1&Pe.$flags$)){const t=Qt(e),n=Z?t.$lazyInstance$:e;p&&t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0),le&&Pe.$cssShim$&&Pe.$cssShim$.removeHost(e),Z&&u&&Lt(n,"disconnectedCallback"),r&&Lt(n,"componentDidUnload")}},Gt=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};y&&(n.$members$=t[2]),p&&(n.$listeners$=t[3]),z&&(n.$watchers$=e.$watchers$),x&&(n.$attrsToReflect$=[]),O&&!Ae&&1&n.$flags$&&(n.$flags$|=8);const r=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){Xt(this,n)},connectedCallback(){Ut(this),c&&r&&r.call(this)},disconnectedCallback(){Kt(this),u&&i&&i.call(this)}}),e.is=n.$tagName$,Vt(e,n,3)},Jt=e=>{Ae?e.attachShadow({mode:"open"}):e.shadowRoot=e},Yt=new WeakMap,Qt=e=>Yt.get(e),Xt=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return G&&(n.$renderCount$=0),b&&Z&&(n.$onInstancePromise$=new Promise((e=>n.$onInstanceResolve$=e))),pe&&(n.$onReadyPromise$=new Promise((e=>n.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[]),Le(e,n,t.$listeners$,!1),Yt.set(e,n)},Zt=(e,t)=>t in e,en=(e,t)=>(be||console.error)(e,t),tn=J?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],nn=(...e)=>console.error(...tn,...e),rn=(...e)=>console.warn(...tn,...e),on=new Map,sn=(e,t,r)=>{const i=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$;if(G&&"string"!=typeof o)return void nn(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);const s=!W&&on.get(o);return s?s[i]:n(263)(`./${o}.entry.js${W&&r?"?s-hmr="+r:""}`).then((e=>(W||on.set(o,e),e[i])),en)},an=new Map,ln=[],cn=[],un=[],dn=[],pn=(e,t)=>n=>{e.push(n),Ee||(Ee=!0,t&&4&Pe.$flags$?vn(mn):Pe.raf(mn))},fn=e=>{for(let t=0;t{let n=0,r=0;for(;n{if(fe&&$e++,fn(cn),fe){const e=2==(6&Pe.$flags$)?performance.now()+14*Math.ceil(.1*$e):1/0;hn(un,e),hn(dn,e),un.length>0&&(dn.push(...un),un.length=0),(Ee=cn.length+un.length+dn.length>0)?Pe.raf(mn):$e=0}else fn(un),(Ee=cn.length>0)&&Pe.raf(mn)},vn=e=>(e=>Promise.resolve(e))().then(e),gn=pn(un,!0);var yn,bn=new Uint8Array(16);function wn(){if(!yn&&!(yn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yn(bn)}const _n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Sn(e){return"string"==typeof e&&_n.test(e)}for(var xn=[],kn=0;kn<256;++kn)xn.push((kn+256).toString(16).substr(1));function On(e,t,n){var r=(e=e||{}).random||(e.rng||wn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(xn[e[t+0]]+xn[e[t+1]]+xn[e[t+2]]+xn[e[t+3]]+"-"+xn[e[t+4]]+xn[e[t+5]]+"-"+xn[e[t+6]]+xn[e[t+7]]+"-"+xn[e[t+8]]+xn[e[t+9]]+"-"+xn[e[t+10]]+xn[e[t+11]]+xn[e[t+12]]+xn[e[t+13]]+xn[e[t+14]]+xn[e[t+15]]).toLowerCase();if(!Sn(n))throw TypeError("Stringified UUID is invalid");return n}(r)}const $n={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};function En(e){let t=2166136261;const n=e.length;for(let r=0;r>>0}function Cn(e,t,n){return 2===n?En(En(e+t)+"")%1e4/1e4:1===n?En(t+e)%1e3/1e3:null}function Tn(e,t){return e>=t[0]&&e{r.push([e.searchParams.get(n)||"",t,!1])})),!r.some((e=>!function(e,t,n){try{let r=t.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");return n&&(r="\\/?"+r.replace(/(^\/|\/$)/g,"")+"\\/?"),new RegExp("^"+r+"$","i").test(e)}catch(e){return!1}}(e[0],e[1],e[2])))}catch(e){return!1}}function In(e,t,n){try{const r=new URL(e,"https://_");if("regex"===t){const e=Pn(n);return!!e&&(e.test(r.href)||e.test(r.href.substring(r.origin.length)))}return"simple"===t&&jn(r,n)}catch(e){return!1}}function Ln(e,t,n){(t=void 0===t?1:t)<0?t=0:t>1&&(t=1);const r=function(e){return e<=0?[]:new Array(e).fill(1/e)}(e);(n=n||r).length!==e&&(n=r);const i=n.reduce(((e,t)=>t+e),0);(i<.99||i>1.01)&&(n=r);let o=0;return n.map((e=>{const n=o;return o+=e,[n,n+t*e]}))}const Dn=e=>Uint8Array.from(atob(e),(e=>e.charCodeAt(0)));async function Mn(e,t,n){if(t=t||"",!(n=n||globalThis.crypto&&globalThis.crypto.subtle||$n.SubtleCrypto))throw new Error("No SubtleCrypto implementation found");try{const r=await n.importKey("raw",Dn(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[i,o]=e.split("."),s=await n.decrypt({name:"AES-CBC",iv:Dn(i)},r,Dn(o));return(new TextDecoder).decode(s)}catch(e){throw new Error("Failed to decrypt")}}function Nn(e){return"string"==typeof e?e:JSON.stringify(e)}function Rn(e){"number"==typeof e&&(e+=""),e&&"string"==typeof e||(e="0");const t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return 3===t.length&&t.push("~"),t.map((e=>e.match(/^[0-9]+$/)?e.padStart(5," "):e)).join("-")}function Fn(e){return"object"==typeof e&&null!==e}function Bn(e){return e.urlPatterns&&e.variations.some((e=>Fn(e)&&"urlRedirect"in e))?"redirect":e.variations.some((e=>Fn(e)&&(e.domMutations||"js"in e||"css"in e)))?"visual":"unknown"}async function Hn(e,t){return new Promise((n=>{let r,i=!1;const o=e=>{i||(i=!0,r&&clearTimeout(r),n(e||null))};t&&(r=setTimeout((()=>o()),t)),e.then((e=>o(e))).catch((()=>o()))}))}const Vn={staleTTL:6e4,maxAge:144e5,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:2e4,disableCache:!1},qn=$n,zn={fetchFeaturesCall:e=>{let{host:t,clientKey:n,headers:r}=e;return qn.fetch("".concat(t,"/api/features/").concat(n),{headers:r})},fetchRemoteEvalCall:e=>{let{host:t,clientKey:n,payload:r,headers:i}=e;const o={method:"POST",headers:{"Content-Type":"application/json",...i},body:JSON.stringify(r)};return qn.fetch("".concat(t,"/api/eval/").concat(n),o)},eventSourceCall:e=>{let{host:t,clientKey:n,headers:r}=e;return r?new qn.EventSource("".concat(t,"/sub/").concat(n),{headers:r}):new qn.EventSource("".concat(t,"/sub/").concat(n))},startIdleListener:()=>{let e;if(!("undefined"!=typeof window&&"undefined"!=typeof document))return;const t=()=>{"visible"===document.visibilityState?(window.clearTimeout(e),Jn.forEach((e=>{e&&"idle"===e.state&&ur(e)}))):"hidden"===document.visibilityState&&(e=window.setTimeout(er,Vn.idleStreamInterval))};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(qn.localStorage=globalThis.localStorage)}catch(Di){}const Un=new Map;let Wn=!1;const Kn=new Map,Gn=new Map,Jn=new Map,Yn=new Set;function Qn(e){Object.assign(Vn,e),Vn.backgroundSync||(Yn.clear(),Jn.forEach(dr),Un.clear(),zn.stopIdleListener())}async function Xn(e){let{instance:t,timeout:n,skipCache:r,allowStale:i,backgroundSync:o}=e;return o||(Vn.backgroundSync=!1),async function(e){let{instance:t,allowStale:n,timeout:r,skipCache:i}=e;const o=nr(t),s=rr(t),a=new Date,l=new Date(a.getTime()-Vn.maxAge+Vn.staleTTL);await async function(){if(Wn)return;Wn=!0;try{if(qn.localStorage){const e=await qn.localStorage.getItem(Vn.cacheKey);if(!Vn.disableCache&&e){const t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach((e=>{let[t,n]=e;Kn.set(t,{...n,staleAt:new Date(n.staleAt)})})),ir()}}}catch(e){}if(!Vn.disableIdleStreams){const e=zn.startIdleListener();e&&(zn.stopIdleListener=e)}}();const c=Vn.disableCache||i?void 0:Kn.get(s);if(c&&(n||c.staleAt>a)&&c.staleAt>l)return c.sse&&Yn.add(o),c.staleAt{e&&(e.state="idle",cr(e))}))}async function tr(){try{if(!qn.localStorage)return;await qn.localStorage.setItem(Vn.cacheKey,JSON.stringify(Array.from(Kn.entries())))}catch(e){}}function nr(e){const[t,n]=e.getApiInfo();return"".concat(t,"||").concat(n)}function rr(e){const t=nr(e);if(!e.isRemoteEval())return t;const n=e.getAttributes(),r=e.getCacheKeyAttributes()||Object.keys(e.getAttributes()),i={};r.forEach((e=>{i[e]=n[e]}));const o=e.getForcedVariations(),s=e.getUrl();return"".concat(t,"||").concat(JSON.stringify({ca:i,fv:o,url:s}))}function ir(){const e=Array.from(Kn.entries()).map((e=>{let[t,n]=e;return{key:t,staleAt:n.staleAt.getTime()}})).sort(((e,t)=>e.staleAt-t.staleAt)),t=Math.min(Math.max(0,Kn.size-Vn.maxEntries),Kn.size);for(let n=0;nasync function(e,t){await e.setPayload(t||e.getPayload())}(e,n)))}async function sr(e){const{apiHost:t,apiRequestHeaders:n}=e.getApiHosts(),r=e.getClientKey(),i=e.isRemoteEval(),o=nr(e),s=rr(e);let a=Gn.get(s);if(!a){a=(i?zn.fetchRemoteEvalCall({host:t,clientKey:r,payload:{attributes:e.getAttributes(),forcedVariations:e.getForcedVariations(),forcedFeatures:Array.from(e.getForcedFeatures().entries()),url:e.getUrl()},headers:n}):zn.fetchFeaturesCall({host:t,clientKey:r,headers:n})).then((e=>{if(!e.ok)throw new Error("HTTP error: ".concat(e.status));return"enabled"===e.headers.get("x-sse-support")&&Yn.add(o),e.json()})).then((t=>(or(o,s,t),ar(e),Gn.delete(s),{data:t,success:!0,source:"network"}))).catch((e=>(Gn.delete(s),{data:null,source:"error",success:!1,error:e}))),Gn.set(s,a)}return a}function ar(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=nr(e),r=rr(e),{streamingHost:i,streamingHostRequestHeaders:o}=e.getApiHosts(),s=e.getClientKey();if(t&&Yn.add(n),Vn.backgroundSync&&Yn.has(n)&&qn.EventSource){if(Jn.has(n))return;const e={src:null,host:i,clientKey:s,headers:o,cb:t=>{try{if("features-updated"===t.type){const e=Un.get(n);e&&e.forEach((e=>{sr(e)}))}else if("features"===t.type){const e=JSON.parse(t.data);or(n,r,e)}e.errors=0}catch(t){lr(e)}},errors:0,state:"active"};Jn.set(n,e),ur(e)}}function lr(e){if("idle"!==e.state&&(e.errors++,e.errors>3||e.src&&2===e.src.readyState)){const t=Math.pow(3,e.errors-3)*(1e3+1e3*Math.random());cr(e),setTimeout((()=>{["idle","active"].includes(e.state)||ur(e)}),Math.min(t,3e5))}}function cr(e){e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null,"active"===e.state&&(e.state="disabled"))}function ur(e){e.src=zn.eventSourceCall({host:e.host,clientKey:e.clientKey,headers:e.headers}),e.state="active",e.src.addEventListener("features",e.cb),e.src.addEventListener("features-updated",e.cb),e.src.onerror=()=>lr(e),e.src.onopen=()=>{e.errors=0}}function dr(e,t){cr(e),Jn.delete(t)}var pr=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,fr={revert:function(){}},hr=new Map,mr=new Set;function vr(e){var t=hr.get(e);return t||(t={element:e,attributes:{}},hr.set(e,t)),t}function gr(e,t,n,r,i){var o=n(e),s={isDirty:!1,originalValue:o,virtualValue:o,mutations:[],el:e,_positionTimeout:null,observer:new MutationObserver((function(){if("position"!==t||!s._positionTimeout){"position"===t&&(s._positionTimeout=setTimeout((function(){s._positionTimeout=null}),1e3));var r=n(e);"position"===t&&r.parentNode===s.virtualValue.parentNode&&r.insertBeforeNode===s.virtualValue.insertBeforeNode||r!==s.virtualValue&&(s.originalValue=r,i(s))}})),mutationRunner:i,setValue:r,getCurrentValue:n};return"position"===t&&e.parentNode?s.observer.observe(e.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):s.observer.observe(e,function(e){return"html"===e?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[e]}}(t)),s}function yr(e,t){var n=t.getCurrentValue(t.el);t.virtualValue=e,e&&"string"!=typeof e?n&&e.parentNode===n.parentNode&&e.insertBeforeNode===n.insertBeforeNode||(t.isDirty=!0,Nr()):e!==n&&(t.isDirty=!0,Nr())}function br(e){var t=e.originalValue;e.mutations.forEach((function(e){return t=e.mutate(t)})),yr(function(e){jr||(jr=document.createElement("div"));return jr.innerHTML=e,jr.innerHTML}(t),e)}function wr(e){var t=new Set(e.originalValue.split(/\s+/).filter(Boolean));e.mutations.forEach((function(e){return e.mutate(t)})),yr(Array.from(t).filter(Boolean).join(" "),e)}function _r(e){var t=e.originalValue;e.mutations.forEach((function(e){return t=e.mutate(t)})),yr(t,e)}function Sr(e){var t=e.originalValue;e.mutations.forEach((function(e){var n=function(e){var t=e.parentSelector,n=e.insertBeforeSelector,r=document.querySelector(t);if(!r)return null;var i=n?document.querySelector(n):null;return n&&!i?null:{parentNode:r,insertBeforeNode:i}}(e.mutate());t=n||t})),yr(t,e)}var xr=function(e){return e.innerHTML},kr=function(e,t){return e.innerHTML=t};function Or(e){var t=vr(e);return t.html||(t.html=gr(e,"html",xr,kr,br)),t.html}var $r=function(e){return{parentNode:e.parentElement,insertBeforeNode:e.nextElementSibling}},Er=function(e,t){t.insertBeforeNode&&!t.parentNode.contains(t.insertBeforeNode)||t.parentNode.insertBefore(e,t.insertBeforeNode)};function Cr(e){var t=vr(e);return t.position||(t.position=gr(e,"position",$r,Er,Sr)),t.position}var Tr=function(e,t){return t?e.className=t:e.removeAttribute("class")},Pr=function(e){return e.className};function Ar(e){var t=vr(e);return t.classes||(t.classes=gr(e,"class",Pr,Tr,wr)),t.classes}var jr,Ir;function Lr(e,t){var n,r=vr(e);return r.attributes[t]||(r.attributes[t]=gr(e,t,(n=t,function(e){var t;return null!=(t=e.getAttribute(n))?t:null}),function(e){return function(t,n){return null!==n?t.setAttribute(e,n):t.removeAttribute(e)}}(t),_r)),r.attributes[t]}function Dr(e,t,n){if(n.isDirty){n.isDirty=!1;var r=n.virtualValue;n.mutations.length||function(e,t){var n,r,i=hr.get(e);if(i)if("html"===t)null==(n=i.html)||null==(r=n.observer)||r.disconnect(),delete i.html;else if("class"===t){var o,s;null==(o=i.classes)||null==(s=o.observer)||s.disconnect(),delete i.classes}else if("position"===t){var a,l;null==(a=i.position)||null==(l=a.observer)||l.disconnect(),delete i.position}else{var c,u,d;null==(c=i.attributes)||null==(u=c[t])||null==(d=u.observer)||d.disconnect(),delete i.attributes[t]}}(e,t),n.setValue(e,r)}}function Mr(e,t){e.html&&Dr(t,"html",e.html),e.classes&&Dr(t,"class",e.classes),e.position&&Dr(t,"position",e.position),Object.keys(e.attributes).forEach((function(n){Dr(t,n,e.attributes[n])}))}function Nr(){hr.forEach(Mr)}function Rr(e){if("position"!==e.kind||1!==e.elements.size){var t=new Set(e.elements);document.querySelectorAll(e.selector).forEach((function(n){t.has(n)||(e.elements.add(n),function(e,t){var n=null;"html"===e.kind?n=Or(t):"class"===e.kind?n=Ar(t):"attribute"===e.kind?n=Lr(t,e.attribute):"position"===e.kind&&(n=Cr(t)),n&&(n.mutations.push(e),n.mutationRunner(n))}(e,n))}))}}function Fr(e){e.elements.forEach((function(t){return function(e,t){var n=null;if("html"===e.kind?n=Or(t):"class"===e.kind?n=Ar(t):"attribute"===e.kind?n=Lr(t,e.attribute):"position"===e.kind&&(n=Cr(t)),n){var r=n.mutations.indexOf(e);-1!==r&&n.mutations.splice(r,1),n.mutationRunner(n)}}(e,t)})),e.elements.clear(),mr.delete(e)}function Br(){mr.forEach(Rr)}function Hr(e){return"undefined"==typeof document?fr:(mr.add(e),Rr(e),{revert:function(){Fr(e)}})}function Vr(e,t){return Hr({kind:"html",elements:new Set,mutate:t,selector:e})}function qr(e,t){return Hr({kind:"position",elements:new Set,mutate:t,selector:e})}function zr(e,t){return Hr({kind:"class",elements:new Set,mutate:t,selector:e})}function Ur(e,t,n){return pr.test(t)?"class"===t||"className"===t?zr(e,(function(e){var t=n(Array.from(e).join(" "));e.clear(),t&&t.split(/\s+/g).filter(Boolean).forEach((function(t){return e.add(t)}))})):Hr({kind:"attribute",attribute:t,elements:new Set,mutate:n,selector:e}):fr}"undefined"!=typeof document&&(Ir||(Ir=new MutationObserver((function(){Br()}))),Br(),Ir.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}));var Wr={html:Vr,classes:zr,attribute:Ur,position:qr,declarative:function(e){var t=e.selector,n=e.action,r=e.value,i=e.attribute,o=e.parentSelector,s=e.insertBeforeSelector;if("html"===i){if("append"===n)return Vr(t,(function(e){return e+(null!=r?r:"")}));if("set"===n)return Vr(t,(function(){return null!=r?r:""}))}else if("class"===i){if("append"===n)return zr(t,(function(e){r&&e.add(r)}));if("remove"===n)return zr(t,(function(e){r&&e.delete(r)}));if("set"===n)return zr(t,(function(e){e.clear(),r&&e.add(r)}))}else if("position"===i){if("set"===n&&o)return qr(t,(function(){return{insertBeforeSelector:s,parentSelector:o}}))}else{if("append"===n)return Ur(t,i,(function(e){return null!==e?e+(null!=r?r:""):null!=r?r:""}));if("set"===n)return Ur(t,i,(function(){return null!=r?r:""}));if("remove"===n)return Ur(t,i,(function(){return null}))}return fr}};const Kr={};function Gr(e,t,n){n=n||{};for(const[r,i]of Object.entries(t))switch(r){case"$or":if(!ei(e,i,n))return!1;break;case"$nor":if(ei(e,i,n))return!1;break;case"$and":if(!ti(e,i,n))return!1;break;case"$not":if(Gr(e,i,n))return!1;break;default:if(!Yr(i,Jr(e,r),n))return!1}return!0}function Jr(e,t){const n=t.split(".");let r=e;for(let e=0;e0&&t.filter((e=>"$"===e[0])).length===t.length}function Xr(e,t){return Array.isArray(e)?e.some((e=>t.includes(e))):t.includes(e)}function Zr(e,t,n,r){switch(e){case"$veq":return Rn(t)===Rn(n);case"$vne":return Rn(t)!==Rn(n);case"$vgt":return Rn(t)>Rn(n);case"$vgte":return Rn(t)>=Rn(n);case"$vlt":return Rn(t)n;case"$gte":return t>=n;case"$exists":return n?null!=t:null==t;case"$in":return!!Array.isArray(n)&&Xr(t,n);case"$inGroup":return Xr(t,r[n]||[]);case"$notInGroup":return!Xr(t,r[n]||[]);case"$nin":return!!Array.isArray(n)&&!Xr(t,n);case"$not":return!Yr(n,t,r);case"$size":return!!Array.isArray(t)&&Yr(n,t.length,r);case"$elemMatch":return function(e,t,n){if(!Array.isArray(e))return!1;const r=Qr(t)?e=>Yr(t,e,n):e=>Gr(e,t,n);for(let t=0;t{}))}this.ready&&this.refreshStickyBuckets(this.getPayload())}async setPayload(e){this._payload=e;const t=await this.decryptPayload(e);this._decryptedPayload=t,await this.refreshStickyBuckets(t),t.features&&(this._ctx.features=t.features),t.savedGroups&&(this._ctx.savedGroups=t.savedGroups),t.experiments&&(this._ctx.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,this._render()}initSync(e){this._initialized=!0;const t=e.payload;if(t.encryptedExperiments||t.encryptedFeatures)throw new Error("initSync does not support encrypted payloads");if(this._ctx.stickyBucketService&&!this._ctx.stickyBucketAssignmentDocs)throw new Error("initSync requires you to pass stickyBucketAssignmentDocs into the GrowthBook constructor");if(this._payload=t,this._decryptedPayload=t,t.features&&(this._ctx.features=t.features),t.experiments&&(this._ctx.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,e.streaming){if(!this._ctx.clientKey)throw new Error("Must specify clientKey to enable streaming");ar(this,!0),Zn(this)}return this}async init(e){if(this._initialized=!0,(e=e||{}).cacheSettings&&Qn(e.cacheSettings),e.payload){if(await this.setPayload(e.payload),e.streaming){if(!this._ctx.clientKey)throw new Error("Must specify clientKey to enable streaming");ar(this,!0),Zn(this)}return{success:!0,source:"init"}}{const{data:t,...n}=await this._refresh({...e,allowStale:!0});return e.streaming&&Zn(this),await this.setPayload(t||{}),n}}async loadFeatures(e){this._initialized=!0,(e=e||{}).autoRefresh&&(this._ctx.subscribeToChanges=!0);const{data:t}=await this._refresh({...e,allowStale:!0});await this.setPayload(t||{}),this._canSubscribe()&&Zn(this)}async refreshFeatures(e){const t=await this._refresh({...e||{},allowStale:!1});t.data&&await this.setPayload(t.data)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){const e=this._ctx.apiHost||"https://cdn.growthbook.io";return{apiHost:e.replace(/\/*$/,""),streamingHost:(this._ctx.streamingHost||e).replace(/\/*$/,""),apiRequestHeaders:this._ctx.apiHostRequestHeaders,streamingHostRequestHeaders:this._ctx.streamingHostRequestHeaders}}getClientKey(){return this._ctx.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}isRemoteEval(){return this._ctx.remoteEval||!1}getCacheKeyAttributes(){return this._ctx.cacheKeyAttributes}async _refresh(e){var t;let{timeout:n,skipCache:r,allowStale:i,streaming:o}=e;if(!this._ctx.clientKey)throw new Error("Missing clientKey");return Xn({instance:this,timeout:n,skipCache:r||this._ctx.disableCache,allowStale:i,backgroundSync:null===(t=null!=o?o:this._ctx.backgroundSync)||void 0===t||t})}_render(){if(this._renderer)try{this._renderer()}catch(e){console.error("Failed to render",e)}}setFeatures(e){this._ctx.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,t,n){const r=await Mn(e,t||this._ctx.decryptionKey,n);this.setFeatures(JSON.parse(r))}setExperiments(e){this._ctx.experiments=e,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(e,t,n){const r=await Mn(e,t||this._ctx.decryptionKey,n);this.setExperiments(JSON.parse(r))}async decryptPayload(e,t,n){if((e={...e}).encryptedFeatures){try{e.features=JSON.parse(await Mn(e.encryptedFeatures,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedFeatures}if(e.encryptedExperiments){try{e.experiments=JSON.parse(await Mn(e.encryptedExperiments,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedExperiments}if(e.encryptedSavedGroups){try{e.savedGroups=JSON.parse(await Mn(e.encryptedSavedGroups,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedSavedGroups}return e}async setAttributes(e){this._ctx.attributes=e,this._ctx.stickyBucketService&&await this.refreshStickyBuckets(),this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}async updateAttributes(e){return this.setAttributes({...this._ctx.attributes,...e})}async setAttributeOverrides(e){this._attributeOverrides=e,this._ctx.stickyBucketService&&await this.refreshStickyBuckets(),this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}async setForcedVariations(e){this._ctx.forcedVariations=e||{},this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}setForcedFeatures(e){this._forcedFeatureValues=e,this._render()}async setURL(e){if(e!==this._ctx.url){if(this._ctx.url=e,this._redirectedUrl="",this._ctx.remoteEval)return await this._refreshForRemoteEval(),void this._updateAllAutoExperiments(!0);this._updateAllAutoExperiments(!0)}}getAttributes(){return{...this._ctx.attributes,...this._attributeOverrides}}getForcedVariations(){return this._ctx.forcedVariations||{}}getForcedFeatures(){return this._forcedFeatureValues||new Map}getStickyBucketAssignmentDocs(){return this._ctx.stickyBucketAssignmentDocs||{}}getUrl(){return this._ctx.url||""}getFeatures(){return this._ctx.features||{}}getExperiments(){return this._ctx.experiments||[]}getCompletedChangeIds(){return Array.from(this._completedChangeIds)}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}_canSubscribe(){var e;return(null===(e=this._ctx.backgroundSync)||void 0===e||e)&&this._ctx.subscribeToChanges}async _refreshForRemoteEval(){if(!this._ctx.remoteEval)return;if(!this._initialized)return;const e=await this._refresh({allowStale:!1});e.data&&await this.setPayload(e.data)}getAllResults(){return new Map(this._assigned)}destroy(){var e;this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._completedChangeIds.clear(),this._deferredTrackingCalls.clear(),this._trackedFeatures={},this._rtQueue=[],this._payload=void 0,this._rtTimer&&clearTimeout(this._rtTimer),e=this,Un.forEach((t=>t.delete(e))),ni&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach((e=>{e.undo()})),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(e){this._renderer=e}forceVariation(e,t){this._ctx.forcedVariations=this._ctx.forcedVariations||{},this._ctx.forcedVariations[e]=t,this._ctx.remoteEval?this._refreshForRemoteEval():(this._updateAllAutoExperiments(),this._render())}run(e){const{result:t}=this._run(e,null);return this._fireSubscriptions(e,t),t}triggerExperiment(e){if(this._triggeredExpKeys.add(e),!this._ctx.experiments)return null;return this._ctx.experiments.filter((t=>t.key===e)).map((e=>this._runAutoExperiment(e))).filter((e=>null!==e))}triggerAutoExperiments(){this._autoExperimentsAllowed=!0,this._updateAllAutoExperiments(!0)}_runAutoExperiment(e,t){const n=this._activeAutoExperiments.get(e);if(e.manual&&!this._triggeredExpKeys.has(e.key)&&!n)return null;let r,i;this._isAutoExperimentBlockedByContext(e)?r=this._getResult(e,-1,!1,""):(({result:r,trackingCall:i}=this._run(e,null)),this._fireSubscriptions(e,r));const o=JSON.stringify(r.value);if(!t&&r.inExperiment&&n&&n.valueHash===o)return r;if(n&&this._undoActiveAutoExperiment(e),r.inExperiment){const t=Bn(e);if("redirect"===t&&r.value.urlRedirect&&e.urlPatterns){const t=e.persistQueryString?function(e,t){let n,r;try{n=new URL(e),r=new URL(t)}catch(e){return console.error("Unable to merge query strings: ".concat(e)),t}return n.searchParams.forEach(((e,t)=>{r.searchParams.has(t)||r.searchParams.set(t,e)})),r.toString()}(this._getContextUrl(),r.value.urlRedirect):r.value.urlRedirect;if(An(t,e.urlPatterns))return this.log("Skipping redirect because original URL matches redirect URL",{id:e.key}),r;this._redirectedUrl=t;const{navigate:n,delay:o}=this._getNavigateFunction();var s;if(n)if(ni)Promise.all([...i?[Hn(i,null!==(s=this._ctx.maxNavigateDelay)&&void 0!==s?s:1e3)]:[],new Promise((e=>{var t;return window.setTimeout(e,null!==(t=this._ctx.navigateDelay)&&void 0!==t?t:o)}))]).then((()=>{try{n(t)}catch(e){console.error(e)}}));else try{n(t)}catch(e){console.error(e)}}else if("visual"===t){const t=this._ctx.applyDomChangesCallback?this._ctx.applyDomChangesCallback(r.value):this._applyDOMChanges(r.value);t&&this._activeAutoExperiments.set(e,{undo:t,valueHash:o})}}return r}_undoActiveAutoExperiment(e){const t=this._activeAutoExperiments.get(e);t&&(t.undo(),this._activeAutoExperiments.delete(e))}_updateAllAutoExperiments(e){if(!this._autoExperimentsAllowed)return;const t=this._ctx.experiments||[],n=new Set(t);this._activeAutoExperiments.forEach(((e,t)=>{n.has(t)||(e.undo(),this._activeAutoExperiments.delete(t))}));for(const n of t){const t=this._runAutoExperiment(n,e);if(null!=t&&t.inExperiment&&"redirect"===Bn(n))break}}_fireSubscriptions(e,t){const n=e.key,r=this._assigned.get(n);r&&r.result.inExperiment===t.inExperiment&&r.result.variationId===t.variationId||(this._assigned.set(n,{experiment:e,result:t}),this._subscriptions.forEach((n=>{try{n(e,t)}catch(e){console.error(e)}})))}_trackFeatureUsage(e,t){if("override"===t.source)return;const n=JSON.stringify(t.value);if(this._trackedFeatures[e]!==n){if(this._trackedFeatures[e]=n,this._ctx.onFeatureUsage)try{this._ctx.onFeatureUsage(e,t)}catch(e){}ni&&window.fetch&&(this._rtQueue.push({key:e,on:t.on}),this._rtTimer||(this._rtTimer=window.setTimeout((()=>{this._rtTimer=0;const e=[...this._rtQueue];this._rtQueue=[],this._ctx.realtimeKey&&window.fetch("https://rt.growthbook.io/?key=".concat(this._ctx.realtimeKey,"&events=").concat(encodeURIComponent(JSON.stringify(e))),{cache:"no-cache",mode:"no-cors"}).catch((()=>{}))}),this._ctx.realtimeInterval||2e3)))}}_getFeatureResult(e,t,n,r,i,o){const s={value:t,on:!!t,off:!t,source:n,ruleId:r||""};return i&&(s.experiment=i),o&&(s.experimentResult=o),this._trackFeatureUsage(e,s),s}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,t){const n=this.evalFeature(e).value;return null===n?t:n}feature(e){return this.evalFeature(e)}evalFeature(e){return this._evalFeature(e)}_evalFeature(e,t){if((t=t||{evaluatedFeatures:new Set}).evaluatedFeatures.has(e))return this._getFeatureResult(e,null,"cyclicPrerequisite");if(t.evaluatedFeatures.add(e),t.id=e,this._forcedFeatureValues.has(e))return this._getFeatureResult(e,this._forcedFeatureValues.get(e),"override");if(!this._ctx.features||!this._ctx.features[e])return this._getFeatureResult(e,null,"unknownFeature");const n=this._ctx.features[e];if(n.rules)e:for(const r of n.rules){if(r.parentConditions)for(const n of r.parentConditions){const r=this._evalFeature(n.id,t);if("cyclicPrerequisite"===r.source)return this._getFeatureResult(e,null,"cyclicPrerequisite");if(!Gr({value:r.value},n.condition||{})){if(n.gate)return this._getFeatureResult(e,null,"prerequisite");continue e}}if(r.filters&&this._isFilteredOut(r.filters))continue;if("force"in r){if(r.condition&&!this._conditionPasses(r.condition))continue;if(!this._isIncludedInRollout(r.seed||e,r.hashAttribute,this._ctx.stickyBucketService&&!r.disableStickyBucketing?r.fallbackAttribute:void 0,r.range,r.coverage,r.hashVersion))continue;return r.tracks&&r.tracks.forEach((e=>{this._track(e.experiment,e.result)})),this._getFeatureResult(e,r.force,"force",r.id)}if(!r.variations)continue;const n={variations:r.variations,key:r.key||e};"coverage"in r&&(n.coverage=r.coverage),r.weights&&(n.weights=r.weights),r.hashAttribute&&(n.hashAttribute=r.hashAttribute),r.fallbackAttribute&&(n.fallbackAttribute=r.fallbackAttribute),r.disableStickyBucketing&&(n.disableStickyBucketing=r.disableStickyBucketing),void 0!==r.bucketVersion&&(n.bucketVersion=r.bucketVersion),void 0!==r.minBucketVersion&&(n.minBucketVersion=r.minBucketVersion),r.namespace&&(n.namespace=r.namespace),r.meta&&(n.meta=r.meta),r.ranges&&(n.ranges=r.ranges),r.name&&(n.name=r.name),r.phase&&(n.phase=r.phase),r.seed&&(n.seed=r.seed),r.hashVersion&&(n.hashVersion=r.hashVersion),r.filters&&(n.filters=r.filters),r.condition&&(n.condition=r.condition);const{result:i}=this._run(n,e);if(this._fireSubscriptions(n,i),i.inExperiment&&!i.passthrough)return this._getFeatureResult(e,i.value,"experiment",r.id,n,i)}return this._getFeatureResult(e,void 0===n.defaultValue?null:n.defaultValue,"defaultValue")}_isIncludedInRollout(e,t,n,r,i,o){if(!r&&void 0===i)return!0;if(!r&&0===i)return!1;const{hashValue:s}=this._getHashAttribute(t,n);if(!s)return!1;const a=Cn(e,s,o||1);return null!==a&&(r?Tn(a,r):void 0===i||a<=i)}_conditionPasses(e){return Gr(this.getAttributes(),e,this._ctx.savedGroups||{})}_isFilteredOut(e){return e.some((e=>{const{hashValue:t}=this._getHashAttribute(e.attribute);if(!t)return!0;const n=Cn(e.seed,t,e.hashVersion||2);return null===n||!e.ranges.some((e=>Tn(n,e)))}))}_run(e,t){const n=e.key,r=e.variations.length;if(r<2)return{result:this._getResult(e,-1,!1,t)};if(!1===this._ctx.enabled)return{result:this._getResult(e,-1,!1,t)};if((e=this._mergeOverrides(e)).urlPatterns&&!An(this._getContextUrl(),e.urlPatterns))return{result:this._getResult(e,-1,!1,t)};const i=function(e,t,n){if(!t)return null;const r=t.split("?")[1];if(!r)return null;const i=r.replace(/#.*/,"").split("&").map((e=>e.split("=",2))).filter((t=>{let[n]=t;return n===e})).map((e=>{let[,t]=e;return parseInt(t)}));return i.length>0&&i[0]>=0&&i[0]=0,a=t,c=!!n}if(!l){if(e.filters){if(this._isFilteredOut(e.filters))return{result:this._getResult(e,-1,!1,t)}}else if(e.namespace&&!function(e,t){const n=Cn("__"+t[0],e,1);return null!==n&&n>=t[1]&&ne&&e.experiment&&e.result)).map((e=>[this._getTrackKey(e.experiment,e.result),e])))}async fireDeferredTrackingCalls(){if(!this._ctx.trackingCallback)return;const e=[];this._deferredTrackingCalls.forEach((t=>{t&&t.experiment&&t.result?e.push(this._track(t.experiment,t.result)):console.error("Invalid deferred tracking call",{call:t})})),this._deferredTrackingCalls.clear(),await Promise.all(e)}setTrackingCallback(e){this._ctx.trackingCallback=e,this.fireDeferredTrackingCalls()}_getTrackKey(e,t){return t.hashAttribute+t.hashValue+e.key+t.variationId}async _track(e,t){const n=this._getTrackKey(e,t);if(this._ctx.trackingCallback){if(!this._trackedExperiments.has(n)){this._trackedExperiments.add(n);try{await this._ctx.trackingCallback(e,t)}catch(e){console.error(e)}}}else this._deferredTrackingCalls.has(n)||this._deferredTrackingCalls.set(n,{experiment:e,result:t})}_mergeOverrides(e){const t=e.key,n=this._ctx.overrides;return n&&n[t]&&"string"==typeof(e=Object.assign({},e,n[t])).url&&(e.url=Pn(e.url)),e}_getHashAttribute(e,t){let n=e||"id",r="";return this._attributeOverrides[n]?r=this._attributeOverrides[n]:this._ctx.attributes?r=this._ctx.attributes[n]||"":this._ctx.user&&(r=this._ctx.user[n]||""),!r&&t&&(this._attributeOverrides[t]?r=this._attributeOverrides[t]:this._ctx.attributes?r=this._ctx.attributes[t]||"":this._ctx.user&&(r=this._ctx.user[t]||""),r&&(n=t)),{hashAttribute:n,hashValue:r}}_getResult(e,t,n,r,i,o){let s=!0;(t<0||t>=e.variations.length)&&(t=0,s=!1);const{hashAttribute:a,hashValue:l}=this._getHashAttribute(e.hashAttribute,this._ctx.stickyBucketService&&!e.disableStickyBucketing?e.fallbackAttribute:void 0),c=e.meta?e.meta[t]:{},u={key:c.key||""+t,featureId:r,inExperiment:s,hashUsed:n,variationId:t,value:e.variations[t],hashAttribute:a,hashValue:l,stickyBucketUsed:!!o};return c.name&&(u.name=c.name),void 0!==i&&(u.bucket=i),c.passthrough&&(u.passthrough=c.passthrough),u}_getContextUrl(){return this._ctx.url||(ni?window.location.href:"")}_urlIsValid(e){const t=this._getContextUrl();if(!t)return!1;const n=t.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!e.test(t)||!!e.test(n)}_hasGroupOverlap(e){const t=this._ctx.groups||{};for(let n=0;ne.js)))return!0}else{if("redirect"!==t)return!0;if(this._ctx.disableUrlRedirectExperiments)return!0;try{const t=new URL(this._getContextUrl());for(const n of e.variations){if(!n||!n.urlRedirect)continue;const e=new URL(n.urlRedirect);if(this._ctx.disableCrossOriginUrlRedirectExperiments){if(e.protocol!==t.protocol)return!0;if(e.host!==t.host)return!0}}}catch(t){return this.log("Error parsing current or redirect URL",{id:e.key,error:t}),!0}}return!(!e.changeId||!(this._ctx.blockedChangeIds||[]).includes(e.changeId))}getRedirectUrl(){return this._redirectedUrl}_getNavigateFunction(){return this._ctx.navigate?{navigate:this._ctx.navigate,delay:0}:ni?{navigate:e=>{window.location.replace(e)},delay:100}:{navigate:null,delay:0}}_applyDOMChanges(e){if(!ni)return;const t=[];if(e.css){const n=document.createElement("style");n.innerHTML=e.css,document.head.appendChild(n),t.push((()=>n.remove()))}if(e.js){const n=document.createElement("script");n.innerHTML=e.js,this._ctx.jsInjectionNonce&&(n.nonce=this._ctx.jsInjectionNonce),document.head.appendChild(n),t.push((()=>n.remove()))}return e.domMutations&&e.domMutations.forEach((e=>{t.push(Wr.declarative(e).revert)})),()=>{t.forEach((e=>e()))}}_deriveStickyBucketIdentifierAttributes(e){const t=new Set,n=e&&e.features?e.features:this.getFeatures(),r=e&&e.experiments?e.experiments:this.getExperiments();return Object.keys(n).forEach((e=>{const r=n[e];if(r.rules)for(const e of r.rules)e.variations&&(t.add(e.hashAttribute||"id"),e.fallbackAttribute&&t.add(e.fallbackAttribute))})),r.map((e=>{t.add(e.hashAttribute||"id"),e.fallbackAttribute&&t.add(e.fallbackAttribute)})),Array.from(t)}async refreshStickyBuckets(e){if(this._ctx.stickyBucketService){const t=this._getStickyBucketAttributes(e);this._ctx.stickyBucketAssignmentDocs=await this._ctx.stickyBucketService.getAllAssignments(t)}}_getStickyBucketAssignments(e,t){if(!this._ctx.stickyBucketAssignmentDocs)return{};const{hashAttribute:n,hashValue:r}=this._getHashAttribute(e),i="".concat(n,"||").concat(Nn(r)),{hashAttribute:o,hashValue:s}=this._getHashAttribute(t),a=s?"".concat(o,"||").concat(Nn(s)):null,l={};return a&&this._ctx.stickyBucketAssignmentDocs[a]&&Object.assign(l,this._ctx.stickyBucketAssignmentDocs[a].assignments||{}),this._ctx.stickyBucketAssignmentDocs[i]&&Object.assign(l,this._ctx.stickyBucketAssignmentDocs[i].assignments||{}),l}_getStickyBucketVariation(e){let{expKey:t,expBucketVersion:n,expHashAttribute:r,expFallbackAttribute:i,expMinBucketVersion:o,expMeta:s}=e;n=n||0,o=o||0,r=r||"id",s=s||[];const a=this._getStickyBucketExperimentKey(t,n),l=this._getStickyBucketAssignments(r,i);if(o>0)for(let e=0;e<=o;e++){if(void 0!==l[this._getStickyBucketExperimentKey(t,e)])return{variation:-1,versionIsBlocked:!0}}const c=l[a];if(void 0===c)return{variation:-1};const u=s.findIndex((e=>e.key===c));return u<0?{variation:-1}:{variation:u}}_getStickyBucketExperimentKey(e,t){return t=t||0,"".concat(e,"__").concat(t)}_getStickyBucketAttributes(e){const t={};return this._ctx.stickyBucketIdentifierAttributes=this._deriveStickyBucketIdentifierAttributes(e),this._ctx.stickyBucketIdentifierAttributes.forEach((e=>{const{hashValue:n}=this._getHashAttribute(e);t[e]=Nn(n)})),t}_generateStickyBucketAssignmentDoc(e,t,n){const r="".concat(e,"||").concat(t),i=this._ctx.stickyBucketAssignmentDocs&&this._ctx.stickyBucketAssignmentDocs[r]&&this._ctx.stickyBucketAssignmentDocs[r].assignments||{},o={...i,...n};return{key:r,doc:{attributeName:e,attributeValue:t,assignments:o},changed:JSON.stringify(i)!==JSON.stringify(o)}}}({apiHost:"https://cdn.growthbook.io",clientKey:window.growthbook_sdk_key,decryptionKey:window.growthbook_decrypt_key,enableDevMode:window.growthbook_dev_mode});function oi(e){const t=window.location.search.substring(1).split("&");let n=null;return t.forEach((t=>{const r=t.split("=");r[0]===e&&(n=decodeURIComponent(r[1].replace(/\+/g,"%20")))})),n}function si(){return document.cookie.split(";").reduce(((e,t)=>{const n=t.indexOf("="),r=t.substring(0,n).trim(),i=t.substring(n+1).trim();return e[r]=i,e}),{})}ii.init({streaming:!0}),window.analytics.ready((function(){ii.setTrackingCallback(((e,t)=>{window.analytics.track("Experiment Viewed",{experimentId:e.key,variationId:t.key})})),ii.setAttributes(Object.assign(Object.assign({},ii.getAttributes()),{id:window.analytics.user().anonymousId(),userId:window.analytics.user().id(),url:window.location.href,path:window.location.pathname,query:window.location.search,referrer:document.referrer,utmCampaign:oi("utm_campaign"),utmSource:oi("utm_source"),utmMedium:oi("utm_medium"),utmTerm:oi("utm_term"),utmContent:oi("utm_content")}))}));const ai=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.showSidebar=!1}componentWillLoad(){this.showSidebar=ii.isOn("copilot-on-docs"),ii.setRenderer((()=>this.showSidebar=ii.isOn("copilot-on-docs")))}render(){return!0===this.showSidebar?Qe(Ze,null,Qe("aside",{id:"ai-sidebar-target"}),Qe("iframe",{id:"ai-sidebar-host",src:this.copilotSrc})):Qe(Ze,null)}static get style(){return":host{display:block}"}},li=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.redirectUrl="/pulumi-up/thank-you/",this.isModalOpen=!1,this.displayingContent="session-select",this.selectedSessions=[],this.skippedSessionSelection=!1,this.processingFormSubmissions=!1,this.formProcessor=void 0,this.error=void 0,this.submittedFormValues={},this.onMessage=e=>{var t;if("hsFormCallback"!==(null===(t=e.data)||void 0===t?void 0:t.type)||!this.isModalOpen)return;const n=e.data.eventName;if("onFormReady"===n&&this.processingFormSubmissions&&this.handleFormSubmissions(),"onFormSubmit"===n){const e=this.el.querySelectorAll("form input"),t={};e.forEach((e=>{"checkbox"!==e.type&&(t[e.name]=e.value)})),this.submittedFormValues=t,setTimeout((()=>{this.selectedSessions=[...this.selectedSessions.slice(1)],this.processingFormSubmissions=!0,0===this.selectedSessions.length&&(window.location.href=this.redirectUrl)}),500)}},this.handleButtonClick=e=>{e.preventDefault(),this.isModalOpen=!0,document.querySelector("body").className+=" disable-scroll"},this.handleCloseModal=e=>{e.preventDefault(),this.isModalOpen=!1,this.skippedSessionSelection||(this.displayingContent="session-select",this.selectedSessions=[]),document.querySelector("body").className=document.querySelector("body").className.replace("disable-scroll","")},this.handleSessionSelection=e=>{const t=this.selectedSessions.indexOf(e);-1===t?this.selectedSessions.push(e):this.selectedSessions.splice(t,1)},this.handleGotToSessionSelect=e=>{e.preventDefault(),this.displayingContent="session-select"}}handleEventSessionInfo(e){this.parsedEventSessions=JSON.parse(e)}handleSkipSessionSelection(e){1===e.length&&(this.selectedSessions.push(e[0].hubspot_form_id),this.displayingContent="form",this.skippedSessionSelection=!0)}componentWillLoad(){this.handleEventSessionInfo(this.eventSessions),this.handleSkipSessionSelection(this.parsedEventSessions)}componentDidLoad(){window.addEventListener("message",this.onMessage)}disconnectedCallback(){window.removeEventListener("message",this.onMessage)}handleGoToForm(e,t){e.preventDefault(),0!==this.selectedSessions.length?(this.displayingContent=t,this.error=void 0):this.error="You must select at least one of the above options."}handleFormSubmissions(){if(0===this.selectedSessions.length)return void(window.location.href=this.redirectUrl);this.el.querySelectorAll("form input[type='checkbox']")[1].click(),setTimeout((()=>{const e=Object.keys(this.submittedFormValues);if(e.length>0)for(let t=0;t{this.el.querySelector("form input[type='submit']").click()}),500)}renderSessionSelectionItem(e){const t=this.selectedSessions.indexOf(e.hubspot_form_id)>-1;return Qe("li",null,Qe("label",{class:"session-selection-item"},Qe("div",{class:"checkbox-container"},Qe("input",{type:"checkbox",id:e.title,name:e.title,onChange:()=>this.handleSessionSelection(e.hubspot_form_id),checked:t}),Qe("span",{class:"checkmark"})),Qe("div",{class:"checkbox-label"},Qe("h6",null,e.title),Qe("p",null,e.description))))}renderSessionSelectContent(){return[Qe("div",{class:"session-select-container"},Qe("p",null,"Please select all the options you'd like to register for:"),Qe("ul",{class:"session-select-list"},this.parsedEventSessions.map((e=>this.renderSessionSelectionItem(e))))),Qe("div",{class:"next-button-container"},Qe("a",{href:"#",class:`${this.buttonClass} modal-button`,onClick:e=>this.handleGoToForm(e,"form")},"Next"),this.error?Qe("p",{class:"error-message"},this.error):null)]}renderForm(e){return this.processingFormSubmissions?Qe("div",null,Qe("h4",null,Qe("i",{class:"fas fa-spinner fa-spin"})),Qe("div",{class:"invisible",ref:e=>this.formProcessor=e},Qe("pulumi-hubspot-form",{key:e,formId:e}))):Qe("div",{class:"registration-form-container"},this.skippedSessionSelection?null:Qe("a",{href:"#",onClick:this.handleGotToSessionSelect},"← Go back to select sessions."),Qe("div",{class:"registration-form"},Qe("pulumi-hubspot-form",{formId:this.selectedSessions[0]})))}renderContent(){switch(console.log("rendering content"),this.displayingContent){case"session-select":return this.renderSessionSelectContent();case"form":return console.log("rendering form"),this.renderForm(this.selectedSessions[0])}}renderModal(){return Qe("div",{class:"event-session-modal-container"},Qe("div",{class:"modal-container"},Qe("div",{class:"modal"},Qe("div",{class:"title-container"},Qe("div",{class:"title-text"},Qe("h4",null,this.modalTitle)),Qe("div",{class:"close-icon"},Qe("i",{class:"fa fa-times",onClick:this.handleCloseModal}))),this.renderContent())))}render(){return Qe(Ze,null,Qe("div",null,Qe("div",null,Qe("a",{class:this.buttonClass,href:"#",onClick:this.handleButtonClick},this.buttonText)),this.isModalOpen?this.renderModal():null))}get el(){return this}static get watchers(){return{eventSessions:["handleEventSessionInfo"]}}static get style(){return':host{display:block}.event-session-modal-container{position:fixed;width:100%;height:100%;background-color:black;z-index:9999;top:0;left:0}.event-session-modal-container .hidden{display:none}.event-session-modal-container .modal-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.event-session-modal-container .modal-container h2,.event-session-modal-container .modal-container h3,.event-session-modal-container .modal-container h4,.event-session-modal-container .modal-container h5,.event-session-modal-container .modal-container h6,.event-session-modal-container .modal-container p{color:black}.event-session-modal-container .modal-container .modal{height:85%;width:85%;background-color:white;border-radius:5px;padding:1.5rem;overflow-y:scroll}.event-session-modal-container .modal-container .modal .title-container{display:flex;border-bottom:1px solid black}.event-session-modal-container .modal-container .modal .title-container .title-text{width:75%;text-align:left}.event-session-modal-container .modal-container .modal .title-container .title-text h2{color:black}.event-session-modal-container .modal-container .modal .title-container .close-icon{width:25%;text-align:right}.event-session-modal-container .modal-container .modal .title-container .close-icon i{cursor:pointer;font-size:1.5rem}.event-session-modal-container .modal-container .modal .session-select-container{text-align:left}.event-session-modal-container .modal-container .modal .session-select-container p{font-size:1.25rem;margin-top:2rem}.event-session-modal-container .modal-container .modal .session-select-list{list-style:none;text-align:left;display:flex;flex-wrap:wrap;align-items:stretch}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container{width:10%;position:relative;cursor:pointer}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input{position:absolute;opacity:0;height:0;width:0}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark{position:absolute;height:25px;width:25px;border:2px solid #805ac3;border-radius:5px;background-color:white}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark:after{content:"";position:absolute;display:none;left:8px;top:5px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark{background-color:#805ac3}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark:after{display:block}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-label{width:90%}.event-session-modal-container .modal-container .modal .session-select-list li{width:50%;padding:0.75rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list li{width:100%}}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item{height:100%;display:flex;justify-items:center;align-items:start;cursor:pointer;border:1px solid black;border-radius:5px;padding:1rem;border-radius:5px}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item:hover{background-color:#f9f9fa}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item p{font-size:1rem;margin-top:0.5rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item h6{padding-left:1rem}}.event-session-modal-container .modal-container .modal .next-button-container{text-align:right}.event-session-modal-container .modal-container .modal .next-button-container .modal-button{display:inline-block}.event-session-modal-container .modal-container .modal .next-button-container .modal-button:hover{background-color:#4d3675}.event-session-modal-container .modal-container .modal .next-button-container .error-message{color:red}.event-session-modal-container .modal-container .modal .registration-form-container{text-align:left;padding-top:0.5rem}.event-session-modal-container .modal-container .modal .registration-form-container a{color:black}.event-session-modal-container .modal-container .modal .registration-form-container a:hover{text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form{max-width:36rem;margin:0 auto;text-align:left}.event-session-modal-container .modal-container .modal .registration-form form{padding:0.25rem}.event-session-modal-container .modal-container .modal .registration-form a{color:black;text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form a:hover{font-weight:bold}'}},ci=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.buttonClass="",this.loading=!0,this.isLoggedIn=!1}componentWillRender(){var e;try{const t=null!==(e=si().pulumi_web_user_info)&&void 0!==e?e:"j:{}",n=JSON.parse(decodeURIComponent(t).slice(2));n&&n.userId&&""!==n.userId&&(this.isLoggedIn=!0)}catch(e){}this.loading=!1}render(){if(!this.loading)return this.isLoggedIn?Qe("a",{class:this.buttonClass,"data-track":"header-signup",href:"https://app.pulumi.com/signup?utm_source=header-button",target:"_blank",rel:"noopener noreferrer",title:"Dashboard"},"Dashboard"):Qe("a",{class:this.buttonClass,"data-track":"header-signup",href:"https://app.pulumi.com/signup?utm_source=header-button",title:"Sign up"},"Sign up")}static get style(){return":host{display:block}"}},ui=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.leftItems="",this.centerItems="",this.rightItems="",this.imageClass="",this.columnOne=[],this.columnTwo=[],this.columnThree=[]}componentDidLoad(){this.columnOne=this.shuffleArray(this.leftItems.split(",")),this.columnTwo=this.shuffleArray(this.centerItems.split(",")),this.columnThree=this.shuffleArray(this.rightItems.split(",")),this.startRotators()}shuffleArray(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}startRotators(){this.columnOneRotator=setInterval((()=>this.incrementColumnOne()),400),setTimeout((()=>{this.columnTwoRotator=setInterval((()=>this.incrementColumnTwo()),400)}),500),setTimeout((()=>{this.columnThreeRotator=setInterval((()=>this.incrementColumnThree()),400)}),1e3),setTimeout((()=>this.stopRotators()),3e3)}stopRotators(){clearInterval(this.columnOneRotator),setTimeout((()=>clearInterval(this.columnTwoRotator)),500),setTimeout((()=>clearInterval(this.columnThreeRotator)),1e3),setTimeout((()=>this.startRotators()),1e4)}incrementColumnOne(){this.columnOne=this.updateOrder(this.columnOne)}incrementColumnTwo(){this.columnTwo=this.updateOrder(this.columnTwo)}incrementColumnThree(){this.columnThree=this.updateOrder(this.columnThree)}updateOrder(e){const t=[...e],n=t.shift();return t.push(n),t}render(){const e=this.columnOne[0],t=this.columnTwo[0],n=this.columnThree[0];return Qe(Ze,null,Qe("div",null,Qe("div",{class:"slot-container"},Qe("div",{class:"item-container"},Qe("img",{key:e,class:this.imageClass,src:e})),Qe("div",{class:"separator-container"},"+"),Qe("div",{class:"item-container"},Qe("img",{key:t,class:this.imageClass,src:t})),Qe("div",{class:"separator-container"},"+"),Qe("div",{class:"item-container"},Qe("img",{key:n,class:this.imageClass,src:n})))))}static get style(){return"home-slots .slot-container{display:flex;align-items:center;justify-items:center;text-align:center}home-slots .slot-container .item-container{width:25%;text-align:center}home-slots .slot-container .item-container img{animation:fadeIn 500ms}home-slots .slot-container .separator-container{width:12.5%;text-align:center}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}"}},di=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.buttonClass="",this.loading=!0,this.isLoggedIn=!1}componentWillRender(){var e;try{const t=null!==(e=si().pulumi_web_user_info)&&void 0!==e?e:"j:{}",n=JSON.parse(decodeURIComponent(t).slice(2));n&&n.userId&&""!==n.userId&&(this.isLoggedIn=!0)}catch(e){}this.loading=!1}render(){if(!this.loading)return this.isLoggedIn?Qe("a",{class:this.buttonClass,href:"https://app.pulumi.com/?create-organization=1",target:"_blank"},this.signedInText):Qe("a",{class:this.buttonClass,href:"https://app.pulumi.com/signup/",target:"_blank"},this.signedOutText)}};var pi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function fi(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}function hi(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var mi=fi((function(e,t){(function(){var n,r="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",s=16,a=32,l=64,c=128,u=256,d=1/0,p=9007199254740991,f=NaN,h=4294967295,m=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",a],["partialRight",l],["rearg",u]],v="[object Arguments]",g="[object Array]",y="[object Boolean]",b="[object Date]",w="[object Error]",_="[object Function]",S="[object GeneratorFunction]",x="[object Map]",k="[object Number]",O="[object Object]",$="[object Promise]",E="[object RegExp]",C="[object Set]",T="[object String]",P="[object Symbol]",A="[object WeakMap]",j="[object ArrayBuffer]",I="[object DataView]",L="[object Float32Array]",D="[object Float64Array]",M="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",H="[object Uint16Array]",V="[object Uint32Array]",q=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,G=RegExp(W.source),J=RegExp(K.source),Y=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),ie=/^\s+/,oe=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Se="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Oe="a-z\\xdf-\\xf6\\xf8-\\xff",$e="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Pe="["+Se+"]",Ae="["+Ce+"]",je="["+xe+"]",Ie="\\d+",Le="["+ke+"]",De="["+Oe+"]",Me="[^"+Se+Ce+Ie+ke+Oe+$e+"]",Ne="\\ud83c[\\udffb-\\udfff]",Re="[^"+Se+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+$e+"]",Ve="\\u200d",qe="(?:"+De+"|"+Me+")",ze="(?:"+He+"|"+Me+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+je+"|"+Ne+")"+"?",Ge="["+Ee+"]?",Je=Ge+Ke+("(?:"+Ve+"(?:"+[Re,Fe,Be].join("|")+")"+Ge+Ke+")*"),Ye="(?:"+[Le,Fe,Be].join("|")+")"+Je,Qe="(?:"+[Re+je+"?",je,Fe,Be,Pe].join("|")+")",Xe=RegExp(Te,"g"),Ze=RegExp(je,"g"),et=RegExp(Ne+"(?="+Ne+")|"+Qe+Je,"g"),tt=RegExp([He+"?"+De+"+"+Ue+"(?="+[Ae,He,"$"].join("|")+")",ze+"+"+We+"(?="+[Ae,He+qe,"$"].join("|")+")",He+"?"+qe+"+"+Ue,He+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ye].join("|"),"g"),nt=RegExp("["+Ve+Se+xe+Ee+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,st={};st[L]=st[D]=st[M]=st[N]=st[R]=st[F]=st[B]=st[H]=st[V]=!0,st[v]=st[g]=st[j]=st[y]=st[I]=st[b]=st[w]=st[_]=st[x]=st[k]=st[O]=st[E]=st[C]=st[T]=st[A]=!1;var at={};at[v]=at[g]=at[j]=at[I]=at[y]=at[b]=at[L]=at[D]=at[M]=at[N]=at[R]=at[x]=at[k]=at[O]=at[E]=at[C]=at[T]=at[P]=at[F]=at[B]=at[H]=at[V]=!0,at[w]=at[_]=at[A]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof pi&&pi&&pi.Object===Object&&pi,pt="object"==typeof self&&self&&self.Object===Object&&self,ft=dt||pt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,vt=mt&&mt.exports===ht,gt=vt&&dt.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||gt&>.binding&>.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,_t=yt&&yt.isMap,St=yt&&yt.isRegExp,xt=yt&&yt.isSet,kt=yt&&yt.isTypedArray;function Ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function $t(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function jt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function tn(e,t){for(var n=e.length;n--&&Ht(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Wt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),on=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+lt[e]}function an(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,i=0,s=[];++n",""":'"',"'":"'"});var gn=function e(t){var oe,Se=(t=null==t?ft:gn.defaults(ft.Object(),t,gn.pick(ft,it))).Array,xe=t.Date,ke=t.Error,Oe=t.Function,$e=t.Math,Ee=t.Object,Ce=t.RegExp,Te=t.String,Pe=t.TypeError,Ae=Se.prototype,je=Oe.prototype,Ie=Ee.prototype,Le=t["__core-js_shared__"],De=je.toString,Me=Ie.hasOwnProperty,Ne=0,Re=(oe=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+oe:"",Fe=Ie.toString,Be=De.call(Ee),He=ft._,Ve=Ce("^"+De.call(Me).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=vt?t.Buffer:n,ze=t.Symbol,Ue=t.Uint8Array,We=qe?qe.allocUnsafe:n,Ke=cn(Ee.getPrototypeOf,Ee),Ge=Ee.create,Je=Ie.propertyIsEnumerable,Ye=Ae.splice,Qe=ze?ze.isConcatSpreadable:n,et=ze?ze.iterator:n,nt=ze?ze.toStringTag:n,lt=function(){try{var e=ho(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,pt=xe&&xe.now!==ft.Date.now&&xe.now,ht=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=$e.ceil,gt=$e.floor,yt=Ee.getOwnPropertySymbols,Rt=qe?qe.isBuffer:n,Wt=t.isFinite,yn=Ae.join,bn=cn(Ee.keys,Ee),wn=$e.max,_n=$e.min,Sn=xe.now,xn=t.parseInt,kn=$e.random,On=Ae.reverse,$n=ho(t,"DataView"),En=ho(t,"Map"),Cn=ho(t,"Promise"),Tn=ho(t,"Set"),Pn=ho(t,"WeakMap"),An=ho(Ee,"create"),jn=Pn&&new Pn,In={},Ln=Ho($n),Dn=Ho(En),Mn=Ho(Cn),Nn=Ho(Tn),Rn=Ho(Pn),Fn=ze?ze.prototype:n,Bn=Fn?Fn.valueOf:n,Hn=Fn?Fn.toString:n;function Vn(e){if(ia(e)&&!Ks(e)&&!(e instanceof Wn)){if(e instanceof Un)return e;if(Me.call(e,"__wrapped__"))return Vo(e)}return new Un(e)}var qn=function(){function e(){}return function(t){if(!ra(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function zn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ur(e,t,r,i,o,s){var a,l=1&t,c=2&t,u=4&t;if(r&&(a=o?r(e,i,o,s):r(e)),a!==n)return a;if(!ra(e))return e;var d=Ks(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ai(e,a)}else{var p=go(e),f=p==_||p==S;if(Qs(e))return Oi(e,l);if(p==O||p==v||f&&!o){if(a=c||f?{}:bo(e),!l)return c?function(e,t){return ji(e,vo(e),t)}(e,function(e,t){return e&&ji(t,Da(t),e)}(a,e)):function(e,t){return ji(e,mo(e),t)}(e,sr(a,e))}else{if(!at[p])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case j:return $i(e);case y:case b:return new r(+e);case I:return function(e,t){var n=t?$i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case D:case M:case N:case R:case F:case B:case H:case V:return Ei(e,n);case x:return new r;case k:case T:return new r(e);case E:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new r;case P:return i=e,Bn?Ee(Bn.call(i)):{}}var i}(e,p,l)}}s||(s=new Qn);var h=s.get(e);if(h)return h;s.set(e,a),ca(e)?e.forEach((function(n){a.add(ur(n,t,r,n,e,s))})):oa(e)&&e.forEach((function(n,i){a.set(i,ur(n,t,r,i,e,s))}));var m=d?n:(u?c?so:oo:c?Da:La)(e);return Et(m||e,(function(n,i){m&&(n=e[i=n]),rr(a,i,ur(n,t,r,i,e,s))})),a}function dr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Ee(e);i--;){var o=r[i],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function pr(e,t,i){if("function"!=typeof e)throw new Pe(r);return Lo((function(){e.apply(n,i)}),t)}function fr(e,t,n,r){var i=-1,o=At,s=!0,a=e.length,l=[],c=t.length;if(!a)return l;n&&(t=It(t,Qt(n))),r?(o=jt,s=!1):t.length>=200&&(o=Zt,s=!1,t=new Yn(t));e:for(;++i-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=ir(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Kn,map:new(En||Gn),string:new Kn}},Jn.prototype.delete=function(e){var t=po(this,e).delete(e);return this.size-=t?1:0,t},Jn.prototype.get=function(e){return po(this,e).get(e)},Jn.prototype.has=function(e){return po(this,e).has(e)},Jn.prototype.set=function(e,t){var n=po(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,i),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(e,t),this.size=n.size,this};var hr=Di(Sr),mr=Di(xr,!0);function vr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,r){for(var i=-1,o=e.length;++i0&&n(a)?t>1?br(a,t-1,n,r,i):Lt(i,a):r||(i[i.length]=a)}return i}var wr=Mi(),_r=Mi(!0);function Sr(e,t){return e&&wr(e,t,La)}function xr(e,t){return e&&_r(e,t,La)}function kr(e,t){return Pt(t,(function(t){return ea(e[t])}))}function Or(e,t){for(var r=0,i=(t=_i(t,e)).length;null!=e&&rt}function Tr(e,t){return null!=e&&Me.call(e,t)}function Pr(e,t){return null!=e&&t in Ee(e)}function Ar(e,t,r){for(var i=r?jt:At,o=e[0].length,s=e.length,a=s,l=Se(s),c=1/0,u=[];a--;){var d=e[a];a&&t&&(d=It(d,Qt(t))),c=_n(d.length,c),l[a]=!r&&(t||o>=120&&d.length>=120)?new Yn(a&&d):n}d=e[0];var p=-1,f=l[0];e:for(;++p=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Kr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)a!==e&&Ye.call(a,l,1),Ye.call(e,l,1);return e}function Jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;_o(i)?Ye.call(e,i,1):fi(e,i)}}return e}function Yr(e,t){return e+gt(kn()*(t-e+1))}function Qr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Do(To(e,t,sl),e+"")}function Zr(e){return Zn(qa(e))}function ei(e,t){var n=qa(e);return Ro(n,cr(t,0,n.length))}function ti(e,t,r,i){if(!ra(e))return e;for(var o=-1,s=(t=_i(t,e)).length,a=s-1,l=e;null!=l&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Se(i);++r>>1,s=e[o];null!==s&&!da(s)&&(n?s<=t:s=200){var c=t?null:Qi(e);if(c)return dn(c);s=!1,i=Zt,l=new Yn}else l=t?[]:a;e:for(;++r=i?e:oi(e,t,r)}var ki=dt||function(e){return ft.clearTimeout(e)};function Oi(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function $i(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function Ei(e,t){var n=t?$i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ci(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,s=da(e),a=t!==n,l=null===t,c=t==t,u=da(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!u&&e1?r[o-1]:n,a=o>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&So(r[0],r[1],a)&&(s=o<3?n:s,o=1),t=Ee(t);++i-1?o[s?t[a]:a]:n}}function Hi(e){return io((function(t){var i=t.length,o=i,s=Un.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new Pe(r);if(s&&!l&&"wrapper"==lo(a))var l=new Un([],!0)}for(o=l?o:i;++o1&&y.reverse(),p&&ul))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=-1,f=!0,h=2&r?new Yn:n;for(s.set(e,t),s.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Et(m,(function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function No(e){var t=0,r=0;return function(){var i=Sn(),o=16-(i-r);if(r=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ro(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ls(e,r)}));function ms(e){var t=Vn(e);return t.__chain__=!0,t}function vs(e,t){return t(e)}var gs=io((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Wn&&_o(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:vs,args:[o],thisArg:n}),new Un(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var ys=Ii((function(e,t,n){Me.call(e,n)?++e[n]:ar(e,n,1)}));var bs=Bi(Wo),ws=Bi(Ko);function _s(e,t){return(Ks(e)?Et:hr)(e,uo(t,3))}function Ss(e,t){return(Ks(e)?Ct:mr)(e,uo(t,3))}var xs=Ii((function(e,t,n){Me.call(e,n)?e[n].push(t):ar(e,n,[t])}));var ks=Xr((function(e,t,n){var r=-1,i="function"==typeof t,o=Js(e)?Se(e.length):[];return hr(e,(function(e){o[++r]=i?Ot(t,e,n):jr(e,t,n)})),o})),Os=Ii((function(e,t,n){ar(e,n,t)}));function $s(e,t){return(Ks(e)?It:Hr)(e,uo(t,3))}var Es=Ii((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Cs=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&So(e,t[0],t[1])?t=[]:n>2&&So(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,br(t,1),[])})),Ts=pt||function(){return ft.Date.now()};function Ps(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Zi(e,c,n,n,n,n,t)}function As(e,t){var i;if("function"!=typeof t)throw new Pe(r);return e=ga(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var js=Xr((function(e,t,n){var r=1;if(n.length){var i=un(n,co(js));r|=a}return Zi(e,r,t,n,i)})),Is=Xr((function(e,t,n){var r=3;if(n.length){var i=un(n,co(Is));r|=a}return Zi(t,r,e,n,i)}));function Ls(e,t,i){var o,s,a,l,c,u,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Pe(r);function m(t){var r=o,i=s;return o=s=n,d=t,l=e.apply(i,r)}function v(e){return d=e,c=Lo(y,t),p?m(e):l}function g(e){var r=e-u;return u===n||r>=t||r<0||f&&e-d>=a}function y(){var e=Ts();if(g(e))return b(e);c=Lo(y,function(e){var n=t-(e-u);return f?_n(n,a-(e-d)):n}(e))}function b(e){return c=n,h&&o?m(e):(o=s=n,l)}function w(){var e=Ts(),r=g(e);if(o=arguments,s=this,u=e,r){if(c===n)return v(u);if(f)return ki(c),c=Lo(y,t),m(u)}return c===n&&(c=Lo(y,t)),l}return t=ba(t)||0,ra(i)&&(p=!!i.leading,a=(f="maxWait"in i)?wn(ba(i.maxWait)||0,t):a,h="trailing"in i?!!i.trailing:h),w.cancel=function(){c!==n&&ki(c),d=0,o=u=s=c=n},w.flush=function(){return c===n?l:b(Ts())},w}var Ds=Xr((function(e,t){return pr(e,1,t)})),Ms=Xr((function(e,t,n){return pr(e,ba(t)||0,n)}));function Ns(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ns.Cache||Jn),n}function Rs(e){if("function"!=typeof e)throw new Pe(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ns.Cache=Jn;var Fs=Si((function(e,t){var n=(t=1==t.length&&Ks(t[0])?It(t[0],Qt(uo())):It(br(t,1),Qt(uo()))).length;return Xr((function(r){for(var i=-1,o=_n(r.length,n);++i=t})),Ws=Ir(function(){return arguments}())?Ir:function(e){return ia(e)&&Me.call(e,"callee")&&!Je.call(e,"callee")},Ks=Se.isArray,Gs=bt?Qt(bt):function(e){return ia(e)&&Er(e)==j};function Js(e){return null!=e&&na(e.length)&&!ea(e)}function Ys(e){return ia(e)&&Js(e)}var Qs=Rt||bl,Xs=wt?Qt(wt):function(e){return ia(e)&&Er(e)==b};function Zs(e){if(!ia(e))return!1;var t=Er(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aa(e)}function ea(e){if(!ra(e))return!1;var t=Er(e);return t==_||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ta(e){return"number"==typeof e&&e==ga(e)}function na(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ra(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ia(e){return null!=e&&"object"==typeof e}var oa=_t?Qt(_t):function(e){return ia(e)&&go(e)==x};function sa(e){return"number"==typeof e||ia(e)&&Er(e)==k}function aa(e){if(!ia(e)||Er(e)!=O)return!1;var t=Ke(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Be}var la=St?Qt(St):function(e){return ia(e)&&Er(e)==E};var ca=xt?Qt(xt):function(e){return ia(e)&&go(e)==C};function ua(e){return"string"==typeof e||!Ks(e)&&ia(e)&&Er(e)==T}function da(e){return"symbol"==typeof e||ia(e)&&Er(e)==P}var pa=kt?Qt(kt):function(e){return ia(e)&&na(e.length)&&!!st[Er(e)]};var fa=Gi(Br),ha=Gi((function(e,t){return e<=t}));function ma(e){if(!e)return[];if(Js(e))return ua(e)?hn(e):Ai(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=go(e);return(t==x?ln:t==C?dn:qa)(e)}function va(e){return e?(e=ba(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ga(e){var t=va(e),n=t%1;return t==t?n?t-n:t:0}function ya(e){return e?cr(ga(e),0,h):0}function ba(e){if("number"==typeof e)return e;if(da(e))return f;if(ra(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ra(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=me.test(e);return n||ge.test(e)?ut(e.slice(2),n?2:8):he.test(e)?f:+e}function wa(e){return ji(e,Da(e))}function _a(e){return null==e?"":di(e)}var Sa=Li((function(e,t){if($o(t)||Js(t))ji(t,La(t),e);else for(var n in t)Me.call(t,n)&&rr(e,n,t[n])})),xa=Li((function(e,t){ji(t,Da(t),e)})),ka=Li((function(e,t,n,r){ji(t,Da(t),e,r)})),Oa=Li((function(e,t,n,r){ji(t,La(t),e,r)})),$a=io(lr);var Ea=Xr((function(e,t){e=Ee(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&So(t[0],t[1],o)&&(i=1);++r1),t})),ji(e,so(e),n),r&&(n=ur(n,7,no));for(var i=t.length;i--;)fi(n,t[i]);return n}));var Fa=io((function(e,t){return null==e?{}:function(e,t){return Kr(e,t,(function(t,n){return Pa(e,n)}))}(e,t)}));function Ba(e,t){if(null==e)return{};var n=It(so(e),(function(e){return[e]}));return t=uo(t),Kr(e,n,(function(e,n){return t(e,n[0])}))}var Ha=Xi(La),Va=Xi(Da);function qa(e){return null==e?[]:Xt(e,La(e))}var za=Ri((function(e,t,n){return t=t.toLowerCase(),e+(n?Ua(t):t)}));function Ua(e){return Za(_a(e).toLowerCase())}function Wa(e){return(e=_a(e))&&e.replace(be,rn).replace(Ze,"")}var Ka=Ri((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ga=Ri((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ja=Ni("toLowerCase");var Ya=Ri((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Qa=Ri((function(e,t,n){return e+(n?" ":"")+Za(t)}));var Xa=Ri((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Za=Ni("toUpperCase");function el(e,t,r){return e=_a(e),(t=r?n:t)===n?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var tl=Xr((function(e,t){try{return Ot(e,n,t)}catch(e){return Zs(e)?e:new ke(e)}})),nl=io((function(e,t){return Et(t,(function(t){t=Bo(t),ar(e,t,js(e[t],e))})),e}));function rl(e){return function(){return e}}var il=Hi(),ol=Hi(!0);function sl(e){return e}function al(e){return Nr("function"==typeof e?e:ur(e,1))}var ll=Xr((function(e,t){return function(n){return jr(n,e,t)}})),cl=Xr((function(e,t){return function(n){return jr(e,n,t)}}));function ul(e,t,n){var r=La(t),i=kr(t,r);null!=n||ra(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=kr(t,La(t)));var o=!(ra(n)&&"chain"in n&&!n.chain),s=ea(e);return Et(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Ai(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function dl(){}var pl=Ui(It),fl=Ui(Tt),hl=Ui(Nt);function ml(e){return xo(e)?Ut(Bo(e)):function(e){return function(t){return Or(t,e)}}(e)}var vl=Ki(),gl=Ki(!0);function yl(){return[]}function bl(){return!1}var wl=zi((function(e,t){return e+t}),0),_l=Yi("ceil"),Sl=zi((function(e,t){return e/t}),1),xl=Yi("floor");var kl,Ol=zi((function(e,t){return e*t}),1),$l=Yi("round"),El=zi((function(e,t){return e-t}),0);return Vn.after=function(e,t){if("function"!=typeof t)throw new Pe(r);return e=ga(e),function(){if(--e<1)return t.apply(this,arguments)}},Vn.ary=Ps,Vn.assign=Sa,Vn.assignIn=xa,Vn.assignInWith=ka,Vn.assignWith=Oa,Vn.at=$a,Vn.before=As,Vn.bind=js,Vn.bindAll=nl,Vn.bindKey=Is,Vn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ks(e)?e:[e]},Vn.chain=ms,Vn.chunk=function(e,t,r){t=(r?So(e,t,r):t===n)?1:wn(ga(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,a=Se(mt(i/t));oo?0:o+r),(i=i===n||i>o?o:ga(i))<0&&(i+=o),i=r>i?0:ya(i);r>>0)?(e=_a(e))&&("string"==typeof t||null!=t&&!la(t))&&!(t=di(t))&&an(e)?xi(hn(e),0,r):e.split(t,r):[]},Vn.spread=function(e,t){if("function"!=typeof e)throw new Pe(r);return t=null==t?0:wn(ga(t),0),Xr((function(n){var r=n[t],i=xi(n,0,t);return r&&Lt(i,r),Ot(e,this,i)}))},Vn.tail=function(e){var t=null==e?0:e.length;return t?oi(e,1,t):[]},Vn.take=function(e,t,r){return e&&e.length?oi(e,0,(t=r||t===n?1:ga(t))<0?0:t):[]},Vn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?oi(e,(t=i-(t=r||t===n?1:ga(t)))<0?0:t,i):[]},Vn.takeRightWhile=function(e,t){return e&&e.length?mi(e,uo(t,3),!1,!0):[]},Vn.takeWhile=function(e,t){return e&&e.length?mi(e,uo(t,3)):[]},Vn.tap=function(e,t){return t(e),e},Vn.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Pe(r);return ra(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Ls(e,t,{leading:i,maxWait:t,trailing:o})},Vn.thru=vs,Vn.toArray=ma,Vn.toPairs=Ha,Vn.toPairsIn=Va,Vn.toPath=function(e){return Ks(e)?It(e,Bo):da(e)?[e]:Ai(Fo(_a(e)))},Vn.toPlainObject=wa,Vn.transform=function(e,t,n){var r=Ks(e),i=r||Qs(e)||pa(e);if(t=uo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ra(e)&&ea(o)?qn(Ke(e)):{}}return(i?Et:Sr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Vn.unary=function(e){return Ps(e,1)},Vn.union=is,Vn.unionBy=os,Vn.unionWith=ss,Vn.uniq=function(e){return e&&e.length?pi(e):[]},Vn.uniqBy=function(e,t){return e&&e.length?pi(e,uo(t,2)):[]},Vn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?pi(e,n,t):[]},Vn.unset=function(e,t){return null==e||fi(e,t)},Vn.unzip=as,Vn.unzipWith=ls,Vn.update=function(e,t,n){return null==e?e:hi(e,t,wi(n))},Vn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:hi(e,t,wi(r),i)},Vn.values=qa,Vn.valuesIn=function(e){return null==e?[]:Xt(e,Da(e))},Vn.without=cs,Vn.words=el,Vn.wrap=function(e,t){return Bs(wi(t),e)},Vn.xor=us,Vn.xorBy=ds,Vn.xorWith=ps,Vn.zip=fs,Vn.zipObject=function(e,t){return yi(e||[],t||[],rr)},Vn.zipObjectDeep=function(e,t){return yi(e||[],t||[],ti)},Vn.zipWith=hs,Vn.entries=Ha,Vn.entriesIn=Va,Vn.extend=xa,Vn.extendWith=ka,ul(Vn,Vn),Vn.add=wl,Vn.attempt=tl,Vn.camelCase=za,Vn.capitalize=Ua,Vn.ceil=_l,Vn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ba(r))==r?r:0),t!==n&&(t=(t=ba(t))==t?t:0),cr(ba(e),t,r)},Vn.clone=function(e){return ur(e,4)},Vn.cloneDeep=function(e){return ur(e,5)},Vn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:n)},Vn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:n)},Vn.conformsTo=function(e,t){return null==t||dr(e,t,La(t))},Vn.deburr=Wa,Vn.defaultTo=function(e,t){return null==e||e!=e?t:e},Vn.divide=Sl,Vn.endsWith=function(e,t,r){e=_a(e),t=di(t);var i=e.length,o=r=r===n?i:cr(ga(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},Vn.eq=qs,Vn.escape=function(e){return(e=_a(e))&&J.test(e)?e.replace(K,on):e},Vn.escapeRegExp=function(e){return(e=_a(e))&&re.test(e)?e.replace(ne,"\\$&"):e},Vn.every=function(e,t,r){var i=Ks(e)?Tt:vr;return r&&So(e,t,r)&&(t=n),i(e,uo(t,3))},Vn.find=bs,Vn.findIndex=Wo,Vn.findKey=function(e,t){return Ft(e,uo(t,3),Sr)},Vn.findLast=ws,Vn.findLastIndex=Ko,Vn.findLastKey=function(e,t){return Ft(e,uo(t,3),xr)},Vn.floor=xl,Vn.forEach=_s,Vn.forEachRight=Ss,Vn.forIn=function(e,t){return null==e?e:wr(e,uo(t,3),Da)},Vn.forInRight=function(e,t){return null==e?e:_r(e,uo(t,3),Da)},Vn.forOwn=function(e,t){return e&&Sr(e,uo(t,3))},Vn.forOwnRight=function(e,t){return e&&xr(e,uo(t,3))},Vn.get=Ta,Vn.gt=zs,Vn.gte=Us,Vn.has=function(e,t){return null!=e&&yo(e,t,Tr)},Vn.hasIn=Pa,Vn.head=Jo,Vn.identity=sl,Vn.includes=function(e,t,n,r){e=Js(e)?e:qa(e),n=n&&!r?ga(n):0;var i=e.length;return n<0&&(n=wn(i+n,0)),ua(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ht(e,t,n)>-1},Vn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ga(n);return i<0&&(i=wn(r+i,0)),Ht(e,t,i)},Vn.inRange=function(e,t,r){return t=va(t),r===n?(r=t,t=0):r=va(r),function(e,t,n){return e>=_n(t,n)&&e=-9007199254740991&&e<=p},Vn.isSet=ca,Vn.isString=ua,Vn.isSymbol=da,Vn.isTypedArray=pa,Vn.isUndefined=function(e){return e===n},Vn.isWeakMap=function(e){return ia(e)&&go(e)==A},Vn.isWeakSet=function(e){return ia(e)&&"[object WeakSet]"==Er(e)},Vn.join=function(e,t){return null==e?"":yn.call(e,t)},Vn.kebabCase=Ka,Vn.last=Zo,Vn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=ga(r))<0?wn(i+o,0):_n(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Bt(e,qt,o,!0)},Vn.lowerCase=Ga,Vn.lowerFirst=Ja,Vn.lt=fa,Vn.lte=ha,Vn.max=function(e){return e&&e.length?gr(e,sl,Cr):n},Vn.maxBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Cr):n},Vn.mean=function(e){return zt(e,sl)},Vn.meanBy=function(e,t){return zt(e,uo(t,2))},Vn.min=function(e){return e&&e.length?gr(e,sl,Br):n},Vn.minBy=function(e,t){return e&&e.length?gr(e,uo(t,2),Br):n},Vn.stubArray=yl,Vn.stubFalse=bl,Vn.stubObject=function(){return{}},Vn.stubString=function(){return""},Vn.stubTrue=function(){return!0},Vn.multiply=Ol,Vn.nth=function(e,t){return e&&e.length?Ur(e,ga(t)):n},Vn.noConflict=function(){return ft._===this&&(ft._=He),this},Vn.noop=dl,Vn.now=Ts,Vn.pad=function(e,t,n){e=_a(e);var r=(t=ga(t))?fn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(gt(i),n)+e+Wi(mt(i),n)},Vn.padEnd=function(e,t,n){e=_a(e);var r=(t=ga(t))?fn(e):0;return t&&rt){var i=e;e=t,t=i}if(r||e%1||t%1){var o=kn();return _n(e+o*(t-e+ct("1e-"+((o+"").length-1))),t)}return Yr(e,t)},Vn.reduce=function(e,t,n){var r=Ks(e)?Dt:Kt,i=arguments.length<3;return r(e,uo(t,4),n,i,hr)},Vn.reduceRight=function(e,t,n){var r=Ks(e)?Mt:Kt,i=arguments.length<3;return r(e,uo(t,4),n,i,mr)},Vn.repeat=function(e,t,r){return t=(r?So(e,t,r):t===n)?1:ga(t),Qr(_a(e),t)},Vn.replace=function(){var e=arguments,t=_a(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Vn.result=function(e,t,r){var i=-1,o=(t=_i(t,e)).length;for(o||(o=1,e=n);++ip)return[];var n=h,r=_n(e,h);t=uo(t),e-=h;for(var i=Jt(r,t);++n=s)return e;var l=r-fn(i);if(l<1)return i;var c=a?xi(a,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(a&&(l+=c.length-l),la(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Ce(o.source,_a(fe.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(di(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+i},Vn.unescape=function(e){return(e=_a(e))&&G.test(e)?e.replace(W,vn):e},Vn.uniqueId=function(e){var t=++Ne;return _a(e)+t},Vn.upperCase=Xa,Vn.upperFirst=Za,Vn.each=_s,Vn.eachRight=Ss,Vn.first=Jo,ul(Vn,(kl={},Sr(Vn,(function(e,t){Me.call(Vn.prototype,t)||(kl[t]=e)})),kl),{chain:!1}),Vn.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Vn[e].placeholder=Vn})),Et(["drop","take"],(function(e,t){Wn.prototype[e]=function(r){r=r===n?1:wn(ga(r),0);var i=this.__filtered__&&!t?new Wn(this):this.clone();return i.__filtered__?i.__takeCount__=_n(r,i.__takeCount__):i.__views__.push({size:_n(r,h),type:e+(i.__dir__<0?"Right":"")}),i},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:uo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(sl)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return jr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Rs(uo(e)))},Wn.prototype.slice=function(e,t){e=ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Wn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(h)},Sr(Wn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Vn[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(Vn.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof Wn,c=a[0],u=l||Ks(t),d=function(e){var t=o.apply(Vn,Lt([e],a));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,f=!!this.__actions__.length,h=s&&!p,m=l&&!f;if(!s&&u){t=m?t:new Wn(this);var v=e.apply(t,a);return v.__actions__.push({func:vs,args:[d],thisArg:n}),new Un(v,p)}return h&&m?e.apply(this,a):(v=this.thru(d),h?i?v.value()[0]:v.value():v)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Vn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ks(i)?i:[],e)}return this[n]((function(n){return t.apply(Ks(n)?n:[],e)}))}})),Sr(Wn.prototype,(function(e,t){var n=Vn[t];if(n){var r=n.name+"";Me.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}})),In[Vi(n,2).name]=[{name:"wrapper",func:n}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ai(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ai(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ai(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ks(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Vn.prototype.plant=function(e){for(var t,r=this;r instanceof zn;){var i=Vo(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},Vn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:vs,args:[rs],thisArg:n}),new Un(t,this.__chain__)}return this.thru(rs)},Vn.prototype.toJSON=Vn.prototype.valueOf=Vn.prototype.value=function(){return vi(this.__wrapped__,this.__actions__)},Vn.prototype.first=Vn.prototype.head,et&&(Vn.prototype[et]=function(){return this}),Vn}();mt?((mt.exports=gn)._=gn,ht._=gn):ft._=gn}).call(pi)}));const vi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.filterContent="",this.debouncedFilterTree=mi.debounce(this.debouncedFilterTree,300)}componentWillLoad(){this.loadNavigationData().then((()=>{}))}async loadNavigationData(){this.isLoading=!0;try{const e=await fetch(`/registry/packages/navs/${this.packageName}.json`),t=await e.json();this.parsedNodes=t,this.currentlyRenderedNodes=this.parsedNodes}catch(e){return}this.isLoading=!1}filterTreeToMatchingContent(e,t,n,r){const i=this.filterTreeToMatchingRecursive(e,t,n,r);this.currentlyRenderedNodes=i}filterTreeToMatchingRecursive(e,t,n,r,i={},o=[""]){t.map((t=>{const s=o.join("")+t.name,a=o.join(""),l=n?n.name:"",c=!!i[s],u=!!n&&!!i[l],d=!!r&&!!i[a];if(!c){if(t.name.toLowerCase().includes(this.filterContent)){if(!u&&n){const t=Object.assign(Object.assign({},n),{children:[],isExpanded:!0,rootName:l});e.push(t),i[l]=!0}if(!d&&r){const t=Object.assign(Object.assign({},r),{children:[],isExpanded:!0,parentName:n.name,rootName:l});e.push(t),i[a]=!0}if(r){const n=Object.assign(Object.assign({},t),{children:[],parentName:r.name,isExpanded:!0,rootName:l});e.push(n),i[s]=!0}else if(n){const r=Object.assign(Object.assign({},t),{children:[],parentName:n.name,isExpanded:!0,rootName:l});e.push(r),i[s]=!0}else{const n=Object.assign(Object.assign({},t),{children:[],parentName:void 0,isExpanded:!0,rootName:l});e.push(n),i[s]=!0}}if(t.children){const r=n||t,s=n?t:null;this.filterTreeToMatchingRecursive(e,t.children,r,s,i,o.concat([t.name]))}}}));const s=e.filter((e=>void 0===e.parentName));return s.map((t=>{var n;t.children=e.filter((e=>e.parentName===t.name)),null===(n=t.children)||void 0===n||n.map((n=>{n.children=e.filter((e=>e.parentName===n.name&&e.rootName===t.name))}))})),[...s]}onChange(e){this.debouncedFilterTree(e)}onClearFilter(){this.filterContent="",this.currentlyRenderedNodes=this.parsedNodes}debouncedFilterTree(e){this.filterContent=e.target.value.trim().toLowerCase(),this.filterContent.length<2?this.currentlyRenderedNodes=this.parsedNodes:this.filterTreeToMatchingContent([],this.parsedNodes)}getFilterAndNavTree(){var e,t;return Qe("div",{class:"filter-and-nav-tree"},Qe("div",{class:"input-container"},Qe("input",{class:"navigation-filter-input",placeholder:"Filter",onInput:this.onChange.bind(this),value:this.filterContent}),this.filterContent&&Qe("div",{class:"clear-container"},Qe("button",{onClick:this.onClearFilter.bind(this),class:"clear-filter-button"},"X"))),1===(null===(e=this.filterContent)||void 0===e?void 0:e.length)&&Qe("div",{class:"filter-help-text"},"Provide at least two characters to filter."),(null===(t=this.currentlyRenderedNodes)||void 0===t?void 0:t.length)<1&&Qe("div",{class:"no-results"},"No results found. Try a different filter."),Qe("pulumi-api-doc-nav-tree",{class:"nav-tree",baseDirectory:this.baseDirectory,nodes:this.currentlyRenderedNodes}))}getLoadingState(){return Qe("div",{class:"loading"},Qe("i",{class:"loading-icon fas fa-spinner"}),Qe("span",{class:"loading-text"},"Loading..."))}render(){return Qe("section",{class:"api-doc-nav"},this.isLoading?this.getLoadingState():this.getFilterAndNavTree())}static get style(){return'.api-doc-nav{width:100%;max-width:375px}.api-doc-nav .filter-help-text{font-size:14px}.api-doc-nav .no-results{font-size:14px}.api-doc-nav .loading .loading-icon{margin-right:1rem}.api-doc-nav .navigation-header{font-family:var(--heading-font);font-weight:400;font-size:18px;color:#000;margin-top:0;margin-bottom:14px}.api-doc-nav .input-container{display:inline-block;position:relative;margin-left:12px}.api-doc-nav .input-container .clear-container{position:absolute;display:flex;align-items:center;margin-right:20px;top:0;right:0;height:100%}.api-doc-nav .input-container .clear-filter-button{display:flex;align-items:center;justify-content:center;height:18px;width:18px;font-size:xx-small;background:#dcdcdc;color:#808080;border-radius:50%;border:none;cursor:pointer;padding:0px}.api-doc-nav .input-container .navigation-filter-input{font-family:"Gilroy";font-size:16px;height:20px;width:90%;border-radius:4px;border:1px solid #000;padding:10px;margin-top:0;box-sizing:content-box}.api-doc-nav .input-container .navigation-filter-input:focus{outline-color:#4d5bd9}.api-doc-nav .nav-tree{width:100%;min-width:100%;max-width:100%}.api-doc-nav .nav-tree{display:block}.api-doc-nav .filter-and-nav-tree{margin-right:12px}'}},gi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.depth=0}componentWillLoad(){this.isExpanded=!!this.node.isExpanded||this.isNodeInPathForCurrentlyVisiblePage(this.node.name)}onExpansionChange(e,t=!1){t&&(window.location.href=e),this.isExpanded=!this.isExpanded}handleLinkClick(e,t){e.stopPropagation(),window.location.href=t}componentShouldUpdate(e,t,n){if("isExpanded"===n)return!0!==t||!1!==e}getIcon(e){return Qe("div",{class:"symbol-container"},Qe("slot",{name:"before-content"},Qe("span",{class:`symbol ${e}`})))}isNodeInPathForCurrentlyVisiblePage(e){return window.location.pathname.includes(`/${e}/`)}shouldNodeBeSelected(e){return window.location.pathname.split("/").filter((e=>""!==e)).join("/")===e.split("/").filter((e=>""!==e)).join("/")}getChildNodes(e,t,n=1,r=this.href){const i=Qe("pulumi-tree-item",{slot:"item",selected:!1,expanded:!1,title:"dummy"});return!t&&(null==e?void 0:e.length)?i:null==e?void 0:e.map((e=>{const t="/"===e.link.charAt(e.link.length-1)?e.link:`${e.link}/`,i=`${r}${t}`,o=!!e.children&&0===e.children.length;return Qe("details",{open:this.isExpanded,"data-expandable":e.children&&e.children.length>0?"true":"false",class:"nav-tree-item nested",id:e.name,title:e.name,onClick:()=>this.onExpansionChange(i,!o)},Qe("summary",{class:"content-container "+(o?"":"is-link"),"data-selected":this.shouldNodeBeSelected(i)?"true":"false"},Qe("a",{class:`depth-${n}`,href:i,onClick:e=>this.handleLinkClick(e,i)},this.getIcon(e.type),Qe("span",{class:"link-container"},e.name))),this.getChildNodes(e.children,this.isExpanded,n+1,i))}))}render(){return Qe("details",{open:this.isExpanded,"data-expandable":this.node.children&&this.node.children.length>0?"true":"false",class:"nav-tree-item nested",id:this.node.name,title:this.node.name,onClick:()=>this.onExpansionChange(this.href,0===this.node.children.length)},Qe("summary",{class:"content-container","data-selected":this.shouldNodeBeSelected(this.href)?"true":"false"},Qe("a",{class:`depth-${this.depth}`,href:this.href,onClick:e=>this.handleLinkClick(e,this.href)},this.getIcon(this.node.type),Qe("span",{class:"link-container"},this.node.name))),this.getChildNodes(this.node.children,this.isExpanded))}},yi=class extends HTMLElement{constructor(){super(),this.__registerHost()}getNodes(e=this.nodes){return null==e?void 0:e.map((e=>{const t="/"===e.link.charAt(e.link.length-1)?e.link:`${e.link}/`,n=`${this.baseDirectory}${t}`;return Qe("pulumi-api-doc-nav-node",{node:e,isExpanded:e.isExpanded,href:n})}))}render(){return Qe("div",null,this.getNodes())}static get style(){return'@charset "UTF-8";.symbol-container{height:100%;display:flex;align-items:center}.symbol{height:14px;width:14px;border-width:1px;border-style:solid;box-sizing:border-box;border-radius:50%;margin-right:6px}.symbol.module,.symbol.function,.symbol.resource{display:flex;align-items:center;justify-content:center;box-sizing:border-box}.symbol.module{border-color:#1d8673}.symbol.module:before{content:"M";color:#1d8673;font-size:9px;font-weight:700}.symbol.function{border-color:red}.symbol.function:before{content:"F";color:red;font-size:9px;font-weight:700}.symbol.resource{border-color:#3e49ae}.symbol.resource:before{content:"R";color:#3e49ae;font-size:9px;font-weight:700}.nav-tree-item a{height:100%;display:flex;align-items:center;text-decoration:none;color:#2b2b2c;max-width:24ch}.nav-tree-item a:hover{text-decoration:underline}.nav-tree-item summary{width:100%;padding-left:8px}@media (max-width: 1279px){.nav-tree-item summary.depth-0{max-width:12ch}.nav-tree-item summary.depth-1{max-width:10ch}.nav-tree-item summary.depth-2{max-width:8ch}}@media (min-width: 1280px){.nav-tree-item summary.depth-0{max-width:24ch}.nav-tree-item summary.depth-1{max-width:22ch}.nav-tree-item summary.depth-2{max-width:20ch}}.content-container{height:100%;width:100%;display:flex;align-items:center}.link-container{display:block;overflow:hidden;text-overflow:ellipsis}details{padding:0.25rem 0.5rem}details summary{list-style:none;padding:0.25rem 0rem;cursor:pointer}details summary:hover{background-color:#f9f9f9}details summary.is-link:hover{text-decoration:underline}details summary[data-selected=true]{background-color:#e0e0e0;font-weight:bold}details summary[data-selected=true] a:hover{text-decoration:none}details summary::-webkit-details-marker{display:none}details summary a{padding:0.25rem}details[data-expandable]>summary::before{font-family:"Font Awesome 5 Free";font-weight:900;content:"";display:inline-block;cursor:none;visibility:hidden}details[data-expandable=true]>summary::before{margin-right:0.5rem;cursor:pointer;visibility:visible}details[data-expandable=true][open]>summary::before{transform:rotate(90deg)}'}},bi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.paused=!0,this.isLoading=!1,this.error=!1}componentDidLoad(){const e=this.getAudio();e&&(e.volume=1,e.muted=!1),e.addEventListener("pause",(()=>this.paused=!0)),e.addEventListener("play",(()=>this.paused=!1))}toggleMute(){if(this.isLoading)return;const e=this.getAudio();e.paused?(this.isLoading=!0,e.play().then((()=>{this.isLoading=!1})).catch((()=>{this.error=!0}))):e.pause()}getAudio(){return this.el.querySelector("audio")}renderError(){return Qe("div",{class:"audio-container"},Qe("div",{class:"error-callout"},"Music Cannot Be Played"))}renderAudio(){const e=this.paused?this.pausedText:this.playingText,t=this.isLoading?"fa-cog fa-spin":"fas fa-music";return Qe("div",{class:"audio-container",onClick:this.toggleMute.bind(this)},Qe("div",{class:"audio-button"},Qe("i",{class:`fas ${t}`}),e),Qe("audio",{preload:"none",loop:!0},Qe("source",{src:this.url,type:"audio/mpeg"})))}render(){return this.error?this.renderError():this.renderAudio()}get el(){return this}},wi=(()=>{let e;return{getStore:()=>e,setStore:t=>{e=t},getState:()=>e&&e.getState(),mapDispatchToProps:(t,n)=>{Object.keys(n).forEach((r=>{const i=n[r];Object.defineProperty(t,r,{get:()=>(...t)=>e.dispatch(i(...t)),configurable:!0,enumerable:!0})}))},mapStateToProps:(t,n)=>{const r=(r,i)=>{const o=n(e.getState());Object.keys(o).forEach((e=>{const n=o[e];t[e]=n}))},i=e.subscribe((()=>r()));return r(),i}}})();var _i;!function(e){e.SET_LANGUAGE="SET_LANGUAGE",e.SET_K8S_LANGUAGE="SET_K8S_LANGUAGE",e.SET_INPUT_KIND="SET_INPUT_KIND",e.SET_OS="SET_OS",e.SET_CLOUD="SET_CLOUD",e.SET_PERSONA="SET_PERSONA",e.SET_BACKEND="SET_BACKEND",e.DISMISS_BANNER="DISMISS_BANNER",e.GET_USER_INFO="GET_USER_INFO"}(_i||(_i={}));const Si=e=>(t,n)=>{t({type:_i.DISMISS_BANNER,payload:{name:e,dismissedAt:Date.now()}})},xi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.dismissible=!0,this.visible=!1}onRendered(e){wi.mapDispatchToProps(this,{dismissBanner:Si}),this.storeUnsubscribe=wi.mapStateToProps(this,(e=>({visible:!!this.name&&!e.banners.dismissed.find((e=>e.name===this.name))})))}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return Qe("div",null,Qe("slot",null),Qe("div",{class:"dismiss",onClick:e=>this.dismiss(e),title:"Dismiss"},Qe("span",null,"×")))}dismiss(e){this.dismissBanner(this.name)}static get style(){return"pulumi-banner{display:block;position:relative}pulumi-banner .dismiss{cursor:pointer;display:none;position:absolute;top:50%;right:16px;transform:translateY(-50%)}pulumi-banner[dismissible] .dismiss{display:block}pulumi-banner[dismissed]{display:none}"}},ki=class extends HTMLElement{constructor(){super(),this.__registerHost()}onModeChange(e){"local"===e&&this.storeUnsubscribe&&this.storeUnsubscribe()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}onRendered(e){this.mode="global","global"===this.mode&&(this.storeUnsubscribe=wi.mapStateToProps(this,(e=>{const{preferences:{language:t,k8sLanguage:n,os:r,cloud:i,persona:o,backend:s}}=e;switch(this.type){case"language":return{selection:t};case"k8s-language":return{selection:n};case"os":return{selection:r};case"cloud":return{selection:i};case"persona":return{selection:o};case"backend":return{selection:s}}})))}render(){const e=this.values?this.values.split(",").map((e=>e.trim())):[],t=this.selection&&(this.selection===this.value||e.includes(this.selection));return Qe("div",{class:t?"active":""},Qe("slot",null))}get el(){return this}static get watchers(){return{mode:["onModeChange"]}}static get style(){return"pulumi-choosable>*{display:none}pulumi-choosable>*.active{display:inherit}"}},Oi=e=>(t,n)=>t(e),$i=e=>Oi({key:e,type:_i.SET_LANGUAGE}),Ei=e=>Oi({key:e,type:_i.SET_K8S_LANGUAGE}),Ci=e=>Oi({key:e,type:_i.SET_OS}),Ti=e=>Oi({key:e,type:_i.SET_CLOUD}),Pi=e=>Oi({key:e,type:_i.SET_PERSONA}),Ai=e=>Oi({key:e,type:_i.SET_BACKEND}),ji=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.currentOptions=[],this.supportedBackEnds=[{key:"service",name:"Service",preview:!1},{key:"self-managed",name:"Self Managed",preview:!1}],this.supportedPersonas=[{key:"developer",name:"Developers",preview:!1},{key:"devops",name:"DevOps & Infra Teams",preview:!1},{key:"security",name:"Security Engineers",preview:!1},{key:"leader",name:"Engineering Leaders",preview:!1}],this.supportedLanguages=[{key:"typescript",name:"TypeScript",extension:"ts",preview:!1},{key:"javascript",name:"JavaScript",extension:"js",preview:!1},{key:"python",name:"Python",extension:"py",preview:!1},{key:"go",name:"Go",extension:"go",preview:!1},{key:"csharp",name:"C#",extension:"cs",preview:!1},{key:"fsharp",name:"F#",extension:"fs",preview:!1},{key:"visualbasic",name:"VB",extension:"vb",preview:!1},{key:"java",name:"Java",extension:"java",preview:!1},{key:"yaml",name:"YAML",extension:"yaml",preview:!1}],this.supportedk8sLanguages=[{key:"typescript",name:"TypeScript",preview:!1},{key:"typescript-kx",name:"TypeScript KX",preview:!1},{key:"yaml",name:"YAML",preview:!1}],this.supportedOSs=[{key:"macos",name:"macOS",preview:!1},{key:"windows",name:"Windows",preview:!1},{key:"linux",name:"Linux",preview:!1}],this.supportedClouds=[{key:"aws",name:"AWS",preview:!1},{key:"azure",name:"Azure",preview:!1},{key:"gcp",name:"Google Cloud",preview:!1},{key:"kubernetes",name:"Kubernetes",preview:!1},{key:"digitalocean",name:"DigitalOcean",preview:!1},{key:"docker",name:"Docker",preview:!1}]}componentWillLoad(){this.parseOptions()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}componentDidRender(){this.applyChoice()}onRendered(e){this.mode="global",this.optionStyle="tabbed",this.parseOptions(),wi.mapDispatchToProps(this,{setLanguage:$i,setK8sLanguage:Ei,setOS:Ci,setCloud:Ti,setPersona:Pi,setBackEnd:Ai}),this.storeUnsubscribe=wi.mapStateToProps(this,(e=>{const{preferences:{language:t,k8sLanguage:n,os:r,cloud:i,persona:o,backend:s}}=e,a=e=>{if(!this.currentOptions.find((t=>t.key===e))){const t=this.currentOptions[0];e=t.key,this.choosables.length>0?(this.mode="local",this.choosables.forEach((e=>{e.setAttribute("mode","local")})),setTimeout((()=>this.storeUnsubscribe()))):setTimeout((()=>this.setChoice(this.type,t)))}return{selection:e}};switch(this.type){case"language":return a(t);case"k8s-language":return a(n);case"os":return a(r);case"cloud":return a(i);case"persona":return a(o);case"backend":return a(s);default:return{}}}))}render(){return Qe(Ze,{selection:this.selection},Qe("ul",null,this.currentOptions.map((e=>Qe("li",{class:this.selection===e.key?"active":""},Qe("a",{onClick:t=>this.makeChoice(t,this.type,e)},e.name," ",e.preview?Qe("span",null,"PREVIEW"):""))))),Qe("slot",null))}get choosables(){return this.el.querySelectorAll("pulumi-choosable")}parseOptions(){if(this.currentOptions=[],!this.type)throw new Error("Chooser attribute `type` is required.");if(!this.options)throw new Error("Chooser attribute `options` is required.");try{const e=this.options.split(",").map((e=>e.trim()));this.mapOptions(this.type,e)}catch(e){throw console.error(`Error parsing chooser options "${this.options}"`),e}}mapOptions(e,t){let n=[];switch(e){case"language":n=this.supportedLanguages;break;case"k8s-language":n=this.supportedk8sLanguages;break;case"os":n=this.supportedOSs;break;case"cloud":n=this.supportedClouds;break;case"persona":n=this.supportedPersonas;break;case"backend":n=this.supportedBackEnds}this.currentOptions=n.filter((e=>t.includes(e.key)))}makeChoice(e,t,n){this.setChoice(t,n);var r=e.target,i=r.getBoundingClientRect().top;window.requestAnimationFrame((()=>{const e=this.getDistanceFromDocumentTop(r);window.scroll(0,e-i)}))}getDistanceFromDocumentTop(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}setChoice(e,t){const n=t.key;if(this.selection=n,"local"!==this.mode)switch(e){case"language":this.setLanguage(n);break;case"k8s-language":this.setK8sLanguage(n);break;case"os":this.setOS(n);break;case"cloud":this.setCloud(n);break;case"persona":this.setPersona(n);break;case"backend":this.setBackEnd(n)}}applyChoice(){this.selection&&this.choosables.forEach((e=>{e.setAttribute("selection",this.selection)}))}get el(){return this}static get style(){return"pulumi-chooser[option-style=none]>ul{display:none}pulumi-chooser>*{display:inherit}pulumi-chooser pulumi-choosable{display:inherit}"}},Ii=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultFormId=""}componentWillLoad(){this.parsedItems=JSON.parse(this.items).map((e=>({key:e.key,label:e.label?e.label:e.key.charAt(0).toUpperCase()+e.key.slice(1),hubspotFormId:e.hubspot_form_id,cta:e.cta})));const e=oi("form");if(e){const t=this.parsedItems.find((t=>t.key.toLowerCase()===e.toLowerCase()));if(t)return void(this.defaultFormId=t.hubspotFormId)}}render(){return Qe("pulumi-multi-select-form",{items:this.parsedItems,selectClass:this.selectClass,labelClass:this.labelClass,labelText:"Why are you contacting us today?",defaultFormId:this.defaultFormId})}static get style(){return":host{display:block}"}};function Li(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function Di(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1||Ki(document.body,e)||function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=Ki(t,e);return document.body.removeChild(t),n}(e)||function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),Gi(r);var i=document.execCommand("copy");return Ji(),document.body.removeChild(t),i}(e["text/plain"])?[2,!0]:[2,!1]}))}))}function Qi(e){return Li(this,void 0,void 0,(function(){return Di(this,(function(t){if(Vi)return[2,Vi(e)];if(!Yi(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}const Xi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.sourceFiles=[],this.theme="",this.converting=!1,this.convertible=!1,this.alertDismissed=!1,this.supportedLanguages=[{key:"typescript",name:"TypeScript",filename:"index.ts"},{key:"python",name:"Python",filename:"__main__.py"},{key:"go",name:"Go",filename:"main.go"},{key:"csharp",name:"C#",filename:"MyStack.cs"}]}componentDidLoad(){try{this.validateProps(),this.validateGlobals(),this.prepareEditors(),this.prepareSourceFiles()}catch(e){console.error(e.message)}}get inputEditorEl(){return this.el.querySelector("#editor-input")}get outputEditorEl(){return this.el.querySelector("#editor-output")}get inputEditorMode(){switch(this.from){case"tf":return"ruby";case"kube":case"cf":return"yaml";case"arm":return"javascript"}}get inputEditorValue(){return this.inputEditor.getValue()}get inputEditorDefaultFilename(){switch(this.from){case"tf":return"main.tf";case"kube":return"kube.yaml";case"arm":return"azuredeploy.json";case"cf":return"aws.yaml"}}get sourceLanguageName(){switch(this.from){case"tf":return"Terraform";case"kube":return"Kubernetes YAML";case"arm":return"ARM";case"cf":return"CloudFormation"}}get endpointPath(){switch(this.from){case"tf":return"convert";case"arm":return"convertARM";case"kube":return"convertKube";case"cf":return"convertCFN"}}get conversionTool(){switch(this.from){case"tf":return{name:"the Terraform converter",githubURL:"https://github.com/pulumi/pulumi"};case"kube":return{name:"the Kubernetes converter",githubURL:"https://github.com/pulumi/pulumi"};case"arm":return{name:"the ARM converter",githubURL:"https://github.com/pulumi/pulumi"};case"cf":return{name:"cf2pulumi",githubURL:"https://github.com/pulumi/pulumi-aws-native"};default:return{name:`${this.from}2pulumi`,githubURL:"https://github.com/pulumi/pulumi"}}}validateGlobals(){if([typeof CodeMirror,typeof JSZip,typeof saveAs].filter((e=>"undefined"===e)).length>0)throw new Error("The pulumi-convert component requires CodeMirror, JZSip, and FileSaver. Please ensure each of these scripts has been loaded into global before using it.")}validateProps(){const e=[];this.from&&["tf","kube","arm","cf"].includes(this.from)||e.push("A valid `from` attribute is required.");try{this.endpointURL=new URL(this.endpoint)}catch(t){e.push("A valid `endpoint` attribute is required.")}if(this.examples||console.warn("A list of examples was provided."),this.theme||console.warn("A CodeMirror theme was not specified. The Using `material-ocean`."),e.length)throw new Error(e.join("\n"))}prepareEditors(){this.selectedOutputLanguage=this.supportedLanguages[0];const e={lineNumbers:!0,theme:this.theme||""};this.inputEditor=CodeMirror.fromTextArea(this.inputEditorEl,Object.assign(Object.assign({},e),{indentUnit:["kube","cf"].includes(this.from)?2:4,mode:this.inputEditorMode})),this.outputEditor=CodeMirror.fromTextArea(this.outputEditorEl,Object.assign(Object.assign({},e),{readOnly:!0})),this.inputEditor.on("change",(()=>{this.convertible=""!==this.inputEditorValue.trim(),this.selectedSourceFile===this.customSourceFile&&(this.customSourceFile.code=this.inputEditorValue)})),this.inputEditor.on("keydown",((e,t)=>{!t.metaKey||"Enter"!==t.key&&"s"!==t.key||(t.preventDefault(),this.convert())}))}prepareSourceFiles(){if(this.sourceFiles=[],this.examples&&this.examples.length>0)try{this.sourceFiles.push(...JSON.parse(this.examples))}catch(e){console.error("Failed to load examples:",e)}this.customSourceFile={name:"Custom",description:`Convert your own ${this.sourceLanguageName} code.`,filename:this.inputEditorDefaultFilename,code:""},this.sourceFiles.push(this.customSourceFile),this.selectSourceFile(this.sourceFiles[0]),this.convert()}selectSourceFile(e){this.selectedSourceFile=e,this.inputEditor.setValue(e.code),this.inputEditor.clearHistory(),this.convert()}selectOutputLanguage(e){this.selectedOutputLanguage=e,this.convert()}setOutputResult(e){this.outputResult=e,this.outputEditor.setValue(e?e.code:"")}copyToClipboard(){Qi(this.outputEditor.getValue())}downloadZip(){const e=new JSZip;e.file(this.outputResult.filename,this.outputResult.code),e.generateAsync({type:"blob"}).then((e=>{saveAs(e,`${this.from}2pulumi.zip`)}))}dismissAlert(){this.alertDismissed=!0}async convert(){var e;this.setOutputResult(null);const t=this.inputEditorValue,n=this.selectedOutputLanguage;if(t){this.converting=!0,this.alertDismissed=!1;try{const r=await fetch([this.endpointURL,this.endpointPath].join("/"),{method:"POST",mode:"cors",body:JSON.stringify({code:t,language:n.key})}),i=await r.json();if(i.error)this.setOutputResult({filename:"",code:"",diagnostics:i.diagnostics||"",status:{success:!1,message:i.error}});else if(i.files){let[t,r]=Object.entries(i.files)[0];t.match(/\w+\.\w+/)||(t=this.supportedLanguages.find((e=>e.key===n.key)).filename);const o=(null===(e=i.diagnostics)||void 0===e?void 0:e.replace(/^no diagnostics$/,""))||"";t&&r&&this.setOutputResult({filename:t,code:r,diagnostics:o,status:{success:!0,message:t}}),o&&(this.outputResult.diagnostics=o)}}catch(e){console.error(`Submission failed: ${e}`)}this.converting=!1}}get statusBarClasses(){const e=["status-bar"];return this.converting&&e.push("converting"),this.outputResult&&(this.outputResult.diagnostics?e.push("warn"):e.push(this.outputResult.status.success?"success":"error")),e.join(" ")}combineClasses(...e){return e.filter((e=>e&&""!==e)).join(" ")}trackEventLabel(e){return this.from&&this.selectedOutputLanguage?["convert",this.from,e,this.selectedOutputLanguage.key].join("-"):""}renderToolDescription(){let e=this.conversionTool.githubURL?Qe("a",{href:this.conversionTool.githubURL},this.conversionTool.name):this.conversionTool.name;switch(this.from){case"tf":e=Qe("code",null,"pulumi convert --from terraform");break;case"arm":e=Qe("code",null,"pulumi convert --from arm");break;case"kube":e=Qe("code",null,"pulumi convert --from kubernetes")}return Qe("p",null,"Your code will be converted with"," ",e,", an open-source command-line tool we built to make it as easy as possible for you to migrate your existing ",this.sourceLanguageName," projects to Pulumi. The resulting file can be copied or downloaded for use with ",Qe("a",{href:"https://pulumi.com/start"},"a new Pulumi project"),".")}renderWindowBar(){return Qe("div",{class:"window-bar"},Qe("div",{class:"window-bar-buttons"},Qe("div",{class:"window-bar-button"}),Qe("div",{class:"window-bar-button"}),Qe("div",{class:"window-bar-button"})))}renderTab(e,t,n,r,i){return Qe("li",{onClick:i.bind(this,e),"data-track":this.trackEventLabel("tab"),class:this.combineClasses("tab",e===t?"active":""),title:r},Qe("span",{class:"label"},n),Qe("span",{class:"indicator"}))}renderConvertButton(e){var t;const n=`Convert this ${this.sourceLanguageName} code to ${null===(t=this.selectedOutputLanguage)||void 0===t?void 0:t.name}`,r=Qe("button",{onClick:this.convert.bind(this),"data-track":this.trackEventLabel("button"),class:this.combineClasses("btn-convert",this.converting?"converting":""),title:n,disabled:!this.convertible||this.converting},Qe("span",{class:"label"},"Convert"),Qe("span",{class:"icon"}));return e?Qe("pulumi-tooltip",null,r,Qe("span",{slot:"content"},n)):r}renderDismissAlertButton(){return Qe("button",{class:"toggle",title:"Dismiss this message",onClick:this.dismissAlert.bind(this)},Qe("span",{class:"icon"}))}renderStatusBar(e){var t,n,r,i;switch(e){case"input":return Qe("div",{class:"status-bar"},Qe("span",{class:"message"},null===(t=this.selectedSourceFile)||void 0===t?void 0:t.filename,(null===(n=this.selectedSourceFile)||void 0===n?void 0:n.description)?` • ${this.selectedSourceFile.description}`:""));case"output":return Qe("div",{class:this.statusBarClasses},Qe("span",{class:"icon"}),Qe("span",{class:"message"},null===(i=null===(r=this.outputResult)||void 0===r?void 0:r.status)||void 0===i?void 0:i.message),Qe("div",{class:this.combineClasses("alert","alert-error",this.alertDismissed?"dismissed":void 0)},this.renderDismissAlertButton(),Qe("p",null,Qe("strong",null,"Sorry, we were unable to convert your code.")),Qe("p",null,"There could be a problem with the code you submitted, or it might use a feature ",this.conversionTool.name," doesn't support. Join us in"," ",Qe("a",{href:"https://slack.pulumi.com/"},"Community Slack")," for help.")),Qe("div",{class:this.combineClasses("alert","alert-warn",this.alertDismissed?"dismissed":void 0)},this.renderDismissAlertButton(),Qe("p",null,Qe("strong",null,"Sorry, we were unable to convert your code completely.")),Qe("p",null,"The code was valid, but ",this.conversionTool.name," was unable to convert it completely. There could be a problem with the code you submitted, or it might use a feature ",this.conversionTool.name," doesn't support. Join us in ",Qe("a",{href:"https://slack.pulumi.com/"},"Community Slack")," for help.")));default:return Qe("div",{class:"status-bar"},Qe("span",{class:"message"}," "))}}renderDiagnostics(){var e,t;if(null===(e=this.outputResult)||void 0===e?void 0:e.diagnostics)return console.log("Conversion completed with errors. Diagnostics:"),console.log(null===(t=this.outputResult)||void 0===t?void 0:t.diagnostics),Qe("div",{class:"diagnostics"},Qe("p",null,Qe("strong",null,"Diagnostics:")),Qe("p",{class:"details"},this.outputResult.diagnostics))}render(){return Qe("div",null,Qe("div",{id:"editors"},Qe("div",{class:"editor editor-input"},Qe("div",{class:"editor-heading"},Qe("h3",null,Qe("span",{class:"editor-step"},"1"),"Start with some ",this.sourceLanguageName,"."),Qe("p",null,"We've included a few examples for reference — feel free to edit them as you like, or replace them with your own code. (And don't worry, we send your code over SSL and don't store anything on our servers.) When you're ready to transform your ",this.sourceLanguageName," code to Pulumi, select ",Qe("strong",null,"Convert"),".")),Qe("div",{class:"editor-container"},this.renderWindowBar(),Qe("ul",{class:"tabs"},this.sourceFiles.map((e=>this.renderTab(e,this.selectedSourceFile,e.name,e.description,this.selectSourceFile))),Qe("li",{class:"actions"},this.renderConvertButton(!0))),Qe("textarea",{id:"editor-input"}),this.renderStatusBar("input"))),Qe("div",{class:this.combineClasses("editor","editor-output",this.converting?"converting":"")},Qe("div",{class:"editor-heading"},Qe("h3",null,Qe("span",{class:"editor-step"},"2"),"Turn it into your language of choice."),this.renderToolDescription(),Qe("div",null,this.renderConvertButton(!1))),Qe("div",{class:"editor-container"},this.renderWindowBar(),Qe("ul",{class:"tabs"},this.supportedLanguages.map((e=>this.renderTab(e,this.selectedOutputLanguage,e.name,e.name,this.selectOutputLanguage))),Qe("li",{class:"actions"},Qe("pulumi-tooltip",null,Qe("button",{onClick:this.copyToClipboard.bind(this),"data-track":this.trackEventLabel("copy"),class:"btn-copy"},Qe("i",null)),Qe("span",{slot:"content"},"Copy to clipboard")),Qe("pulumi-tooltip",null,Qe("button",{onClick:this.downloadZip.bind(this),"data-track":this.trackEventLabel("download"),class:"btn-download"},Qe("i",null)),Qe("span",{slot:"content"},"Download as .zip")))),Qe("div",{class:"editor-spinner"}),Qe("textarea",{id:"editor-output"}),this.renderStatusBar("output")),this.renderDiagnostics())))}get el(){return this}static get style(){return"pulumi-convert{display:block}pulumi-convert textarea{opacity:0}"}},Zi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.textClass="",this.containerClass="",this.valueLabelClass="",this.countdownOverText=""}componentWillLoad(){const e=new Date(this.dateString).getTime();this.generateCountdownData(e),setInterval((()=>this.generateCountdownData(e)),1e3)}generateCountdownData(e){const t=e-Date.now();this.countdownData={remainingTimeInMS:t,days:Math.floor(t/864e5),hours:Math.floor(t%864e5/36e5),minutes:Math.floor(t%36e5/6e4),seconds:Math.floor(t%6e4/1e3)}}renderValueLabel(e){return Qe("span",{class:this.valueLabelClass},e)}renderCountdownPart(e,t){return Qe("p",{class:this.textClass},e,this.renderValueLabel(t))}renderCountdown(){const{days:e,hours:t,minutes:n,seconds:r,remainingTimeInMS:i}=this.countdownData;return Qe("div",{class:this.containerClass},i>0?[this.renderCountdownPart(e,"Days"),this.renderCountdownPart(t,"Hours"),this.renderCountdownPart(n,"Minutes"),this.renderCountdownPart(r,"Seconds")]:Qe("p",{class:this.textClass},this.countdownOverText))}render(){return Qe(Ze,null,this.countdownData&&this.renderCountdown())}static get style(){return":host{display:block}"}},eo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.containerClass="",this.valueLabelClass=""}componentWillLoad(){const e=new Date(this.dateString).getTime();this.generateCountdownData(e),setInterval((()=>this.generateCountdownData(e)),1e3)}generateCountdownData(e){const t=e-Date.now(),n=Math.floor(t/6048e5),r=Math.floor(t%6048e5/864e5),i=Math.floor(t%864e5/36e5),o=Math.floor(t%36e5/6e4),s=Math.floor(t%6e4/1e3),a=n/52*100,l=r/7*100,c=i/24*100,u=o/60*100,d=s/60*100;this.countdownData={remainingTimeInMS:t,weeks:n,days:r,hours:i,minutes:o,seconds:s,weeksPercent:a,daysPercent:l,hoursPercent:c,minutesPercent:u,secondsPercent:d}}renderValueLabel(e){return Qe("span",{class:this.valueLabelClass},e)}renderNumberCircle(e,t){return t<=0&&(t=0,e=0),Qe("div",{class:"timer-wrapper"},Qe("div",{class:"circle",style:{"--p":`${t}`}},e))}renderCountdownPart(e,t,n){return Qe("div",{class:"mx-4 text-center"},this.renderNumberCircle(e,n),this.renderValueLabel(t))}renderCountdown(){const{weeks:e,days:t,hours:n,minutes:r,seconds:i,weeksPercent:o,daysPercent:s,hoursPercent:a,minutesPercent:l,secondsPercent:c}=this.countdownData;return Qe("div",{class:this.containerClass},[this.renderCountdownPart(e,"Weeks",o),this.renderCountdownPart(t,"Days",s),this.renderCountdownPart(n,"Hours",a),this.renderCountdownPart(r,"Minutes",l),this.renderCountdownPart(i,"Seconds",c)])}render(){return Qe(Ze,null,this.countdownData&&this.renderCountdown())}static get style(){return".timer-wrapper{height:75px;width:75px;display:flex;align-items:center;justify-content:center}.circle{border-radius:50%;border:5px solid transparent;position:relative;width:100%;height:100%;background:linear-gradient(#fff, #fff) content-box no-repeat, conic-gradient(#805ac3 calc(var(--p)*1%), 0, #ededed 100%) border-box;display:flex;justify-content:center;align-items:center}"}},to=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this)}componentWillLoad(){const e=new Date(this.date),t=this.timeonly?{timeZoneName:"short",hour:"numeric",minute:"2-digit"}:{timeZoneName:"long",weekday:"short",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"};this.date=e.toLocaleString(void 0,t)}render(){return Qe("time",{class:this.class||""},Qe("span",null,this.date))}static get style(){return":host{display:block}"}},no=class extends HTMLElement{constructor(){super(),this.__registerHost()}addLogo(e){return Object.assign(Object.assign({},e),{logo:function(){switch(e.source){case"twitter":return Qe("img",{class:"w-6",src:"/logos/tech/twitter.svg"});case"reddit":return Qe("img",{class:"w-6",src:"/logos/tech/reddit.svg"});case"email":return Qe("i",{class:"fas fa-envelope text-gray-500 text-xl"});case"blog":return Qe("i",{class:"fas fa-blog text-gray-500 text-xl"});case"slack":return Qe("img",{class:"w-6",src:"/logos/tech/slack.svg"});case"linkedin":return Qe("img",{class:"w-6",src:"/logos/tech/linkedin.svg"});default:return Qe("a",null,e.source)}}()})}enableLink(e){return!["slack","email"].includes(e)}render(){let e=JSON.parse(this.quotes).sort(((e,t)=>e.featured&&t.featured?0:e.featured&&!t.featured?-1:!e.featured&&t.featured?1:void 0)).map(this.addLogo).reduce(((e,t,n)=>(n%2?e[1].push(t):e[0].push(t),e)),[[],[]]);return Qe("div",{class:"lg:flex flex-row block"},e.map((e=>Qe("div",{class:"lg:w-6/12 w-12/12 mx-8"},e.map((e=>Qe("div",{class:"quote-card my-8 p-2 rounded-lg max-w-80"},Qe("a",{class:"flex flex-col",href:this.enableLink(e.source)?e.link:void 0,target:"_blank",rel:"noopener noreferrer"},Qe("div",{class:"w-full flex-grow text-justify p-3 text-gray-700"},'"',e.message,'"'),Qe("div",{class:"flex flex-row"},Qe("div",{class:"p-3 text-gray-500"},e.author),Qe("div",{class:"flex-grow"}),Qe("div",{class:"p-3"},e.logo))))))))))}static get style(){return"pulumi-developer-quotes .quote-card{box-shadow:0 6px 36px rgba(0, 0, 0, 0.1)}pulumi-developer-quotes .quote-card:hover{box-shadow:10px 15px 60px rgba(0, 0, 0, 0.2)}"}},ro=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.expandedMenuIDs=""}onClick(e){const t=e.target,n=t.nodeName.toLowerCase();"button"!==n&&"i"!==n||(t.closest("li").classList.toggle("expanded"),e.stopPropagation(),e.preventDefault())}componentDidRender(){const e=this.el.querySelector("a.active");if(e){let t=e.closest("pulumi-docs-nav li.expandable");for(;t;)t.classList.add("expanded"),t=t.parentElement.closest("pulumi-docs-nav li.expandable")}this.expandedMenuIDs.split(",").forEach((e=>{""!==e&&this.el.querySelectorAll(`[data-menu-id='${e}']`).forEach((e=>{e.classList.add("expanded")}))}))}render(){return Qe("slot",null)}get el(){return this}static get style(){return"pulumi-docs-nav{display:block}"}},io=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Qe("div",null,Qe("slot",null))}static get style(){return""}},oo=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillRender(){const e=Array.from(this.el.querySelectorAll("pulumi-examples h3"));e.forEach((e=>{const t=document.createElement("span");e.prepend(t),e.addEventListener("click",(t=>{t.target.classList.contains("anchorjs-link")||this.toggle(e)}))})),e&&e.length>0&&this.toggle(e[0])}toggle(e){e.classList.toggle("expanded");let t=e.nextElementSibling;for(;t&&"DIV"===t.nodeName;)t.classList.toggle("expanded"),t=t.nextElementSibling}render(){return Qe("div",null,Qe("slot",null))}get el(){return this}static get style(){return""}},so=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this),this.filterSelect=Ot(this,"filterSelect",7),this.filters=[]}reset(){return this.options.forEach((e=>e.selected=!1)),this.groups.forEach((e=>e.close())),this.filterSelect.emit([]),Promise.resolve(null)}select(e){return this.options.forEach((t=>{t.value===e.value&&t.select()})),Promise.resolve()}deselect(e){return this.options.forEach((t=>{t.value===e.value&&t.deselect()})),Promise.resolve()}onOptionChange(e){e.stopPropagation(),this.filters=this.options.filter((e=>e.selected)).map((e=>({group:e.closest("pulumi-filter-select-option-group").name,value:e.value,label:e.label}))),this.filterSelect.emit(this.filters)}get groups(){return Array.from(this.el.querySelectorAll("pulumi-filter-select-option-group"))}get options(){return Array.from(this.el.querySelectorAll("pulumi-filter-select-option"))}render(){return Qe("div",null,Qe("slot",null))}get el(){return this}static get style(){return"div {\n display: flex;\n }"}},ao=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this),this.optionChange=Ot(this,"optionChange",7)}select(){return this.selected=!0,this.emit(),Promise.resolve()}deselect(){return this.selected=!1,this.emit(),Promise.resolve()}onChange(e){this.selected=e.target.checked,this.emit()}emit(){this.optionChange.emit({option:{value:this.value,selected:this.selected,label:this.label}})}render(){return Qe("div",null,Qe("label",null,Qe("input",{type:"checkbox",value:this.value,onChange:this.onChange.bind(this),checked:this.selected,class:""+(this.selected?"selected":"")}),Qe("slot",null)))}get el(){return this}static get style(){return"label {\n white-space: nowrap;\n }\n\n input {\n margin-right: 0.5em;\n }"}},lo=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this)}onToggle(){this.expanded=!this.expanded}onDocumentClick(e){!this.el.contains(e.target)&&this.expanded&&this.close()}close(){return this.expanded=!1,Promise.resolve(null)}render(){return Qe("div",null,Qe("div",{class:"button",role:"button",onClick:this.onToggle.bind(this)},Qe("span",{class:"toggle",part:"toggle"},Qe("slot",{name:"toggle"}))),Qe("div",{class:"menu"},Qe("div",null,Qe("slot",null))))}get el(){return this}static get style(){return'.menu {\n position: relative;\n transition: all 100ms;\n opacity: 0;\n top: -2px;\n pointer-events: none;\n z-index: 10;\n }\n\n .menu > div {\n position: absolute;\n }\n\n .button {\n cursor: pointer;\n }\n\n .button .toggle {\n margin-right: 0.5em;\n }\n\n .toggle {\n display: flex;\n }\n\n .toggle slot {\n position: relative;\n display: block;\n width: 100%;\n }\n\n :host([expanded]) .menu {\n opacity: 1;\n top: 0;\n pointer-events: auto;\n }\n\n .toggle slot::after {\n position: absolute;\n right: 0.5em;\n top: 50%;\n transform: translateY(-50%);\n content: "▾";\n }\n\n :host([expanded]) .toggle slot::after {\n transform: rotate(180deg) translateY(50%);\n }'}},co=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.departments=[]}componentWillLoad(){this.fetchJobs()}async fetchJobs(){this.loading=!0;try{const e=await fetch("https://boards-api.greenhouse.io/v1/boards/pulumicorporation/departments"),t=await e.json();t&&t.departments&&(this.departments=t.departments.filter((e=>e.jobs.length>0)))}catch(e){console.error(e)}this.loading=!1}renderLoadingSpinner(){return Qe("div",{class:"loading-spinner"})}renderJobsList(){return this.departments.length>0?Qe("ul",{class:"departments"},this.departments.map((e=>Qe("li",null,Qe("h4",null,e.name),Qe("ul",{class:"jobs"},e.jobs.map((e=>Qe("li",null,Qe("a",{class:"job-title",href:e.absolute_url,target:"_blank",rel:"noreferrer noopener"},e.title),Qe("div",{class:"job-location"},e.location.name))))))))):Qe("div",null,Qe("p",null,"There are no open positions at this time."))}render(){return this.loading?this.renderLoadingSpinner():this.renderJobsList()}},uo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.isLoading=!0,this.didLoad=!1}componentWillLoad(){if(!this.formId)throw new Error("The required attribute `form-id` was not provided.");this.hubspotFormTargetId=`hubspotForm_${this.formId}`}componentDidLoad(){const e=window.hbspt;e?this.createForm(e):this.loadHubSpotFormsScript(),this.messageHandler=this.onMessage.bind(this),window.addEventListener("message",this.messageHandler)}disconnectedCallback(){window.removeEventListener("message",this.messageHandler)}onMessage(e){var t;if("hsFormCallback"!==(null===(t=e.data)||void 0===t?void 0:t.type))return;const n=e.data.eventName,r=this.getUTMCookieData();if("onFormReady"===n){this.isLoading=!1,this.didLoad=!0;this.el.querySelectorAll('input[type="hidden"]').forEach((e=>{const t=e.closest("fieldset");t&&(t.style.display="none")}));const e=this.el.querySelector('input[name="last_utm_campaign"]');e&&(e.value=r.campaign);const t=this.el.querySelector('input[name="last_utm_source"]');t&&(t.value=r.source);const n=this.el.querySelector('input[name="last_utm_medium"]');n&&(n.value=r.medium),this.setInternalAdId()}if("onFormSubmit"===n){const e=this.el.querySelector('input[name="email"]');this.notifySegment(e.value,r)}"onFormDefinitionFetchError"===n&&(this.isLoading=!1,this.didLoad=!1)}notifySegment(e,t){const n=window.analytics;if(n&&n.track&&"function"==typeof n.track&&""!==e){const r={formId:this.formId,email:e,utmCampaign:t.campaign,utmSource:t.source,utmMedium:t.medium};n.track("form-submission",r)}}setInternalAdId(){const e=oi("iaid");if(e){const t=this.el.querySelector('input[name="last_internal_ad_conversion"]');t&&(t.value=e)}}getUTMCookieData(){const e=si(),t=(e.__utmzz||"").split("|").reduce(((e,t)=>{const n=t.split("=");return e[n[0]]=n[1],e}),{});return{campaign:t.utmccn||"(not set)",source:t.utmcsr||"(direct)",medium:t.utmcmd||"(none)"}}loadHubSpotFormsScript(){const e=document.createElement("script");e.setAttribute("src","//js.hsforms.net/forms/v2.js"),e.onload=()=>{const e=window.hbspt;e?this.createForm(e):(this.isLoading=!1,this.didLoad=!1)},e.onerror=()=>{this.isLoading=!1,this.didLoad=!1},document.body.appendChild(e)}createForm(e){e.forms.create({portalId:"4429525",formId:this.formId,css:"",cssClass:this.class,goToWebinarWebinarKey:this.goToWebinarKey,target:`#${this.hubspotFormTargetId}`,sfdcCampaignId:this.salesforceCampaignId})}renderIsLoadingForm(){return Qe("p",null,Qe("i",{class:"fa fa-spinner fa-spin mr-2"}))}renderFailedToLoadForm(){return Qe("p",null,"There was a problem loading this form. Please try refreshing your browser, and if you continue to see this message, let us know at"," ",Qe("a",{href:"mailto:support@pulumi.com"},"support@pulumi.com"),".")}render(){return Qe("div",{id:this.hubspotFormTargetId},this.didLoad||this.isLoading?this.renderIsLoadingForm():this.renderFailedToLoadForm())}get el(){return this}static get style(){return":host{display:block}"}},po=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultTooltipContent="Copy command"}componentWillLoad(){this.tooltipContent=this.defaultTooltipContent}componentDidLoad(){this.os||(this.os=this.detectOS())}detectOS(){const e=navigator.appVersion;return-1!==e.indexOf("Win")?"windows":-1!==e.indexOf("Mac")?"macos":"linux"}get installCommand(){return{macos:"brew install pulumi",windows:"choco install pulumi",linux:"curl -fsSL https://get.pulumi.com | sh"}[this.os]}copyToClipboard(){Qi(this.installCommand.toString()).then((()=>{this.tooltipContent="Copied!",setTimeout((()=>this.tooltipContent=this.defaultTooltipContent),3e3)}))}render(){return Qe("div",null,Qe("div",{class:"command-text"},Qe("p",null,Qe("span",null,this.installCommand))),Qe("div",{class:"copy-button"},Qe("pulumi-tooltip",null,Qe("button",{onClick:this.copyToClipboard.bind(this)},Qe("i",{class:"far fa-copy"})),Qe("span",{slot:"content"},this.tooltipContent))))}get el(){return this}static get style(){return":host{display:block}"}},fo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.items=[],this.defaultFormId="",this.formSubmitted=!1}componentWillLoad(){""!==this.defaultFormId&&(this.selectedItem=this.items.find((e=>e.hubspotFormId===this.defaultFormId)),this.selectedItem)||(this.selectedItem=this.items[0])}componentDidLoad(){this.windowEventHandler=this.handleWindowMessage.bind(this),window.addEventListener("message",this.windowEventHandler)}disconnectedCallback(){window.removeEventListener("message",this.windowEventHandler)}handleWindowMessage(e){if("hsFormCallback"===e.data.type&&"onFormReady"===e.data.eventName){this.el.querySelector("form.hs-form").addEventListener("submit",this.handleFormSubmit.bind(this))}}handleFormSubmit(){this.formSubmitted=!0}handleSelectChange(e){this.selectedItem=this.items.find((t=>t.hubspotFormId===e))}render(){var e;const t=null===(e=this.selectedItem)||void 0===e?void 0:e.hubspotFormId;return Qe("div",null,this.formSubmitted?null:Qe("span",null,Qe("span",{class:this.labelClass||""},this.labelText),Qe("select",{class:this.selectClass||"",onInput:e=>this.handleSelectChange(e.target.value)},this.items.map((e=>{const n=e.hubspotFormId===t;return Qe("option",{value:e.hubspotFormId,selected:n},e.label?e.label:e.key)})))),this.selectedItem.cta?Qe("div",{class:"mt-8"},Qe("a",{class:"btn-secondary",href:this.selectedItem.cta.url},this.selectedItem.cta.label)):Qe("pulumi-hubspot-form",{key:t,"form-id":t}))}get el(){return this}static get style(){return":host{display:block}"}},ho=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.duration="month",this.resourceCount=500,this.utilization=100,this.deploymentsExpanded=!1,this.deploymentMinutes=0}updateDuration(e){this.duration=e}getCostPerDeploymentMinute(){return.01}getFreeDeploymentMinutes(){return"month"===this.duration?3e3:100}getEstimatedCredits(){return"month"===this.duration?this.resourceCount*(this.utilization/100*24)*30:this.resourceCount*(this.utilization/100*24)}getEstimatedDeploymentMinutes(){return"month"===this.duration?30*this.deploymentMinutes:this.deploymentMinutes}updateDeploymentsExpanded(){this.deploymentsExpanded=!this.deploymentsExpanded}getFreeCredits(){return"month"===this.duration?15e4:5e3}getCostPerCredit(){return 5e-4}getTotal(){if(this.deploymentsExpanded){const e=(this.getEstimatedDeploymentMinutes()-this.getFreeDeploymentMinutes())*this.getCostPerDeploymentMinute(),t=(this.getEstimatedCredits()-this.getFreeCredits())*this.getCostPerCredit()+(e>0?e:0);return t>0?t:0}{const e=(this.getEstimatedCredits()-this.getFreeCredits())*this.getCostPerCredit();return e>0?e:0}}isTotalOverMax(){return this.getTotal()>1670&&"month"===this.duration||this.getTotal()>55&&"day"===this.duration}showFormattedTotal(){return`$${this.formatNumber(this.getTotal())} / ${"day"===this.duration?"day":"mo"}`}updateResourceCount(e){const t=e.target.value.trim();this.resourceCount=""===t?0:parseInt(t)}updateUtilization(e){const t=e.target.value.trim();this.utilization=""===t?1:parseInt(t)}updateDeploymentMinutes(e){const t=e.target.value.trim();this.deploymentMinutes=""===t?0:parseInt(t)}formatNumber(e){return(new Intl.NumberFormat).format(Math.round(e))}render(){return Qe("div",{class:"calculator"},Qe("h3",null,"IaC Cost estimator"),Qe("div",{class:"edition"},"Team Edition"),Qe("div",{class:"content"},Qe("div",{class:"inputs"},Qe("div",{class:"field"},Qe("div",{class:"title"},"Number of resources"),Qe("div",{class:"details"},Qe("div",{class:"description"},"All cloud resources cost the same amount in Pulumi Cloud. Look at your cloud account and enter here the number of resources."),Qe("div",{class:"input"},Qe("input",{class:"resource-count",type:"number",min:"0",onInput:e=>this.updateResourceCount(e),value:this.resourceCount})))),Qe("div",{class:"field"},Qe("div",{class:"title"},"Utilization"),Qe("div",{class:"details"},Qe("div",{class:"description"},"If you have resources that are being spun up and down throughout the day, estimate the percentage of the time the total resource count will be reached."),Qe("div",{class:"utilization"},Qe("div",{class:"input"},Qe("input",{type:"number",min:"1",max:"100",onInput:e=>this.updateUtilization(e),value:this.utilization}),Qe("span",{class:"percent"},"%")),Qe("input",{type:"range",min:"1",max:"100",step:"1",onInput:e=>this.updateUtilization(e),value:this.utilization,class:"range purple"})))),Qe("div",{class:this.deploymentsExpanded?"deployments":"deployments collapsed"},Qe("div",{class:"default"},Qe("i",{class:"fas fa-rocket"}),Qe("div",{class:"details"},Qe("div",{class:"title"},"Add on Pulumi Deployments"),Qe("div",{class:"subtitle"},"Run deployments remotely with a button, Git push, or REST API")),Qe("button",{onClick:()=>this.updateDeploymentsExpanded()},Qe("i",{class:this.deploymentsExpanded?"fas fa-minus":"fas fa-plus"}))),Qe("div",{class:this.deploymentsExpanded?"field visible":"field"},Qe("div",{class:"title"},"Deployment minutes per day"),Qe("div",{class:"details"},Qe("div",{class:"description"},"Deployment minutes refer to the duration of time elapsed when running deployments on Pulumi’s compute. Use your current update times and add buffer for any workflows that need to happen."),Qe("div",{class:"input"},Qe("input",{type:"number",min:"0",onInput:e=>this.updateDeploymentMinutes(e),value:this.deploymentMinutes})))))),Qe("div",{class:"outputs"},Qe("div",{class:"gradient"}),Qe("div",{class:"contents"},Qe("div",{class:"duration"},Qe("button",{class:"day"===this.duration?"active":null,onClick:()=>this.updateDuration("day")},"Per day"),Qe("button",{class:"month"===this.duration?"active":null,onClick:()=>this.updateDuration("month")},"Per month")),Qe("div",{class:"items"},Qe("div",{class:"item"},Qe("span",null,"Estimated credits per ",this.duration),Qe("span",null,this.formatNumber(this.getEstimatedCredits()))),Qe("div",{class:"item"},Qe("span",null,"Free credits included"),Qe("span",null,this.formatNumber(this.getFreeCredits()))),Qe("div",{class:"item"},Qe("span",null,"Cost per credit"),Qe("span",null,"$",this.getCostPerCredit())),Qe("div",{class:this.deploymentsExpanded?"deployment-total visible":"deployment-total"},Qe("div",{class:"subtitle"},"Deployments"),Qe("div",{class:"item"},Qe("span",null,"Estimated deployment minutes per ",this.duration),Qe("span",null,this.formatNumber(this.getEstimatedDeploymentMinutes()))),Qe("div",{class:"item"},Qe("span",null,"Deployment minutes included"),Qe("span",null,this.formatNumber(this.getFreeDeploymentMinutes()))),Qe("div",{class:"item"},Qe("span",null,"Cost per deployment minute"),Qe("span",null,"$",this.getCostPerDeploymentMinute())))),Qe("div",{class:"divider"}),Qe("div",{class:this.isTotalOverMax()?"total over-max":"total"},Qe("span",{class:"contact"},Qe("a",{href:"/contact/?form=sales"},"Contact sales"),"for bulk discounts"),Qe("span",{class:this.isTotalOverMax()?"blurred":""},this.showFormattedTotal()))))))}static get style(){return'.calculator{margin-right:36px;margin-left:36px}.calculator h3{text-align:center;color:#000;font-family:"Gilroy";font-size:48px;font-weight:500}.calculator .edition{text-align:center;font-family:"Gilroy";font-size:28px;margin-bottom:36px}.calculator .content{display:flex;flex-direction:row;gap:60px}.calculator .inputs{display:flex;flex-direction:column;flex-grow:1}.calculator .field{margin-bottom:36px}.calculator .field .title{color:#131314;font-family:"Gilroy";font-size:24px;font-weight:500}.calculator .field .details{display:flex;flex-direction:row;justify-content:space-between}.calculator .field .details .description{width:400px;font-family:"Inter";font-size:16px;font-style:normal;font-weight:400;color:#2f3032}.calculator .field .details .utilization{margin-top:0px}.calculator .field .details .input{width:140px;padding:8px 12px;border-radius:4px;border:1px solid #bebfc9;height:48px}.calculator .field .details .input input{all:unset;width:80%}.calculator .field .details .input .percent{color:lightgray}.calculator .outputs{width:50%;max-width:530px;border-radius:12px;background:#fff;box-shadow:0px 6px 36px 0px rgba(0, 0, 0, 0.14)}.calculator .outputs .contents{display:flex;padding:36px;flex-direction:column;align-items:flex-start;gap:36px}.calculator .outputs .gradient{border-radius:12px 12px 0px 0px;height:8px;background:linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%)}.calculator .outputs .duration{display:flex;align-self:center}.calculator .outputs .duration button{display:flex;padding:8px 12px;align-items:flex-start;color:#8e8f97;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;border:1px solid #8e8f97}.calculator .outputs .duration button:first-of-type{border-radius:4px 0px 0px 4px}.calculator .outputs .duration button:last-of-type{border-radius:0px 4px 4px 0px}.calculator .outputs .duration button.active{color:#131314;background-color:#f2eff9;border:1px solid #805ac3}.calculator .outputs .items,.calculator .outputs .deployment-total{display:flex;flex-direction:column;gap:12px;color:#2f3032;font-family:"Inter";font-size:16px;font-weight:400;width:100%}.calculator .outputs .items .item,.calculator .outputs .deployment-total .item{flex-grow:1;display:flex;gap:36px;justify-content:space-between}.calculator .outputs .divider{width:100%;border-bottom:1px solid #bebfc9}.calculator .outputs .deployment-total{display:none}.calculator .outputs .deployment-total.visible{display:flex}.calculator .outputs .deployment-total .subtitle{font-weight:600}.calculator .outputs .deployment-total .item{margin-left:16px}.calculator .outputs .total{display:flex;width:100%;color:#805ac3;font-family:"Inter";font-size:30px;font-style:normal;font-weight:700;justify-content:end;gap:4px}.calculator .outputs .total .contact{display:none}.calculator .outputs .total.over-max{justify-content:space-between}.calculator .outputs .total.over-max .contact{align-self:center;display:inline-block;font-size:16px;line-height:24px;font-weight:600;color:#131314}.calculator .outputs .total.over-max .contact a{color:#4d5bd9;margin-right:4px}.calculator .outputs .total.over-max .blurred{filter:blur(16px)}.calculator input::-webkit-outer-spin-button,.calculator input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.calculator input[type=number]{-moz-appearance:textfield}.calculator .deployments{border-radius:4px;border:1px solid #805ac3;display:flex;flex-direction:column;width:100%;padding:24px}.calculator .deployments i{color:#805ac3;height:24px;width:24px;font-size:24px}.calculator .deployments.collapsed:hover{background:rgba(242, 239, 249, 0.5)}.calculator .deployments .default{display:flex;align-items:center;gap:24px}.calculator .deployments .default .details{flex-grow:1;display:flex;flex-direction:column;color:#2f3032}.calculator .deployments .default .details .title{font-family:"Inter";font-size:18px;font-weight:600;margin-bottom:16px}.calculator .deployments .default .details .subtitle{font-family:"Inter";font-size:16px;font-weight:400;line-height:normal}.calculator .deployments .field{margin-top:60px;display:none;margin-bottom:0px;flex-direction:column}.calculator .deployments .field.visible{display:flex}.range{-webkit-appearance:none;-moz-appearance:none;width:140px;display:block;margin-top:16px}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none;border-radius:10px;background:#4776e6;background:linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%);height:7.5px}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;border:2px solid;border-radius:50%;height:16px;width:16px;bottom:4px;position:relative;background-color:rgba(242, 239, 249, 0.5);cursor:-webkit-grab;-webkit-transition:border 1000ms ease;transition:border 1000ms ease}.range.purple::-webkit-slider-thumb{border-color:#805ac3}@media (max-width: 1280px){.calculator .field .details{flex-direction:column}.calculator .field .details .input{margin-top:16px}}@media (max-width: 1024px){.calculator .content{flex-direction:column}.calculator .outputs{width:100%;max-width:1200px}}@media (max-width: 640px){.calculator .field .details .description{width:100%}.calculator .field .details .input{width:100%}.range{width:100%}}'}},mo=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.packageSearch=Ot(this,"packageSearch",7),this.filterContent="",this.debouncedFilter=mi.debounce(this.debouncedFilter,300)}debouncedFilter(e){this.filterContent=e.value,this.packageSearch.emit(this.filterContent)}onChange(e){this.debouncedFilter(e)}onClearFilter(){this.filterContent="",this.packageSearch.emit(this.filterContent)}reset(){this.filterContent=""}render(){return Qe("div",{class:"input-container"},Qe("i",{class:"search-icon fas fa-filter"}),Qe("input",{class:"registry-filter-input",placeholder:"Filter by package name...",onInput:e=>this.onChange(e.target),value:this.filterContent,autocomplete:"off"}),this.filterContent&&Qe("div",{class:"clear-container"},Qe("button",{onClick:this.onClearFilter.bind(this),class:"clear-filter-button"},Qe("i",{class:"fas fa-times"}))))}static get style(){return'.input-container{display:inline-block;position:relative;width:100%;max-width:550px}.input-container .clear-container{position:absolute;display:flex;align-items:center;margin-right:6px;top:0;right:0;height:100%}.input-container .search-icon{position:absolute;display:flex;align-items:center;height:100%;padding-left:12px;color:#b0b0b0}.input-container .clear-filter-button{display:flex;align-items:center;justify-content:center;height:18px;width:18px;font-size:xx-small;background:#dcdcdc;color:#808080;border-radius:50%;border:none;cursor:pointer;padding:0px}.input-container .registry-filter-input{font-family:"Inter";font-size:14px;height:36px;width:100%;border-radius:4px;border:2px solid #000;padding:6px;padding-left:40px;margin-top:0}.input-container .registry-filter-input:focus{outline-color:#4d5bd9}.input-container .registry-filter-input::placeholder{font-style:italic;color:#808080}'}},vo=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){fetch("https://www.pulumi.com/uploads/related-resources/2022-12-19.json").then((e=>e.json())).then((e=>{const t=e;if(t){const e=this.packageName.toLowerCase(),n=this.moduleName.toLowerCase(),r=this.resourceName.toLowerCase();this.related=t[e]&&t[e][n]?t[e][n][r]:void 0}})).catch((e=>console.error(e)))}render(){if(!this.related)return Qe("div",null);const e=this.packageName.toLowerCase();return Qe("div",{class:"container"},Qe("hr",{class:"mr-5"}),Qe("div",{class:"heading"},"Related Resources"),this.related.map((t=>{const n=t.split("/");let r=n.slice(0,n.length-1).join("/");const i=n[n.length-1],o=`/registry/packages/${e}/api-docs/${r.toLowerCase()}/${i.toLowerCase()}/`;return Qe("div",{class:"links"},Qe("a",{href:o},`${r}`,".",`${i}`))})))}};function go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bo(e){for(var t=1;t({persona:"developer",language:"typescript",k8sLanguage:"typescript",os:Lo(),cloud:"aws",backend:"service"}))(),t)=>{switch(t.type){case _i.SET_LANGUAGE:return Object.assign(Object.assign({},e),{language:t.key});case _i.SET_K8S_LANGUAGE:return Object.assign(Object.assign({},e),{k8sLanguage:t.key});case _i.SET_OS:return Object.assign(Object.assign({},e),{os:t.key});case _i.SET_CLOUD:return Object.assign(Object.assign({},e),{cloud:t.key});case _i.SET_PERSONA:return Object.assign(Object.assign({},e),{persona:t.key});case _i.SET_BACKEND:return Object.assign(Object.assign({},e),{backend:t.key});default:return e}},banners:(e={dismissed:[]},t)=>{if(t.type===_i.DISMISS_BANNER){const{name:n,dismissedAt:r}=t.payload;return Object.assign(Object.assign({},e),{dismissed:[...e.dismissed.filter((e=>e.name!==n)),{name:n,dismissedAt:r}]})}return e},user:(e=(()=>({id:Do().userId}))(),t)=>t.type===_i.GET_USER_INFO?Object.assign(Object.assign({},e),{id:Do().userId}):e}),No=()=>{let e;try{e=localStorage.getItem("pulumi_state")}catch(e){console.error("Failed to read pulumi_state from localStorage:",e)}const t=e?JSON.parse(e):{},n=Oo(Mo,function(e){let t={};try{if(e.banners&&Array.isArray(e.banners.dismissed)){const n=Date.now()-3456e5;t.banners={dismissed:e.banners.dismissed.filter((e=>!!e.name&&e.dismissedAt&&e.dismissedAt>n))}}e.preferences&&(t.preferences={language:e.preferences.language||"typescript",os:e.preferences.os||"macos",cloud:e.preferences.cloud||"aws",k8sLanguage:e.preferences.k8sLanguage||"typescript",persona:e.preferences.persona||"developer",backend:e.backend||"service"})}catch(e){return t}return t}(t),Ao.composeWithDevTools(To(Io)));return n.subscribe((()=>{const e=n.getState();try{localStorage.setItem("pulumi_state",JSON.stringify(e))}catch(e){console.error("Failed to save pulumi_state:",e)}})),setInterval((()=>{n.dispatch({type:_i.GET_USER_INFO})}),3e3),n};const Ro=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.rendered=Ot(this,"rendered",7)}componentWillLoad(){wi.setStore(No()),wi.mapDispatchToProps(this,{setLanguage:$i})}componentDidRender(){this.setSelectedLanguage(),this.rendered.emit()}render(){return Qe("div",null)}setSelectedLanguage(){const e=oi("language");e&&this.setLanguage(e);const t=window.location.hash;if(t){const e=t.split("_").slice(-1).find((e=>["typescript","javascript","csharp","go","python"].includes(e)));e&&this.setLanguage(e)}}},Fo=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentDidLoad(){this.runSlotMachine()}runSlotMachine(){this.leftSwiper.stopSwiper(),this.centerSwiper.stopSwiper(),this.rightSwiper.stopSwiper(),setTimeout((()=>{this.leftSwiper.startSwiper()}),100),setTimeout((()=>{this.centerSwiper.startSwiper()}),500),setTimeout((()=>{this.rightSwiper.startSwiper()}),1e3),setTimeout((()=>{this.leftSwiper.stopSwiper()}),3e3),setTimeout((()=>{this.centerSwiper.stopSwiper()}),3500),setTimeout((()=>{this.rightSwiper.stopSwiper()}),4e3),setTimeout((()=>{this.leftSwiper.startSwiper(),this.centerSwiper.startSwiper(),this.rightSwiper.startSwiper(),this.runSlotMachine()}),7e3)}renderImageList(e){const t=this.imageClass||"";return e.map((e=>Qe("pulumi-swipeable",null,Qe("img",{class:t,src:e,alt:""}))))}render(){return Qe("ul",null,Qe("li",null,Qe("pulumi-swiper",{ref:e=>this.leftSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.leftImages.split(",")))),Qe("li",null,Qe("pulumi-swiper",{ref:e=>this.centerSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.centerImages.split(",")))),Qe("li",null,Qe("pulumi-swiper",{ref:e=>this.rightSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.rightImages.split(",")))))}static get style(){return":host{display:block}"}},Bo=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Qe(Ze,{class:"swiper-slide"},Qe("slot",null))}};function Ho(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Vo(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Ho(t[n])&&Ho(e[n])&&Object.keys(t[n]).length>0&&Vo(e[n],t[n])}))}var qo={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function zo(){var e="undefined"!=typeof document?document:{};return Vo(e,qo),e}var Uo={document:qo,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function Wo(){var e="undefined"!=typeof window?window:{};return Vo(e,Uo),e}function Ko(e){return Ko=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ko(e)}function Go(e,t){return Go=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Go(e,t)}function Jo(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Yo(e,t,n){return Yo=Jo()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Go(i,n.prototype),i},Yo.apply(null,arguments)}function Qo(e){var t="function"==typeof Map?new Map:void 0;return Qo=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Yo(e,arguments,Ko(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Go(r,e)},Qo(e)}var Xo=function(e){var t,n;function r(t){var n,r,i;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),i=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return i},set:function(e){i.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Qo(Array));function Zo(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Zo(e)):t.push(e)})),t}function es(e,t){return Array.prototype.filter.call(e,t)}function ts(e,t){var n=Wo(),r=zo(),i=[];if(!t&&e instanceof Xo)return e;if(!e)return new Xo(i);if("string"==typeof e){var o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var s="div";0===o.indexOf("0})).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;f-=1){var h=p[f];o&&h.listener===o||o&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===o?(d.removeEventListener(c,h.proxyListener,s),p.splice(f,1)):o||(d.removeEventListener(c,h.proxyListener,s),p.splice(f,1))}}return this},trigger:function(){for(var e=Wo(),t=arguments.length,n=new Array(t),r=0;r0})),c.dispatchEvent(u),c.dom7EventData=[],delete c.dom7EventData}}return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",(function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=Wo();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var e=Wo(),t=zo(),n=this[0],r=n.getBoundingClientRect(),i=t.body,o=n.clientTop||i.clientTop||0,s=n.clientLeft||i.clientLeft||0,a=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+a-o,left:r.left+l-s}}return null},css:function(e,t){var n,r=Wo();if(1===arguments.length){if("string"!=typeof e){for(n=0;nt-1)return ts([]);if(e<0){var n=t+e;return ts(n<0?[]:[this[n]])}return ts([this[e]])},append:function(){for(var e,t=zo(),n=0;n=0;n-=1)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof Xo)for(n=0;n0?e?this[0].nextElementSibling&&ts(this[0].nextElementSibling).is(e)?ts([this[0].nextElementSibling]):ts([]):this[0].nextElementSibling?ts([this[0].nextElementSibling]):ts([]):ts([])},nextAll:function(e){var t=[],n=this[0];if(!n)return ts([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?ts(r).is(e)&&t.push(r):t.push(r),n=r}return ts(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&ts(t.previousElementSibling).is(e)?ts([t.previousElementSibling]):ts([]):t.previousElementSibling?ts([t.previousElementSibling]):ts([])}return ts([])},prevAll:function(e){var t=[],n=this[0];if(!n)return ts([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?ts(r).is(e)&&t.push(r):t.push(r),n=r}return ts(t)},parent:function(e){for(var t=[],n=0;n6&&(r=r.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),i=new o.WebKitCSSMatrix("none"===r?"":r)):n=(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=o.WebKitCSSMatrix?i.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=o.WebKitCSSMatrix?i.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}function cs(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function us(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"],n=1;n=0,observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),ns}function fs(e){return void 0===e&&(e={}),rs||(rs=function(e){var t=(void 0===e?{}:e).userAgent,n=ps(),r=Wo(),i=r.navigator.platform,o=t||r.navigator.userAgent,s={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,c=o.match(/(Android);?[\s\/]+([\d.]+)?/),u=o.match(/(iPad).*OS\s([\d_]+)/),d=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===i,h="MacIntel"===i;return!u&&h&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(a+"x"+l)>=0&&((u=o.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),h=!1),c&&!f&&(s.os="android",s.android=!0),(u||p||d)&&(s.os="ios",s.ios=!0),s}(e)),rs}function hs(){return is||(is=function(){var e,t=Wo();return{isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),is}Object.keys(os).forEach((function(e){Object.defineProperty(ts.fn,e,{value:os[e],writable:!0})}));const ms={name:"resize",create:function(){var e=this;us(e,{resize:{observer:null,createObserver:function(){e&&!e.destroyed&&e.initialized&&(e.resize.observer=new ResizeObserver((function(t){var n=e.width,r=e.height,i=n,o=r;t.forEach((function(t){var n=t.contentBoxSize,r=t.contentRect,s=t.target;s&&s!==e.el||(i=r?r.width:(n[0]||n).inlineSize,o=r?r.height:(n[0]||n).blockSize)})),i===n&&o===r||e.resize.resizeHandler()})),e.resize.observer.observe(e.el))},removeObserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=Wo();e.params.resizeObserver&&void 0!==Wo().ResizeObserver?e.resize.createObserver():(t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler))},destroy:function(e){var t=Wo();e.resize.removeObserver(),t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};function vs(){return vs=Object.assign||function(e){for(var t=1;t=0&&t.eventsAnyListeners.splice(n,1),t},off:function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((function(r,i){(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)}))})),n):n},emit:function(){var e,t,n,r=this;if(!r.eventsListeners)return r;for(var i=arguments.length,o=new Array(i),s=0;s=0&&(b=parseFloat(b.replace("%",""))/100*o),e.virtualSize=-b,s?u.css({marginLeft:"",marginTop:""}):u.css({marginRight:"",marginBottom:""}),r.slidesPerColumn>1&&(x=Math.floor(d/r.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/r.slidesPerColumn)*r.slidesPerColumn,"auto"!==r.slidesPerView&&"row"===r.slidesPerColumnFill&&(x=Math.max(x,r.slidesPerView*r.slidesPerColumn)));for(var O,$,E,C=r.slidesPerColumn,T=x/C,P=Math.floor(d/r.slidesPerColumn),A=0;A1){var I=void 0,L=void 0,D=void 0;if("row"===r.slidesPerColumnFill&&r.slidesPerGroup>1){var M=Math.floor(A/(r.slidesPerGroup*r.slidesPerColumn)),N=A-r.slidesPerColumn*r.slidesPerGroup*M,R=0===M?r.slidesPerGroup:Math.min(Math.ceil((d-M*C*r.slidesPerGroup)/C),r.slidesPerGroup);I=(L=N-(D=Math.floor(N/R))*R+M*r.slidesPerGroup)+D*x/C,j.css({"-webkit-box-ordinal-group":I,"-moz-box-ordinal-group":I,"-ms-flex-order":I,"-webkit-order":I,order:I})}else"column"===r.slidesPerColumnFill?(D=A-(L=Math.floor(A/C))*C,(L>P||L===P&&D===C-1)&&(D+=1)>=C&&(D=0,L+=1)):L=A-(D=Math.floor(A/T))*T;j.css(t("margin-top"),0!==D&&r.spaceBetween&&r.spaceBetween+"px")}if("none"!==j.css("display")){if("auto"===r.slidesPerView){var F=getComputedStyle(j[0]),B=j[0].style.transform,H=j[0].style.webkitTransform;if(B&&(j[0].style.transform="none"),H&&(j[0].style.webkitTransform="none"),r.roundLengths)k=e.isHorizontal()?j.outerWidth(!0):j.outerHeight(!0);else{var V=n(F,"width"),q=n(F,"padding-left"),z=n(F,"padding-right"),U=n(F,"margin-left"),W=n(F,"margin-right"),K=F.getPropertyValue("box-sizing");if(K&&"border-box"===K)k=V+U+W;else{var G=j[0],J=G.clientWidth;k=V+q+z+U+W+(G.offsetWidth-J)}}B&&(j[0].style.transform=B),H&&(j[0].style.webkitTransform=H),r.roundLengths&&(k=Math.floor(k))}else k=(o-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),u[A]&&(u[A].style[t("width")]=k+"px");u[A]&&(u[A].swiperSlideSize=k),h.push(k),r.centeredSlides?(w=w+k/2+_/2+b,0===_&&0!==A&&(w=w-o/2-b),0===A&&(w=w-o/2-b),Math.abs(w)<.001&&(w=0),r.roundLengths&&(w=Math.floor(w)),S%r.slidesPerGroup==0&&p.push(w),f.push(w)):(r.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&p.push(w),f.push(w),w=w+k+b),e.virtualSize+=k+b,_=k,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+v,s&&a&&("slide"===r.effect||"coverflow"===r.effect)&&i.css({width:e.virtualSize+r.spaceBetween+"px"}),r.setWrapperSize)i.css((($={})[t("width")]=e.virtualSize+r.spaceBetween+"px",$));if(r.slidesPerColumn>1)if(e.virtualSize=(k+r.spaceBetween)*x,e.virtualSize=Math.ceil(e.virtualSize/r.slidesPerColumn)-r.spaceBetween,i.css(((E={})[t("width")]=e.virtualSize+r.spaceBetween+"px",E)),r.centeredSlides){O=[];for(var Y=0;Y1&&p.push(e.virtualSize-o)}if(0===p.length&&(p=[0]),0!==r.spaceBetween){var ee,te=e.isHorizontal()&&s?"marginLeft":t("marginRight");u.filter((function(e,t){return!r.cssMode||t!==u.length-1})).css(((ee={})[te]=b+"px",ee))}if(r.centeredSlides&&r.centeredSlidesBounds){var ne=0;h.forEach((function(e){ne+=e+(r.spaceBetween?r.spaceBetween:0)}));var re=(ne-=r.spaceBetween)-o;p=p.map((function(e){return e<0?-m:e>re?re+v:e}))}if(r.centerInsufficientSlides){var ie=0;if(h.forEach((function(e){ie+=e+(r.spaceBetween?r.spaceBetween:0)})),(ie-=r.spaceBetween)1)if(n.params.centeredSlides)n.visibleSlides.each((function(e){r.push(e)}));else for(t=0;tn.slides.length&&!i)break;r.push(s(a))}else r.push(s(n.activeIndex));for(t=0;to?l:o}o&&n.$wrapperEl.css("height",o+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t=0&&c1&&u<=t.size||c<=0&&u>=t.size)&&(t.visibleSlides.push(a),t.visibleSlidesIndexes.push(s),r.eq(s).addClass(n.slideVisibleClass))}a.progress=i?-l:l}t.visibleSlides=ts(t.visibleSlides)}},updateProgress:function(e){var t=this;if(void 0===e){var n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}var r=t.params,i=t.maxTranslate()-t.minTranslate(),o=t.progress,s=t.isBeginning,a=t.isEnd,l=s,c=a;0===i?(o=0,s=!0,a=!0):(s=(o=(e-t.minTranslate())/i)<=0,a=o>=1),us(t,{progress:o,isBeginning:s,isEnd:a}),(r.watchSlidesProgress||r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!s||c&&!a)&&t.emit("fromEdge"),t.emit("progress",o)},updateSlidesClasses:function(){var e,t=this,n=t.slides,r=t.params,i=t.$wrapperEl,o=t.activeIndex,s=t.realIndex,a=t.virtual&&r.virtual.enabled;n.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass),(e=a?t.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+o+'"]'):n.eq(o)).addClass(r.slideActiveClass),r.loop&&(e.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass));var l=e.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===l.length&&(l=n.eq(0)).addClass(r.slideNextClass);var c=e.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&0===c.length&&(c=n.eq(-1)).addClass(r.slidePrevClass),r.loop&&(l.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),c.hasClass(r.slideDuplicateClass)?i.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):i.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,i=n.slidesGrid,o=n.snapGrid,s=n.params,a=n.activeIndex,l=n.realIndex,c=n.snapIndex,u=e;if(void 0===u){for(var d=0;d=i[d]&&r=i[d]&&r=i[d]&&(u=d);s.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(o.indexOf(r)>=0)t=o.indexOf(r);else{var p=Math.min(s.slidesPerGroupSkip,u);t=p+Math.floor((u-p)/s.slidesPerGroup)}if(t>=o.length&&(t=o.length-1),u!==a){var f=parseInt(n.slides.eq(u).attr("data-swiper-slide-index")||u,10);us(n,{snapIndex:t,realIndex:f,previousIndex:a,activeIndex:u}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==f&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")}else t!==c&&(n.snapIndex=t,n.emit("snapIndexChange"))},updateClickedSlide:function(e){var t,n=this,r=n.params,i=ts(e.target).closest("."+r.slideClass)[0],o=!1;if(i)for(var s=0;sc?c:r&&e=c.length&&(g=c.length-1),(p||l.initialSlide||0)===(d||0)&&n&&s.emit("beforeSlideChangeStart");var y,b=-c[g];if(s.updateProgress(b),l.normalizeSlideIndex)for(var w=0;w=S&&_=S&&_=S&&(a=w)}if(s.initialized&&a!==p){if(!s.allowSlideNext&&bs.translate&&b>s.maxTranslate()&&(p||0)!==a)return!1}if(y=a>p?"next":a=e&&(f=e)})),void 0!==f&&(p=a.indexOf(f))<0&&(p=r.activeIndex-1),r.slideTo(p,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===r&&(r=.5);var i=this,o=i.activeIndex,s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){var c=i.snapGrid[a];l-c>(i.snapGrid[a+1]-c)*r&&(o+=i.params.slidesPerGroup)}else{var u=i.snapGrid[a-1];l-u<=(i.snapGrid[a]-u)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,i="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,o=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(ts(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?ot.slides.length-t.loopedSlides+i/2?(t.loopFix(),o=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),ss((function(){t.slideTo(o)}))):t.slideTo(o):o>t.slides.length-i?(t.loopFix(),o=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),ss((function(){t.slideTo(o)}))):t.slideTo(o)}else t.slideTo(o)}};const xs={loopCreate:function(){var e=this,t=zo(),n=e.params,r=e.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var i=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var o=n.slidesPerGroup-i.length%n.slidesPerGroup;if(o!==n.slidesPerGroup){for(var s=0;si.length&&(e.loopedSlides=i.length);var l=[],c=[];i.each((function(t,n){var r=ts(t);n=i.length-e.loopedSlides&&l.push(t),r.attr("data-swiper-slide-index",n)}));for(var u=0;u=0;d-=1)r.prepend(ts(l[d].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var e=this;e.emit("beforeLoopFix");var t,n=e.activeIndex,r=e.slides,i=e.loopedSlides,o=e.allowSlidePrev,s=e.allowSlideNext,a=e.snapGrid,l=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var c=-a[n]-e.getTranslate();if(n=r.length-i){t=-r.length+n+i,t+=i,e.slideTo(t,0,!1,!0)&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}e.allowSlidePrev=o,e.allowSlideNext=s,e.emit("loopFix")},loopDestroy:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}};const ks={appendSlide:function(e){var t=this,n=t.$wrapperEl,r=t.params;if(r.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var i=0;i=s)n.appendSlide(t);else{for(var a=o>e?o+1:o,l=[],c=s-1;c>=e;c-=1){var u=n.slides.eq(c);u.remove(),l.unshift(u)}if("object"==typeof t&&"length"in t){for(var d=0;de?o+t.length:o}else r.append(t);for(var p=0;p0))if(!i.isTouched||!i.isMoved)if(!!o.noSwipingClass&&""!==o.noSwipingClass&&a.target&&a.target.shadowRoot&&e.path&&e.path[0]&&(l=ts(e.path[0])),o.noSwiping&&l.closest(o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass)[0])t.allowClick=!0;else if(!o.swipeHandler||l.closest(o.swipeHandler)[0]){s.currentX="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,s.currentY="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY;var c=s.currentX,u=s.currentY,d=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,p=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(d&&(c<=p||c>=r.innerWidth-p)){if("prevent"!==d)return;e.preventDefault()}if(us(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=c,s.startY=u,i.touchStartTime=as(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==a.type){var f=!0;l.is(i.formElements)&&(f=!1),n.activeElement&&ts(n.activeElement).is(i.formElements)&&n.activeElement!==l[0]&&n.activeElement.blur();var h=f&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!h||l[0].isContentEditable||a.preventDefault()}t.emit("touchStart",a)}}}function $s(e){var t=zo(),n=this,r=n.touchEventsData,i=n.params,o=n.touches,s=n.rtlTranslate;if(n.enabled){var a=e;if(a.originalEvent&&(a=a.originalEvent),r.isTouched){if(!r.isTouchEvent||"touchmove"===a.type){var l="touchmove"===a.type&&a.targetTouches&&(a.targetTouches[0]||a.changedTouches[0]),c="touchmove"===a.type?l.pageX:a.pageX,u="touchmove"===a.type?l.pageY:a.pageY;if(a.preventedByNestedSwiper)return o.startX=c,void(o.startY=u);if(!n.allowTouchMove)return n.allowClick=!1,void(r.isTouched&&(us(o,{startX:c,startY:u,currentX:c,currentY:u}),r.touchStartTime=as()));if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(uo.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(co.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&t.activeElement&&a.target===t.activeElement&&ts(a.target).is(r.formElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",a),!(a.targetTouches&&a.targetTouches.length>1)){o.currentX=c,o.currentY=u;var d=o.currentX-o.startX,p=o.currentY-o.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(p,2))=25&&(f=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,r.isScrolling=n.isHorizontal()?f>i.touchAngle:90-f>i.touchAngle);if(r.isScrolling&&n.emit("touchMoveOpposite",a),void 0===r.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){n.allowClick=!1,!i.cssMode&&a.cancelable&&a.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&a.stopPropagation(),r.isMoved||(i.loop&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!i.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",a)),n.emit("sliderMove",a),r.isMoved=!0;var h=n.isHorizontal()?d:p;o.diff=h,h*=i.touchRatio,s&&(h=-h),n.swipeDirection=h>0?"prev":"next",r.currentTranslate=h+r.startTranslate;var m=!0,v=i.resistanceRatio;if(i.touchReleaseOnEdges&&(v=0),h>0&&r.currentTranslate>n.minTranslate()?(m=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+h,v))):h<0&&r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(h)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}i.followFinger&&!i.cssMode&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&(0===r.velocities.length&&r.velocities.push({position:o[n.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:o[n.isHorizontal()?"currentX":"currentY"],time:as()})),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}}}else r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",a)}}function Es(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,o=t.rtlTranslate,s=t.$wrapperEl,a=t.slidesGrid,l=t.snapGrid;if(t.enabled){var c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,d=as(),p=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap click",c),p<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)),n.lastClickTime=as(),ss((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,u=r.followFinger?o?t.translate:-t.translate:-n.currentTranslate,!r.cssMode)if(r.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length1){var f=n.velocities.pop(),h=n.velocities.pop(),m=f.position-h.position,v=f.time-h.time;t.velocity=m/v,t.velocity/=2,Math.abs(t.velocity)150||as()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var g=1e3*r.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;o&&(b=-b);var w,_,S=!1,x=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(bt.minTranslate())r.freeModeMomentumBounce?(b-t.minTranslate()>x&&(b=t.minTranslate()+x),w=t.minTranslate(),S=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),r.loop&&r.centeredSlides&&(_=!0);else if(r.freeModeSticky){for(var k,O=0;O-b){k=O;break}b=-(b=Math.abs(l[k]-b)=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var C=0,T=t.slidesSizesGrid[0],P=0;P=a[P]&&u=a[P]&&(C=P,T=a[a.length-1]-a[a.length-2])}var j=(u-a[C])/T,I=Cr.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(j>=r.longSwipesRatio?t.slideTo(C+I):t.slideTo(C)),"prev"===t.swipeDirection&&(j>1-r.longSwipesRatio?t.slideTo(C+I):t.slideTo(C))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(C+I):t.slideTo(C):("next"===t.swipeDirection&&t.slideTo(C+I),"prev"===t.swipeDirection&&t.slideTo(C))}}}}function Cs(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var r=e.allowSlideNext,i=e.allowSlidePrev,o=e.snapGrid;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}}function Ts(e){var t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ps(){var e=this,t=e.wrapperEl,n=e.rtlTranslate;if(e.enabled){e.previousTranslate=e.translate,e.isHorizontal()?e.translate=n?t.scrollWidth-t.offsetWidth-t.scrollLeft:-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();var r=e.maxTranslate()-e.minTranslate();(0===r?0:(e.translate-e.minTranslate())/r)!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}}var As=!1;function js(){}const Is={attachEvents:function(){var e=this,t=zo(),n=e.params,r=e.touchEvents,i=e.el,o=e.wrapperEl,s=e.device,a=e.support;e.onTouchStart=Os.bind(e),e.onTouchMove=$s.bind(e),e.onTouchEnd=Es.bind(e),n.cssMode&&(e.onScroll=Ps.bind(e)),e.onClick=Ts.bind(e);var l=!!n.nested;if(!a.touch&&a.pointerEvents)i.addEventListener(r.start,e.onTouchStart,!1),t.addEventListener(r.move,e.onTouchMove,l),t.addEventListener(r.end,e.onTouchEnd,!1);else{if(a.touch){var c=!("touchstart"!==r.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};i.addEventListener(r.start,e.onTouchStart,c),i.addEventListener(r.move,e.onTouchMove,a.passiveListener?{passive:!1,capture:l}:l),i.addEventListener(r.end,e.onTouchEnd,c),r.cancel&&i.addEventListener(r.cancel,e.onTouchEnd,c),As||(t.addEventListener("touchstart",js),As=!0)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!a.touch&&s.ios)&&(i.addEventListener("mousedown",e.onTouchStart,!1),t.addEventListener("mousemove",e.onTouchMove,l),t.addEventListener("mouseup",e.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&i.addEventListener("click",e.onClick,!0),n.cssMode&&o.addEventListener("scroll",e.onScroll),n.updateOnWindowResize?e.on(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Cs,!0):e.on("observerUpdate",Cs,!0)},detachEvents:function(){var e=this,t=zo(),n=e.params,r=e.touchEvents,i=e.el,o=e.wrapperEl,s=e.device,a=e.support,l=!!n.nested;if(!a.touch&&a.pointerEvents)i.removeEventListener(r.start,e.onTouchStart,!1),t.removeEventListener(r.move,e.onTouchMove,l),t.removeEventListener(r.end,e.onTouchEnd,!1);else{if(a.touch){var c=!("onTouchStart"!==r.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};i.removeEventListener(r.start,e.onTouchStart,c),i.removeEventListener(r.move,e.onTouchMove,l),i.removeEventListener(r.end,e.onTouchEnd,c),r.cancel&&i.removeEventListener(r.cancel,e.onTouchEnd,c)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!a.touch&&s.ios)&&(i.removeEventListener("mousedown",e.onTouchStart,!1),t.removeEventListener("mousemove",e.onTouchMove,l),t.removeEventListener("mouseup",e.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&i.removeEventListener("click",e.onClick,!0),n.cssMode&&o.removeEventListener("scroll",e.onScroll),e.off(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Cs)}};const Ls={setBreakpoint:function(){var e=this,t=e.activeIndex,n=e.initialized,r=e.loopedSlides,i=void 0===r?0:r,o=e.params,s=e.$el,a=o.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var l=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(l&&e.currentBreakpoint!==l){var c=l in a?a[l]:void 0;c&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=c[e];void 0!==t&&(c[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var u=c||e.originalParams,d=o.slidesPerColumn>1,p=u.slidesPerColumn>1,f=o.enabled;d&&!p?(s.removeClass(o.containerModifierClass+"multirow "+o.containerModifierClass+"multirow-column"),e.emitContainerClasses()):!d&&p&&(s.addClass(o.containerModifierClass+"multirow"),"column"===u.slidesPerColumnFill&&s.addClass(o.containerModifierClass+"multirow-column"),e.emitContainerClasses());var h=u.direction&&u.direction!==o.direction,m=o.loop&&(u.slidesPerView!==o.slidesPerView||h);h&&n&&e.changeDirection(),us(e.params,u);var v=e.params.enabled;us(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!v?e.disable():!f&&v&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",u),m&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",u)}}},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),e&&("container"!==t||n)){var r=!1,i=Wo(),o="window"===t?i.innerWidth:n.clientWidth,s="window"===t?i.innerHeight:n.clientHeight,a=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}}));a.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var l=0;l1},{"multirow-column":o.slidesPerColumn>1&&"column"===o.slidesPerColumnFill},{android:l.android},{ios:l.ios},{"css-mode":o.cssMode}],t=o.containerModifierClass,n=[],e.forEach((function(e){"object"==typeof e?Object.keys(e).forEach((function(r){e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n);i.push.apply(i,u),a.addClass([].concat(i).join(" ")),r.emitContainerClasses()},removeClasses:function(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" ")),e.emitContainerClasses()}};const Ms={loadImage:function(e,t,n,r,i,o){var s,a=Wo();function l(){o&&o()}ts(e).parent("picture")[0]||e.complete&&i?l():t?((s=new a.Image).onload=l,s.onerror=l,r&&(s.sizes=r),n&&(s.srcset=n),t&&(s.src=t)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;no?"next":ri?"next":r0&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&r?e.isLocked=r<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,n!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),n&&n!==e.isLocked&&(e.isEnd=!1,e.navigation&&e.navigation.update())}},classes:Ds,images:Ms},Bs={},Hs=function(){function e(){for(var t,n,r=arguments.length,i=new Array(r),o=0;o1){var s=[];return ts(n.el).each((function(t){var r=us({},n,{el:t});s.push(new e(r))})),s}var a=this;a.__swiper__=!0,a.support=ps(),a.device=fs({userAgent:n.userAgent}),a.browser=hs(),a.eventsListeners={},a.eventsAnyListeners=[],void 0===a.modules&&(a.modules={}),Object.keys(a.modules).forEach((function(e){var t=a.modules[e];if(t.params){var r=Object.keys(t.params)[0],i=t.params[r];if("object"!=typeof i||null===i)return;if(!(r in n)||!("enabled"in i))return;!0===n[r]&&(n[r]={enabled:!0}),"object"!=typeof n[r]||"enabled"in n[r]||(n[r].enabled=!0),n[r]||(n[r]={enabled:!1})}}));var l,c,u=us({},Ns);return a.useParams(u),a.params=us({},u,Bs,n),a.originalParams=us({},a.params),a.passedParams=us({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach((function(e){a.on(e,a.params.on[e])})),a.params&&a.params.onAny&&a.onAny(a.params.onAny),a.$=ts,us(a,{enabled:a.params.enabled,el:t,classNames:[],slides:ts(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===a.params.direction},isVertical:function(){return"vertical"===a.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEvents:(l=["touchstart","touchmove","touchend","touchcancel"],c=["mousedown","mousemove","mouseup"],a.support.pointerEvents&&(c=["pointerdown","pointermove","pointerup"]),a.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},a.touchEventsDesktop={start:c[0],move:c[1],end:c[2]},a.support.touch||!a.params.simulateTouch?a.touchEventsTouch:a.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:as(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.useModules(),a.emit("_swiper"),a.params.init&&a.init(),a}var t,n,r,i=e.prototype;return i.enable=function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))},i.disable=function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))},i.setProgress=function(e,t){var n=this;e=Math.min(Math.max(e,0),1);var r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()},i.emitContainerClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-container")||0===t.indexOf(e.params.containerModifierClass)}));e.emit("_containerClasses",t.join(" "))}},i.getSlideClasses=function(e){var t=this;return e.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)})).join(" ")},i.emitSlidesClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=[];e.slides.each((function(n){var r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}},i.slidesPerViewDynamic=function(){var e=this,t=e.params,n=e.slides,r=e.slidesGrid,i=e.size,o=e.activeIndex,s=1;if(t.centeredSlides){for(var a,l=n[o].swiperSlideSize,c=o+1;ci&&(a=!0));for(var u=o-1;u>=0;u-=1)n[u]&&!a&&(s+=1,(l+=n[u].swiperSlideSize)>i&&(a=!0))}else for(var d=o+1;d1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}},i.changeDirection=function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(""+n.params.containerModifierClass+r).addClass(""+n.params.containerModifierClass+e),n.emitContainerClasses(),n.params.direction=e,n.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n},i.mount=function(e){var t=this;if(t.mounted)return!0;var n,r=ts(e||t.params.el);return!!(e=r[0])&&(e.swiper=t,e&&e.shadowRoot&&e.shadowRoot.querySelector?(n=ts(e.shadowRoot.querySelector("."+t.params.wrapperClass))).children=function(e){return r.children(e)}:n=r.children("."+t.params.wrapperClass),us(t,{$el:r,el:e,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0)},i.init=function(e){var t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t},i.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n,r=this,i=r.params,o=r.$el,s=r.$wrapperEl,a=r.slides;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),t&&(r.removeClasses(),o.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach((function(e){r.off(e)})),!1!==e&&(r.$el[0].swiper=null,n=r,Object.keys(n).forEach((function(e){try{n[e]=null}catch(e){}try{delete n[e]}catch(e){}}))),r.destroyed=!0),null},e.extendDefaults=function(e){us(Bs,e)},e.installModule=function(t){e.prototype.modules||(e.prototype.modules={});var n=t.name||Object.keys(e.prototype.modules).length+"_"+as();e.prototype.modules[n]=t},e.use=function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)},t=e,r=[{key:"extendedDefaults",get:function(){return Bs}},{key:"defaults",get:function(){return Ns}}],(n=null)&&Rs(t.prototype,n),r&&Rs(t,r),e}();function Vs(){return Vs=Object.assign||function(e){for(var t=1;t0&&(e.isBeginning?n(o,!0):n(o,!1),e.params.watchOverflow&&e.enabled&&o[e.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(e.isEnd?n(i,!0):n(i,!1),e.params.watchOverflow&&e.enabled&&i[e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,n=this,r=n.params.navigation;(r.nextEl||r.prevEl)&&(r.nextEl&&(e=ts(r.nextEl),n.params.uniqueNavElements&&"string"==typeof r.nextEl&&e.length>1&&1===n.$el.find(r.nextEl).length&&(e=n.$el.find(r.nextEl))),r.prevEl&&(t=ts(r.prevEl),n.params.uniqueNavElements&&"string"==typeof r.prevEl&&t.length>1&&1===n.$el.find(r.prevEl).length&&(t=n.$el.find(r.prevEl))),e&&e.length>0&&e.on("click",n.navigation.onNextClick),t&&t.length>0&&t.on("click",n.navigation.onPrevClick),us(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}),n.enabled||(e&&e.addClass(r.lockClass),t&&t.addClass(r.lockClass)))},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),r&&r.length&&(r.off("click",e.navigation.onPrevClick),r.removeClass(e.params.navigation.disabledClass))}};const zs={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){ds(this,{navigation:Vs({},qs)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},"enable disable":function(e){var t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),r&&r[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)},click:function(e,t){var n=e.navigation,r=n.$nextEl,i=n.$prevEl,o=t.target;if(e.params.navigation.hideOnClick&&!ts(o).is(i)&&!ts(o).is(r)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===o||e.pagination.el.contains(o)))return;var s;r?s=r.hasClass(e.params.navigation.hiddenClass):i&&(s=i.hasClass(e.params.navigation.hiddenClass)),!0===s?e.emit("navigationShow"):e.emit("navigationHide"),r&&r.toggleClass(e.params.navigation.hiddenClass),i&&i.toggleClass(e.params.navigation.hiddenClass)}}}};function Us(){return Us=Object.assign||function(e){for(var t=1;t{const n=e.slides;for(let t=0;te.getAttribute("active")));e?this.select(e):!this.selectedTab&&this.tabs.length>0&&this.select(this.tabs[0])}select(e){e&&(this.tabs.forEach((t=>t.setAttribute("active",(t===e).toString()))),this.selectedTab=e,this.tabSelect.emit([{selectedTab:e}]))}get tabs(){return Array.from(this.el.querySelectorAll("pulumi-tab")||[])}labelFor(e){return e.getAttribute("label")||""}partsFor(e){const t=["tab"];return this.selectedTab===e&&t.push("active-tab"),t.join(" ")}render(){return Qe("div",null,Qe("ul",{part:"tabs",role:"tablist"},this.tabs.map((e=>Qe("li",{part:this.partsFor(e),role:"presentation"},Qe("a",{part:"anchor",onClick:this.select.bind(this,e),role:"tab","aria-selected":this.selectedTab===e},this.labelFor(e)))))),Qe("slot",null))}get el(){return this}static get style(){return":host {\n display: block;\n }\n ul {\n display: flex;\n width: 100%;\n align-items: center;\n margin: 0;\n padding: 0;\n width: auto;\n list-style-type: none;\n }\n li {\n display: flex;\n justify-content: center;\n }\n li a {\n cursor: pointer;\n display: flex;\n justify-content: center;\n flex: 1;\n text-align: center;\n white-space: nowrap;\n }"}},Qs=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){this.parsedItems=JSON.parse(this.items),this.tabContent=this.parsedItems.map((e=>e.anchor)),this.selectTab(this.parsedItems[0])}selectTab(e){this.selection=e.anchor,document.getElementById(`${e.anchor}`).classList.remove("hidden");this.tabContent.filter((t=>t!==e.anchor)).forEach((e=>{document.getElementById(`${e}`).classList.add("hidden")}))}render(){return Qe(Ze,null,Qe("ul",null,this.parsedItems.map((e=>Qe("li",{class:this.selection===e.anchor?"active":""},Qe("a",{onClick:()=>this.selectTab(e)},e.label))))))}static get style(){return":host{display:block}"}},Xs=class extends HTMLElement{constructor(){super(),this.__registerHost()}async show(){return new Promise((e=>{this.active=!0,setTimeout((()=>e()),100)}))}async hide(){return new Promise((e=>{this.active=!1,setTimeout((()=>e()),100)}))}componentDidLoad(){this.id=On(),this.active=!1;const e=this.el.querySelector(".tooltip-target");e.addEventListener("mouseover",(()=>this.active=!0)),e.addEventListener("mouseout",(()=>this.active=!1)),e.addEventListener("touchstart",(()=>this.active=!0)),e.addEventListener("touchend",(()=>this.active=!1))}render(){return Qe(Ze,null,Qe("span",{class:"tooltip-target "+(this.active?"active":""),"aria-labelledby":this.id},Qe("slot",null)),Qe("span",{id:this.id,class:"tooltip-content",role:"tooltip"},Qe("slot",{name:"content"})))}get el(){return this}},Zs=class extends HTMLElement{constructor(){super(),this.__registerHost()}handleScroll(){this.setVisibility()}componentWillRender(){this.setVisibility()}render(){let e=`btn-scroll-top fas fa-chevron-up ${this.visible}`;return Qe("a",{class:e,title:"Scroll to top",href:"#"})}setVisibility(){this.visible=window.scrollY>2500?"visible":"hidden"}static get style(){return""}},ea=class extends HTMLElement{constructor(){super(),this.__registerHost()}handleRendered(e){this.storeUnsubscribe=wi.mapStateToProps(this,(e=>{const{user:{id:t}}=e;return{userId:t}}))}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return Qe("span",{class:"signed-out"},Qe("slot",{name:"signed-in"}),Qe("slot",{name:"signed-out"}))}static get style(){return"pulumi-user-toggle{display:inline}pulumi-user-toggle [slot]{display:none}pulumi-user-toggle .signed-out [slot=signed-out]{display:inherit}pulumi-user-toggle .signed-in [slot=signed-in]{display:inherit}"}},ta=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultFormId=""}componentWillLoad(){this.parsedSessions=this.transformSessionData(JSON.parse(this.sessions));const e=oi("date");if(e){const t=new Date(e);if(isNaN(t.getTime()))return;const n=this.parsedSessions.find((e=>{const n=new Date(e.key);return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()}));n&&(this.defaultFormId=n.hubspotFormId)}}transformSessionData(e){return e.map((e=>{const t=new Date(e.datetime);return{hubspotFormId:e.hubspot_form_id,key:t.toLocaleString(void 0,{timeZoneName:"short",weekday:"short",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"})}}))}render(){return Qe("pulumi-multi-select-form",{items:this.parsedSessions,selectClass:this.selectClass,labelClass:this.labelClass,labelText:"Pick A Session",defaultFormId:this.defaultFormId})}static get style(){return":host{display:block}"}},na=Gt(ai,[0,"copilot-sidebar",{copilotSrc:[1,"copilot-src"],showSidebar:[32]}]),ra=Gt(li,[0,"event-session-registration-modal",{buttonClass:[1,"button-class"],buttonText:[1,"button-text"],modalTitle:[1,"modal-title"],eventSessions:[1,"event-sessions"],redirectUrl:[1,"redirect-url"],isModalOpen:[32],displayingContent:[32],selectedSessions:[32],skippedSessionSelection:[32],processingFormSubmissions:[32],formProcessor:[32],error:[32],submittedFormValues:[32]}]),ia=Gt(ci,[0,"header-cta",{buttonClass:[1,"button-class"],loading:[32],isLoggedIn:[32]}]),oa=Gt(ui,[0,"home-slots",{leftItems:[1,"left-items"],centerItems:[1,"center-items"],rightItems:[1,"right-items"],imageClass:[1,"image-class"],columnOne:[32],columnOneRotator:[32],columnTwo:[32],columnTwoRotator:[32],columnThree:[32],columnThreeRotator:[32]}]),sa=Gt(di,[0,"pricing-cta",{buttonClass:[1,"button-class"],signedInText:[1,"signed-in-text"],signedOutText:[1,"signed-out-text"],loading:[32],isLoggedIn:[32]}]),aa=Gt(vi,[0,"pulumi-api-doc-filterable-nav",{baseDirectory:[1,"base-directory"],packageName:[1,"package-name"],isLoading:[32],parsedNodes:[32],currentlyRenderedNodes:[32],filterContent:[32]}]),la=Gt(gi,[4,"pulumi-api-doc-nav-node",{node:[16],href:[1],depth:[2],isExpanded:[1028,"is-expanded"]}]),ca=Gt(yi,[0,"pulumi-api-doc-nav-tree",{nodes:[16],baseDirectory:[1,"base-directory"]}]),ua=Gt(bi,[0,"pulumi-audio",{url:[1],playingText:[1,"playing-text"],pausedText:[1,"paused-text"],paused:[32],isLoading:[32],error:[32]}]),da=Gt(xi,[4,"pulumi-banner",{name:[1],dismissible:[4],visible:[1540]},[[4,"rendered","onRendered"]]]),pa=Gt(ki,[4,"pulumi-choosable",{type:[1025],value:[1025],values:[1025],mode:[1025],selection:[1025]},[[4,"rendered","onRendered"]]]),fa=Gt(ji,[4,"pulumi-chooser",{type:[1025],options:[1025],selection:[1025],optionStyle:[1025,"option-style"],mode:[1025],currentOptions:[32]},[[4,"rendered","onRendered"]]]),ha=Gt(Ii,[0,"pulumi-contact-us-form",{items:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedItems:[32],defaultFormId:[32]}]),ma=Gt(Xi,[0,"pulumi-convert",{from:[1],endpoint:[1],examples:[1],theme:[1],sourceFiles:[32],converting:[32],convertible:[32],alertDismissed:[32]}]),va=Gt(Zi,[0,"pulumi-date-countdown",{dateString:[1,"date-string"],textClass:[1,"text-class"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownOverText:[1,"countdown-over-text"],countdownData:[32]}]),ga=Gt(eo,[0,"pulumi-date-countdown-circles",{dateString:[1,"date-string"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownData:[32]}]),ya=Gt(to,[1,"pulumi-datetime",{class:[1],timeonly:[4],date:[1025]}]),ba=Gt(no,[0,"pulumi-developer-quotes",{quotes:[1]}]),wa=Gt(ro,[4,"pulumi-docs-nav",{expandedMenuIDs:[1025,"expanded-menu-ids"]},[[0,"click","onClick"]]]),_a=Gt(io,[4,"pulumi-example"]),Sa=Gt(oo,[4,"pulumi-examples"]),xa=Gt(so,[1,"pulumi-filter-select",{filters:[32]},[[0,"optionChange","onOptionChange"]]]),ka=Gt(ao,[1,"pulumi-filter-select-option",{label:[1],value:[1],selected:[4]}]),Oa=Gt(lo,[1,"pulumi-filter-select-option-group",{name:[1],expanded:[516]},[[4,"click","onDocumentClick"]]]),$a=Gt(co,[0,"pulumi-greenhouse-jobs-list",{departments:[32],loading:[32]}]),Ea=Gt(uo,[0,"pulumi-hubspot-form",{formId:[1,"form-id"],salesforceCampaignId:[1,"salesforce-campaign-id"],goToWebinarKey:[1,"go-to-webinar-key"],class:[1],isLoading:[32],didLoad:[32]}]),Ca=Gt(po,[0,"pulumi-install",{os:[1025],tooltipContent:[32]}]),Ta=Gt(fo,[0,"pulumi-multi-select-form",{items:[16],selectClass:[1,"select-class"],labelClass:[1,"label-class"],labelText:[1,"label-text"],defaultFormId:[1,"default-form-id"],selectedItem:[32],formSubmitted:[32]}]),Pa=Gt(ho,[0,"pulumi-pricing-calculator",{duration:[32],resourceCount:[32],utilization:[32],deploymentsExpanded:[32],deploymentMinutes:[32]}]),Aa=Gt(mo,[0,"pulumi-registry-list-search",{filterContent:[32]}]),ja=Gt(vo,[0,"pulumi-resource-links",{packageName:[1,"package-name"],moduleName:[1,"module-name"],resourceName:[1,"resource-name"],related:[32]}]),Ia=Gt(Ro,[0,"pulumi-root"]),La=Gt(Fo,[0,"pulumi-slot-machine",{imageClass:[1,"image-class"],leftImages:[1,"left-images"],centerImages:[1,"center-images"],rightImages:[1,"right-images"]}]),Da=Gt(Bo,[4,"pulumi-swipeable"]),Ma=Gt(Gs,[4,"pulumi-swiper",{speed:[2],loop:[4],autoplay:[4],autoplayDelay:[2,"autoplay-delay"],navControls:[4,"nav-controls"],slides:[2],centeredSlides:[4,"centered-slides"],initialSlide:[2,"initial-slide"],direction:[1],enableMouseEvents:[4,"enable-mouse-events"],spaceBetween:[2,"space-between"],swiperID:[32],containerClass:[32],nextBtnClass:[32],previousBtnClass:[32]}]),Na=Gt(Js,[1,"pulumi-tab",{label:[1],active:[4]}]),Ra=Gt(Ys,[1,"pulumi-tabs",{selectedTab:[32]}]),Fa=Gt(Qs,[0,"pulumi-tertiary-nav",{items:[1025],tabContent:[1040],selection:[1032]}]),Ba=Gt(Xs,[4,"pulumi-tooltip",{id:[32],active:[32]}]),Ha=Gt(Zs,[0,"pulumi-top-button",{visible:[32]},[[9,"scroll","handleScroll"]]]),Va=Gt(ea,[4,"pulumi-user-toggle",{userId:[1025,"user-id"]},[[4,"rendered","handleRendered"]]]),qa=Gt(ta,[0,"pulumi-webinar-form-select",{sessions:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedSessions:[32],defaultFormId:[32]}]);class za{constructor(e){this.serviceName=e,this.state=JSON.parse(window.localStorage.getItem(e)||"{}")}getState(){return this.state}getKey(e){return this.state[e]}updateKey(e,t){this.state=Object.assign(this.state,{[e]:t}),window.localStorage.setItem(this.serviceName,JSON.stringify(this.state))}}const Ua=new za("navigation-toggle-state");function Wa(e,t){Ua.updateKey(e.id,t)}function Ka(e){$(e).each((function(e,t){!function(e){$(".toggleButton-topLevel",e).click((function(){$(this).closest(".toggle-topLevel, .toggleVisible-topLevel")[0]==e&&($(e).is(".toggle")?($(e).addClass("toggleVisible").removeClass("toggle"),Wa(e,"expanded")):($(e).addClass("toggle").removeClass("toggleVisible"),Wa(e,"collapsed")))}))}(t)}))}function Ga(e){$(e).each((function(e,t){!function(e){$(".toggleButton",e).click((function(){$(this).closest(".toggle, .toggleVisible")[0]==e&&($(e).is(".toggle")?$(e).addClass("toggleVisible").removeClass("toggle"):$(e).addClass("toggle").removeClass("toggleVisible"))}))}(t)}))}function Ja(){$(".table-of-contents").hide();var e=$(".table-of-contents .content ul.table-of-contents-list");if(e){var t=!1,n=[];if($("h2, h3").each((function(){var r=$(this);if(!(r.closest(".hidden").length>0)){var i=r.attr("id"),o=r.text(),s=r.data("link-title"),a=r.prop("tagName").toLowerCase();if(i&&o){t=!0;var l=$("
  • "+(s||o)+"
  • ");e.append(l),n.push({element:r,listItem:l})}}})),t){$(".table-of-contents").show();const e=()=>{var e;for(var t of n)!e&&t.element.offset().top>=window.scrollY&&(e=t),t.listItem.toggleClass("active",t===e)};$(window).on("scroll",(function(){e()})),e()}}}!function(){const e=e=>{const t=window.location.href,n=$(e).find("a").attr("href");return t.includes(n)};$(".toggle-topLevel, .toggleVisible-topLevel").each((function(t,n){"expanded"==Ua.getKey(n.id)||e(n)?$(n).addClass("toggleVisible").removeClass("toggle"):"collapsed"==Ua.getKey(n.id)&&$(n).addClass("toggle").removeClass("toggleVisible"),$(n).click((function(){const e=$(n).find(".folder-open"),t=$(n).find(".folder");e.length>0?e.addClass("folder").removeClass("folder-open"):t.length>0&&t.addClass("folder-open").removeClass("folder")}))})),$(".toggleVisible, .toggleVisible-topLevel").each((function(t,n){e(n)&&$("#left-nav").animate({scrollTop:$(n).offset().top-145},0)}))}(),function(e){const t=new IntersectionObserver((([t])=>{t.target.classList.toggle("is-pinned",t.intersectionRatio<1);const n=document.querySelector(".header-pinned"),r=document.querySelector(".hide-on-pinned"),i=document.querySelector(".header-hero-title");t.isIntersecting?(e(n).addClass("hidden"),e(n).removeClass("flex"),e(r).removeClass("hidden"),e(r).addClass("flex"),e(i).removeClass("hidden"),e(i).addClass("flex")):(e(n).removeClass("hidden"),e(n).addClass("flex"),e(r).addClass("hidden"),e(r).removeClass("flex"),e(i).addClass("hidden"),e(i).removeClass("flex"))}),{threshold:[1]}),n=document.querySelector(".header-container");if(n)t.observe(n);else{const e=document.querySelector(".top-nav-bar.registry");e&&t.observe(e)}Ga(".toggle"),Ga(".toggleVisible"),Ka(".toggle-topLevel"),Ka(".toggleVisible-topLevel"),Ja(),e(".nav-header-toggle").click((function(){e(".nav-header-items").toggleClass("hidden")})),e(".blog-sidebar-toggle").click((function(){e(".blog-sidebar-content").toggleClass("hidden")})),e(".docs-sidebar-toggle").click((function(){e(".docs-sidebar-content").toggleClass("hidden")})),e("ul[data-shuffle='true']").each((function(t,n){var r=e(n).find("> li");r.each((function(t,n){e(n).css("order",Math.ceil(Math.random()*r.length))})),e(n).removeClass("invisible")})),e('#about-nav li[data-filter-name="who-we-are"]').addClass("active-about-nav-item"),e((function(){e("#about-nav li").click((function(){const t="active-about-nav-item";e(this).addClass(t);const n=e(this).data("filter-name");["who-we-are","what-we-believe","community","history","awards","newsroom","join-us"].filter((e=>e!==n)).forEach((n=>{e(`#about-nav li[data-filter-name="${n}"]`).removeClass(t)}))}))})),e("dl.resources-properties dt.property-required.property-replacement").removeAttr("title").find(".property-indicator").replaceWith('
    This property is required.
    Changes to this property will trigger replacement.
    '),e("dl.resources-properties dt.property-required:not(.property-replacement)").removeAttr("title").find(".property-indicator").replaceWith(' This property is required.'),e("dl.resources-properties dt.property-replacement:not(.property-required)").removeAttr("title").find(".property-indicator").replaceWith(' Changes to this property will trigger replacement.')}(jQuery),function(e,t){"ontouchstart"in e||(t(".nav-header-items li a").mouseenter((function(e){var n=t(e.target).data("submenu");t(".submenu-item").hide(),t(".submenu-item-"+n).show()})),t(".submenu").mouseleave((function(e){e.relatedTarget!==t("nav.nav-main").get(0)&&t(".submenu-item").hide()}))),function(){let e=!1,n=!1;t("#why-pulumi-menu-label").click((function(){t("#mobile-dropdown").scroll(),e?t("#mobile-dropdown").animate({scrollTop:top},300):t("#mobile-dropdown").animate({scrollTop:t("#why-pulumi-mobile-menu").position().top-115},300),e=!e})),t("#learn-menu-label").click((function(){t("#mobile-dropdown").scroll(),n?t("#mobile-dropdown").animate({scrollTop:top},300):t("#mobile-dropdown").animate({scrollTop:t("#learn-mobile-menu").position().top-115},300),n=!n}))}();const n=new za("banner-state"),r=t("#dismissable-banner");"true"!==n.getKey("dismissed")?t(r).css({display:"block"}):t(r).css({display:"none"}),t("#dismiss-banner").on("click",(function(e){e.preventDefault(),t(r).css({display:"none"}),n.updateKey("dismissed","true")}))}(document,jQuery);n(28);function Ya(e){for(var t=window.location.search.substring(1).split("&"),n=0;n0&&($("div,span").each((function(n,r){var i=Qa(r);for(n=0;n0&&t(i[0])}}$(document).on("rendered",(function(){var e;["language","os","cloud","k8s-language","input-kind"].forEach((function(e){var t=Ya(e);t&&Xa(e,t)})),rl("language",Za,"typescript"),-1!==navigator.appVersion.indexOf("Win")?e="windows":-1!==navigator.appVersion.indexOf("Mac")?e="macos":-1!==navigator.appVersion.indexOf("Linux")&&(e="linux"),rl("os",el,e),rl("cloud",tl,"aws"),rl("k8s-language",nl,"typescript")}));n(245),n(21),n(931),n(161);function il(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function ol(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1&&(r.checked=!0):r.checked=!0;var i=document.createElement("label");return i.innerText=e+"s",i.className="cursor-pointer",i.setAttribute("for",r.id),n.appendChild(r),n.appendChild(i),n}function t(){for(var e=$("input[type='checkbox']"),t=[],r=0;r-1)return!0}return!1}var r=$(".event-tags span"),i=$("#eventFilter");if(r.length&&i.length){for(var o=[],s=0;s-1?(al('UA "Edge" => assuming success'),[2,!0]):_l(document.body,e)?(al("copyUsingTempSelection worked"),[2,!0]):function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=_l(t,e);return document.body.removeChild(t),n}(e)?(al("copyUsingTempElem worked"),[2,!0]):function(e){al("copyTextUsingDOM");var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(al("Using shadow DOM."),n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),Sl(r);var i=document.execCommand("copy");return xl(),document.body.removeChild(t),i}(e["text/plain"])?(al("copyTextUsingDOM worked"),[2,!0]):[2,!1]}))}))}!function(){function e(e,t){var n;for(var r in void 0===t&&(t={}),this.types=Object.keys(e),this._items={},e){var i=e[r];this._items[r]="string"==typeof i?Ol(r,i):i}this.presentationStyle=null!==(n=null==t?void 0:t.presentationStyle)&&void 0!==n?n:"unspecified"}e.prototype.getType=function(e){return il(this,void 0,void 0,(function(){return ol(this,(function(t){return[2,this._items[e]]}))}))}}();function Ol(e,t){return new Blob([t],{type:e})}function $l(e){var t="Copy";e.append('
    Copy
    ').on("click","button.copy-button",(function(){var e=$(this),n=e.parent().parent().parent().siblings("pre").children("code"),r=function(e,t){if(!t)return"";var n,r,i,o,s;switch(t=(t=t.replace("\r\n","\n")).trim(),e){case"bash":case"sh":case"shell":case"zsh":n="$ ",r="#",i=/\s+#.*$/m,o="\\",s=" && ";break;case"bat":case"batch":case"batchfile":n="> ",r="::",i=/\s+::.*$/m,o="^",s=" && ";break;case"powershell":case"posh":case"pwsh":n="> ",r="#",i=/\s+#.*$/m,o="`",s="; "}if(n){for(var a=[],l=t.split("\n"),c=!1,u=0;u0&&(t=a.join(s))}return-1!==navigator.appVersion.indexOf("Win")&&(t=t.replace("\n","\r\n")),t}(n.attr("data-lang"),n.text());r&&r.length>0&&function(e){il(this,void 0,void 0,(function(){return ol(this,(function(t){if(hl)return al("Using `navigator.clipboard.writeText()`."),[2,hl(e)];if(!kl(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}(r),e.blur();var i=e.closest("pulumi-tooltip"),o=i.find("[slot='content']"),s=i.get(0);o.text("Copied!"),s.show().then((()=>{setTimeout((function(){s.hide().then((()=>o.text(t)))}),1e3)}));const a=window.analytics,l=a&&a.track&&"function"==typeof a.track;var c=n.attr("data-track");if(l&&c){const e={codeBlockName:c};a.track("copy-code-block",e)}}))}$((function(){$l($(":not(.no-copy) > div.highlight"))}));n(506),n(498),n(490),n(366),n(744),n(734),n(756),n(399),n(40),n(140);var El=n(290),Cl=n.n(El);function Tl(e){return Tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tl(e)}function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Al(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ql(e){return function(e){if(Array.isArray(e))return zl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return zl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gc(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:20,n=[],r=0;r=3||2===n&&r>=4||1===n&&r>=10);function o(t,n,r){if(i&&void 0!==r){var o=r[0].__autocomplete_algoliaCredentials,s={"X-Algolia-Application-Id":o.appId,"X-Algolia-API-Key":o.apiKey};e.apply(void 0,[t].concat(fc(n),[{headers:s}]))}else e.apply(void 0,[t].concat(fc(n)))}return{init:function(t,n){e("init",{appId:t,apiKey:n})},setUserToken:function(t){e("setUserToken",t)},clickedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("clickedObjectIDsAfterSearch",wc(t),t[0].items)},clickedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("clickedObjectIDs",wc(t),t[0].items)},clickedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["clickedFilters"].concat(n))},convertedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("convertedObjectIDsAfterSearch",wc(t),t[0].items)},convertedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o("convertedObjectIDs",wc(t),t[0].items)},convertedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["convertedFilters"].concat(n))},viewedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&t.reduce((function(e,t){var n=t.items,r=mc(t,dc);return[].concat(fc(e),fc(bc(gc(gc({},r),{},{objectIDs:(null==n?void 0:n.map((function(e){return e.objectID})))||r.objectIDs})).map((function(e){return{items:n,payload:e}}))))}),[]).forEach((function(e){var t=e.items;return o("viewedObjectIDs",[e.payload],t)}))},viewedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["viewedFilters"].concat(n))}}}function Sc(e){var t=e.items.reduce((function(e,t){var n;return e[t.__autocomplete_indexName]=(null!==(n=e[t.__autocomplete_indexName])&&void 0!==n?n:[]).concat(t),e}),{});return Object.keys(t).map((function(e){return{index:e,items:t[e],algoliaSource:["autocomplete"]}}))}function xc(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function kc(e){return kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kc(e)}function Oc(e){return function(e){if(Array.isArray(e))return $c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&jc({onItemsChange:r,items:n,insights:a,state:t}))}}),0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,r=e.onActive;s("addAlgoliaAgent","insights-plugin"),t({algoliaInsightsPlugin:{__algoliaSearchParameters:{clickAnalytics:!0},insights:a}}),n((function(e){var t=e.item,n=e.state,r=e.event;xc(t)&&i({state:n,event:r,insights:a,item:t,insightsEvents:[Cc({eventName:"Item Selected"},ac({item:t,items:l.current}))]})})),r((function(e){var t=e.item,n=e.state,r=e.event;xc(t)&&o({state:n,event:r,insights:a,item:t,insightsEvents:[Cc({eventName:"Item Active"},ac({item:t,items:l.current}))]})}))},onStateChange:function(e){var t=e.state;c({state:t})},__autocomplete_pluginOptions:e}}function Lc(e){return Lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lc(e)}function Dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mc(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Lc(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Lc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Lc(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nc(e,t,n){var r,i=t.initialState;return{getState:function(){return i},dispatch:function(r,o){var s=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0},reshape:function(e){return e.sources}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:Uc(),plugins:i,initialState:eu({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),i.forEach((function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)}))},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),i.forEach((function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)}))},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),i.forEach((function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)}))},getSources:function(n){return Promise.all([].concat(Qc(i.map((function(e){return e.getSources}))),[e.getSources]).filter(Boolean).map((function(e){return function(e,t){var n=[];return Promise.resolve(e(t)).then((function(e){return Array.isArray(e),Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t={getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:sc,onResolve:sc};Object.keys(t).forEach((function(e){t[e].__default=!0}));var r=Kc(Kc({},t),e);return Promise.resolve(r)})))}))}(e,n)}))).then((function(e){return Rc(e)})).then((function(e){return e.map((function(e){return eu(eu({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)}))},onResolve:function(n){e.onResolve(n),t.forEach((function(e){var t;return null===(t=e.onResolve)||void 0===t?void 0:t.call(e,n)}))}})}))}))},navigator:eu({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}function ru(e){return ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ru(e)}function iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ou(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ju,Iu,Lu,Du=null,Mu=(ju=-1,Iu=-1,Lu=void 0,function(e){var t=++ju;return Promise.resolve(e).then((function(e){return Lu&&t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var zu=/((gt|sm)-|galaxy nexus)|samsung[- ]/i;function Uu(e){return Uu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uu(e)}var Wu=["props","refresh","store"],Ku=["inputElement","formElement","panelElement"],Gu=["inputElement"],Ju=["inputElement","maxLength"],Yu=["sourceIndex"],Qu=["sourceIndex"],Xu=["item","source","sourceIndex"];function Zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ed(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rd(e){var t=e.props,n=e.refresh,r=e.store,i=nd(e,Wu),o=function(e,t){return void 0!==t?"".concat(e,"-").concat(t):e};return{getEnvironmentProps:function(e){var n=e.inputElement,i=e.formElement,o=e.panelElement;function s(e){!r.getState().isOpen&&r.pendingRequests.isEmpty()||e.target===n||!1===[i,o].some((function(t){return n=t,r=e.target,n===r||n.contains(r);var n,r}))&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return ed({onTouchStart:s,onMouseDown:s,onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},nd(e,Ku))},getRootProps:function(e){return ed({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){e.inputElement;return ed({action:"",noValidate:!0,role:"search",onSubmit:function(o){var s;o.preventDefault(),t.onSubmit(ed({event:o,refresh:n,state:r.getState()},i)),r.dispatch("submit",null),null===(s=e.inputElement)||void 0===s||s.blur()},onReset:function(o){var s;o.preventDefault(),t.onReset(ed({event:o,refresh:n,state:r.getState()},i)),r.dispatch("reset",null),null===(s=e.inputElement)||void 0===s||s.focus()}},nd(e,Gu))},getLabelProps:function(e){var n=e||{},r=n.sourceIndex,i=nd(n,Yu);return ed({htmlFor:"".concat(o(t.id,r),"-input"),id:"".concat(o(t.id,r),"-label")},i)},getInputProps:function(e){var o;function s(e){(t.openOnFocus||Boolean(r.getState().query))&&Nu(ed({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},i)),r.dispatch("focus",null)}var a=e||{},l=(a.inputElement,a.maxLength),c=void 0===l?512:l,u=nd(a,Ju),d=Ou(r.getState()),p=function(e){return Boolean(e&&e.match(zu))}((null===(o=t.environment.navigator)||void 0===o?void 0:o.userAgent)||""),f=null!=d&&d.itemUrl&&!p?"go":"search";return ed({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:f,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:c,type:"search",onChange:function(e){Nu(ed({event:e,props:t,query:e.currentTarget.value.slice(0,c),refresh:n,store:r},i))},onKeyDown:function(e){!function(e){var t=e.event,n=e.props,r=e.refresh,i=e.store,o=qu(e,Fu);if("ArrowUp"===t.key||"ArrowDown"===t.key){var s=function(){var e=n.environment.document.getElementById("".concat(n.id,"-item-").concat(i.getState().activeItemId));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},a=function(){var e=Ou(i.getState());if(null!==i.getState().activeItemId&&e){var n=e.item,s=e.itemInputValue,a=e.itemUrl,l=e.source;l.onActive(Hu({event:t,item:n,itemInputValue:s,itemUrl:a,refresh:r,source:l,state:i.getState()},o))}};t.preventDefault(),!1===i.getState().isOpen&&(n.openOnFocus||Boolean(i.getState().query))?Nu(Hu({event:t,props:n,query:i.getState().query,refresh:r,store:i},o)).then((function(){i.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),a(),setTimeout(s,0)})):(i.dispatch(t.key,{}),a(),s())}else if("Escape"===t.key)t.preventDefault(),i.dispatch(t.key,null),i.pendingRequests.cancelAll();else if("Tab"===t.key)i.dispatch("blur",null),i.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===i.getState().activeItemId||i.getState().collections.every((function(e){return 0===e.items.length})))return void(n.debug||i.pendingRequests.cancelAll());t.preventDefault();var l=Ou(i.getState()),c=l.item,u=l.itemInputValue,d=l.itemUrl,p=l.source;if(t.metaKey||t.ctrlKey)void 0!==d&&(p.onSelect(Hu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o)),n.navigator.navigateNewTab({itemUrl:d,item:c,state:i.getState()}));else if(t.shiftKey)void 0!==d&&(p.onSelect(Hu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o)),n.navigator.navigateNewWindow({itemUrl:d,item:c,state:i.getState()}));else if(t.altKey);else{if(void 0!==d)return p.onSelect(Hu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o)),void n.navigator.navigate({itemUrl:d,item:c,state:i.getState()});Nu(Hu({event:t,nextState:{isOpen:!1},props:n,query:u,refresh:r,store:i},o)).then((function(){p.onSelect(Hu({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:r,source:p,state:i.getState()},o))}))}}}(ed({event:e,props:t,refresh:n,store:r},i))},onFocus:s,onBlur:sc,onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||s(n)}},u)},getPanelProps:function(e){return ed({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){var n=e||{},r=n.sourceIndex,i=nd(n,Qu);return ed({role:"listbox","aria-labelledby":"".concat(o(t.id,r),"-label"),id:"".concat(o(t.id,r),"-list")},i)},getItemProps:function(e){var s=e.item,a=e.source,l=e.sourceIndex,c=nd(e,Xu);return ed({id:"".concat(o(t.id,l),"-item-").concat(s.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===s.__autocomplete_id,onMouseMove:function(e){if(s.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",s.__autocomplete_id);var t=Ou(r.getState());if(null!==r.getState().activeItemId&&t){var o=t.item,a=t.itemInputValue,l=t.itemUrl,c=t.source;c.onActive(ed({event:e,item:o,itemInputValue:a,itemUrl:l,refresh:n,source:c,state:r.getState()},i))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var o=a.getItemInputValue({item:s,state:r.getState()}),l=a.getItemUrl({item:s,state:r.getState()});(l?Promise.resolve():Nu(ed({event:e,nextState:{isOpen:!1},props:t,query:o,refresh:n,store:r},i))).then((function(){a.onSelect(ed({event:e,item:s,itemInputValue:o,itemUrl:l,refresh:n,source:a,state:r.getState()},i))}))}},c)}}}function id(e){return id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},id(e)}function od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sd(e){for(var t=1;t=n?null===r?null:0:i}function dd(e){return dd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dd(e)}function pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t=5&&((i||!e&&5===r)&&(s.push(r,0,i,n),r=6),e&&(s.push(r,e,0,n),r=6)),i=""},l=0;l"===t?(r=1,i=""):i=t+i[0]:o?t===o?o="":i+=t:'"'===t||"'"===t?o=t:">"===t?(a(),r=1):r&&("="===t?(r=5,n=i,i=""):"/"===t&&(r<5||">"===e[l][c+1])?(a(),3===r&&(s=s[0]),r=s,(s=s[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(a(),r=2):i+=t),3===r&&"!--"===i&&(r=4,s=s[0])}return a(),s}(e)),t),arguments,[])).length>1?t:t[0]}var kd=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n},Od=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(r),n},$d=function(e){var t=e.environment.document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("class","aa-LoadingIcon"),t.setAttribute("viewBox","0 0 100 100"),t.setAttribute("width","20"),t.setAttribute("height","20"),t.innerHTML='\n \n',t},Ed=["ontouchstart","ontouchend","ontouchmove","ontouchcancel"];function Cd(e,t,n){e[t]=null===n?"":"number"!=typeof n?n:n+"px"}function Td(e){this._listeners[e.type](e)}function Pd(e,t,n){var r,i,o=e[t];if("style"===t)if("string"==typeof n)e.style=n;else if(null===n)e.style="";else for(t in n)o&&n[t]===o[t]||Cd(e.style,t,n[t]);else"o"===t[0]&&"n"===t[1]?(r=t!==(t=t.replace(/Capture$/,"")),((i=t.toLowerCase())in e||Ed.includes(i))&&(t=i),t=t.slice(2),e._listeners||(e._listeners={}),e._listeners[t]=n,n?o||e.addEventListener(t,Td,r):e.removeEventListener(t,Td,r)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function Ad(e){return"onChange"===e?"onInput":e}function jd(e,t){for(var n in t)Pd(e,Ad(n),t[n])}function Id(e,t){for(var n in t)"o"===n[0]&&"n"===n[1]||Pd(e,Ad(n),t[n])}var Ld=["children"];function Dd(e){return function(e){if(Array.isArray(e))return Md(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Md(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Md(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Md(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Rd(e){return function(t,n){var r=n.children,i=void 0===r?[]:r,o=Nd(n,Ld),s=e.document.createElement(t);return jd(s,o),s.append.apply(s,Dd(i)),s}}function Fd(e){return Fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fd(e)}var Bd=["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","isDetached","state"];function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vd(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ud(e){return Ud="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ud(e)}function Wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kd(e){for(var t=1;t2&&(s.children=arguments.length>3?Yd.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return cp(e,s,r,i,null)}function cp(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++Xd:i};return null==i&&null!=Qd.vnode&&Qd.vnode(o),o}function up(e){return e.children}function dp(e,t){this.props=e,this.context=t}function pp(e,t){if(null==t)return e.__?pp(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&Zd.sort(np));mp.__r=0}function vp(e,t,n,r,i,o,s,a,l,c){var u,d,p,f,h,m,v,g=r&&r.__k||ip,y=g.length;for(n.__k=[],u=0;u0?cp(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=g[u])||p&&f.key==p.key&&f.type===p.type)g[u]=void 0;else for(d=0;d=0;t--)if((n=e.__k[t])&&(r=bp(n)))return r;return null}function wp(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||op.test(t)?n:n+"px"}function _p(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||wp(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||wp(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?xp:Sp,o):e.removeEventListener(t,o?xp:Sp,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function Sp(e){return this.l[e.type+!1](Qd.event?Qd.event(e):e)}function xp(e){return this.l[e.type+!0](Qd.event?Qd.event(e):e)}function kp(e,t,n,r,i,o,s,a,l){var c,u,d,p,f,h,m,v,g,y,b,w,_,S,x,k=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(c=Qd.__b)&&c(t);try{e:if("function"==typeof k){if(v=t.props,g=(c=k.contextType)&&r[c.__c],y=c?g?g.props.value:c.__:r,n.__c?m=(u=t.__c=n.__c).__=u.__E:("prototype"in k&&k.prototype.render?t.__c=u=new k(v,y):(t.__c=u=new dp(v,y),u.constructor=k,u.render=Cp),g&&g.sub(u),u.props=v,u.state||(u.state={}),u.context=y,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),null==u.__s&&(u.__s=u.state),null!=k.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=sp({},u.__s)),sp(u.__s,k.getDerivedStateFromProps(v,u.__s))),p=u.props,f=u.state,u.__v=t,d)null==k.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==k.getDerivedStateFromProps&&v!==p&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(v,y),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(v,u.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),u.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b0&&void 0!==arguments[0]?arguments[0]:[],t=e;return{get:function(){return t},add:function(e){var n=t[t.length-1];(null==n?void 0:n.isHighlighted)===e.isHighlighted?t[t.length-1]={value:n.value+e.value,isHighlighted:n.isHighlighted}:t.push(e)}}}(n?[{value:n,isHighlighted:!1}]:[]);return t.forEach((function(e){var t=e.split(Ml);r.add({value:t[0],isHighlighted:!0}),""!==t[1]&&r.add({value:t[1],isHighlighted:!1})})),r.get()}function jp(e){return function(e){if(Array.isArray(e))return Ip(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ip(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ip(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ip(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",""":'"',"'":"'"},Np=new RegExp(/\w/i),Rp=/&(amp|quot|lt|gt|#39);/g,Fp=RegExp(Rp.source);function Bp(e,t){var n,r,i,o=e[t],s=(null===(n=e[t+1])||void 0===n?void 0:n.isHighlighted)||!0,a=(null===(r=e[t-1])||void 0===r?void 0:r.isHighlighted)||!0;return Np.test((i=o.value)&&Fp.test(i)?i.replace(Rp,(function(e){return Mp[e]})):i)||a!==s?o.isHighlighted:a}function Hp(e){return Hp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hp(e)}function Vp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qp(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var af={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",detachedSearchButtonQuery:"aa-DetachedSearchButtonQuery",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},lf=function(e,t){var n=e.children;(0,e.render)(n,t)},cf={createElement:lp,Fragment:up,render:Tp};function uf(e){var t=e.panelPlacement,n=e.container,r=e.form,i=e.environment,o=n.getBoundingClientRect(),s=(i.pageYOffset||i.document.documentElement.scrollTop||i.document.body.scrollTop||0)+o.top+o.height;switch(t){case"start":return{top:s,left:o.left};case"end":return{top:s,right:i.document.documentElement.clientWidth-(o.left+o.width)};case"full-width":return{top:s,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":var a=r.getBoundingClientRect();return{top:s,left:a.left,right:i.document.documentElement.clientWidth-(a.left+a.width),width:"unset",maxWidth:"unset"};default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(t)," is not valid."))}}function df(e){return df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},df(e)}function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jf(e){for(var t=1;t0;if(!p.value.core.openOnFocus&&!t.query)return n;var r=Boolean(c.current||p.value.renderer.renderNoResults);return!n&&r||n},__autocomplete_metadata:{userAgents:Ul,options:e}}))})),m=rc(jf({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},p.value.core.initialState)),v={getEnvironmentProps:p.value.renderer.getEnvironmentProps,getFormProps:p.value.renderer.getFormProps,getInputProps:p.value.renderer.getInputProps,getItemProps:p.value.renderer.getItemProps,getLabelProps:p.value.renderer.getLabelProps,getListProps:p.value.renderer.getListProps,getPanelProps:p.value.renderer.getPanelProps,getRootProps:p.value.renderer.getRootProps},g={setActiveItemId:h.value.setActiveItemId,setQuery:h.value.setQuery,setCollections:h.value.setCollections,setIsOpen:h.value.setIsOpen,setStatus:h.value.setStatus,setContext:h.value.setContext,refresh:h.value.refresh,navigator:h.value.navigator},y=a((function(){return xd.bind(p.value.renderer.renderer.createElement)})),b=a((function(){return Jd({autocomplete:h.value,autocompleteScopeApi:g,classNames:p.value.renderer.classNames,environment:p.value.core.environment,isDetached:f.value,placeholder:p.value.core.placeholder,propGetters:v,setIsModalOpen:x,state:m.current,translations:p.value.renderer.translations})}));function w(){jd(b.value.panel,{style:f.value?{}:uf({panelPlacement:p.value.renderer.panelPlacement,container:b.value.root,form:b.value.form,environment:p.value.core.environment})})}function _(e){m.current=e;var t={autocomplete:h.value,autocompleteScopeApi:g,classNames:p.value.renderer.classNames,components:p.value.renderer.components,container:p.value.renderer.container,html:y.value,dom:b.value,panelContainer:f.value?b.value.detachedContainer:p.value.renderer.panelContainer,propGetters:v,state:m.current,renderer:p.value.renderer.renderer},n=!qc(e)&&!c.current&&p.value.renderer.renderNoResults||p.value.renderer.render;!function(e){var t=e.autocomplete,n=e.autocompleteScopeApi,r=e.dom,i=e.propGetters,o=e.state;Id(r.root,i.getRootProps(hf({state:o,props:t.getRootProps({})},n))),Id(r.input,i.getInputProps(hf({state:o,props:t.getInputProps({inputElement:r.input}),inputElement:r.input},n))),jd(r.label,{hidden:"stalled"===o.status}),jd(r.loadingIndicator,{hidden:"stalled"!==o.status}),jd(r.clearButton,{hidden:!o.query}),jd(r.detachedSearchButtonQuery,{textContent:o.query}),jd(r.detachedSearchButtonPlaceholder,{hidden:Boolean(o.query)})}(t),function(e,t){var n=t.autocomplete,r=t.autocompleteScopeApi,i=t.classNames,o=t.html,s=t.dom,a=t.panelContainer,l=t.propGetters,c=t.state,u=t.components,d=t.renderer;if(c.isOpen){a.contains(s.panel)||"loading"===c.status||a.appendChild(s.panel),s.panel.classList.toggle("aa-Panel--stalled","stalled"===c.status);var p=c.collections.filter((function(e){var t=e.source,n=e.items;return t.templates.noResults||n.length>0})).map((function(e,t){var s=e.source,a=e.items;return d.createElement("section",{key:t,className:i.source,"data-autocomplete-source-id":s.sourceId},s.templates.header&&d.createElement("div",{className:i.sourceHeader},s.templates.header({components:u,createElement:d.createElement,Fragment:d.Fragment,items:a,source:s,state:c,html:o})),s.templates.noResults&&0===a.length?d.createElement("div",{className:i.sourceNoResults},s.templates.noResults({components:u,createElement:d.createElement,Fragment:d.Fragment,source:s,state:c,html:o})):d.createElement("ul",pf({className:i.list},l.getListProps(hf({state:c,props:n.getListProps({sourceIndex:t})},r))),a.map((function(e){var a=n.getItemProps({item:e,source:s,sourceIndex:t});return d.createElement("li",pf({key:a.id,className:i.item},l.getItemProps(hf({state:c,props:a},r))),s.templates.item({components:u,createElement:d.createElement,Fragment:d.Fragment,item:e,state:c,html:o}))}))),s.templates.footer&&d.createElement("div",{className:i.sourceFooter},s.templates.footer({components:u,createElement:d.createElement,Fragment:d.Fragment,items:a,source:s,state:c,html:o})))})),f=d.createElement(d.Fragment,null,d.createElement("div",{className:i.panelLayout},p),d.createElement("div",{className:"aa-GradientBottom"})),h=p.reduce((function(e,t){return e[t.props["data-autocomplete-source-id"]]=t,e}),{});e(hf(hf({children:f,state:c,sections:p,elements:h},d),{},{components:u,html:o},r),s.panel)}else a.contains(s.panel)&&a.removeChild(s.panel)}(n,t)}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i();var t=p.value.renderer,n=t.components,r=Pf(t,Cf);u.current=wf(r,p.value.core,{components:Ef(n,(function(e){return!e.value.hasOwnProperty("__autocomplete_componentName")})),initialState:m.current},e),l(),o(),h.value.refresh().then((function(){_(m.current)}))}function x(e){requestAnimationFrame((function(){var t=p.value.core.environment.document.body.contains(b.value.detachedOverlay);e!==t&&(e?(p.value.core.environment.document.body.appendChild(b.value.detachedOverlay),p.value.core.environment.document.body.classList.add("aa-Detached"),b.value.input.focus()):(p.value.core.environment.document.body.removeChild(b.value.detachedOverlay),p.value.core.environment.document.body.classList.remove("aa-Detached")))}))}return r((function(){var e=h.value.getEnvironmentProps({formElement:b.value.form,panelElement:b.value.panel,inputElement:b.value.input});return jd(p.value.core.environment,e),function(){jd(p.value.core.environment,Object.keys(e).reduce((function(e,t){return jf(jf({},e),{},If({},t,void 0))}),{}))}})),r((function(){var e=f.value?p.value.core.environment.document.body:p.value.renderer.panelContainer,t=f.value?b.value.detachedOverlay:b.value.panel;return f.value&&m.current.isOpen&&x(!0),_(m.current),function(){e.contains(t)&&e.removeChild(t)}})),r((function(){var e=p.value.renderer.container;return e.appendChild(b.value.root),function(){e.removeChild(b.value.root)}})),r((function(){var e=nc((function(e){_(e.state)}),0);return d.current=function(t){var n=t.state,r=t.prevState;(f.value&&r.isOpen!==n.isOpen&&x(n.isOpen),f.value||!n.isOpen||r.isOpen||w(),n.query!==r.query)&&p.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach((function(e){0!==e.scrollTop&&(e.scrollTop=0)}));e({state:n})},function(){d.current=void 0}})),r((function(){var e=nc((function(){var e=f.value;f.value=p.value.core.environment.matchMedia(p.value.renderer.detachedMediaQuery).matches,e!==f.value?S({}):requestAnimationFrame(w)}),20);return p.value.core.environment.addEventListener("resize",e),function(){p.value.core.environment.removeEventListener("resize",e)}})),r((function(){if(!f.value)return function(){};function e(e){b.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",e)}function t(t){e(t.matches)}var n=p.value.core.environment.matchMedia(getComputedStyle(p.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));e(n.matches);var r=Boolean(n.addEventListener);return r?n.addEventListener("change",t):n.addListener(t),function(){r?n.removeEventListener("change",t):n.removeListener(t)}})),r((function(){return requestAnimationFrame(w),function(){}})),jf(jf({},g),{},{update:S,destroy:function(){i()}})}function Df(e){return Df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Df(e)}function Mf(e){return function(e){if(Array.isArray(e))return Nf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Nf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nf(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n`(${e[t].map((({label:e})=>`${t}:"${e}"`)).join(" OR ")})`)).join(` ${t} `)}function Gf(e,t){return e.reduce(((e,n)=>{const r=t(n);return e.hasOwnProperty(r)||(e[r]=[]),e[r].push(n),e}),{})}function Jf(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Wf(e),n=t.initialTags,r=t.getTagsSubscribers,i=t.transformSource,o=t.onChange,s=Hf({initialTags:n}),a={setTags:s.set,addTags:s.add};return{name:"aa.tagsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,i=e.setIsOpen,l=e.refresh,c=r();t({tagsPlugin:zf(zf({},a),{},{tags:s.get()})}),n((function(e){var t=e.source,n=e.item,r=c.find((function(e){return e.sourceId===t.sourceId}));r&&s.add([r.getTag({item:n})])})),s.onChange((function(n){var r=n.prevTags;t({tagsPlugin:zf(zf({},a),{},{tags:s.get()})}),i(!0),o(zf(zf({},e),{},{prevTags:r,tags:s.get()})),l()}))},getSources:function(e){var t=e.state;return[i({source:{sourceId:"tagsPlugin",getItems:function(){return s.get()},onSelect:function(e){e.item.remove()},templates:{item:function(e){var t=e.item,n=e.createElement;return n("div",{className:"aa-TagsPlugin-Tag"},n("span",{className:"aa-TagsPlugin-TagLabel"},t.label),n("button",{className:"aa-TagsPlugin-RemoveButton",title:"Remove this tag"},n("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24"},n("path",{d:"M18 6L6 18"}),n("path",{d:"M6 6L18 18"}))))}}},state:t})]},data:zf(zf({},a),{},{get tags(){return s.get()}}),__autocomplete_pluginOptions:e}}({initialTags:e,transformSource:({source:e})=>{},getTagsSubscribers:()=>[{sourceId:"section",getTag:({item:e})=>e}]})}function Yf(e,t){var n,r;null===(r=null===(n=e.context)||void 0===n?void 0:n.tagsPlugin)||void 0===r||r.setTags(t)}function Qf(e){var t,n;return(null===(n=null===(t=e.context)||void 0===t?void 0:t.tagsPlugin)||void 0===n?void 0:n.tags)||[]}const Xf=function(e,t){let n;return(...r)=>(n&&clearTimeout(n),new Promise((i=>{n=setTimeout((()=>i(e(...r))),t)})))}((e=>Promise.resolve(e)),220);function Zf(e){return e>1e3?`${Math.ceil(e/1e3)}K`:e.toString()}function eh(e){return"Registry"===e?"Packages":e}function th(e){switch(e){case"Docs":return"/icons/docs.svg";case"Registry":return"/icons/registry.svg";case"Tutorials":return"/icons/graduation-cap.svg"}return"/icons/list.svg"}let nh,rh,ih,oh,sh;function ah(e){if(nh=e.getAttribute("data-app-id"),rh=e.getAttribute("data-search-key"),ih=e.getAttribute("data-index"),sh=e.getAttribute("data-facets").split(",").map((e=>({label:e,facet:"section"}))),!(nh&&rh&&ih&&sh))return void console.error("Autocomplete element found, but one or more require attributes were missing.");function t(e,t,n){return{sourceId:"sections",getItems:()=>{return t={searchClient:oh,queries:[{indexName:ih,facet:"section",params:{query:e,filters:Kf(Gf(sh,(e=>e.facet)))}}],transformResponse:({facetHits:e})=>(n({facetHits:e}),[])},r=Yl({transformResponse:function(e){return e.facetHits}}),i=t.queries.map((function(e){return Zl(Zl({},e),{},{type:"facet"})})),r(Zl(Zl({},t),{},{queries:i}));var t,r,i},templates:{item:()=>null}}}oh=Cl()(nh,rh);const n=function(){const e={upDownPressed:!1};return window.addEventListener("keydown",(e=>{"k"===e.key.toLowerCase()&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),document.querySelector(".aa-DetachedSearchButton").click())})),window.addEventListener("keydown",(t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||t.target!==document.querySelector(".aa-DetachedFormContainer .aa-Input")||(e.upDownPressed=!0)}),{capture:!0}),document.body.addEventListener("click",(e=>{var t;const n=e.target;if(null==n?void 0:n.closest(".aa-ClearButton")){e.stopPropagation(),e.preventDefault();const r=null===(t=n.closest(".aa-Form"))||void 0===t?void 0:t.querySelector(".aa-Input");r&&(r.value="",r.focus(),r.dispatchEvent(new Event("input")))}})),e}();Lf({container:e,placeholder:"Search (⌘/ctrl-k)",openOnFocus:!1,detachedMediaQuery:"",defaultActiveItemId:0,onStateChange:({state:e,prevState:t,setCollections:r})=>{if(""!==t.query&&""===e.query&&(r([]),Yf(e,sh)),e.activeItemId>=0){const t=document.querySelectorAll(".aa-Item");if(t){const r=t.item(e.activeItemId);r&&n.upDownPressed&&r.scrollIntoView({behavior:"smooth",block:"nearest"})}n.upDownPressed=!1}},getSources:({query:e,state:n,refresh:r,setContext:i})=>{const o=[];return o.push(t(e,0,i)),o.push(function(e,t,n){return{sourceId:"results",getItems:({state:t})=>tc({searchClient:oh,queries:[{indexName:ih,query:e,params:{filters:Kf(Gf(Qf(t),(e=>e.facet))),hitsPerPage:50,page:0}}]}),getItemUrl:({item:e})=>new URL([document.location.origin,e.href].join("")).toString(),templates:{header:({html:e,state:t})=>{const r=t.context.facetHits[0],i=r.reduce(((e,t)=>e+t.count),0);return 1===sh.length?e` ->>>>>>> master -
      -
    • - -
    • -
    - `:e` -
      -
    • - -
    • - - ${sh.map((i=>{const o=r.find((e=>e.label===i.label)),s=1===Qf(t).length&&Qf(t)[0].label===i.label,a=!o||0===o.count,l=o?o.count:0;return e` -
    • - -
    • `}))} -
    - `},item:({state:e,item:t,components:n,html:r})=>r` - - `,footer:({html:e})=>e` -
    - ↑ ↓ to navigate - ↵ to select - esc to close -
    - `,noResults:({html:e,state:t})=>{if(t.query)return e` -

    -

    We couldn't find any results for ${t.query}.

    -

    Try a more general term or use fewer keywords.

    - `}}}}(e,0,r)),Xf(o)},insights:!0,plugins:[Jf(sh)]})}window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector("#search");e&&ah(e)}));var lh=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,ch={revert:function(){}},uh=new Map,dh=new Set;function ph(e){var t=uh.get(e);return t||(t={element:e,attributes:{}},uh.set(e,t)),t}function fh(e,t,n,r,i){var o=n(e),s={isDirty:!1,originalValue:o,virtualValue:o,mutations:[],el:e,_positionTimeout:null,observer:new MutationObserver((function(){if("position"!==t||!s._positionTimeout){"position"===t&&(s._positionTimeout=setTimeout((function(){s._positionTimeout=null}),1e3));var r=n(e);"position"===t&&r.parentNode===s.virtualValue.parentNode&&r.insertBeforeNode===s.virtualValue.insertBeforeNode||r!==s.virtualValue&&(s.originalValue=r,i(s))}})),mutationRunner:i,setValue:r,getCurrentValue:n};return"position"===t&&e.parentNode?s.observer.observe(e.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):s.observer.observe(e,function(e){return"html"===e?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[e]}}(t)),s}function hh(e,t){var n=t.getCurrentValue(t.el);t.virtualValue=e,e&&"string"!=typeof e?n&&e.parentNode===n.parentNode&&e.insertBeforeNode===n.insertBeforeNode||(t.isDirty=!0,Ih()):e!==n&&(t.isDirty=!0,Ih())}function mh(e){var t=e.originalValue;e.mutations.forEach((function(e){return t=e.mutate(t)})),hh(function(e){Ch||(Ch=document.createElement("div"));return Ch.innerHTML=e,Ch.innerHTML}(t),e)}function vh(e){var t=new Set(e.originalValue.split(/\s+/).filter(Boolean));e.mutations.forEach((function(e){return e.mutate(t)})),hh(Array.from(t).filter(Boolean).join(" "),e)}function gh(e){var t=e.originalValue;e.mutations.forEach((function(e){return t=e.mutate(t)})),hh(t,e)}function yh(e){var t=e.originalValue;e.mutations.forEach((function(e){var n=function(e){var t=e.parentSelector,n=e.insertBeforeSelector,r=document.querySelector(t);if(!r)return null;var i=n?document.querySelector(n):null;return n&&!i?null:{parentNode:r,insertBeforeNode:i}}(e.mutate());t=n||t})),hh(t,e)}var bh=function(e){return e.innerHTML},wh=function(e,t){return e.innerHTML=t};function _h(e){var t=ph(e);return t.html||(t.html=fh(e,"html",bh,wh,mh)),t.html}var Sh=function(e){return{parentNode:e.parentElement,insertBeforeNode:e.nextElementSibling}},xh=function(e,t){t.insertBeforeNode&&!t.parentNode.contains(t.insertBeforeNode)||t.parentNode.insertBefore(e,t.insertBeforeNode)};function kh(e){var t=ph(e);return t.position||(t.position=fh(e,"position",Sh,xh,yh)),t.position}var Oh=function(e,t){return t?e.className=t:e.removeAttribute("class")},$h=function(e){return e.className};function Eh(e){var t=ph(e);return t.classes||(t.classes=fh(e,"class",$h,Oh,vh)),t.classes}var Ch,Th;function Ph(e,t){var n,r=ph(e);return r.attributes[t]||(r.attributes[t]=fh(e,t,(n=t,function(e){var t;return null!=(t=e.getAttribute(n))?t:null}),function(e){return function(t,n){return null!==n?t.setAttribute(e,n):t.removeAttribute(e)}}(t),gh)),r.attributes[t]}function Ah(e,t,n){if(n.isDirty){n.isDirty=!1;var r=n.virtualValue;n.mutations.length||function(e,t){var n,r,i=uh.get(e);if(i)if("html"===t)null==(n=i.html)||null==(r=n.observer)||r.disconnect(),delete i.html;else if("class"===t){var o,s;null==(o=i.classes)||null==(s=o.observer)||s.disconnect(),delete i.classes}else if("position"===t){var a,l;null==(a=i.position)||null==(l=a.observer)||l.disconnect(),delete i.position}else{var c,u,d;null==(c=i.attributes)||null==(u=c[t])||null==(d=u.observer)||d.disconnect(),delete i.attributes[t]}}(e,t),n.setValue(e,r)}}function jh(e,t){e.html&&Ah(t,"html",e.html),e.classes&&Ah(t,"class",e.classes),e.position&&Ah(t,"position",e.position),Object.keys(e.attributes).forEach((function(n){Ah(t,n,e.attributes[n])}))}function Ih(){uh.forEach(jh)}function Lh(e){if("position"!==e.kind||1!==e.elements.size){var t=new Set(e.elements);document.querySelectorAll(e.selector).forEach((function(n){t.has(n)||(e.elements.add(n),function(e,t){var n=null;"html"===e.kind?n=_h(t):"class"===e.kind?n=Eh(t):"attribute"===e.kind?n=Ph(t,e.attribute):"position"===e.kind&&(n=kh(t)),n&&(n.mutations.push(e),n.mutationRunner(n))}(e,n))}))}}function Dh(e){e.elements.forEach((function(t){return function(e,t){var n=null;if("html"===e.kind?n=_h(t):"class"===e.kind?n=Eh(t):"attribute"===e.kind?n=Ph(t,e.attribute):"position"===e.kind&&(n=kh(t)),n){var r=n.mutations.indexOf(e);-1!==r&&n.mutations.splice(r,1),n.mutationRunner(n)}}(e,t)})),e.elements.clear(),dh.delete(e)}function Mh(){dh.forEach(Lh)}function Nh(e){return"undefined"==typeof document?ch:(dh.add(e),Lh(e),{revert:function(){Dh(e)}})}function Rh(e,t){return Nh({kind:"html",elements:new Set,mutate:t,selector:e})}function Fh(e,t){return Nh({kind:"position",elements:new Set,mutate:t,selector:e})}function Bh(e,t){return Nh({kind:"class",elements:new Set,mutate:t,selector:e})}function Hh(e,t,n){return lh.test(t)?"class"===t||"className"===t?Bh(e,(function(e){var t=n(Array.from(e).join(" "));e.clear(),t&&t.split(/\s+/g).filter(Boolean).forEach((function(t){return e.add(t)}))})):Nh({kind:"attribute",attribute:t,elements:new Set,mutate:n,selector:e}):ch}"undefined"!=typeof document&&(Th||(Th=new MutationObserver((function(){Mh()}))),Mh(),Th.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}));var Vh={html:Rh,classes:Bh,attribute:Hh,position:Fh,declarative:function(e){var t=e.selector,n=e.action,r=e.value,i=e.attribute,o=e.parentSelector,s=e.insertBeforeSelector;if("html"===i){if("append"===n)return Rh(t,(function(e){return e+(null!=r?r:"")}));if("set"===n)return Rh(t,(function(){return null!=r?r:""}))}else if("class"===i){if("append"===n)return Bh(t,(function(e){r&&e.add(r)}));if("remove"===n)return Bh(t,(function(e){r&&e.delete(r)}));if("set"===n)return Bh(t,(function(e){e.clear(),r&&e.add(r)}))}else if("position"===i){if("set"===n&&o)return Fh(t,(function(){return{insertBeforeSelector:s,parentSelector:o}}))}else{if("append"===n)return Hh(t,i,(function(e){return null!==e?e+(null!=r?r:""):null!=r?r:""}));if("set"===n)return Hh(t,i,(function(){return null!=r?r:""}));if("remove"===n)return Hh(t,i,(function(){return null}))}return ch}};const qh=Vh,zh={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};function Uh(e){let t=2166136261;const n=e.length;for(let r=0;r>>0}function Wh(e,t,n){return 2===n?Uh(Uh(e+t)+"")%1e4/1e4:1===n?Uh(t+e)%1e3/1e3:null}function Kh(e,t){return e>=t[0]&&e{r.push([e.searchParams.get(n)||"",t,!1])})),!r.some((e=>!function(e,t,n){try{let r=t.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");return n&&(r="\\/?"+r.replace(/(^\/|\/$)/g,"")+"\\/?"),new RegExp("^"+r+"$","i").test(e)}catch(e){return!1}}(e[0],e[1],e[2])))}catch(e){return!1}}function Qh(e,t,n){try{const r=new URL(e,"https://_");if("regex"===t){const e=Gh(n);return!!e&&(e.test(r.href)||e.test(r.href.substring(r.origin.length)))}return"simple"===t&&Yh(r,n)}catch(e){return!1}}function Xh(e,t,n){(t=void 0===t?1:t)<0?t=0:t>1&&(t=1);const r=function(e){return e<=0?[]:new Array(e).fill(1/e)}(e);(n=n||r).length!==e&&(n=r);const i=n.reduce(((e,t)=>t+e),0);(i<.99||i>1.01)&&(n=r);let o=0;return n.map((e=>{const n=o;return o+=e,[n,n+t*e]}))}const Zh=e=>Uint8Array.from(atob(e),(e=>e.charCodeAt(0)));async function em(e,t,n){if(t=t||"",!(n=n||globalThis.crypto&&globalThis.crypto.subtle||zh.SubtleCrypto))throw new Error("No SubtleCrypto implementation found");try{const r=await n.importKey("raw",Zh(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[i,o]=e.split("."),s=await n.decrypt({name:"AES-CBC",iv:Zh(i)},r,Zh(o));return(new TextDecoder).decode(s)}catch(e){throw new Error("Failed to decrypt")}}function tm(e){return"string"==typeof e?e:JSON.stringify(e)}function nm(e){"number"==typeof e&&(e+=""),e&&"string"==typeof e||(e="0");const t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return 3===t.length&&t.push("~"),t.map((e=>e.match(/^[0-9]+$/)?e.padStart(5," "):e)).join("-")}function rm(e){return"object"==typeof e&&null!==e}function im(e){return e.urlPatterns&&e.variations.some((e=>rm(e)&&"urlRedirect"in e))?"redirect":e.variations.some((e=>rm(e)&&(e.domMutations||"js"in e||"css"in e)))?"visual":"unknown"}async function om(e,t){return new Promise((n=>{let r,i=!1;const o=e=>{i||(i=!0,r&&clearTimeout(r),n(e||null))};t&&(r=setTimeout((()=>o()),t)),e.then((e=>o(e))).catch((()=>o()))}))}const sm={};function am(e,t,n){n=n||{};for(const[r,i]of Object.entries(t))switch(r){case"$or":if(!fm(e,i,n))return!1;break;case"$nor":if(fm(e,i,n))return!1;break;case"$and":if(!hm(e,i,n))return!1;break;case"$not":if(am(e,i,n))return!1;break;default:if(!cm(i,lm(e,r),n))return!1}return!0}function lm(e,t){const n=t.split(".");let r=e;for(let e=0;e0&&t.filter((e=>"$"===e[0])).length===t.length}function dm(e,t){return Array.isArray(e)?e.some((e=>t.includes(e))):t.includes(e)}function pm(e,t,n,r){switch(e){case"$veq":return nm(t)===nm(n);case"$vne":return nm(t)!==nm(n);case"$vgt":return nm(t)>nm(n);case"$vgte":return nm(t)>=nm(n);case"$vlt":return nm(t)n;case"$gte":return t>=n;case"$exists":return n?null!=t:null==t;case"$in":return!!Array.isArray(n)&&dm(t,n);case"$inGroup":return dm(t,r[n]||[]);case"$notInGroup":return!dm(t,r[n]||[]);case"$nin":return!!Array.isArray(n)&&!dm(t,n);case"$not":return!cm(n,t,r);case"$size":return!!Array.isArray(t)&&cm(n,t.length,r);case"$elemMatch":return function(e,t,n){if(!Array.isArray(e))return!1;const r=um(t)?e=>cm(t,e,n):e=>am(e,t,n);for(let t=0;t{let{host:t,clientKey:n,headers:r}=e;return vm.fetch("".concat(t,"/api/features/").concat(n),{headers:r})},fetchRemoteEvalCall:e=>{let{host:t,clientKey:n,payload:r,headers:i}=e;const o={method:"POST",headers:{"Content-Type":"application/json",...i},body:JSON.stringify(r)};return vm.fetch("".concat(t,"/api/eval/").concat(n),o)},eventSourceCall:e=>{let{host:t,clientKey:n,headers:r}=e;return r?new vm.EventSource("".concat(t,"/sub/").concat(n),{headers:r}):new vm.EventSource("".concat(t,"/sub/").concat(n))},startIdleListener:()=>{let e;if(!("undefined"!=typeof window&&"undefined"!=typeof document))return;const t=()=>{"visible"===document.visibilityState?(window.clearTimeout(e),Sm.forEach((e=>{e&&"idle"===e.state&&Mm(e)}))):"hidden"===document.visibilityState&&(e=window.setTimeout($m,mm.idleStreamInterval))};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(vm.localStorage=globalThis.localStorage)}catch(Di){}const ym=new Map;let bm=!1;const wm=new Map,_m=new Map,Sm=new Map,xm=new Set;async function km(e){let{instance:t,timeout:n,skipCache:r,allowStale:i,backgroundSync:o}=e;return o||(mm.backgroundSync=!1),async function(e){let{instance:t,allowStale:n,timeout:r,skipCache:i}=e;const o=Cm(t),s=Tm(t),a=new Date,l=new Date(a.getTime()-mm.maxAge+mm.staleTTL);await async function(){if(bm)return;bm=!0;try{if(vm.localStorage){const e=await vm.localStorage.getItem(mm.cacheKey);if(!mm.disableCache&&e){const t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach((e=>{let[t,n]=e;wm.set(t,{...n,staleAt:new Date(n.staleAt)})})),Pm()}}}catch(e){}if(!mm.disableIdleStreams){const e=gm.startIdleListener();e&&(gm.stopIdleListener=e)}}();const c=mm.disableCache||i?void 0:wm.get(s);if(c&&(n||c.staleAt>a)&&c.staleAt>l)return c.sse&&xm.add(o),c.staleAt{e&&(e.state="idle",Dm(e))}))}async function Em(){try{if(!vm.localStorage)return;await vm.localStorage.setItem(mm.cacheKey,JSON.stringify(Array.from(wm.entries())))}catch(e){}}function Cm(e){const[t,n]=e.getApiInfo();return"".concat(t,"||").concat(n)}function Tm(e){const t=Cm(e);if(!e.isRemoteEval())return t;const n=e.getAttributes(),r=e.getCacheKeyAttributes()||Object.keys(e.getAttributes()),i={};r.forEach((e=>{i[e]=n[e]}));const o=e.getForcedVariations(),s=e.getUrl();return"".concat(t,"||").concat(JSON.stringify({ca:i,fv:o,url:s}))}function Pm(){const e=Array.from(wm.entries()).map((e=>{let[t,n]=e;return{key:t,staleAt:n.staleAt.getTime()}})).sort(((e,t)=>e.staleAt-t.staleAt)),t=Math.min(Math.max(0,wm.size-mm.maxEntries),wm.size);for(let n=0;nasync function(e,t){await e.setPayload(t||e.getPayload())}(e,n)))}async function jm(e){const{apiHost:t,apiRequestHeaders:n}=e.getApiHosts(),r=e.getClientKey(),i=e.isRemoteEval(),o=Cm(e),s=Tm(e);let a=_m.get(s);if(!a){a=(i?gm.fetchRemoteEvalCall({host:t,clientKey:r,payload:{attributes:e.getAttributes(),forcedVariations:e.getForcedVariations(),forcedFeatures:Array.from(e.getForcedFeatures().entries()),url:e.getUrl()},headers:n}):gm.fetchFeaturesCall({host:t,clientKey:r,headers:n})).then((e=>{if(!e.ok)throw new Error("HTTP error: ".concat(e.status));return"enabled"===e.headers.get("x-sse-support")&&xm.add(o),e.json()})).then((t=>(Am(o,s,t),Im(e),_m.delete(s),{data:t,success:!0,source:"network"}))).catch((e=>(_m.delete(s),{data:null,source:"error",success:!1,error:e}))),_m.set(s,a)}return a}function Im(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Cm(e),r=Tm(e),{streamingHost:i,streamingHostRequestHeaders:o}=e.getApiHosts(),s=e.getClientKey();if(t&&xm.add(n),mm.backgroundSync&&xm.has(n)&&vm.EventSource){if(Sm.has(n))return;const e={src:null,host:i,clientKey:s,headers:o,cb:t=>{try{if("features-updated"===t.type){const e=ym.get(n);e&&e.forEach((e=>{jm(e)}))}else if("features"===t.type){const e=JSON.parse(t.data);Am(n,r,e)}e.errors=0}catch(t){Lm(e)}},errors:0,state:"active"};Sm.set(n,e),Mm(e)}}function Lm(e){if("idle"!==e.state&&(e.errors++,e.errors>3||e.src&&2===e.src.readyState)){const t=Math.pow(3,e.errors-3)*(1e3+1e3*Math.random());Dm(e),setTimeout((()=>{["idle","active"].includes(e.state)||Mm(e)}),Math.min(t,3e5))}}function Dm(e){e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null,"active"===e.state&&(e.state="disabled"))}function Mm(e){e.src=gm.eventSourceCall({host:e.host,clientKey:e.clientKey,headers:e.headers}),e.state="active",e.src.addEventListener("features",e.cb),e.src.addEventListener("features-updated",e.cb),e.src.onerror=()=>Lm(e),e.src.onopen=()=>{e.errors=0}}function Nm(e,t){Dm(e),Sm.delete(t)}function Rm(){xm.clear(),Sm.forEach(Nm),ym.clear(),gm.stopIdleListener()}const Fm="undefined"!=typeof window&&"undefined"!=typeof document,Bm=function(){let e;try{e="1.2.1"}catch(t){e=""}return e}();class Hm{constructor(e){if(e=e||{},this.version=Bm,this._ctx=this.context=e,this._renderer=e.renderer||null,this._trackedExperiments=new Set,this._completedChangeIds=new Set,this._trackedFeatures={},this.debug=!!e.debug,this._subscriptions=new Set,this._rtQueue=[],this._rtTimer=0,this.ready=!1,this._assigned=new Map,this._forcedFeatureValues=new Map,this._attributeOverrides={},this._activeAutoExperiments=new Map,this._triggeredExpKeys=new Set,this._initialized=!1,this._redirectedUrl="",this._deferredTrackingCalls=new Map,this._autoExperimentsAllowed=!e.disableExperimentsOnLoad,e.remoteEval){if(e.decryptionKey)throw new Error("Encryption is not available for remoteEval");if(!e.clientKey)throw new Error("Missing clientKey");let t=!1;try{t=!!new URL(e.apiHost||"").hostname.match(/growthbook\.io$/i)}catch(e){}if(t)throw new Error("Cannot use remoteEval on GrowthBook Cloud")}else if(e.cacheKeyAttributes)throw new Error("cacheKeyAttributes are only used for remoteEval");if(e.features&&(this.ready=!0),Fm&&e.enableDevMode&&(window._growthbook=this,document.dispatchEvent(new Event("gbloaded"))),e.experiments&&(this.ready=!0,this._updateAllAutoExperiments()),this._ctx.stickyBucketService&&this._ctx.stickyBucketAssignmentDocs)for(const e in this._ctx.stickyBucketAssignmentDocs){const t=this._ctx.stickyBucketAssignmentDocs[e];t&&this._ctx.stickyBucketService.saveAssignments(t).catch((()=>{}))}this.ready&&this.refreshStickyBuckets(this.getPayload())}async setPayload(e){this._payload=e;const t=await this.decryptPayload(e);this._decryptedPayload=t,await this.refreshStickyBuckets(t),t.features&&(this._ctx.features=t.features),t.savedGroups&&(this._ctx.savedGroups=t.savedGroups),t.experiments&&(this._ctx.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,this._render()}initSync(e){this._initialized=!0;const t=e.payload;if(t.encryptedExperiments||t.encryptedFeatures)throw new Error("initSync does not support encrypted payloads");if(this._ctx.stickyBucketService&&!this._ctx.stickyBucketAssignmentDocs)throw new Error("initSync requires you to pass stickyBucketAssignmentDocs into the GrowthBook constructor");if(this._payload=t,this._decryptedPayload=t,t.features&&(this._ctx.features=t.features),t.experiments&&(this._ctx.experiments=t.experiments,this._updateAllAutoExperiments()),this.ready=!0,e.streaming){if(!this._ctx.clientKey)throw new Error("Must specify clientKey to enable streaming");Im(this,!0),Om(this)}return this}async init(e){var t;if(this._initialized=!0,(e=e||{}).cacheSettings&&(t=e.cacheSettings,Object.assign(mm,t),mm.backgroundSync||Rm()),e.payload){if(await this.setPayload(e.payload),e.streaming){if(!this._ctx.clientKey)throw new Error("Must specify clientKey to enable streaming");Im(this,!0),Om(this)}return{success:!0,source:"init"}}{const{data:t,...n}=await this._refresh({...e,allowStale:!0});return e.streaming&&Om(this),await this.setPayload(t||{}),n}}async loadFeatures(e){this._initialized=!0,(e=e||{}).autoRefresh&&(this._ctx.subscribeToChanges=!0);const{data:t}=await this._refresh({...e,allowStale:!0});await this.setPayload(t||{}),this._canSubscribe()&&Om(this)}async refreshFeatures(e){const t=await this._refresh({...e||{},allowStale:!1});t.data&&await this.setPayload(t.data)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){const e=this._ctx.apiHost||"https://cdn.growthbook.io";return{apiHost:e.replace(/\/*$/,""),streamingHost:(this._ctx.streamingHost||e).replace(/\/*$/,""),apiRequestHeaders:this._ctx.apiHostRequestHeaders,streamingHostRequestHeaders:this._ctx.streamingHostRequestHeaders}}getClientKey(){return this._ctx.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}isRemoteEval(){return this._ctx.remoteEval||!1}getCacheKeyAttributes(){return this._ctx.cacheKeyAttributes}async _refresh(e){var t;let{timeout:n,skipCache:r,allowStale:i,streaming:o}=e;if(!this._ctx.clientKey)throw new Error("Missing clientKey");return km({instance:this,timeout:n,skipCache:r||this._ctx.disableCache,allowStale:i,backgroundSync:null===(t=null!=o?o:this._ctx.backgroundSync)||void 0===t||t})}_render(){if(this._renderer)try{this._renderer()}catch(e){console.error("Failed to render",e)}}setFeatures(e){this._ctx.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,t,n){const r=await em(e,t||this._ctx.decryptionKey,n);this.setFeatures(JSON.parse(r))}setExperiments(e){this._ctx.experiments=e,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(e,t,n){const r=await em(e,t||this._ctx.decryptionKey,n);this.setExperiments(JSON.parse(r))}async decryptPayload(e,t,n){if((e={...e}).encryptedFeatures){try{e.features=JSON.parse(await em(e.encryptedFeatures,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedFeatures}if(e.encryptedExperiments){try{e.experiments=JSON.parse(await em(e.encryptedExperiments,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedExperiments}if(e.encryptedSavedGroups){try{e.savedGroups=JSON.parse(await em(e.encryptedSavedGroups,t||this._ctx.decryptionKey,n))}catch(e){console.error(e)}delete e.encryptedSavedGroups}return e}async setAttributes(e){this._ctx.attributes=e,this._ctx.stickyBucketService&&await this.refreshStickyBuckets(),this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}async updateAttributes(e){return this.setAttributes({...this._ctx.attributes,...e})}async setAttributeOverrides(e){this._attributeOverrides=e,this._ctx.stickyBucketService&&await this.refreshStickyBuckets(),this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}async setForcedVariations(e){this._ctx.forcedVariations=e||{},this._ctx.remoteEval?await this._refreshForRemoteEval():(this._render(),this._updateAllAutoExperiments())}setForcedFeatures(e){this._forcedFeatureValues=e,this._render()}async setURL(e){if(e!==this._ctx.url){if(this._ctx.url=e,this._redirectedUrl="",this._ctx.remoteEval)return await this._refreshForRemoteEval(),void this._updateAllAutoExperiments(!0);this._updateAllAutoExperiments(!0)}}getAttributes(){return{...this._ctx.attributes,...this._attributeOverrides}}getForcedVariations(){return this._ctx.forcedVariations||{}}getForcedFeatures(){return this._forcedFeatureValues||new Map}getStickyBucketAssignmentDocs(){return this._ctx.stickyBucketAssignmentDocs||{}}getUrl(){return this._ctx.url||""}getFeatures(){return this._ctx.features||{}}getExperiments(){return this._ctx.experiments||[]}getCompletedChangeIds(){return Array.from(this._completedChangeIds)}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}_canSubscribe(){var e;return(null===(e=this._ctx.backgroundSync)||void 0===e||e)&&this._ctx.subscribeToChanges}async _refreshForRemoteEval(){if(!this._ctx.remoteEval)return;if(!this._initialized)return;const e=await this._refresh({allowStale:!1});e.data&&await this.setPayload(e.data)}getAllResults(){return new Map(this._assigned)}destroy(){var e;this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._completedChangeIds.clear(),this._deferredTrackingCalls.clear(),this._trackedFeatures={},this._rtQueue=[],this._payload=void 0,this._rtTimer&&clearTimeout(this._rtTimer),e=this,ym.forEach((t=>t.delete(e))),Fm&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach((e=>{e.undo()})),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(e){this._renderer=e}forceVariation(e,t){this._ctx.forcedVariations=this._ctx.forcedVariations||{},this._ctx.forcedVariations[e]=t,this._ctx.remoteEval?this._refreshForRemoteEval():(this._updateAllAutoExperiments(),this._render())}run(e){const{result:t}=this._run(e,null);return this._fireSubscriptions(e,t),t}triggerExperiment(e){if(this._triggeredExpKeys.add(e),!this._ctx.experiments)return null;return this._ctx.experiments.filter((t=>t.key===e)).map((e=>this._runAutoExperiment(e))).filter((e=>null!==e))}triggerAutoExperiments(){this._autoExperimentsAllowed=!0,this._updateAllAutoExperiments(!0)}_runAutoExperiment(e,t){const n=this._activeAutoExperiments.get(e);if(e.manual&&!this._triggeredExpKeys.has(e.key)&&!n)return null;const r=this._isAutoExperimentBlockedByContext(e);let i,o;r?i=this._getResult(e,-1,!1,""):(({result:i,trackingCall:o}=this._run(e,null)),this._fireSubscriptions(e,i));const s=JSON.stringify(i.value);if(!t&&i.inExperiment&&n&&n.valueHash===s)return i;if(n&&this._undoActiveAutoExperiment(e),i.inExperiment){const t=im(e);if("redirect"===t&&i.value.urlRedirect&&e.urlPatterns){const t=e.persistQueryString?function(e,t){let n,r;try{n=new URL(e),r=new URL(t)}catch(e){return console.error("Unable to merge query strings: ".concat(e)),t}return n.searchParams.forEach(((e,t)=>{r.searchParams.has(t)||r.searchParams.set(t,e)})),r.toString()}(this._getContextUrl(),i.value.urlRedirect):i.value.urlRedirect;if(Jh(t,e.urlPatterns))return this.log("Skipping redirect because original URL matches redirect URL",{id:e.key}),i;this._redirectedUrl=t;const{navigate:n,delay:r}=this._getNavigateFunction();var a;if(n)if(Fm)Promise.all([...o?[om(o,null!==(a=this._ctx.maxNavigateDelay)&&void 0!==a?a:1e3)]:[],new Promise((e=>{var t;return window.setTimeout(e,null!==(t=this._ctx.navigateDelay)&&void 0!==t?t:r)}))]).then((()=>{try{n(t)}catch(e){console.error(e)}}));else try{n(t)}catch(e){console.error(e)}}else if("visual"===t){const t=this._ctx.applyDomChangesCallback?this._ctx.applyDomChangesCallback(i.value):this._applyDOMChanges(i.value);t&&this._activeAutoExperiments.set(e,{undo:t,valueHash:s})}}return i}_undoActiveAutoExperiment(e){const t=this._activeAutoExperiments.get(e);t&&(t.undo(),this._activeAutoExperiments.delete(e))}_updateAllAutoExperiments(e){if(!this._autoExperimentsAllowed)return;const t=this._ctx.experiments||[],n=new Set(t);this._activeAutoExperiments.forEach(((e,t)=>{n.has(t)||(e.undo(),this._activeAutoExperiments.delete(t))}));for(const n of t){const t=this._runAutoExperiment(n,e);if(null!=t&&t.inExperiment&&"redirect"===im(n))break}}_fireSubscriptions(e,t){const n=e.key,r=this._assigned.get(n);r&&r.result.inExperiment===t.inExperiment&&r.result.variationId===t.variationId||(this._assigned.set(n,{experiment:e,result:t}),this._subscriptions.forEach((n=>{try{n(e,t)}catch(e){console.error(e)}})))}_trackFeatureUsage(e,t){if("override"===t.source)return;const n=JSON.stringify(t.value);if(this._trackedFeatures[e]!==n){if(this._trackedFeatures[e]=n,this._ctx.onFeatureUsage)try{this._ctx.onFeatureUsage(e,t)}catch(e){}Fm&&window.fetch&&(this._rtQueue.push({key:e,on:t.on}),this._rtTimer||(this._rtTimer=window.setTimeout((()=>{this._rtTimer=0;const e=[...this._rtQueue];this._rtQueue=[],this._ctx.realtimeKey&&window.fetch("https://rt.growthbook.io/?key=".concat(this._ctx.realtimeKey,"&events=").concat(encodeURIComponent(JSON.stringify(e))),{cache:"no-cache",mode:"no-cors"}).catch((()=>{}))}),this._ctx.realtimeInterval||2e3)))}}_getFeatureResult(e,t,n,r,i,o){const s={value:t,on:!!t,off:!t,source:n,ruleId:r||""};return i&&(s.experiment=i),o&&(s.experimentResult=o),this._trackFeatureUsage(e,s),s}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,t){const n=this.evalFeature(e).value;return null===n?t:n}feature(e){return this.evalFeature(e)}evalFeature(e){return this._evalFeature(e)}_evalFeature(e,t){if((t=t||{evaluatedFeatures:new Set}).evaluatedFeatures.has(e))return this._getFeatureResult(e,null,"cyclicPrerequisite");if(t.evaluatedFeatures.add(e),t.id=e,this._forcedFeatureValues.has(e))return this._getFeatureResult(e,this._forcedFeatureValues.get(e),"override");if(!this._ctx.features||!this._ctx.features[e])return this._getFeatureResult(e,null,"unknownFeature");const n=this._ctx.features[e];if(n.rules)e:for(const r of n.rules){if(r.parentConditions)for(const n of r.parentConditions){const r=this._evalFeature(n.id,t);if("cyclicPrerequisite"===r.source)return this._getFeatureResult(e,null,"cyclicPrerequisite");if(!am({value:r.value},n.condition||{})){if(n.gate)return this._getFeatureResult(e,null,"prerequisite");continue e}}if(r.filters&&this._isFilteredOut(r.filters))continue;if("force"in r){if(r.condition&&!this._conditionPasses(r.condition))continue;if(!this._isIncludedInRollout(r.seed||e,r.hashAttribute,this._ctx.stickyBucketService&&!r.disableStickyBucketing?r.fallbackAttribute:void 0,r.range,r.coverage,r.hashVersion))continue;return r.tracks&&r.tracks.forEach((e=>{this._track(e.experiment,e.result)})),this._getFeatureResult(e,r.force,"force",r.id)}if(!r.variations)continue;const n={variations:r.variations,key:r.key||e};"coverage"in r&&(n.coverage=r.coverage),r.weights&&(n.weights=r.weights),r.hashAttribute&&(n.hashAttribute=r.hashAttribute),r.fallbackAttribute&&(n.fallbackAttribute=r.fallbackAttribute),r.disableStickyBucketing&&(n.disableStickyBucketing=r.disableStickyBucketing),void 0!==r.bucketVersion&&(n.bucketVersion=r.bucketVersion),void 0!==r.minBucketVersion&&(n.minBucketVersion=r.minBucketVersion),r.namespace&&(n.namespace=r.namespace),r.meta&&(n.meta=r.meta),r.ranges&&(n.ranges=r.ranges),r.name&&(n.name=r.name),r.phase&&(n.phase=r.phase),r.seed&&(n.seed=r.seed),r.hashVersion&&(n.hashVersion=r.hashVersion),r.filters&&(n.filters=r.filters),r.condition&&(n.condition=r.condition);const{result:i}=this._run(n,e);if(this._fireSubscriptions(n,i),i.inExperiment&&!i.passthrough)return this._getFeatureResult(e,i.value,"experiment",r.id,n,i)}return this._getFeatureResult(e,void 0===n.defaultValue?null:n.defaultValue,"defaultValue")}_isIncludedInRollout(e,t,n,r,i,o){if(!r&&void 0===i)return!0;if(!r&&0===i)return!1;const{hashValue:s}=this._getHashAttribute(t,n);if(!s)return!1;const a=Wh(e,s,o||1);return null!==a&&(r?Kh(a,r):void 0===i||a<=i)}_conditionPasses(e){return am(this.getAttributes(),e,this._ctx.savedGroups||{})}_isFilteredOut(e){return e.some((e=>{const{hashValue:t}=this._getHashAttribute(e.attribute);if(!t)return!0;const n=Wh(e.seed,t,e.hashVersion||2);return null===n||!e.ranges.some((e=>Kh(n,e)))}))}_run(e,t){const n=e.key,r=e.variations.length;if(r<2)return{result:this._getResult(e,-1,!1,t)};if(!1===this._ctx.enabled)return{result:this._getResult(e,-1,!1,t)};if((e=this._mergeOverrides(e)).urlPatterns&&!Jh(this._getContextUrl(),e.urlPatterns))return{result:this._getResult(e,-1,!1,t)};const i=function(e,t,n){if(!t)return null;const r=t.split("?")[1];if(!r)return null;const i=r.replace(/#.*/,"").split("&").map((e=>e.split("=",2))).filter((t=>{let[n]=t;return n===e})).map((e=>{let[,t]=e;return parseInt(t)}));return i.length>0&&i[0]>=0&&i[0]=0,a=t,c=!!n}if(!l){if(e.filters){if(this._isFilteredOut(e.filters))return{result:this._getResult(e,-1,!1,t)}}else if(e.namespace&&!function(e,t){const n=Wh("__"+t[0],e,1);return null!==n&&n>=t[1]&&ne&&e.experiment&&e.result)).map((e=>[this._getTrackKey(e.experiment,e.result),e])))}async fireDeferredTrackingCalls(){if(!this._ctx.trackingCallback)return;const e=[];this._deferredTrackingCalls.forEach((t=>{t&&t.experiment&&t.result?e.push(this._track(t.experiment,t.result)):console.error("Invalid deferred tracking call",{call:t})})),this._deferredTrackingCalls.clear(),await Promise.all(e)}setTrackingCallback(e){this._ctx.trackingCallback=e,this.fireDeferredTrackingCalls()}_getTrackKey(e,t){return t.hashAttribute+t.hashValue+e.key+t.variationId}async _track(e,t){const n=this._getTrackKey(e,t);if(this._ctx.trackingCallback){if(!this._trackedExperiments.has(n)){this._trackedExperiments.add(n);try{await this._ctx.trackingCallback(e,t)}catch(e){console.error(e)}}}else this._deferredTrackingCalls.has(n)||this._deferredTrackingCalls.set(n,{experiment:e,result:t})}_mergeOverrides(e){const t=e.key,n=this._ctx.overrides;return n&&n[t]&&"string"==typeof(e=Object.assign({},e,n[t])).url&&(e.url=Gh(e.url)),e}_getHashAttribute(e,t){let n=e||"id",r="";return this._attributeOverrides[n]?r=this._attributeOverrides[n]:this._ctx.attributes?r=this._ctx.attributes[n]||"":this._ctx.user&&(r=this._ctx.user[n]||""),!r&&t&&(this._attributeOverrides[t]?r=this._attributeOverrides[t]:this._ctx.attributes?r=this._ctx.attributes[t]||"":this._ctx.user&&(r=this._ctx.user[t]||""),r&&(n=t)),{hashAttribute:n,hashValue:r}}_getResult(e,t,n,r,i,o){let s=!0;(t<0||t>=e.variations.length)&&(t=0,s=!1);const{hashAttribute:a,hashValue:l}=this._getHashAttribute(e.hashAttribute,this._ctx.stickyBucketService&&!e.disableStickyBucketing?e.fallbackAttribute:void 0),c=e.meta?e.meta[t]:{},u={key:c.key||""+t,featureId:r,inExperiment:s,hashUsed:n,variationId:t,value:e.variations[t],hashAttribute:a,hashValue:l,stickyBucketUsed:!!o};return c.name&&(u.name=c.name),void 0!==i&&(u.bucket=i),c.passthrough&&(u.passthrough=c.passthrough),u}_getContextUrl(){return this._ctx.url||(Fm?window.location.href:"")}_urlIsValid(e){const t=this._getContextUrl();if(!t)return!1;const n=t.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!e.test(t)||!!e.test(n)}_hasGroupOverlap(e){const t=this._ctx.groups||{};for(let n=0;ne.js)))return!0}else{if("redirect"!==t)return!0;if(this._ctx.disableUrlRedirectExperiments)return!0;try{const t=new URL(this._getContextUrl());for(const n of e.variations){if(!n||!n.urlRedirect)continue;const e=new URL(n.urlRedirect);if(this._ctx.disableCrossOriginUrlRedirectExperiments){if(e.protocol!==t.protocol)return!0;if(e.host!==t.host)return!0}}}catch(t){return this.log("Error parsing current or redirect URL",{id:e.key,error:t}),!0}}return!(!e.changeId||!(this._ctx.blockedChangeIds||[]).includes(e.changeId))}getRedirectUrl(){return this._redirectedUrl}_getNavigateFunction(){return this._ctx.navigate?{navigate:this._ctx.navigate,delay:0}:Fm?{navigate:e=>{window.location.replace(e)},delay:100}:{navigate:null,delay:0}}_applyDOMChanges(e){if(!Fm)return;const t=[];if(e.css){const n=document.createElement("style");n.innerHTML=e.css,document.head.appendChild(n),t.push((()=>n.remove()))}if(e.js){const n=document.createElement("script");n.innerHTML=e.js,this._ctx.jsInjectionNonce&&(n.nonce=this._ctx.jsInjectionNonce),document.head.appendChild(n),t.push((()=>n.remove()))}return e.domMutations&&e.domMutations.forEach((e=>{t.push(qh.declarative(e).revert)})),()=>{t.forEach((e=>e()))}}_deriveStickyBucketIdentifierAttributes(e){const t=new Set,n=e&&e.features?e.features:this.getFeatures(),r=e&&e.experiments?e.experiments:this.getExperiments();return Object.keys(n).forEach((e=>{const r=n[e];if(r.rules)for(const e of r.rules)e.variations&&(t.add(e.hashAttribute||"id"),e.fallbackAttribute&&t.add(e.fallbackAttribute))})),r.map((e=>{t.add(e.hashAttribute||"id"),e.fallbackAttribute&&t.add(e.fallbackAttribute)})),Array.from(t)}async refreshStickyBuckets(e){if(this._ctx.stickyBucketService){const t=this._getStickyBucketAttributes(e);this._ctx.stickyBucketAssignmentDocs=await this._ctx.stickyBucketService.getAllAssignments(t)}}_getStickyBucketAssignments(e,t){if(!this._ctx.stickyBucketAssignmentDocs)return{};const{hashAttribute:n,hashValue:r}=this._getHashAttribute(e),i="".concat(n,"||").concat(tm(r)),{hashAttribute:o,hashValue:s}=this._getHashAttribute(t),a=s?"".concat(o,"||").concat(tm(s)):null,l={};return a&&this._ctx.stickyBucketAssignmentDocs[a]&&Object.assign(l,this._ctx.stickyBucketAssignmentDocs[a].assignments||{}),this._ctx.stickyBucketAssignmentDocs[i]&&Object.assign(l,this._ctx.stickyBucketAssignmentDocs[i].assignments||{}),l}_getStickyBucketVariation(e){let{expKey:t,expBucketVersion:n,expHashAttribute:r,expFallbackAttribute:i,expMinBucketVersion:o,expMeta:s}=e;n=n||0,o=o||0,r=r||"id",s=s||[];const a=this._getStickyBucketExperimentKey(t,n),l=this._getStickyBucketAssignments(r,i);if(o>0)for(let e=0;e<=o;e++){if(void 0!==l[this._getStickyBucketExperimentKey(t,e)])return{variation:-1,versionIsBlocked:!0}}const c=l[a];if(void 0===c)return{variation:-1};const u=s.findIndex((e=>e.key===c));return u<0?{variation:-1}:{variation:u}}_getStickyBucketExperimentKey(e,t){return t=t||0,"".concat(e,"__").concat(t)}_getStickyBucketAttributes(e){const t={};return this._ctx.stickyBucketIdentifierAttributes=this._deriveStickyBucketIdentifierAttributes(e),this._ctx.stickyBucketIdentifierAttributes.forEach((e=>{const{hashValue:n}=this._getHashAttribute(e);t[e]=tm(n)})),t}_generateStickyBucketAssignmentDoc(e,t,n){const r="".concat(e,"||").concat(t),i=this._ctx.stickyBucketAssignmentDocs&&this._ctx.stickyBucketAssignmentDocs[r]&&this._ctx.stickyBucketAssignmentDocs[r].assignments||{},o={...i,...n};return{key:r,doc:{attributeName:e,attributeValue:t,assignments:o},changed:JSON.stringify(i)!==JSON.stringify(o)}}}const Vm=new Hm({apiHost:"https://cdn.growthbook.io",clientKey:window.growthbook_sdk_key,decryptionKey:window.growthbook_decrypt_key,enableDevMode:window.growthbook_dev_mode});function qm(e){const t=window.location.search.substring(1).split("&");let n=null;return t.forEach((t=>{const r=t.split("=");r[0]===e&&(n=decodeURIComponent(r[1].replace(/\+/g,"%20")))})),n}var zm;Vm.init({streaming:!0}),window.analytics.ready((function(){Vm.setTrackingCallback(((e,t)=>{window.analytics.track("Experiment Viewed",{experimentId:e.key,variationId:t.key})})),Vm.setAttributes(Object.assign(Object.assign({},Vm.getAttributes()),{id:window.analytics.user().anonymousId(),userId:window.analytics.user().id(),url:window.location.href,path:window.location.pathname,query:window.location.search,referrer:document.referrer,utmCampaign:qm("utm_campaign"),utmSource:qm("utm_source"),utmMedium:qm("utm_medium"),utmTerm:qm("utm_term"),utmContent:qm("utm_content")}))})),Vm.setRenderer((()=>{"/docs/iac/concepts/vs/terraform/"===window.location.pathname&&function(){const e=document.querySelectorAll('[data-tf-variant="control"]'),t=document.querySelectorAll('[data-tf-variant="new"]'),n=Ya("variant-vs-terraform-docs-page"),r=n?"1"===n:Vm.isOn("20241028-vs-terraform-new");e.forEach((e=>{e.classList.toggle("hidden",r)})),t.forEach((e=>{e.classList.toggle("hidden",!r)})),window.jQuery(".table-of-contents .content ul.table-of-contents-list").empty(),Ja()}()})),"undefined"!=typeof customElements&&[na,ra,ia,oa,sa,aa,la,ca,ua,da,pa,fa,ha,ma,va,ga,ya,ba,wa,_a,Sa,xa,ka,Oa,$a,Ea,Ca,Ta,Pa,Aa,ja,Ia,La,Da,Ma,Na,Ra,Fa,Ba,Ha,Va,qa].forEach((e=>{customElements.get(e.is)||customElements.define(e.is,e,zm)}))})()})(); \ No newline at end of file +(()=>{var __webpack_modules__={"./node_modules/@algolia/autocomplete-core/dist/esm/checkOptions.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "checkOptions": () => (/* binding */ checkOptions)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/warn.js");\n\nfunction checkOptions(options) {\n true ? (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.warn)(!options.debug, \'The `debug` option is meant for development debugging and should not be used in production.\') : 0;\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/checkOptions.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/createAutocomplete.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createAutocomplete": () => (/* binding */ createAutocomplete)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_plugin_algolia_insights__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @algolia/autocomplete-plugin-algolia-insights */ "./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createAlgoliaInsightsPlugin.js");\n/* harmony import */ var _checkOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./checkOptions */ "./node_modules/@algolia/autocomplete-core/dist/esm/checkOptions.js");\n/* harmony import */ var _createStore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createStore */ "./node_modules/@algolia/autocomplete-core/dist/esm/createStore.js");\n/* harmony import */ var _getAutocompleteSetters__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getAutocompleteSetters */ "./node_modules/@algolia/autocomplete-core/dist/esm/getAutocompleteSetters.js");\n/* harmony import */ var _getDefaultProps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDefaultProps */ "./node_modules/@algolia/autocomplete-core/dist/esm/getDefaultProps.js");\n/* harmony import */ var _getPropGetters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getPropGetters */ "./node_modules/@algolia/autocomplete-core/dist/esm/getPropGetters.js");\n/* harmony import */ var _metadata__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./metadata */ "./node_modules/@algolia/autocomplete-core/dist/esm/metadata.js");\n/* harmony import */ var _onInput__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./onInput */ "./node_modules/@algolia/autocomplete-core/dist/esm/onInput.js");\n/* harmony import */ var _stateReducer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./stateReducer */ "./node_modules/@algolia/autocomplete-core/dist/esm/stateReducer.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\n\n\n\n\n\n\n\n\nfunction createAutocomplete(options) {\n (0,_checkOptions__WEBPACK_IMPORTED_MODULE_0__.checkOptions)(options);\n var subscribers = [];\n var props = (0,_getDefaultProps__WEBPACK_IMPORTED_MODULE_1__.getDefaultProps)(options, subscribers);\n var store = (0,_createStore__WEBPACK_IMPORTED_MODULE_2__.createStore)(_stateReducer__WEBPACK_IMPORTED_MODULE_3__.stateReducer, props, onStoreStateChange);\n var setters = (0,_getAutocompleteSetters__WEBPACK_IMPORTED_MODULE_4__.getAutocompleteSetters)({\n store: store\n });\n var propGetters = (0,_getPropGetters__WEBPACK_IMPORTED_MODULE_5__.getPropGetters)(_objectSpread({\n props: props,\n refresh: refresh,\n store: store,\n navigator: props.navigator\n }, setters));\n function onStoreStateChange(_ref) {\n var prevState = _ref.prevState,\n state = _ref.state;\n props.onStateChange(_objectSpread({\n prevState: prevState,\n state: state,\n refresh: refresh,\n navigator: props.navigator\n }, setters));\n }\n function refresh() {\n return (0,_onInput__WEBPACK_IMPORTED_MODULE_6__.onInput)(_objectSpread({\n event: new Event(\'input\'),\n nextState: {\n isOpen: store.getState().isOpen\n },\n props: props,\n navigator: props.navigator,\n query: store.getState().query,\n refresh: refresh,\n store: store\n }, setters));\n }\n if (options.insights && !props.plugins.some(function (plugin) {\n return plugin.name === \'aa.algoliaInsightsPlugin\';\n })) {\n var insightsParams = typeof options.insights === \'boolean\' ? {} : options.insights;\n props.plugins.push((0,_algolia_autocomplete_plugin_algolia_insights__WEBPACK_IMPORTED_MODULE_7__.createAlgoliaInsightsPlugin)(insightsParams));\n }\n props.plugins.forEach(function (plugin) {\n var _plugin$subscribe;\n return (_plugin$subscribe = plugin.subscribe) === null || _plugin$subscribe === void 0 ? void 0 : _plugin$subscribe.call(plugin, _objectSpread(_objectSpread({}, setters), {}, {\n navigator: props.navigator,\n refresh: refresh,\n onSelect: function onSelect(fn) {\n subscribers.push({\n onSelect: fn\n });\n },\n onActive: function onActive(fn) {\n subscribers.push({\n onActive: fn\n });\n },\n onResolve: function onResolve(fn) {\n subscribers.push({\n onResolve: fn\n });\n }\n }));\n });\n (0,_metadata__WEBPACK_IMPORTED_MODULE_8__.injectMetadata)({\n metadata: (0,_metadata__WEBPACK_IMPORTED_MODULE_8__.getMetadata)({\n plugins: props.plugins,\n options: options\n }),\n environment: props.environment\n });\n return _objectSpread(_objectSpread({\n refresh: refresh,\n navigator: props.navigator\n }, propGetters), setters);\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/createAutocomplete.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/createStore.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createStore": () => (/* binding */ createStore)\n/* harmony export */ });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-core/dist/esm/utils/createCancelablePromiseList.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\nfunction createStore(reducer, props, onStoreStateChange) {\n var state = props.initialState;\n return {\n getState: function getState() {\n return state;\n },\n dispatch: function dispatch(action, payload) {\n var prevState = _objectSpread({}, state);\n state = reducer(state, {\n type: action,\n props: props,\n payload: payload\n });\n onStoreStateChange({\n state: state,\n prevState: prevState\n });\n },\n pendingRequests: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.createCancelablePromiseList)()\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/createStore.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/getAutocompleteSetters.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getAutocompleteSetters": () => (/* binding */ getAutocompleteSetters)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/flatten.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\nfunction getAutocompleteSetters(_ref) {\n var store = _ref.store;\n var setActiveItemId = function setActiveItemId(value) {\n store.dispatch(\'setActiveItemId\', value);\n };\n var setQuery = function setQuery(value) {\n store.dispatch(\'setQuery\', value);\n };\n var setCollections = function setCollections(rawValue) {\n var baseItemId = 0;\n var value = rawValue.map(function (collection) {\n return _objectSpread(_objectSpread({}, collection), {}, {\n // We flatten the stored items to support calling `getAlgoliaResults`\n // from the source itself.\n items: (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.flatten)(collection.items).map(function (item) {\n return _objectSpread(_objectSpread({}, item), {}, {\n __autocomplete_id: baseItemId++\n });\n })\n });\n });\n store.dispatch(\'setCollections\', value);\n };\n var setIsOpen = function setIsOpen(value) {\n store.dispatch(\'setIsOpen\', value);\n };\n var setStatus = function setStatus(value) {\n store.dispatch(\'setStatus\', value);\n };\n var setContext = function setContext(value) {\n store.dispatch(\'setContext\', value);\n };\n return {\n setActiveItemId: setActiveItemId,\n setQuery: setQuery,\n setCollections: setCollections,\n setIsOpen: setIsOpen,\n setStatus: setStatus,\n setContext: setContext\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/getAutocompleteSetters.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/getCompletion.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getCompletion": () => (/* binding */ getCompletion)\n/* harmony export */ });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-core/dist/esm/utils/getActiveItem.js");\n\nfunction getCompletion(_ref) {\n var _getActiveItem;\n var state = _ref.state;\n if (state.isOpen === false || state.activeItemId === null) {\n return null;\n }\n return ((_getActiveItem = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.getActiveItem)(state)) === null || _getActiveItem === void 0 ? void 0 : _getActiveItem.itemInputValue) || null;\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/getCompletion.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/getDefaultProps.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getDefaultProps": () => (/* binding */ getDefaultProps)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/getItemsCount.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/generateAutocompleteId.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/flatten.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-core/dist/esm/utils/getNormalizedSources.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\n\nfunction getDefaultProps(props, pluginSubscribers) {\n var _props$id;\n /* eslint-disable no-restricted-globals */\n var environment = typeof window !== \'undefined\' ? window : {};\n /* eslint-enable no-restricted-globals */\n var plugins = props.plugins || [];\n return _objectSpread(_objectSpread({\n debug: false,\n openOnFocus: false,\n placeholder: \'\',\n autoFocus: false,\n defaultActiveItemId: null,\n stallThreshold: 300,\n insights: false,\n environment: environment,\n shouldPanelOpen: function shouldPanelOpen(_ref) {\n var state = _ref.state;\n return (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.getItemsCount)(state) > 0;\n },\n reshape: function reshape(_ref2) {\n var sources = _ref2.sources;\n return sources;\n }\n }, props), {}, {\n // Since `generateAutocompleteId` triggers a side effect (it increments\n // an internal counter), we don\'t want to execute it if unnecessary.\n id: (_props$id = props.id) !== null && _props$id !== void 0 ? _props$id : (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__.generateAutocompleteId)(),\n plugins: plugins,\n // The following props need to be deeply defaulted.\n initialState: _objectSpread({\n activeItemId: null,\n query: \'\',\n completion: null,\n collections: [],\n isOpen: false,\n status: \'idle\',\n context: {}\n }, props.initialState),\n onStateChange: function onStateChange(params) {\n var _props$onStateChange;\n (_props$onStateChange = props.onStateChange) === null || _props$onStateChange === void 0 ? void 0 : _props$onStateChange.call(props, params);\n plugins.forEach(function (x) {\n var _x$onStateChange;\n return (_x$onStateChange = x.onStateChange) === null || _x$onStateChange === void 0 ? void 0 : _x$onStateChange.call(x, params);\n });\n },\n onSubmit: function onSubmit(params) {\n var _props$onSubmit;\n (_props$onSubmit = props.onSubmit) === null || _props$onSubmit === void 0 ? void 0 : _props$onSubmit.call(props, params);\n plugins.forEach(function (x) {\n var _x$onSubmit;\n return (_x$onSubmit = x.onSubmit) === null || _x$onSubmit === void 0 ? void 0 : _x$onSubmit.call(x, params);\n });\n },\n onReset: function onReset(params) {\n var _props$onReset;\n (_props$onReset = props.onReset) === null || _props$onReset === void 0 ? void 0 : _props$onReset.call(props, params);\n plugins.forEach(function (x) {\n var _x$onReset;\n return (_x$onReset = x.onReset) === null || _x$onReset === void 0 ? void 0 : _x$onReset.call(x, params);\n });\n },\n getSources: function getSources(params) {\n return Promise.all([].concat(_toConsumableArray(plugins.map(function (plugin) {\n return plugin.getSources;\n })), [props.getSources]).filter(Boolean).map(function (getSources) {\n return (0,_utils__WEBPACK_IMPORTED_MODULE_2__.getNormalizedSources)(getSources, params);\n })).then(function (nested) {\n return (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__.flatten)(nested);\n }).then(function (sources) {\n return sources.map(function (source) {\n return _objectSpread(_objectSpread({}, source), {}, {\n onSelect: function onSelect(params) {\n source.onSelect(params);\n pluginSubscribers.forEach(function (x) {\n var _x$onSelect;\n return (_x$onSelect = x.onSelect) === null || _x$onSelect === void 0 ? void 0 : _x$onSelect.call(x, params);\n });\n },\n onActive: function onActive(params) {\n source.onActive(params);\n pluginSubscribers.forEach(function (x) {\n var _x$onActive;\n return (_x$onActive = x.onActive) === null || _x$onActive === void 0 ? void 0 : _x$onActive.call(x, params);\n });\n },\n onResolve: function onResolve(params) {\n source.onResolve(params);\n pluginSubscribers.forEach(function (x) {\n var _x$onResolve;\n return (_x$onResolve = x.onResolve) === null || _x$onResolve === void 0 ? void 0 : _x$onResolve.call(x, params);\n });\n }\n });\n });\n });\n },\n navigator: _objectSpread({\n navigate: function navigate(_ref3) {\n var itemUrl = _ref3.itemUrl;\n environment.location.assign(itemUrl);\n },\n navigateNewTab: function navigateNewTab(_ref4) {\n var itemUrl = _ref4.itemUrl;\n var windowReference = environment.open(itemUrl, \'_blank\', \'noopener\');\n windowReference === null || windowReference === void 0 ? void 0 : windowReference.focus();\n },\n navigateNewWindow: function navigateNewWindow(_ref5) {\n var itemUrl = _ref5.itemUrl;\n environment.open(itemUrl, \'_blank\', \'noopener\');\n }\n }, props.navigator)\n });\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/getDefaultProps.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/getPropGetters.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getPropGetters": () => (/* binding */ getPropGetters)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/noop.js");\n/* harmony import */ var _onInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./onInput */ "./node_modules/@algolia/autocomplete-core/dist/esm/onInput.js");\n/* harmony import */ var _onKeyDown__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./onKeyDown */ "./node_modules/@algolia/autocomplete-core/dist/esm/onKeyDown.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-core/dist/esm/utils/isOrContainsNode.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-core/dist/esm/utils/getActiveItem.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-core/dist/esm/utils/isSamsung.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nvar _excluded = ["props", "refresh", "store"],\n _excluded2 = ["inputElement", "formElement", "panelElement"],\n _excluded3 = ["inputElement"],\n _excluded4 = ["inputElement", "maxLength"],\n _excluded5 = ["sourceIndex"],\n _excluded6 = ["sourceIndex"],\n _excluded7 = ["item", "source", "sourceIndex"];\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n\n\n\nfunction getPropGetters(_ref) {\n var props = _ref.props,\n refresh = _ref.refresh,\n store = _ref.store,\n setters = _objectWithoutProperties(_ref, _excluded);\n var getEnvironmentProps = function getEnvironmentProps(providedProps) {\n var inputElement = providedProps.inputElement,\n formElement = providedProps.formElement,\n panelElement = providedProps.panelElement,\n rest = _objectWithoutProperties(providedProps, _excluded2);\n function onMouseDownOrTouchStart(event) {\n // The `onTouchStart`/`onMouseDown` events shouldn\'t trigger the `blur`\n // handler when it\'s not an interaction with Autocomplete.\n // We detect it with the following heuristics:\n // - the panel is closed AND there are no pending requests\n // (no interaction with the autocomplete, no future state updates)\n // - OR the touched target is the input element (should open the panel)\n var isAutocompleteInteraction = store.getState().isOpen || !store.pendingRequests.isEmpty();\n if (!isAutocompleteInteraction || event.target === inputElement) {\n return;\n }\n\n // @TODO: support cases where there are multiple Autocomplete instances.\n // Right now, a second instance makes this computation return false.\n var isTargetWithinAutocomplete = [formElement, panelElement].some(function (contextNode) {\n return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.isOrContainsNode)(contextNode, event.target);\n });\n if (isTargetWithinAutocomplete === false) {\n store.dispatch(\'blur\', null);\n\n // If requests are still pending when the user closes the panel, they\n // could reopen the panel once they resolve.\n // We want to prevent any subsequent query from reopening the panel\n // because it would result in an unsolicited UI behavior.\n if (!props.debug) {\n store.pendingRequests.cancelAll();\n }\n }\n }\n return _objectSpread({\n // We do not rely on the native `blur` event of the input to close the\n // panel, but rather on a custom `touchstart`/`mousedown` event outside\n // of the autocomplete elements.\n // This ensures we don\'t mistakenly interpret interactions within the\n // autocomplete (but outside of the input) as a signal to close the panel.\n // For example, clicking reset button causes an input blur, but if\n // `openOnFocus=true`, it shouldn\'t close the panel.\n // On touch devices, scrolling results (`touchmove`) causes an input blur\n // but shouldn\'t close the panel.\n onTouchStart: onMouseDownOrTouchStart,\n onMouseDown: onMouseDownOrTouchStart,\n // When scrolling on touch devices (mobiles, tablets, etc.), we want to\n // mimic the native platform behavior where the input is blurred to\n // hide the virtual keyboard. This gives more vertical space to\n // discover all the suggestions showing up in the panel.\n onTouchMove: function onTouchMove(event) {\n if (store.getState().isOpen === false || inputElement !== props.environment.document.activeElement || event.target === inputElement) {\n return;\n }\n inputElement.blur();\n }\n }, rest);\n };\n var getRootProps = function getRootProps(rest) {\n return _objectSpread({\n role: \'combobox\',\n \'aria-expanded\': store.getState().isOpen,\n \'aria-haspopup\': \'listbox\',\n \'aria-owns\': store.getState().isOpen ? "".concat(props.id, "-list") : undefined,\n \'aria-labelledby\': "".concat(props.id, "-label")\n }, rest);\n };\n var getFormProps = function getFormProps(providedProps) {\n var inputElement = providedProps.inputElement,\n rest = _objectWithoutProperties(providedProps, _excluded3);\n return _objectSpread({\n action: \'\',\n noValidate: true,\n role: \'search\',\n onSubmit: function onSubmit(event) {\n var _providedProps$inputE;\n event.preventDefault();\n props.onSubmit(_objectSpread({\n event: event,\n refresh: refresh,\n state: store.getState()\n }, setters));\n store.dispatch(\'submit\', null);\n (_providedProps$inputE = providedProps.inputElement) === null || _providedProps$inputE === void 0 ? void 0 : _providedProps$inputE.blur();\n },\n onReset: function onReset(event) {\n var _providedProps$inputE2;\n event.preventDefault();\n props.onReset(_objectSpread({\n event: event,\n refresh: refresh,\n state: store.getState()\n }, setters));\n store.dispatch(\'reset\', null);\n (_providedProps$inputE2 = providedProps.inputElement) === null || _providedProps$inputE2 === void 0 ? void 0 : _providedProps$inputE2.focus();\n }\n }, rest);\n };\n var getInputProps = function getInputProps(providedProps) {\n var _props$environment$na;\n function onFocus(event) {\n // We want to trigger a query when `openOnFocus` is true\n // because the panel should open with the current query.\n if (props.openOnFocus || Boolean(store.getState().query)) {\n (0,_onInput__WEBPACK_IMPORTED_MODULE_1__.onInput)(_objectSpread({\n event: event,\n props: props,\n query: store.getState().completion || store.getState().query,\n refresh: refresh,\n store: store\n }, setters));\n }\n store.dispatch(\'focus\', null);\n }\n var _ref2 = providedProps || {},\n inputElement = _ref2.inputElement,\n _ref2$maxLength = _ref2.maxLength,\n maxLength = _ref2$maxLength === void 0 ? 512 : _ref2$maxLength,\n rest = _objectWithoutProperties(_ref2, _excluded4);\n var activeItem = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.getActiveItem)(store.getState());\n var userAgent = ((_props$environment$na = props.environment.navigator) === null || _props$environment$na === void 0 ? void 0 : _props$environment$na.userAgent) || \'\';\n var shouldFallbackKeyHint = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.isSamsung)(userAgent);\n var enterKeyHint = activeItem !== null && activeItem !== void 0 && activeItem.itemUrl && !shouldFallbackKeyHint ? \'go\' : \'search\';\n return _objectSpread({\n \'aria-autocomplete\': \'both\',\n \'aria-activedescendant\': store.getState().isOpen && store.getState().activeItemId !== null ? "".concat(props.id, "-item-").concat(store.getState().activeItemId) : undefined,\n \'aria-controls\': store.getState().isOpen ? "".concat(props.id, "-list") : undefined,\n \'aria-labelledby\': "".concat(props.id, "-label"),\n value: store.getState().completion || store.getState().query,\n id: "".concat(props.id, "-input"),\n autoComplete: \'off\',\n autoCorrect: \'off\',\n autoCapitalize: \'off\',\n enterKeyHint: enterKeyHint,\n spellCheck: \'false\',\n autoFocus: props.autoFocus,\n placeholder: props.placeholder,\n maxLength: maxLength,\n type: \'search\',\n onChange: function onChange(event) {\n (0,_onInput__WEBPACK_IMPORTED_MODULE_1__.onInput)(_objectSpread({\n event: event,\n props: props,\n query: event.currentTarget.value.slice(0, maxLength),\n refresh: refresh,\n store: store\n }, setters));\n },\n onKeyDown: function onKeyDown(event) {\n (0,_onKeyDown__WEBPACK_IMPORTED_MODULE_4__.onKeyDown)(_objectSpread({\n event: event,\n props: props,\n refresh: refresh,\n store: store\n }, setters));\n },\n onFocus: onFocus,\n // We don\'t rely on the `blur` event.\n // See explanation in `onTouchStart`/`onMouseDown`.\n // @MAJOR See if we need to keep this handler.\n onBlur: _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_5__.noop,\n onClick: function onClick(event) {\n // When the panel is closed and you click on the input while\n // the input is focused, the `onFocus` event is not triggered\n // (default browser behavior).\n // In an autocomplete context, it makes sense to open the panel in this\n // case.\n // We mimic this event by catching the `onClick` event which\n // triggers the `onFocus` for the panel to open.\n if (providedProps.inputElement === props.environment.document.activeElement && !store.getState().isOpen) {\n onFocus(event);\n }\n }\n }, rest);\n };\n var getAutocompleteId = function getAutocompleteId(instanceId, sourceId) {\n return typeof sourceId !== \'undefined\' ? "".concat(instanceId, "-").concat(sourceId) : instanceId;\n };\n var getLabelProps = function getLabelProps(providedProps) {\n var _ref3 = providedProps || {},\n sourceIndex = _ref3.sourceIndex,\n rest = _objectWithoutProperties(_ref3, _excluded5);\n return _objectSpread({\n htmlFor: "".concat(getAutocompleteId(props.id, sourceIndex), "-input"),\n id: "".concat(getAutocompleteId(props.id, sourceIndex), "-label")\n }, rest);\n };\n var getListProps = function getListProps(providedProps) {\n var _ref4 = providedProps || {},\n sourceIndex = _ref4.sourceIndex,\n rest = _objectWithoutProperties(_ref4, _excluded6);\n return _objectSpread({\n role: \'listbox\',\n \'aria-labelledby\': "".concat(getAutocompleteId(props.id, sourceIndex), "-label"),\n id: "".concat(getAutocompleteId(props.id, sourceIndex), "-list")\n }, rest);\n };\n var getPanelProps = function getPanelProps(rest) {\n return _objectSpread({\n onMouseDown: function onMouseDown(event) {\n // Prevents the `activeElement` from being changed to the panel so\n // that the blur event is not triggered, otherwise it closes the\n // panel.\n event.preventDefault();\n },\n onMouseLeave: function onMouseLeave() {\n store.dispatch(\'mouseleave\', null);\n }\n }, rest);\n };\n var getItemProps = function getItemProps(providedProps) {\n var item = providedProps.item,\n source = providedProps.source,\n sourceIndex = providedProps.sourceIndex,\n rest = _objectWithoutProperties(providedProps, _excluded7);\n return _objectSpread({\n id: "".concat(getAutocompleteId(props.id, sourceIndex), "-item-").concat(item.__autocomplete_id),\n role: \'option\',\n \'aria-selected\': store.getState().activeItemId === item.__autocomplete_id,\n onMouseMove: function onMouseMove(event) {\n if (item.__autocomplete_id === store.getState().activeItemId) {\n return;\n }\n store.dispatch(\'mousemove\', item.__autocomplete_id);\n var activeItem = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.getActiveItem)(store.getState());\n if (store.getState().activeItemId !== null && activeItem) {\n var _item = activeItem.item,\n itemInputValue = activeItem.itemInputValue,\n itemUrl = activeItem.itemUrl,\n _source = activeItem.source;\n _source.onActive(_objectSpread({\n event: event,\n item: _item,\n itemInputValue: itemInputValue,\n itemUrl: itemUrl,\n refresh: refresh,\n source: _source,\n state: store.getState()\n }, setters));\n }\n },\n onMouseDown: function onMouseDown(event) {\n // Prevents the `activeElement` from being changed to the item so it\n // can remain with the current `activeElement`.\n event.preventDefault();\n },\n onClick: function onClick(event) {\n var itemInputValue = source.getItemInputValue({\n item: item,\n state: store.getState()\n });\n var itemUrl = source.getItemUrl({\n item: item,\n state: store.getState()\n });\n\n // If `getItemUrl` is provided, it means that the suggestion\n // is a link, not plain text that aims at updating the query.\n // We can therefore skip the state change because it will update\n // the `activeItemId`, resulting in a UI flash, especially\n // noticeable on mobile.\n var runPreCommand = itemUrl ? Promise.resolve() : (0,_onInput__WEBPACK_IMPORTED_MODULE_1__.onInput)(_objectSpread({\n event: event,\n nextState: {\n isOpen: false\n },\n props: props,\n query: itemInputValue,\n refresh: refresh,\n store: store\n }, setters));\n runPreCommand.then(function () {\n source.onSelect(_objectSpread({\n event: event,\n item: item,\n itemInputValue: itemInputValue,\n itemUrl: itemUrl,\n refresh: refresh,\n source: source,\n state: store.getState()\n }, setters));\n });\n }\n }, rest);\n };\n return {\n getEnvironmentProps: getEnvironmentProps,\n getRootProps: getRootProps,\n getFormProps: getFormProps,\n getLabelProps: getLabelProps,\n getInputProps: getInputProps,\n getPanelProps: getPanelProps,\n getListProps: getListProps,\n getItemProps: getItemProps\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/getPropGetters.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/metadata.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getMetadata": () => (/* binding */ getMetadata),\n/* harmony export */ "injectMetadata": () => (/* binding */ injectMetadata)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/userAgents.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\nfunction getMetadata(_ref) {\n var _, _options$__autocomple, _options$__autocomple2, _options$__autocomple3;\n var plugins = _ref.plugins,\n options = _ref.options;\n var optionsKey = (_ = (((_options$__autocomple = options.__autocomplete_metadata) === null || _options$__autocomple === void 0 ? void 0 : _options$__autocomple.userAgents) || [])[0]) === null || _ === void 0 ? void 0 : _.segment;\n var extraOptions = optionsKey ? _defineProperty({}, optionsKey, Object.keys(((_options$__autocomple2 = options.__autocomplete_metadata) === null || _options$__autocomple2 === void 0 ? void 0 : _options$__autocomple2.options) || {})) : {};\n return {\n plugins: plugins.map(function (plugin) {\n return {\n name: plugin.name,\n options: Object.keys(plugin.__autocomplete_pluginOptions || [])\n };\n }),\n options: _objectSpread({\n \'autocomplete-core\': Object.keys(options)\n }, extraOptions),\n ua: _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.userAgents.concat(((_options$__autocomple3 = options.__autocomplete_metadata) === null || _options$__autocomple3 === void 0 ? void 0 : _options$__autocomple3.userAgents) || [])\n };\n}\nfunction injectMetadata(_ref3) {\n var _environment$navigato, _environment$navigato2;\n var metadata = _ref3.metadata,\n environment = _ref3.environment;\n var isMetadataEnabled = (_environment$navigato = environment.navigator) === null || _environment$navigato === void 0 ? void 0 : (_environment$navigato2 = _environment$navigato.userAgent) === null || _environment$navigato2 === void 0 ? void 0 : _environment$navigato2.includes(\'Algolia Crawler\');\n if (isMetadataEnabled) {\n var metadataContainer = environment.document.createElement(\'meta\');\n var headRef = environment.document.querySelector(\'head\');\n metadataContainer.name = \'algolia:metadata\';\n setTimeout(function () {\n metadataContainer.content = JSON.stringify(metadata);\n headRef.appendChild(metadataContainer);\n }, 0);\n }\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/metadata.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/onInput.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "onInput": () => (/* binding */ onInput)\n/* harmony export */ });\n/* harmony import */ var _reshape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reshape */ "./node_modules/@algolia/autocomplete-core/dist/esm/reshape.js");\n/* harmony import */ var _resolve__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./resolve */ "./node_modules/@algolia/autocomplete-core/dist/esm/resolve.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-core/dist/esm/utils/createConcurrentSafePromise.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-core/dist/esm/utils/createCancelablePromise.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-core/dist/esm/utils/getActiveItem.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nvar _excluded = ["event", "nextState", "props", "query", "refresh", "store"];\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n\n\nvar lastStalledId = null;\nvar runConcurrentSafePromise = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.createConcurrentSafePromise)();\nfunction onInput(_ref) {\n var event = _ref.event,\n _ref$nextState = _ref.nextState,\n nextState = _ref$nextState === void 0 ? {} : _ref$nextState,\n props = _ref.props,\n query = _ref.query,\n refresh = _ref.refresh,\n store = _ref.store,\n setters = _objectWithoutProperties(_ref, _excluded);\n if (lastStalledId) {\n props.environment.clearTimeout(lastStalledId);\n }\n var setCollections = setters.setCollections,\n setIsOpen = setters.setIsOpen,\n setQuery = setters.setQuery,\n setActiveItemId = setters.setActiveItemId,\n setStatus = setters.setStatus;\n setQuery(query);\n setActiveItemId(props.defaultActiveItemId);\n if (!query && props.openOnFocus === false) {\n var _nextState$isOpen;\n var collections = store.getState().collections.map(function (collection) {\n return _objectSpread(_objectSpread({}, collection), {}, {\n items: []\n });\n });\n setStatus(\'idle\');\n setCollections(collections);\n setIsOpen((_nextState$isOpen = nextState.isOpen) !== null && _nextState$isOpen !== void 0 ? _nextState$isOpen : props.shouldPanelOpen({\n state: store.getState()\n }));\n\n // We make sure to update the latest resolved value of the tracked\n // promises to keep late resolving promises from "cancelling" the state\n // updates performed in this code path.\n // We chain with a void promise to respect `onInput`\'s expected return type.\n var _request = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.cancelable)(runConcurrentSafePromise(collections).then(function () {\n return Promise.resolve();\n }));\n return store.pendingRequests.add(_request);\n }\n setStatus(\'loading\');\n lastStalledId = props.environment.setTimeout(function () {\n setStatus(\'stalled\');\n }, props.stallThreshold);\n\n // We track the entire promise chain triggered by `onInput` before mutating\n // the Autocomplete state to make sure that any state manipulation is based on\n // fresh data regardless of when promises individually resolve.\n // We don\'t track nested promises and only rely on the full chain resolution,\n // meaning we should only ever manipulate the state once this concurrent-safe\n // promise is resolved.\n var request = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.cancelable)(runConcurrentSafePromise(props.getSources(_objectSpread({\n query: query,\n refresh: refresh,\n state: store.getState()\n }, setters)).then(function (sources) {\n return Promise.all(sources.map(function (source) {\n return Promise.resolve(source.getItems(_objectSpread({\n query: query,\n refresh: refresh,\n state: store.getState()\n }, setters))).then(function (itemsOrDescription) {\n return (0,_resolve__WEBPACK_IMPORTED_MODULE_2__.preResolve)(itemsOrDescription, source.sourceId, store.getState());\n });\n })).then(_resolve__WEBPACK_IMPORTED_MODULE_2__.resolve).then(function (responses) {\n return (0,_resolve__WEBPACK_IMPORTED_MODULE_2__.postResolve)(responses, sources, store);\n }).then(function (collections) {\n return (0,_reshape__WEBPACK_IMPORTED_MODULE_3__.reshape)({\n collections: collections,\n props: props,\n state: store.getState()\n });\n });\n }))).then(function (collections) {\n var _nextState$isOpen2;\n // Parameters passed to `onInput` could be stale when the following code\n // executes, because `onInput` calls may not resolve in order.\n // If it becomes a problem we\'ll need to save the last passed parameters.\n // See: https://codesandbox.io/s/agitated-cookies-y290z\n\n setStatus(\'idle\');\n setCollections(collections);\n var isPanelOpen = props.shouldPanelOpen({\n state: store.getState()\n });\n setIsOpen((_nextState$isOpen2 = nextState.isOpen) !== null && _nextState$isOpen2 !== void 0 ? _nextState$isOpen2 : props.openOnFocus && !query && isPanelOpen || isPanelOpen);\n var highlightedItem = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.getActiveItem)(store.getState());\n if (store.getState().activeItemId !== null && highlightedItem) {\n var item = highlightedItem.item,\n itemInputValue = highlightedItem.itemInputValue,\n itemUrl = highlightedItem.itemUrl,\n source = highlightedItem.source;\n source.onActive(_objectSpread({\n event: event,\n item: item,\n itemInputValue: itemInputValue,\n itemUrl: itemUrl,\n refresh: refresh,\n source: source,\n state: store.getState()\n }, setters));\n }\n }).finally(function () {\n setStatus(\'idle\');\n if (lastStalledId) {\n props.environment.clearTimeout(lastStalledId);\n }\n });\n return store.pendingRequests.add(request);\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/onInput.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/onKeyDown.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "onKeyDown": () => (/* binding */ onKeyDown)\n/* harmony export */ });\n/* harmony import */ var _onInput__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./onInput */ "./node_modules/@algolia/autocomplete-core/dist/esm/onInput.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-core/dist/esm/utils/getActiveItem.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nvar _excluded = ["event", "props", "refresh", "store"];\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n\nfunction onKeyDown(_ref) {\n var event = _ref.event,\n props = _ref.props,\n refresh = _ref.refresh,\n store = _ref.store,\n setters = _objectWithoutProperties(_ref, _excluded);\n if (event.key === \'ArrowUp\' || event.key === \'ArrowDown\') {\n // eslint-disable-next-line no-inner-declarations\n var triggerScrollIntoView = function triggerScrollIntoView() {\n var nodeItem = props.environment.document.getElementById("".concat(props.id, "-item-").concat(store.getState().activeItemId));\n if (nodeItem) {\n if (nodeItem.scrollIntoViewIfNeeded) {\n nodeItem.scrollIntoViewIfNeeded(false);\n } else {\n nodeItem.scrollIntoView(false);\n }\n }\n }; // eslint-disable-next-line no-inner-declarations\n var triggerOnActive = function triggerOnActive() {\n var highlightedItem = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.getActiveItem)(store.getState());\n if (store.getState().activeItemId !== null && highlightedItem) {\n var item = highlightedItem.item,\n itemInputValue = highlightedItem.itemInputValue,\n itemUrl = highlightedItem.itemUrl,\n source = highlightedItem.source;\n source.onActive(_objectSpread({\n event: event,\n item: item,\n itemInputValue: itemInputValue,\n itemUrl: itemUrl,\n refresh: refresh,\n source: source,\n state: store.getState()\n }, setters));\n }\n }; // Default browser behavior changes the caret placement on ArrowUp and\n // ArrowDown.\n event.preventDefault();\n\n // When re-opening the panel, we need to split the logic to keep the actions\n // synchronized as `onInput` returns a promise.\n if (store.getState().isOpen === false && (props.openOnFocus || Boolean(store.getState().query))) {\n (0,_onInput__WEBPACK_IMPORTED_MODULE_1__.onInput)(_objectSpread({\n event: event,\n props: props,\n query: store.getState().query,\n refresh: refresh,\n store: store\n }, setters)).then(function () {\n store.dispatch(event.key, {\n nextActiveItemId: props.defaultActiveItemId\n });\n triggerOnActive();\n // Since we rely on the DOM, we need to wait for all the micro tasks to\n // finish (which include re-opening the panel) to make sure all the\n // elements are available.\n setTimeout(triggerScrollIntoView, 0);\n });\n } else {\n store.dispatch(event.key, {});\n triggerOnActive();\n triggerScrollIntoView();\n }\n } else if (event.key === \'Escape\') {\n // This prevents the default browser behavior on `input[type="search"]`\n // from removing the query right away because we first want to close the\n // panel.\n event.preventDefault();\n store.dispatch(event.key, null);\n\n // Hitting the `Escape` key signals the end of a user interaction with the\n // autocomplete. At this point, we should ignore any requests that are still\n // pending and could reopen the panel once they resolve, because that would\n // result in an unsolicited UI behavior.\n store.pendingRequests.cancelAll();\n } else if (event.key === \'Tab\') {\n store.dispatch(\'blur\', null);\n\n // Hitting the `Escape` key signals the end of a user interaction with the\n // autocomplete. At this point, we should ignore any requests that are still\n // pending and could reopen the panel once they resolve, because that would\n // result in an unsolicited UI behavior.\n store.pendingRequests.cancelAll();\n } else if (event.key === \'Enter\') {\n // No active item, so we let the browser handle the native `onSubmit` form\n // event.\n if (store.getState().activeItemId === null || store.getState().collections.every(function (collection) {\n return collection.items.length === 0;\n })) {\n // If requests are still pending when the panel closes, they could reopen\n // the panel once they resolve.\n // We want to prevent any subsequent query from reopening the panel\n // because it would result in an unsolicited UI behavior.\n if (!props.debug) {\n store.pendingRequests.cancelAll();\n }\n return;\n }\n\n // This prevents the `onSubmit` event to be sent because an item is\n // highlighted.\n event.preventDefault();\n var _ref2 = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.getActiveItem)(store.getState()),\n item = _ref2.item,\n itemInputValue = _ref2.itemInputValue,\n itemUrl = _ref2.itemUrl,\n source = _ref2.source;\n if (event.metaKey || event.ctrlKey) {\n if (itemUrl !== undefined) {\n source.onSelect(_objectSpread({\n event: event,\n item: item,\n itemInputValue: itemInputValue,\n itemUrl: itemUrl,\n refresh: refresh,\n source: source,\n state: store.getState()\n }, setters));\n props.navigator.navigateNewTab({\n itemUrl: itemUrl,\n item: item,\n state: store.getState()\n });\n }\n } else if (event.shiftKey) {\n if (itemUrl !== undefined) {\n source.onSelect(_objectSpread({\n event: event,\n item: item,\n itemInputValue: itemInputValue,\n itemUrl: itemUrl,\n refresh: refresh,\n source: source,\n state: store.getState()\n }, setters));\n props.navigator.navigateNewWindow({\n itemUrl: itemUrl,\n item: item,\n state: store.getState()\n });\n }\n } else if (event.altKey) {\n // Keep native browser behavior\n } else {\n if (itemUrl !== undefined) {\n source.onSelect(_objectSpread({\n event: event,\n item: item,\n itemInputValue: itemInputValue,\n itemUrl: itemUrl,\n refresh: refresh,\n source: source,\n state: store.getState()\n }, setters));\n props.navigator.navigate({\n itemUrl: itemUrl,\n item: item,\n state: store.getState()\n });\n return;\n }\n (0,_onInput__WEBPACK_IMPORTED_MODULE_1__.onInput)(_objectSpread({\n event: event,\n nextState: {\n isOpen: false\n },\n props: props,\n query: itemInputValue,\n refresh: refresh,\n store: store\n }, setters)).then(function () {\n source.onSelect(_objectSpread({\n event: event,\n item: item,\n itemInputValue: itemInputValue,\n itemUrl: itemUrl,\n refresh: refresh,\n source: source,\n state: store.getState()\n }, setters));\n });\n }\n }\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/onKeyDown.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/reshape.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "reshape": () => (/* binding */ reshape)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/flatten.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\nfunction reshape(_ref) {\n var collections = _ref.collections,\n props = _ref.props,\n state = _ref.state;\n // Sources are grouped by `sourceId` to conveniently pick them via destructuring.\n // Example: `const { recentSearchesPlugin } = sourcesBySourceId`\n var originalSourcesBySourceId = collections.reduce(function (acc, collection) {\n return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, collection.source.sourceId, _objectSpread(_objectSpread({}, collection.source), {}, {\n getItems: function getItems() {\n // We provide the resolved items from the collection to the `reshape` prop.\n return (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.flatten)(collection.items);\n }\n })));\n }, {});\n var _props$plugins$reduce = props.plugins.reduce(function (acc, plugin) {\n if (plugin.reshape) {\n return plugin.reshape(acc);\n }\n return acc;\n }, {\n sourcesBySourceId: originalSourcesBySourceId,\n state: state\n }),\n sourcesBySourceId = _props$plugins$reduce.sourcesBySourceId;\n var reshapeSources = props.reshape({\n sourcesBySourceId: sourcesBySourceId,\n sources: Object.values(sourcesBySourceId),\n state: state\n });\n\n // We reconstruct the collections with the items modified by the `reshape` prop.\n return (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.flatten)(reshapeSources).filter(Boolean).map(function (source) {\n return {\n source: source,\n items: source.getItems()\n };\n });\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/reshape.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/resolve.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "postResolve": () => (/* binding */ postResolve),\n/* harmony export */ "preResolve": () => (/* binding */ preResolve),\n/* harmony export */ "resolve": () => (/* binding */ resolve)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/flatten.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/invariant.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/decycle.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-core/dist/esm/utils/mapToAlgoliaResponse.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\nfunction isDescription(item) {\n return Boolean(item.execute);\n}\nfunction isRequesterDescription(description) {\n return Boolean(description === null || description === void 0 ? void 0 : description.execute);\n}\nfunction preResolve(itemsOrDescription, sourceId, state) {\n if (isRequesterDescription(itemsOrDescription)) {\n var contextParameters = itemsOrDescription.requesterId === \'algolia\' ? Object.assign.apply(Object, [{}].concat(_toConsumableArray(Object.keys(state.context).map(function (key) {\n var _state$context$key;\n return (_state$context$key = state.context[key]) === null || _state$context$key === void 0 ? void 0 : _state$context$key.__algoliaSearchParameters;\n })))) : {};\n return _objectSpread(_objectSpread({}, itemsOrDescription), {}, {\n requests: itemsOrDescription.queries.map(function (query) {\n return {\n query: itemsOrDescription.requesterId === \'algolia\' ? _objectSpread(_objectSpread({}, query), {}, {\n params: _objectSpread(_objectSpread({}, contextParameters), query.params)\n }) : query,\n sourceId: sourceId,\n transformResponse: itemsOrDescription.transformResponse\n };\n })\n });\n }\n return {\n items: itemsOrDescription,\n sourceId: sourceId\n };\n}\nfunction resolve(items) {\n var packed = items.reduce(function (acc, current) {\n if (!isDescription(current)) {\n acc.push(current);\n return acc;\n }\n var searchClient = current.searchClient,\n execute = current.execute,\n requesterId = current.requesterId,\n requests = current.requests;\n var container = acc.find(function (item) {\n return isDescription(current) && isDescription(item) && item.searchClient === searchClient && Boolean(requesterId) && item.requesterId === requesterId;\n });\n if (container) {\n var _container$items;\n (_container$items = container.items).push.apply(_container$items, _toConsumableArray(requests));\n } else {\n var request = {\n execute: execute,\n requesterId: requesterId,\n items: requests,\n searchClient: searchClient\n };\n acc.push(request);\n }\n return acc;\n }, []);\n var values = packed.map(function (maybeDescription) {\n if (!isDescription(maybeDescription)) {\n return Promise.resolve(maybeDescription);\n }\n var _ref = maybeDescription,\n execute = _ref.execute,\n items = _ref.items,\n searchClient = _ref.searchClient;\n return execute({\n searchClient: searchClient,\n requests: items\n });\n });\n return Promise.all(values).then(function (responses) {\n return (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.flatten)(responses);\n });\n}\nfunction postResolve(responses, sources, store) {\n return sources.map(function (source) {\n var matches = responses.filter(function (response) {\n return response.sourceId === source.sourceId;\n });\n var results = matches.map(function (_ref2) {\n var items = _ref2.items;\n return items;\n });\n var transform = matches[0].transformResponse;\n var items = transform ? transform((0,_utils__WEBPACK_IMPORTED_MODULE_1__.mapToAlgoliaResponse)(results)) : results;\n source.onResolve({\n source: source,\n results: results,\n items: items,\n state: store.getState()\n });\n (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_2__.invariant)(Array.isArray(items), function () {\n return "The `getItems` function from source \\"".concat(source.sourceId, "\\" must return an array of items but returned type ").concat(JSON.stringify(_typeof(items)), ":\\n\\n").concat(JSON.stringify((0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__.decycle)(items), null, 2), ".\\n\\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems");\n });\n (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_2__.invariant)(items.every(Boolean), "The `getItems` function from source \\"".concat(source.sourceId, "\\" must return an array of items but returned ").concat(JSON.stringify(undefined), ".\\n\\nDid you forget to return items?\\n\\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems"));\n return {\n source: source,\n items: items\n };\n });\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/resolve.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/stateReducer.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"stateReducer\": () => (/* binding */ stateReducer)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @algolia/autocomplete-shared */ \"./node_modules/@algolia/autocomplete-shared/dist/esm/getItemsCount.js\");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @algolia/autocomplete-shared */ \"./node_modules/@algolia/autocomplete-shared/dist/esm/invariant.js\");\n/* harmony import */ var _getCompletion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getCompletion */ \"./node_modules/@algolia/autocomplete-core/dist/esm/getCompletion.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ \"./node_modules/@algolia/autocomplete-core/dist/esm/utils/getNextActiveItemId.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\n\n\nvar stateReducer = function stateReducer(state, action) {\n switch (action.type) {\n case 'setActiveItemId':\n {\n return _objectSpread(_objectSpread({}, state), {}, {\n activeItemId: action.payload\n });\n }\n case 'setQuery':\n {\n return _objectSpread(_objectSpread({}, state), {}, {\n query: action.payload,\n completion: null\n });\n }\n case 'setCollections':\n {\n return _objectSpread(_objectSpread({}, state), {}, {\n collections: action.payload\n });\n }\n case 'setIsOpen':\n {\n return _objectSpread(_objectSpread({}, state), {}, {\n isOpen: action.payload\n });\n }\n case 'setStatus':\n {\n return _objectSpread(_objectSpread({}, state), {}, {\n status: action.payload\n });\n }\n case 'setContext':\n {\n return _objectSpread(_objectSpread({}, state), {}, {\n context: _objectSpread(_objectSpread({}, state.context), action.payload)\n });\n }\n case 'ArrowDown':\n {\n var nextState = _objectSpread(_objectSpread({}, state), {}, {\n activeItemId: action.payload.hasOwnProperty('nextActiveItemId') ? action.payload.nextActiveItemId : (0,_utils__WEBPACK_IMPORTED_MODULE_0__.getNextActiveItemId)(1, state.activeItemId, (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__.getItemsCount)(state), action.props.defaultActiveItemId)\n });\n return _objectSpread(_objectSpread({}, nextState), {}, {\n completion: (0,_getCompletion__WEBPACK_IMPORTED_MODULE_2__.getCompletion)({\n state: nextState\n })\n });\n }\n case 'ArrowUp':\n {\n var _nextState = _objectSpread(_objectSpread({}, state), {}, {\n activeItemId: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.getNextActiveItemId)(-1, state.activeItemId, (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__.getItemsCount)(state), action.props.defaultActiveItemId)\n });\n return _objectSpread(_objectSpread({}, _nextState), {}, {\n completion: (0,_getCompletion__WEBPACK_IMPORTED_MODULE_2__.getCompletion)({\n state: _nextState\n })\n });\n }\n case 'Escape':\n {\n if (state.isOpen) {\n return _objectSpread(_objectSpread({}, state), {}, {\n activeItemId: null,\n isOpen: false,\n completion: null\n });\n }\n return _objectSpread(_objectSpread({}, state), {}, {\n activeItemId: null,\n query: '',\n status: 'idle',\n collections: []\n });\n }\n case 'submit':\n {\n return _objectSpread(_objectSpread({}, state), {}, {\n activeItemId: null,\n isOpen: false,\n status: 'idle'\n });\n }\n case 'reset':\n {\n return _objectSpread(_objectSpread({}, state), {}, {\n activeItemId:\n // Since we open the panel on reset when openOnFocus=true\n // we need to restore the highlighted index to the defaultActiveItemId. (DocSearch use-case)\n\n // Since we close the panel when openOnFocus=false\n // we lose track of the highlighted index. (Query-suggestions use-case)\n action.props.openOnFocus === true ? action.props.defaultActiveItemId : null,\n status: 'idle',\n query: ''\n });\n }\n case 'focus':\n {\n return _objectSpread(_objectSpread({}, state), {}, {\n activeItemId: action.props.defaultActiveItemId,\n isOpen: (action.props.openOnFocus || Boolean(state.query)) && action.props.shouldPanelOpen({\n state: state\n })\n });\n }\n case 'blur':\n {\n if (action.props.debug) {\n return state;\n }\n return _objectSpread(_objectSpread({}, state), {}, {\n isOpen: false,\n activeItemId: null\n });\n }\n case 'mousemove':\n {\n return _objectSpread(_objectSpread({}, state), {}, {\n activeItemId: action.payload\n });\n }\n case 'mouseleave':\n {\n return _objectSpread(_objectSpread({}, state), {}, {\n activeItemId: action.props.defaultActiveItemId\n });\n }\n default:\n (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__.invariant)(false, \"The reducer action \".concat(JSON.stringify(action.type), \" is not supported.\"));\n return state;\n }\n};\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/stateReducer.js?")},"./node_modules/@algolia/autocomplete-core/dist/esm/utils/createCancelablePromise.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "cancelable": () => (/* binding */ cancelable),\n/* harmony export */ "createCancelablePromise": () => (/* binding */ createCancelablePromise)\n/* harmony export */ });\nfunction createInternalCancelablePromise(promise, initialState) {\n var state = initialState;\n return {\n then: function then(onfulfilled, onrejected) {\n return createInternalCancelablePromise(promise.then(createCallback(onfulfilled, state, promise), createCallback(onrejected, state, promise)), state);\n },\n catch: function _catch(onrejected) {\n return createInternalCancelablePromise(promise.catch(createCallback(onrejected, state, promise)), state);\n },\n finally: function _finally(onfinally) {\n if (onfinally) {\n state.onCancelList.push(onfinally);\n }\n return createInternalCancelablePromise(promise.finally(createCallback(onfinally && function () {\n state.onCancelList = [];\n return onfinally();\n }, state, promise)), state);\n },\n cancel: function cancel() {\n state.isCanceled = true;\n var callbacks = state.onCancelList;\n state.onCancelList = [];\n callbacks.forEach(function (callback) {\n callback();\n });\n },\n isCanceled: function isCanceled() {\n return state.isCanceled === true;\n }\n };\n}\nfunction createCancelablePromise(executor) {\n return createInternalCancelablePromise(new Promise(function (resolve, reject) {\n return executor(resolve, reject);\n }), {\n isCanceled: false,\n onCancelList: []\n });\n}\ncreateCancelablePromise.resolve = function (value) {\n return cancelable(Promise.resolve(value));\n};\ncreateCancelablePromise.reject = function (reason) {\n return cancelable(Promise.reject(reason));\n};\nfunction cancelable(promise) {\n return createInternalCancelablePromise(promise, {\n isCanceled: false,\n onCancelList: []\n });\n}\nfunction createCallback(onResult, state, fallback) {\n if (!onResult) {\n return fallback;\n }\n return function callback(arg) {\n if (state.isCanceled) {\n return arg;\n }\n return onResult(arg);\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/utils/createCancelablePromise.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/utils/createCancelablePromiseList.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createCancelablePromiseList": () => (/* binding */ createCancelablePromiseList)\n/* harmony export */ });\nfunction createCancelablePromiseList() {\n var list = [];\n return {\n add: function add(cancelablePromise) {\n list.push(cancelablePromise);\n return cancelablePromise.finally(function () {\n list = list.filter(function (item) {\n return item !== cancelablePromise;\n });\n });\n },\n cancelAll: function cancelAll() {\n list.forEach(function (promise) {\n return promise.cancel();\n });\n },\n isEmpty: function isEmpty() {\n return list.length === 0;\n }\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/utils/createCancelablePromiseList.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/utils/createConcurrentSafePromise.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createConcurrentSafePromise": () => (/* binding */ createConcurrentSafePromise)\n/* harmony export */ });\n/**\n * Creates a runner that executes promises in a concurrent-safe way.\n *\n * This is useful to prevent older promises to resolve after a newer promise,\n * otherwise resulting in stale resolved values.\n */\nfunction createConcurrentSafePromise() {\n var basePromiseId = -1;\n var latestResolvedId = -1;\n var latestResolvedValue = undefined;\n return function runConcurrentSafePromise(promise) {\n basePromiseId++;\n var currentPromiseId = basePromiseId;\n return Promise.resolve(promise).then(function (x) {\n // The promise might take too long to resolve and get outdated. This would\n // result in resolving stale values.\n // When this happens, we ignore the promise value and return the one\n // coming from the latest resolved value.\n //\n // +----------------------------------+\n // | 100ms |\n // | run(1) +---\x3e R1 |\n // | 300ms |\n // | run(2) +-------------\x3e R2 (SKIP) |\n // | 200ms |\n // | run(3) +--------\x3e R3 |\n // +----------------------------------+\n if (latestResolvedValue && currentPromiseId < latestResolvedId) {\n return latestResolvedValue;\n }\n latestResolvedId = currentPromiseId;\n latestResolvedValue = x;\n return x;\n });\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/utils/createConcurrentSafePromise.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/utils/getActiveItem.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"getActiveItem\": () => (/* binding */ getActiveItem)\n/* harmony export */ });\n// We don't have access to the autocomplete source when we call `onKeyDown`\n// or `onClick` because those are native browser events.\n// However, we can get the source from the suggestion index.\nfunction getCollectionFromActiveItemId(state) {\n // Given 3 sources with respectively 1, 2 and 3 suggestions: [1, 2, 3]\n // We want to get the accumulated counts:\n // [1, 1 + 2, 1 + 2 + 3] = [1, 3, 3 + 3] = [1, 3, 6]\n var accumulatedCollectionsCount = state.collections.map(function (collections) {\n return collections.items.length;\n }).reduce(function (acc, collectionsCount, index) {\n var previousValue = acc[index - 1] || 0;\n var nextValue = previousValue + collectionsCount;\n acc.push(nextValue);\n return acc;\n }, []);\n\n // Based on the accumulated counts, we can infer the index of the suggestion.\n var collectionIndex = accumulatedCollectionsCount.reduce(function (acc, current) {\n if (current <= state.activeItemId) {\n return acc + 1;\n }\n return acc;\n }, 0);\n return state.collections[collectionIndex];\n}\n\n/**\n * Gets the highlighted index relative to a suggestion object (not the absolute\n * highlighted index).\n *\n * Example:\n * [['a', 'b'], ['c', 'd', 'e'], ['f']]\n * ↑\n * (absolute: 3, relative: 1)\n */\nfunction getRelativeActiveItemId(_ref) {\n var state = _ref.state,\n collection = _ref.collection;\n var isOffsetFound = false;\n var counter = 0;\n var previousItemsOffset = 0;\n while (isOffsetFound === false) {\n var currentCollection = state.collections[counter];\n if (currentCollection === collection) {\n isOffsetFound = true;\n break;\n }\n previousItemsOffset += currentCollection.items.length;\n counter++;\n }\n return state.activeItemId - previousItemsOffset;\n}\nfunction getActiveItem(state) {\n var collection = getCollectionFromActiveItemId(state);\n if (!collection) {\n return null;\n }\n var item = collection.items[getRelativeActiveItemId({\n state: state,\n collection: collection\n })];\n var source = collection.source;\n var itemInputValue = source.getItemInputValue({\n item: item,\n state: state\n });\n var itemUrl = source.getItemUrl({\n item: item,\n state: state\n });\n return {\n item: item,\n itemInputValue: itemInputValue,\n itemUrl: itemUrl,\n source: source\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/utils/getActiveItem.js?")},"./node_modules/@algolia/autocomplete-core/dist/esm/utils/getNextActiveItemId.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getNextActiveItemId": () => (/* binding */ getNextActiveItemId)\n/* harmony export */ });\n/**\n * Returns the next active item ID from the current state.\n *\n * We allow circular keyboard navigation from the base index.\n * The base index can either be `null` (nothing is highlighted) or `0`\n * (the first item is highlighted).\n * The base index is allowed to get assigned `null` only if\n * `props.defaultActiveItemId` is `null`. This pattern allows to "stop"\n * by the actual query before navigating to other suggestions as seen on\n * Google or Amazon.\n *\n * @param moveAmount The offset to increment (or decrement) the last index\n * @param baseIndex The current index to compute the next index from\n * @param itemCount The number of items\n * @param defaultActiveItemId The default active index to fallback to\n */\nfunction getNextActiveItemId(moveAmount, baseIndex, itemCount, defaultActiveItemId) {\n if (!itemCount) {\n return null;\n }\n if (moveAmount < 0 && (baseIndex === null || defaultActiveItemId !== null && baseIndex === 0)) {\n return itemCount + moveAmount;\n }\n var numericIndex = (baseIndex === null ? -1 : baseIndex) + moveAmount;\n if (numericIndex <= -1 || numericIndex >= itemCount) {\n return defaultActiveItemId === null ? null : 0;\n }\n return numericIndex;\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/utils/getNextActiveItemId.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/utils/getNormalizedSources.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getNormalizedSources": () => (/* binding */ getNormalizedSources)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/invariant.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/decycle.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/noop.js");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\n\nfunction getNormalizedSources(getSources, params) {\n var seenSourceIds = [];\n return Promise.resolve(getSources(params)).then(function (sources) {\n (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.invariant)(Array.isArray(sources), function () {\n return "The `getSources` function must return an array of sources but returned type ".concat(JSON.stringify(_typeof(sources)), ":\\n\\n").concat(JSON.stringify((0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__.decycle)(sources), null, 2));\n });\n return Promise.all(sources\n // We allow `undefined` and `false` sources to allow users to use\n // `Boolean(query) && source` (=> `false`).\n // We need to remove these values at this point.\n .filter(function (maybeSource) {\n return Boolean(maybeSource);\n }).map(function (source) {\n (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.invariant)(typeof source.sourceId === \'string\', \'A source must provide a `sourceId` string.\');\n if (seenSourceIds.includes(source.sourceId)) {\n throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(source.sourceId), " is not unique."));\n }\n seenSourceIds.push(source.sourceId);\n var defaultSource = {\n getItemInputValue: function getItemInputValue(_ref) {\n var state = _ref.state;\n return state.query;\n },\n getItemUrl: function getItemUrl() {\n return undefined;\n },\n onSelect: function onSelect(_ref2) {\n var setIsOpen = _ref2.setIsOpen;\n setIsOpen(false);\n },\n onActive: _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_2__.noop,\n onResolve: _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_2__.noop\n };\n Object.keys(defaultSource).forEach(function (key) {\n defaultSource[key].__default = true;\n });\n var normalizedSource = _objectSpread(_objectSpread({}, defaultSource), source);\n return Promise.resolve(normalizedSource);\n }));\n });\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/utils/getNormalizedSources.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/utils/isOrContainsNode.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "isOrContainsNode": () => (/* binding */ isOrContainsNode)\n/* harmony export */ });\nfunction isOrContainsNode(parent, child) {\n return parent === child || parent.contains(child);\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/utils/isOrContainsNode.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/utils/isSamsung.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "isSamsung": () => (/* binding */ isSamsung)\n/* harmony export */ });\nvar regex = /((gt|sm)-|galaxy nexus)|samsung[- ]/i;\nfunction isSamsung(userAgent) {\n return Boolean(userAgent && userAgent.match(regex));\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/utils/isSamsung.js?')},"./node_modules/@algolia/autocomplete-core/dist/esm/utils/mapToAlgoliaResponse.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "mapToAlgoliaResponse": () => (/* binding */ mapToAlgoliaResponse)\n/* harmony export */ });\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\nfunction mapToAlgoliaResponse(rawResults) {\n var results = rawResults.map(function (result) {\n var _hits;\n return _objectSpread(_objectSpread({}, result), {}, {\n hits: (_hits = result.hits) === null || _hits === void 0 ? void 0 : _hits.map(function (hit) {\n // Bring support for the Insights plugin.\n return _objectSpread(_objectSpread({}, hit), {}, {\n __autocomplete_indexName: result.index,\n __autocomplete_queryID: result.queryID\n });\n })\n });\n });\n return {\n results: results,\n hits: results.map(function (result) {\n return result.hits;\n }).filter(Boolean),\n facetHits: results.map(function (result) {\n var _facetHits;\n return (_facetHits = result.facetHits) === null || _facetHits === void 0 ? void 0 : _facetHits.map(function (facetHit) {\n // Bring support for the highlighting components.\n return {\n label: facetHit.value,\n count: facetHit.count,\n _highlightResult: {\n label: {\n value: facetHit.highlighted\n }\n }\n };\n });\n }).filter(Boolean)\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-core/dist/esm/utils/mapToAlgoliaResponse.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/autocomplete.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "autocomplete": () => (/* binding */ autocomplete)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @algolia/autocomplete-core */ "./node_modules/@algolia/autocomplete-core/dist/esm/createAutocomplete.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/createRef.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/getItemsCount.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/debounce.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/warn.js");\n/* harmony import */ var htm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! htm */ "./node_modules/htm/dist/htm.module.js");\n/* harmony import */ var _createAutocompleteDom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./createAutocompleteDom */ "./node_modules/@algolia/autocomplete-js/dist/esm/createAutocompleteDom.js");\n/* harmony import */ var _createEffectWrapper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createEffectWrapper */ "./node_modules/@algolia/autocomplete-js/dist/esm/createEffectWrapper.js");\n/* harmony import */ var _createReactiveWrapper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createReactiveWrapper */ "./node_modules/@algolia/autocomplete-js/dist/esm/createReactiveWrapper.js");\n/* harmony import */ var _getDefaultOptions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getDefaultOptions */ "./node_modules/@algolia/autocomplete-js/dist/esm/getDefaultOptions.js");\n/* harmony import */ var _getPanelPlacementStyle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./getPanelPlacementStyle */ "./node_modules/@algolia/autocomplete-js/dist/esm/getPanelPlacementStyle.js");\n/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./render */ "./node_modules/@algolia/autocomplete-js/dist/esm/render.js");\n/* harmony import */ var _userAgents__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./userAgents */ "./node_modules/@algolia/autocomplete-js/dist/esm/userAgents.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-js/dist/esm/utils/setProperties.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-js/dist/esm/utils/mergeDeep.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-js/dist/esm/utils/pickBy.js");\nvar _excluded = ["components"];\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\n\n\n\n\n\n\n\n\n\n\nvar instancesCount = 0;\nfunction autocomplete(options) {\n var _createEffectWrapper = (0,_createEffectWrapper__WEBPACK_IMPORTED_MODULE_1__.createEffectWrapper)(),\n runEffect = _createEffectWrapper.runEffect,\n cleanupEffects = _createEffectWrapper.cleanupEffects,\n runEffects = _createEffectWrapper.runEffects;\n var _createReactiveWrappe = (0,_createReactiveWrapper__WEBPACK_IMPORTED_MODULE_2__.createReactiveWrapper)(),\n reactive = _createReactiveWrappe.reactive,\n runReactives = _createReactiveWrappe.runReactives;\n var hasNoResultsSourceTemplateRef = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__.createRef)(false);\n var optionsRef = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__.createRef)(options);\n var onStateChangeRef = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__.createRef)(undefined);\n var props = reactive(function () {\n return (0,_getDefaultOptions__WEBPACK_IMPORTED_MODULE_4__.getDefaultOptions)(optionsRef.current);\n });\n var isDetached = reactive(function () {\n return props.value.core.environment.matchMedia(props.value.renderer.detachedMediaQuery).matches;\n });\n var autocomplete = reactive(function () {\n return (0,_algolia_autocomplete_core__WEBPACK_IMPORTED_MODULE_5__.createAutocomplete)(_objectSpread(_objectSpread({}, props.value.core), {}, {\n onStateChange: function onStateChange(params) {\n var _onStateChangeRef$cur, _props$value$core$onS, _props$value$core;\n hasNoResultsSourceTemplateRef.current = params.state.collections.some(function (collection) {\n return collection.source.templates.noResults;\n });\n (_onStateChangeRef$cur = onStateChangeRef.current) === null || _onStateChangeRef$cur === void 0 ? void 0 : _onStateChangeRef$cur.call(onStateChangeRef, params);\n (_props$value$core$onS = (_props$value$core = props.value.core).onStateChange) === null || _props$value$core$onS === void 0 ? void 0 : _props$value$core$onS.call(_props$value$core, params);\n },\n shouldPanelOpen: optionsRef.current.shouldPanelOpen || function (_ref) {\n var state = _ref.state;\n if (isDetached.value) {\n return true;\n }\n var hasItems = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_6__.getItemsCount)(state) > 0;\n if (!props.value.core.openOnFocus && !state.query) {\n return hasItems;\n }\n var hasNoResultsTemplate = Boolean(hasNoResultsSourceTemplateRef.current || props.value.renderer.renderNoResults);\n return !hasItems && hasNoResultsTemplate || hasItems;\n },\n __autocomplete_metadata: {\n userAgents: _userAgents__WEBPACK_IMPORTED_MODULE_7__.userAgents,\n options: options\n }\n }));\n });\n var lastStateRef = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__.createRef)(_objectSpread({\n collections: [],\n completion: null,\n context: {},\n isOpen: false,\n query: \'\',\n activeItemId: null,\n status: \'idle\'\n }, props.value.core.initialState));\n var propGetters = {\n getEnvironmentProps: props.value.renderer.getEnvironmentProps,\n getFormProps: props.value.renderer.getFormProps,\n getInputProps: props.value.renderer.getInputProps,\n getItemProps: props.value.renderer.getItemProps,\n getLabelProps: props.value.renderer.getLabelProps,\n getListProps: props.value.renderer.getListProps,\n getPanelProps: props.value.renderer.getPanelProps,\n getRootProps: props.value.renderer.getRootProps\n };\n var autocompleteScopeApi = {\n setActiveItemId: autocomplete.value.setActiveItemId,\n setQuery: autocomplete.value.setQuery,\n setCollections: autocomplete.value.setCollections,\n setIsOpen: autocomplete.value.setIsOpen,\n setStatus: autocomplete.value.setStatus,\n setContext: autocomplete.value.setContext,\n refresh: autocomplete.value.refresh,\n navigator: autocomplete.value.navigator\n };\n var html = reactive(function () {\n return htm__WEBPACK_IMPORTED_MODULE_0__["default"].bind(props.value.renderer.renderer.createElement);\n });\n var dom = reactive(function () {\n return (0,_createAutocompleteDom__WEBPACK_IMPORTED_MODULE_8__.createAutocompleteDom)({\n autocomplete: autocomplete.value,\n autocompleteScopeApi: autocompleteScopeApi,\n classNames: props.value.renderer.classNames,\n environment: props.value.core.environment,\n isDetached: isDetached.value,\n placeholder: props.value.core.placeholder,\n propGetters: propGetters,\n setIsModalOpen: setIsModalOpen,\n state: lastStateRef.current,\n translations: props.value.renderer.translations\n });\n });\n function setPanelPosition() {\n (0,_utils__WEBPACK_IMPORTED_MODULE_9__.setProperties)(dom.value.panel, {\n style: isDetached.value ? {} : (0,_getPanelPlacementStyle__WEBPACK_IMPORTED_MODULE_10__.getPanelPlacementStyle)({\n panelPlacement: props.value.renderer.panelPlacement,\n container: dom.value.root,\n form: dom.value.form,\n environment: props.value.core.environment\n })\n });\n }\n function scheduleRender(state) {\n lastStateRef.current = state;\n var renderProps = {\n autocomplete: autocomplete.value,\n autocompleteScopeApi: autocompleteScopeApi,\n classNames: props.value.renderer.classNames,\n components: props.value.renderer.components,\n container: props.value.renderer.container,\n html: html.value,\n dom: dom.value,\n panelContainer: isDetached.value ? dom.value.detachedContainer : props.value.renderer.panelContainer,\n propGetters: propGetters,\n state: lastStateRef.current,\n renderer: props.value.renderer.renderer\n };\n var render = !(0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_6__.getItemsCount)(state) && !hasNoResultsSourceTemplateRef.current && props.value.renderer.renderNoResults || props.value.renderer.render;\n (0,_render__WEBPACK_IMPORTED_MODULE_11__.renderSearchBox)(renderProps);\n (0,_render__WEBPACK_IMPORTED_MODULE_11__.renderPanel)(render, renderProps);\n }\n runEffect(function () {\n var environmentProps = autocomplete.value.getEnvironmentProps({\n formElement: dom.value.form,\n panelElement: dom.value.panel,\n inputElement: dom.value.input\n });\n (0,_utils__WEBPACK_IMPORTED_MODULE_9__.setProperties)(props.value.core.environment, environmentProps);\n return function () {\n (0,_utils__WEBPACK_IMPORTED_MODULE_9__.setProperties)(props.value.core.environment, Object.keys(environmentProps).reduce(function (acc, key) {\n return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, key, undefined));\n }, {}));\n };\n });\n runEffect(function () {\n var panelContainerElement = isDetached.value ? props.value.core.environment.document.body : props.value.renderer.panelContainer;\n var panelElement = isDetached.value ? dom.value.detachedOverlay : dom.value.panel;\n if (isDetached.value && lastStateRef.current.isOpen) {\n setIsModalOpen(true);\n }\n scheduleRender(lastStateRef.current);\n return function () {\n if (panelContainerElement.contains(panelElement)) {\n panelContainerElement.removeChild(panelElement);\n }\n };\n });\n runEffect(function () {\n var containerElement = props.value.renderer.container;\n containerElement.appendChild(dom.value.root);\n return function () {\n containerElement.removeChild(dom.value.root);\n };\n });\n runEffect(function () {\n var debouncedRender = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_12__.debounce)(function (_ref2) {\n var state = _ref2.state;\n scheduleRender(state);\n }, 0);\n onStateChangeRef.current = function (_ref3) {\n var state = _ref3.state,\n prevState = _ref3.prevState;\n if (isDetached.value && prevState.isOpen !== state.isOpen) {\n setIsModalOpen(state.isOpen);\n }\n\n // The outer DOM might have changed since the last time the panel was\n // positioned. The layout might have shifted vertically for instance.\n // It\'s therefore safer to re-calculate the panel position before opening\n // it again.\n if (!isDetached.value && state.isOpen && !prevState.isOpen) {\n setPanelPosition();\n }\n\n // We scroll to the top of the panel whenever the query changes (i.e. new\n // results come in) so that users don\'t have to.\n if (state.query !== prevState.query) {\n var scrollablePanels = props.value.core.environment.document.querySelectorAll(\'.aa-Panel--scrollable\');\n scrollablePanels.forEach(function (scrollablePanel) {\n if (scrollablePanel.scrollTop !== 0) {\n scrollablePanel.scrollTop = 0;\n }\n });\n }\n debouncedRender({\n state: state\n });\n };\n return function () {\n onStateChangeRef.current = undefined;\n };\n });\n runEffect(function () {\n var onResize = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_12__.debounce)(function () {\n var previousIsDetached = isDetached.value;\n isDetached.value = props.value.core.environment.matchMedia(props.value.renderer.detachedMediaQuery).matches;\n if (previousIsDetached !== isDetached.value) {\n update({});\n } else {\n requestAnimationFrame(setPanelPosition);\n }\n }, 20);\n props.value.core.environment.addEventListener(\'resize\', onResize);\n return function () {\n props.value.core.environment.removeEventListener(\'resize\', onResize);\n };\n });\n runEffect(function () {\n if (!isDetached.value) {\n return function () {};\n }\n function toggleModalClassname(isActive) {\n dom.value.detachedContainer.classList.toggle(\'aa-DetachedContainer--modal\', isActive);\n }\n function onChange(event) {\n toggleModalClassname(event.matches);\n }\n var isModalDetachedMql = props.value.core.environment.matchMedia(getComputedStyle(props.value.core.environment.document.documentElement).getPropertyValue(\'--aa-detached-modal-media-query\'));\n toggleModalClassname(isModalDetachedMql.matches);\n\n // Prior to Safari 14, `MediaQueryList` isn\'t based on `EventTarget`,\n // so we must use `addListener` and `removeListener` to observe media query lists.\n // See https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener\n var hasModernEventListener = Boolean(isModalDetachedMql.addEventListener);\n hasModernEventListener ? isModalDetachedMql.addEventListener(\'change\', onChange) : isModalDetachedMql.addListener(onChange);\n return function () {\n hasModernEventListener ? isModalDetachedMql.removeEventListener(\'change\', onChange) : isModalDetachedMql.removeListener(onChange);\n };\n });\n runEffect(function () {\n requestAnimationFrame(setPanelPosition);\n return function () {};\n });\n function destroy() {\n instancesCount--;\n cleanupEffects();\n }\n function update() {\n var updatedOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n cleanupEffects();\n var _props$value$renderer = props.value.renderer,\n components = _props$value$renderer.components,\n rendererProps = _objectWithoutProperties(_props$value$renderer, _excluded);\n optionsRef.current = (0,_utils__WEBPACK_IMPORTED_MODULE_13__.mergeDeep)(rendererProps, props.value.core, {\n // We need to filter out default components so they can be replaced with\n // a new `renderer`, without getting rid of user components.\n // @MAJOR Deal with registering components with the same name as the\n // default ones. If we disallow overriding default components, we\'d just\n // need to pass all `components` here.\n components: (0,_utils__WEBPACK_IMPORTED_MODULE_14__.pickBy)(components, function (_ref4) {\n var value = _ref4.value;\n return !value.hasOwnProperty(\'__autocomplete_componentName\');\n }),\n initialState: lastStateRef.current\n }, updatedOptions);\n runReactives();\n runEffects();\n autocomplete.value.refresh().then(function () {\n scheduleRender(lastStateRef.current);\n });\n }\n function setIsModalOpen(value) {\n requestAnimationFrame(function () {\n var prevValue = props.value.core.environment.document.body.contains(dom.value.detachedOverlay);\n if (value === prevValue) {\n return;\n }\n if (value) {\n props.value.core.environment.document.body.appendChild(dom.value.detachedOverlay);\n props.value.core.environment.document.body.classList.add(\'aa-Detached\');\n dom.value.input.focus();\n } else {\n props.value.core.environment.document.body.removeChild(dom.value.detachedOverlay);\n props.value.core.environment.document.body.classList.remove(\'aa-Detached\');\n }\n });\n }\n true ? (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_15__.warn)(instancesCount === 0, "Autocomplete doesn\'t support multiple instances running at the same time. Make sure to destroy the previous instance before creating a new one.\\n\\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-destroy") : 0;\n instancesCount++;\n return _objectSpread(_objectSpread({}, autocompleteScopeApi), {}, {\n update: update,\n destroy: destroy\n });\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/autocomplete.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/components/Highlight.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createHighlightComponent\": () => (/* binding */ createHighlightComponent)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_preset_algolia__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-preset-algolia */ \"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitHighlight.js\");\n\nfunction createHighlightComponent(_ref) {\n var createElement = _ref.createElement,\n Fragment = _ref.Fragment;\n function Highlight(_ref2) {\n var hit = _ref2.hit,\n attribute = _ref2.attribute,\n _ref2$tagName = _ref2.tagName,\n tagName = _ref2$tagName === void 0 ? 'mark' : _ref2$tagName;\n return createElement(Fragment, {}, (0,_algolia_autocomplete_preset_algolia__WEBPACK_IMPORTED_MODULE_0__.parseAlgoliaHitHighlight)({\n hit: hit,\n attribute: attribute\n }).map(function (x, index) {\n return x.isHighlighted ? createElement(tagName, {\n key: index\n }, x.value) : x.value;\n }));\n }\n Highlight.__autocomplete_componentName = 'Highlight';\n return Highlight;\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/components/Highlight.js?")},"./node_modules/@algolia/autocomplete-js/dist/esm/components/ReverseHighlight.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createReverseHighlightComponent\": () => (/* binding */ createReverseHighlightComponent)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_preset_algolia__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-preset-algolia */ \"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitReverseHighlight.js\");\n\nfunction createReverseHighlightComponent(_ref) {\n var createElement = _ref.createElement,\n Fragment = _ref.Fragment;\n function ReverseHighlight(_ref2) {\n var hit = _ref2.hit,\n attribute = _ref2.attribute,\n _ref2$tagName = _ref2.tagName,\n tagName = _ref2$tagName === void 0 ? 'mark' : _ref2$tagName;\n return createElement(Fragment, {}, (0,_algolia_autocomplete_preset_algolia__WEBPACK_IMPORTED_MODULE_0__.parseAlgoliaHitReverseHighlight)({\n hit: hit,\n attribute: attribute\n }).map(function (x, index) {\n return x.isHighlighted ? createElement(tagName, {\n key: index\n }, x.value) : x.value;\n }));\n }\n ReverseHighlight.__autocomplete_componentName = 'ReverseHighlight';\n return ReverseHighlight;\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/components/ReverseHighlight.js?")},"./node_modules/@algolia/autocomplete-js/dist/esm/components/ReverseSnippet.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createReverseSnippetComponent\": () => (/* binding */ createReverseSnippetComponent)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_preset_algolia__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-preset-algolia */ \"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitReverseSnippet.js\");\n\nfunction createReverseSnippetComponent(_ref) {\n var createElement = _ref.createElement,\n Fragment = _ref.Fragment;\n function ReverseSnippet(_ref2) {\n var hit = _ref2.hit,\n attribute = _ref2.attribute,\n _ref2$tagName = _ref2.tagName,\n tagName = _ref2$tagName === void 0 ? 'mark' : _ref2$tagName;\n return createElement(Fragment, {}, (0,_algolia_autocomplete_preset_algolia__WEBPACK_IMPORTED_MODULE_0__.parseAlgoliaHitReverseSnippet)({\n hit: hit,\n attribute: attribute\n }).map(function (x, index) {\n return x.isHighlighted ? createElement(tagName, {\n key: index\n }, x.value) : x.value;\n }));\n }\n ReverseSnippet.__autocomplete_componentName = 'ReverseSnippet';\n return ReverseSnippet;\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/components/ReverseSnippet.js?")},"./node_modules/@algolia/autocomplete-js/dist/esm/components/Snippet.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createSnippetComponent\": () => (/* binding */ createSnippetComponent)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_preset_algolia__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-preset-algolia */ \"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitSnippet.js\");\n\nfunction createSnippetComponent(_ref) {\n var createElement = _ref.createElement,\n Fragment = _ref.Fragment;\n function Snippet(_ref2) {\n var hit = _ref2.hit,\n attribute = _ref2.attribute,\n _ref2$tagName = _ref2.tagName,\n tagName = _ref2$tagName === void 0 ? 'mark' : _ref2$tagName;\n return createElement(Fragment, {}, (0,_algolia_autocomplete_preset_algolia__WEBPACK_IMPORTED_MODULE_0__.parseAlgoliaHitSnippet)({\n hit: hit,\n attribute: attribute\n }).map(function (x, index) {\n return x.isHighlighted ? createElement(tagName, {\n key: index\n }, x.value) : x.value;\n }));\n }\n Snippet.__autocomplete_componentName = 'Snippet';\n return Snippet;\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/components/Snippet.js?")},"./node_modules/@algolia/autocomplete-js/dist/esm/createAutocompleteDom.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createAutocompleteDom\": () => (/* binding */ createAutocompleteDom)\n/* harmony export */ });\n/* harmony import */ var _elements__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./elements */ \"./node_modules/@algolia/autocomplete-js/dist/esm/elements/SearchIcon.js\");\n/* harmony import */ var _elements__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./elements */ \"./node_modules/@algolia/autocomplete-js/dist/esm/elements/ClearIcon.js\");\n/* harmony import */ var _elements__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./elements */ \"./node_modules/@algolia/autocomplete-js/dist/esm/elements/LoadingIcon.js\");\n/* harmony import */ var _elements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./elements */ \"./node_modules/@algolia/autocomplete-js/dist/esm/elements/Input.js\");\n/* harmony import */ var _getCreateDomElement__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getCreateDomElement */ \"./node_modules/@algolia/autocomplete-js/dist/esm/getCreateDomElement.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\n\n\nfunction createAutocompleteDom(_ref) {\n var autocomplete = _ref.autocomplete,\n autocompleteScopeApi = _ref.autocompleteScopeApi,\n classNames = _ref.classNames,\n environment = _ref.environment,\n isDetached = _ref.isDetached,\n _ref$placeholder = _ref.placeholder,\n placeholder = _ref$placeholder === void 0 ? 'Search' : _ref$placeholder,\n propGetters = _ref.propGetters,\n setIsModalOpen = _ref.setIsModalOpen,\n state = _ref.state,\n translations = _ref.translations;\n var createDomElement = (0,_getCreateDomElement__WEBPACK_IMPORTED_MODULE_0__.getCreateDomElement)(environment);\n var rootProps = propGetters.getRootProps(_objectSpread({\n state: state,\n props: autocomplete.getRootProps({})\n }, autocompleteScopeApi));\n var root = createDomElement('div', _objectSpread({\n class: classNames.root\n }, rootProps));\n var detachedContainer = createDomElement('div', {\n class: classNames.detachedContainer,\n onMouseDown: function onMouseDown(event) {\n event.stopPropagation();\n }\n });\n var detachedOverlay = createDomElement('div', {\n class: classNames.detachedOverlay,\n children: [detachedContainer],\n onMouseDown: function onMouseDown() {\n setIsModalOpen(false);\n autocomplete.setIsOpen(false);\n }\n });\n var labelProps = propGetters.getLabelProps(_objectSpread({\n state: state,\n props: autocomplete.getLabelProps({})\n }, autocompleteScopeApi));\n var submitButton = createDomElement('button', {\n class: classNames.submitButton,\n type: 'submit',\n title: translations.submitButtonTitle,\n children: [(0,_elements__WEBPACK_IMPORTED_MODULE_1__.SearchIcon)({\n environment: environment\n })]\n });\n var label = createDomElement('label', _objectSpread({\n class: classNames.label,\n children: [submitButton]\n }, labelProps));\n var clearButton = createDomElement('button', {\n class: classNames.clearButton,\n type: 'reset',\n title: translations.clearButtonTitle,\n children: [(0,_elements__WEBPACK_IMPORTED_MODULE_2__.ClearIcon)({\n environment: environment\n })]\n });\n var loadingIndicator = createDomElement('div', {\n class: classNames.loadingIndicator,\n children: [(0,_elements__WEBPACK_IMPORTED_MODULE_3__.LoadingIcon)({\n environment: environment\n })]\n });\n var input = (0,_elements__WEBPACK_IMPORTED_MODULE_4__.Input)({\n class: classNames.input,\n environment: environment,\n state: state,\n getInputProps: propGetters.getInputProps,\n getInputPropsCore: autocomplete.getInputProps,\n autocompleteScopeApi: autocompleteScopeApi,\n isDetached: isDetached\n });\n var inputWrapperPrefix = createDomElement('div', {\n class: classNames.inputWrapperPrefix,\n children: [label, loadingIndicator]\n });\n var inputWrapperSuffix = createDomElement('div', {\n class: classNames.inputWrapperSuffix,\n children: [clearButton]\n });\n var inputWrapper = createDomElement('div', {\n class: classNames.inputWrapper,\n children: [input]\n });\n var formProps = propGetters.getFormProps(_objectSpread({\n state: state,\n props: autocomplete.getFormProps({\n inputElement: input\n })\n }, autocompleteScopeApi));\n var form = createDomElement('form', _objectSpread({\n class: classNames.form,\n children: [inputWrapperPrefix, inputWrapper, inputWrapperSuffix]\n }, formProps));\n var panelProps = propGetters.getPanelProps(_objectSpread({\n state: state,\n props: autocomplete.getPanelProps({})\n }, autocompleteScopeApi));\n var panel = createDomElement('div', _objectSpread({\n class: classNames.panel\n }, panelProps));\n var detachedSearchButtonQuery = createDomElement('div', {\n class: classNames.detachedSearchButtonQuery,\n textContent: state.query\n });\n var detachedSearchButtonPlaceholder = createDomElement('div', {\n class: classNames.detachedSearchButtonPlaceholder,\n hidden: Boolean(state.query),\n textContent: placeholder\n });\n if (false) {}\n if (isDetached) {\n var detachedSearchButtonIcon = createDomElement('div', {\n class: classNames.detachedSearchButtonIcon,\n children: [(0,_elements__WEBPACK_IMPORTED_MODULE_1__.SearchIcon)({\n environment: environment\n })]\n });\n var detachedSearchButton = createDomElement('button', {\n type: 'button',\n class: classNames.detachedSearchButton,\n onClick: function onClick() {\n setIsModalOpen(true);\n },\n children: [detachedSearchButtonIcon, detachedSearchButtonPlaceholder, detachedSearchButtonQuery]\n });\n var detachedCancelButton = createDomElement('button', {\n type: 'button',\n class: classNames.detachedCancelButton,\n textContent: translations.detachedCancelButtonText,\n // Prevent `onTouchStart` from closing the panel\n // since it should be initiated by `onClick` only\n onTouchStart: function onTouchStart(event) {\n event.stopPropagation();\n },\n onClick: function onClick() {\n autocomplete.setIsOpen(false);\n setIsModalOpen(false);\n }\n });\n var detachedFormContainer = createDomElement('div', {\n class: classNames.detachedFormContainer,\n children: [form, detachedCancelButton]\n });\n detachedContainer.appendChild(detachedFormContainer);\n root.appendChild(detachedSearchButton);\n } else {\n root.appendChild(form);\n }\n return {\n detachedContainer: detachedContainer,\n detachedOverlay: detachedOverlay,\n detachedSearchButtonQuery: detachedSearchButtonQuery,\n detachedSearchButtonPlaceholder: detachedSearchButtonPlaceholder,\n inputWrapper: inputWrapper,\n input: input,\n root: root,\n form: form,\n label: label,\n submitButton: submitButton,\n clearButton: clearButton,\n loadingIndicator: loadingIndicator,\n panel: panel\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/createAutocompleteDom.js?")},"./node_modules/@algolia/autocomplete-js/dist/esm/createEffectWrapper.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createEffectWrapper": () => (/* binding */ createEffectWrapper)\n/* harmony export */ });\nfunction createEffectWrapper() {\n var effects = [];\n var cleanups = [];\n function runEffect(fn) {\n effects.push(fn);\n var effectCleanup = fn();\n cleanups.push(effectCleanup);\n }\n return {\n runEffect: runEffect,\n cleanupEffects: function cleanupEffects() {\n var currentCleanups = cleanups;\n cleanups = [];\n currentCleanups.forEach(function (cleanup) {\n cleanup();\n });\n },\n runEffects: function runEffects() {\n var currentEffects = effects;\n effects = [];\n currentEffects.forEach(function (effect) {\n runEffect(effect);\n });\n }\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/createEffectWrapper.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/createReactiveWrapper.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createReactiveWrapper": () => (/* binding */ createReactiveWrapper)\n/* harmony export */ });\nfunction createReactiveWrapper() {\n var reactives = [];\n return {\n reactive: function reactive(value) {\n var current = value();\n var reactive = {\n _fn: value,\n _ref: {\n current: current\n },\n get value() {\n return this._ref.current;\n },\n set value(value) {\n this._ref.current = value;\n }\n };\n reactives.push(reactive);\n return reactive;\n },\n runReactives: function runReactives() {\n reactives.forEach(function (value) {\n value._ref.current = value._fn();\n });\n }\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/createReactiveWrapper.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/elements/ClearIcon.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ClearIcon\": () => (/* binding */ ClearIcon)\n/* harmony export */ });\nvar ClearIcon = function ClearIcon(_ref) {\n var environment = _ref.environment;\n var element = environment.document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n element.setAttribute('class', 'aa-ClearIcon');\n element.setAttribute('viewBox', '0 0 24 24');\n element.setAttribute('width', '18');\n element.setAttribute('height', '18');\n element.setAttribute('fill', 'currentColor');\n var path = environment.document.createElementNS('http://www.w3.org/2000/svg', 'path');\n path.setAttribute('d', 'M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z');\n element.appendChild(path);\n return element;\n};\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/elements/ClearIcon.js?")},"./node_modules/@algolia/autocomplete-js/dist/esm/elements/Input.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "Input": () => (/* binding */ Input)\n/* harmony export */ });\n/* harmony import */ var _getCreateDomElement__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../getCreateDomElement */ "./node_modules/@algolia/autocomplete-js/dist/esm/getCreateDomElement.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "./node_modules/@algolia/autocomplete-js/dist/esm/utils/setProperties.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nvar _excluded = ["autocompleteScopeApi", "environment", "classNames", "getInputProps", "getInputPropsCore", "isDetached", "state"];\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n\nvar Input = function Input(_ref) {\n var autocompleteScopeApi = _ref.autocompleteScopeApi,\n environment = _ref.environment,\n classNames = _ref.classNames,\n getInputProps = _ref.getInputProps,\n getInputPropsCore = _ref.getInputPropsCore,\n isDetached = _ref.isDetached,\n state = _ref.state,\n props = _objectWithoutProperties(_ref, _excluded);\n var createDomElement = (0,_getCreateDomElement__WEBPACK_IMPORTED_MODULE_0__.getCreateDomElement)(environment);\n var element = createDomElement(\'input\', props);\n var inputProps = getInputProps(_objectSpread({\n state: state,\n props: getInputPropsCore({\n inputElement: element\n }),\n inputElement: element\n }, autocompleteScopeApi));\n (0,_utils__WEBPACK_IMPORTED_MODULE_1__.setProperties)(element, _objectSpread(_objectSpread({}, inputProps), {}, {\n onKeyDown: function onKeyDown(event) {\n // In detached mode we don\'t want to close the panel when hitting `Tab`.\n if (isDetached && event.key === \'Tab\') {\n return;\n }\n inputProps.onKeyDown(event);\n }\n }));\n return element;\n};\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/elements/Input.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/elements/LoadingIcon.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "LoadingIcon": () => (/* binding */ LoadingIcon)\n/* harmony export */ });\nvar LoadingIcon = function LoadingIcon(_ref) {\n var environment = _ref.environment;\n var element = environment.document.createElementNS(\'http://www.w3.org/2000/svg\', \'svg\');\n element.setAttribute(\'class\', \'aa-LoadingIcon\');\n element.setAttribute(\'viewBox\', \'0 0 100 100\');\n element.setAttribute(\'width\', \'20\');\n element.setAttribute(\'height\', \'20\');\n element.innerHTML = "\\n \\n";\n return element;\n};\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/elements/LoadingIcon.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/elements/SearchIcon.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"SearchIcon\": () => (/* binding */ SearchIcon)\n/* harmony export */ });\nvar SearchIcon = function SearchIcon(_ref) {\n var environment = _ref.environment;\n var element = environment.document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n element.setAttribute('class', 'aa-SubmitIcon');\n element.setAttribute('viewBox', '0 0 24 24');\n element.setAttribute('width', '20');\n element.setAttribute('height', '20');\n element.setAttribute('fill', 'currentColor');\n var path = environment.document.createElementNS('http://www.w3.org/2000/svg', 'path');\n path.setAttribute('d', 'M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z');\n element.appendChild(path);\n return element;\n};\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/elements/SearchIcon.js?")},"./node_modules/@algolia/autocomplete-js/dist/esm/getCreateDomElement.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getCreateDomElement": () => (/* binding */ getCreateDomElement)\n/* harmony export */ });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-js/dist/esm/utils/setProperties.js");\nvar _excluded = ["children"];\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction getCreateDomElement(environment) {\n return function createDomElement(tagName, _ref) {\n var _ref$children = _ref.children,\n children = _ref$children === void 0 ? [] : _ref$children,\n props = _objectWithoutProperties(_ref, _excluded);\n var element = environment.document.createElement(tagName);\n (0,_utils__WEBPACK_IMPORTED_MODULE_0__.setProperties)(element, props);\n element.append.apply(element, _toConsumableArray(children));\n return element;\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/getCreateDomElement.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/getDefaultOptions.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getDefaultOptions": () => (/* binding */ getDefaultOptions)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/invariant.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/warn.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/generateAutocompleteId.js");\n/* harmony import */ var preact__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! preact */ "./node_modules/preact/dist/preact.module.js");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components */ "./node_modules/@algolia/autocomplete-js/dist/esm/components/Highlight.js");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components */ "./node_modules/@algolia/autocomplete-js/dist/esm/components/ReverseHighlight.js");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components */ "./node_modules/@algolia/autocomplete-js/dist/esm/components/ReverseSnippet.js");\n/* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components */ "./node_modules/@algolia/autocomplete-js/dist/esm/components/Snippet.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-js/dist/esm/utils/getHTMLElement.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-js/dist/esm/utils/mergeClassNames.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nvar _excluded = ["classNames", "container", "getEnvironmentProps", "getFormProps", "getInputProps", "getItemProps", "getLabelProps", "getListProps", "getPanelProps", "getRootProps", "panelContainer", "panelPlacement", "render", "renderNoResults", "renderer", "detachedMediaQuery", "components", "translations"];\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n\n\n\nvar defaultClassNames = {\n clearButton: \'aa-ClearButton\',\n detachedCancelButton: \'aa-DetachedCancelButton\',\n detachedContainer: \'aa-DetachedContainer\',\n detachedFormContainer: \'aa-DetachedFormContainer\',\n detachedOverlay: \'aa-DetachedOverlay\',\n detachedSearchButton: \'aa-DetachedSearchButton\',\n detachedSearchButtonIcon: \'aa-DetachedSearchButtonIcon\',\n detachedSearchButtonPlaceholder: \'aa-DetachedSearchButtonPlaceholder\',\n detachedSearchButtonQuery: \'aa-DetachedSearchButtonQuery\',\n form: \'aa-Form\',\n input: \'aa-Input\',\n inputWrapper: \'aa-InputWrapper\',\n inputWrapperPrefix: \'aa-InputWrapperPrefix\',\n inputWrapperSuffix: \'aa-InputWrapperSuffix\',\n item: \'aa-Item\',\n label: \'aa-Label\',\n list: \'aa-List\',\n loadingIndicator: \'aa-LoadingIndicator\',\n panel: \'aa-Panel\',\n panelLayout: \'aa-PanelLayout aa-Panel--scrollable\',\n root: \'aa-Autocomplete\',\n source: \'aa-Source\',\n sourceFooter: \'aa-SourceFooter\',\n sourceHeader: \'aa-SourceHeader\',\n sourceNoResults: \'aa-SourceNoResults\',\n submitButton: \'aa-SubmitButton\'\n};\nvar defaultRender = function defaultRender(_ref, root) {\n var children = _ref.children,\n render = _ref.render;\n render(children, root);\n};\nvar defaultRenderer = {\n createElement: preact__WEBPACK_IMPORTED_MODULE_0__.createElement,\n Fragment: preact__WEBPACK_IMPORTED_MODULE_0__.Fragment,\n render: preact__WEBPACK_IMPORTED_MODULE_0__.render\n};\nfunction getDefaultOptions(options) {\n var _core$id;\n var classNames = options.classNames,\n container = options.container,\n getEnvironmentProps = options.getEnvironmentProps,\n getFormProps = options.getFormProps,\n getInputProps = options.getInputProps,\n getItemProps = options.getItemProps,\n getLabelProps = options.getLabelProps,\n getListProps = options.getListProps,\n getPanelProps = options.getPanelProps,\n getRootProps = options.getRootProps,\n panelContainer = options.panelContainer,\n panelPlacement = options.panelPlacement,\n render = options.render,\n renderNoResults = options.renderNoResults,\n renderer = options.renderer,\n detachedMediaQuery = options.detachedMediaQuery,\n components = options.components,\n translations = options.translations,\n core = _objectWithoutProperties(options, _excluded);\n\n /* eslint-disable no-restricted-globals */\n var environment = typeof window !== \'undefined\' ? window : {};\n /* eslint-enable no-restricted-globals */\n var containerElement = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.getHTMLElement)(environment, container);\n (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_2__.invariant)(containerElement.tagName !== \'INPUT\', \'The `container` option does not support `input` elements. You need to change the container to a `div`.\');\n true ? (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__.warn)(!(render && renderer && !(renderer !== null && renderer !== void 0 && renderer.render)), "You provided the `render` option but did not provide a `renderer.render`. Since v1.6.0, you can provide a `render` function directly in `renderer`." + "\\nTo get rid of this warning, do any of the following depending on your use case." + "\\n- If you are using the `render` option only to override Autocomplete\'s default `render` function, pass the `render` function into `renderer` and remove the `render` option." + \'\\n- If you are using the `render` option to customize the layout, pass your `render` function into `renderer` and use it from the provided parameters of the `render` option.\' + \'\\n- If you are using the `render` option to work with React 18, pass an empty `render` function into `renderer`.\' + \'\\nSee https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-render\') : 0;\n true ? (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_3__.warn)(!renderer || render || renderer.Fragment && renderer.createElement && renderer.render, "You provided an incomplete `renderer` (missing: ".concat([!(renderer !== null && renderer !== void 0 && renderer.createElement) && \'`renderer.createElement`\', !(renderer !== null && renderer !== void 0 && renderer.Fragment) && \'`renderer.Fragment`\', !(renderer !== null && renderer !== void 0 && renderer.render) && \'`renderer.render`\'].filter(Boolean).join(\', \'), "). This can cause rendering issues.") + \'\\nSee https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete/#param-renderer\') : 0;\n var defaultedRenderer = _objectSpread(_objectSpread({}, defaultRenderer), renderer);\n var defaultComponents = {\n Highlight: (0,_components__WEBPACK_IMPORTED_MODULE_4__.createHighlightComponent)(defaultedRenderer),\n ReverseHighlight: (0,_components__WEBPACK_IMPORTED_MODULE_5__.createReverseHighlightComponent)(defaultedRenderer),\n ReverseSnippet: (0,_components__WEBPACK_IMPORTED_MODULE_6__.createReverseSnippetComponent)(defaultedRenderer),\n Snippet: (0,_components__WEBPACK_IMPORTED_MODULE_7__.createSnippetComponent)(defaultedRenderer)\n };\n var defaultTranslations = {\n clearButtonTitle: \'Clear\',\n detachedCancelButtonText: \'Cancel\',\n submitButtonTitle: \'Submit\'\n };\n return {\n renderer: {\n classNames: (0,_utils__WEBPACK_IMPORTED_MODULE_8__.mergeClassNames)(defaultClassNames, classNames !== null && classNames !== void 0 ? classNames : {}),\n container: containerElement,\n getEnvironmentProps: getEnvironmentProps !== null && getEnvironmentProps !== void 0 ? getEnvironmentProps : function (_ref2) {\n var props = _ref2.props;\n return props;\n },\n getFormProps: getFormProps !== null && getFormProps !== void 0 ? getFormProps : function (_ref3) {\n var props = _ref3.props;\n return props;\n },\n getInputProps: getInputProps !== null && getInputProps !== void 0 ? getInputProps : function (_ref4) {\n var props = _ref4.props;\n return props;\n },\n getItemProps: getItemProps !== null && getItemProps !== void 0 ? getItemProps : function (_ref5) {\n var props = _ref5.props;\n return props;\n },\n getLabelProps: getLabelProps !== null && getLabelProps !== void 0 ? getLabelProps : function (_ref6) {\n var props = _ref6.props;\n return props;\n },\n getListProps: getListProps !== null && getListProps !== void 0 ? getListProps : function (_ref7) {\n var props = _ref7.props;\n return props;\n },\n getPanelProps: getPanelProps !== null && getPanelProps !== void 0 ? getPanelProps : function (_ref8) {\n var props = _ref8.props;\n return props;\n },\n getRootProps: getRootProps !== null && getRootProps !== void 0 ? getRootProps : function (_ref9) {\n var props = _ref9.props;\n return props;\n },\n panelContainer: panelContainer ? (0,_utils__WEBPACK_IMPORTED_MODULE_1__.getHTMLElement)(environment, panelContainer) : environment.document.body,\n panelPlacement: panelPlacement !== null && panelPlacement !== void 0 ? panelPlacement : \'input-wrapper-width\',\n render: render !== null && render !== void 0 ? render : defaultRender,\n renderNoResults: renderNoResults,\n renderer: defaultedRenderer,\n detachedMediaQuery: detachedMediaQuery !== null && detachedMediaQuery !== void 0 ? detachedMediaQuery : getComputedStyle(environment.document.documentElement).getPropertyValue(\'--aa-detached-media-query\'),\n components: _objectSpread(_objectSpread({}, defaultComponents), components),\n translations: _objectSpread(_objectSpread({}, defaultTranslations), translations)\n },\n core: _objectSpread(_objectSpread({}, core), {}, {\n id: (_core$id = core.id) !== null && _core$id !== void 0 ? _core$id : (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_9__.generateAutocompleteId)(),\n environment: environment\n })\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/getDefaultOptions.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/getPanelPlacementStyle.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"getPanelPlacementStyle\": () => (/* binding */ getPanelPlacementStyle)\n/* harmony export */ });\nfunction getPanelPlacementStyle(_ref) {\n var panelPlacement = _ref.panelPlacement,\n container = _ref.container,\n form = _ref.form,\n environment = _ref.environment;\n var containerRect = container.getBoundingClientRect();\n // Some browsers have specificities to retrieve the document scroll position.\n // See https://stackoverflow.com/a/28633515/9940315\n var scrollTop = environment.pageYOffset || environment.document.documentElement.scrollTop || environment.document.body.scrollTop || 0;\n var top = scrollTop + containerRect.top + containerRect.height;\n switch (panelPlacement) {\n case 'start':\n {\n return {\n top: top,\n left: containerRect.left\n };\n }\n case 'end':\n {\n return {\n top: top,\n right: environment.document.documentElement.clientWidth - (containerRect.left + containerRect.width)\n };\n }\n case 'full-width':\n {\n return {\n top: top,\n left: 0,\n right: 0,\n width: 'unset',\n maxWidth: 'unset'\n };\n }\n case 'input-wrapper-width':\n {\n var formRect = form.getBoundingClientRect();\n return {\n top: top,\n left: formRect.left,\n right: environment.document.documentElement.clientWidth - (formRect.left + formRect.width),\n width: 'unset',\n maxWidth: 'unset'\n };\n }\n default:\n {\n throw new Error(\"[Autocomplete] The `panelPlacement` value \".concat(JSON.stringify(panelPlacement), \" is not valid.\"));\n }\n }\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/getPanelPlacementStyle.js?")},"./node_modules/@algolia/autocomplete-js/dist/esm/render.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "renderPanel": () => (/* binding */ renderPanel),\n/* harmony export */ "renderSearchBox": () => (/* binding */ renderSearchBox)\n/* harmony export */ });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./node_modules/@algolia/autocomplete-js/dist/esm/utils/setProperties.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n/** @jsxRuntime classic */\n/** @jsx renderer.createElement */\n\n\nfunction renderSearchBox(_ref) {\n var autocomplete = _ref.autocomplete,\n autocompleteScopeApi = _ref.autocompleteScopeApi,\n dom = _ref.dom,\n propGetters = _ref.propGetters,\n state = _ref.state;\n (0,_utils__WEBPACK_IMPORTED_MODULE_0__.setPropertiesWithoutEvents)(dom.root, propGetters.getRootProps(_objectSpread({\n state: state,\n props: autocomplete.getRootProps({})\n }, autocompleteScopeApi)));\n (0,_utils__WEBPACK_IMPORTED_MODULE_0__.setPropertiesWithoutEvents)(dom.input, propGetters.getInputProps(_objectSpread({\n state: state,\n props: autocomplete.getInputProps({\n inputElement: dom.input\n }),\n inputElement: dom.input\n }, autocompleteScopeApi)));\n (0,_utils__WEBPACK_IMPORTED_MODULE_0__.setProperties)(dom.label, {\n hidden: state.status === \'stalled\'\n });\n (0,_utils__WEBPACK_IMPORTED_MODULE_0__.setProperties)(dom.loadingIndicator, {\n hidden: state.status !== \'stalled\'\n });\n (0,_utils__WEBPACK_IMPORTED_MODULE_0__.setProperties)(dom.clearButton, {\n hidden: !state.query\n });\n (0,_utils__WEBPACK_IMPORTED_MODULE_0__.setProperties)(dom.detachedSearchButtonQuery, {\n textContent: state.query\n });\n (0,_utils__WEBPACK_IMPORTED_MODULE_0__.setProperties)(dom.detachedSearchButtonPlaceholder, {\n hidden: Boolean(state.query)\n });\n}\nfunction renderPanel(render, _ref2) {\n var autocomplete = _ref2.autocomplete,\n autocompleteScopeApi = _ref2.autocompleteScopeApi,\n classNames = _ref2.classNames,\n html = _ref2.html,\n dom = _ref2.dom,\n panelContainer = _ref2.panelContainer,\n propGetters = _ref2.propGetters,\n state = _ref2.state,\n components = _ref2.components,\n renderer = _ref2.renderer;\n if (!state.isOpen) {\n if (panelContainer.contains(dom.panel)) {\n panelContainer.removeChild(dom.panel);\n }\n return;\n }\n\n // We add the panel element to the DOM when it\'s not yet appended and that the\n // items are fetched.\n if (!panelContainer.contains(dom.panel) && state.status !== \'loading\') {\n panelContainer.appendChild(dom.panel);\n }\n dom.panel.classList.toggle(\'aa-Panel--stalled\', state.status === \'stalled\');\n var sections = state.collections.filter(function (_ref3) {\n var source = _ref3.source,\n items = _ref3.items;\n return source.templates.noResults || items.length > 0;\n }).map(function (_ref4, sourceIndex) {\n var source = _ref4.source,\n items = _ref4.items;\n return renderer.createElement("section", {\n key: sourceIndex,\n className: classNames.source,\n "data-autocomplete-source-id": source.sourceId\n }, source.templates.header && renderer.createElement("div", {\n className: classNames.sourceHeader\n }, source.templates.header({\n components: components,\n createElement: renderer.createElement,\n Fragment: renderer.Fragment,\n items: items,\n source: source,\n state: state,\n html: html\n })), source.templates.noResults && items.length === 0 ? renderer.createElement("div", {\n className: classNames.sourceNoResults\n }, source.templates.noResults({\n components: components,\n createElement: renderer.createElement,\n Fragment: renderer.Fragment,\n source: source,\n state: state,\n html: html\n })) : renderer.createElement("ul", _extends({\n className: classNames.list\n }, propGetters.getListProps(_objectSpread({\n state: state,\n props: autocomplete.getListProps({\n sourceIndex: sourceIndex\n })\n }, autocompleteScopeApi))), items.map(function (item) {\n var itemProps = autocomplete.getItemProps({\n item: item,\n source: source,\n sourceIndex: sourceIndex\n });\n return renderer.createElement("li", _extends({\n key: itemProps.id,\n className: classNames.item\n }, propGetters.getItemProps(_objectSpread({\n state: state,\n props: itemProps\n }, autocompleteScopeApi))), source.templates.item({\n components: components,\n createElement: renderer.createElement,\n Fragment: renderer.Fragment,\n item: item,\n state: state,\n html: html\n }));\n })), source.templates.footer && renderer.createElement("div", {\n className: classNames.sourceFooter\n }, source.templates.footer({\n components: components,\n createElement: renderer.createElement,\n Fragment: renderer.Fragment,\n items: items,\n source: source,\n state: state,\n html: html\n })));\n });\n var children = renderer.createElement(renderer.Fragment, null, renderer.createElement("div", {\n className: classNames.panelLayout\n }, sections), renderer.createElement("div", {\n className: "aa-GradientBottom"\n }));\n var elements = sections.reduce(function (acc, current) {\n acc[current.props[\'data-autocomplete-source-id\']] = current;\n return acc;\n }, {});\n render(_objectSpread(_objectSpread({\n children: children,\n state: state,\n sections: sections,\n elements: elements\n }, renderer), {}, {\n components: components,\n html: html\n }, autocompleteScopeApi), dom.panel);\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/render.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/requesters/createAlgoliaRequester.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createAlgoliaRequester": () => (/* binding */ createAlgoliaRequester)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_preset_algolia__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-preset-algolia */ "./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/requester/createRequester.js");\n/* harmony import */ var _algolia_autocomplete_preset_algolia__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @algolia/autocomplete-preset-algolia */ "./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/search/fetchAlgoliaResults.js");\n/* harmony import */ var _userAgents__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../userAgents */ "./node_modules/@algolia/autocomplete-js/dist/esm/userAgents.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\n\nvar createAlgoliaRequester = (0,_algolia_autocomplete_preset_algolia__WEBPACK_IMPORTED_MODULE_0__.createRequester)(function (params) {\n return (0,_algolia_autocomplete_preset_algolia__WEBPACK_IMPORTED_MODULE_1__.fetchAlgoliaResults)(_objectSpread(_objectSpread({}, params), {}, {\n userAgents: _userAgents__WEBPACK_IMPORTED_MODULE_2__.userAgents\n }));\n}, \'algolia\');\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/requesters/createAlgoliaRequester.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/requesters/getAlgoliaFacets.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getAlgoliaFacets": () => (/* binding */ getAlgoliaFacets)\n/* harmony export */ });\n/* harmony import */ var _createAlgoliaRequester__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createAlgoliaRequester */ "./node_modules/@algolia/autocomplete-js/dist/esm/requesters/createAlgoliaRequester.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\n\n/**\n * Retrieves Algolia facet hits from multiple indices.\n */\nfunction getAlgoliaFacets(requestParams) {\n var requester = (0,_createAlgoliaRequester__WEBPACK_IMPORTED_MODULE_0__.createAlgoliaRequester)({\n transformResponse: function transformResponse(response) {\n return response.facetHits;\n }\n });\n var queries = requestParams.queries.map(function (query) {\n return _objectSpread(_objectSpread({}, query), {}, {\n type: \'facet\'\n });\n });\n return requester(_objectSpread(_objectSpread({}, requestParams), {}, {\n queries: queries\n }));\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/requesters/getAlgoliaFacets.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/requesters/getAlgoliaResults.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getAlgoliaResults": () => (/* binding */ getAlgoliaResults)\n/* harmony export */ });\n/* harmony import */ var _createAlgoliaRequester__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createAlgoliaRequester */ "./node_modules/@algolia/autocomplete-js/dist/esm/requesters/createAlgoliaRequester.js");\n\n\n/**\n * Retrieves Algolia results from multiple indices.\n */\nvar getAlgoliaResults = (0,_createAlgoliaRequester__WEBPACK_IMPORTED_MODULE_0__.createAlgoliaRequester)({\n transformResponse: function transformResponse(response) {\n return response.hits;\n }\n});\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/requesters/getAlgoliaResults.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/userAgents.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "userAgents": () => (/* binding */ userAgents)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/version.js");\n\nvar userAgents = [{\n segment: \'autocomplete-js\',\n version: _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.version\n}];\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/userAgents.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/utils/getHTMLElement.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getHTMLElement": () => (/* binding */ getHTMLElement)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/invariant.js");\n\nfunction getHTMLElement(environment, value) {\n if (typeof value === \'string\') {\n var element = environment.document.querySelector(value);\n (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.invariant)(element !== null, "The element ".concat(JSON.stringify(value), " is not in the document."));\n return element;\n }\n return value;\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/utils/getHTMLElement.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/utils/mergeClassNames.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"mergeClassNames\": () => (/* binding */ mergeClassNames)\n/* harmony export */ });\nfunction mergeClassNames() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n return values.reduce(function (acc, current) {\n Object.keys(current).forEach(function (key) {\n var accValue = acc[key];\n var currentValue = current[key];\n if (accValue !== currentValue) {\n acc[key] = [accValue, currentValue].filter(Boolean).join(' ');\n }\n });\n return acc;\n }, {});\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/utils/mergeClassNames.js?")},"./node_modules/@algolia/autocomplete-js/dist/esm/utils/mergeDeep.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "mergeDeep": () => (/* binding */ mergeDeep)\n/* harmony export */ });\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nvar isPlainObject = function isPlainObject(value) {\n return value && _typeof(value) === \'object\' && Object.prototype.toString.call(value) === \'[object Object]\';\n};\nfunction mergeDeep() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n return values.reduce(function (acc, current) {\n Object.keys(current).forEach(function (key) {\n var accValue = acc[key];\n var currentValue = current[key];\n if (Array.isArray(accValue) && Array.isArray(currentValue)) {\n acc[key] = accValue.concat.apply(accValue, _toConsumableArray(currentValue));\n } else if (isPlainObject(accValue) && isPlainObject(currentValue)) {\n acc[key] = mergeDeep(accValue, currentValue);\n } else {\n acc[key] = currentValue;\n }\n });\n return acc;\n }, {});\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/utils/mergeDeep.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/utils/pickBy.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "pickBy": () => (/* binding */ pickBy)\n/* harmony export */ });\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction pickBy(obj, predicate) {\n return Object.entries(obj).reduce(function (acc, _ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n if (predicate({\n key: key,\n value: value\n })) {\n return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, key, value));\n }\n return acc;\n }, {});\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/utils/pickBy.js?')},"./node_modules/@algolia/autocomplete-js/dist/esm/utils/setProperties.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"setProperties\": () => (/* binding */ setProperties),\n/* harmony export */ \"setPropertiesWithoutEvents\": () => (/* binding */ setPropertiesWithoutEvents),\n/* harmony export */ \"setProperty\": () => (/* binding */ setProperty)\n/* harmony export */ });\n/* eslint-disable */\n\n/**\n * Touch-specific event aliases\n *\n * See https://w3c.github.io/touch-events/#extensions-to-the-globaleventhandlers-mixin\n */\nvar TOUCH_EVENTS_ALIASES = ['ontouchstart', 'ontouchend', 'ontouchmove', 'ontouchcancel'];\n\n/*\n * Taken from Preact\n *\n * See https://github.com/preactjs/preact/blob/6ab49d9020740127577bf4af66bf63f4af7f9fee/src/diff/props.js#L58-L151\n */\n\nfunction setStyle(style, key, value) {\n if (value === null) {\n style[key] = '';\n } else if (typeof value !== 'number') {\n style[key] = value;\n } else {\n style[key] = value + 'px';\n }\n}\n\n/**\n * Proxy an event to hooked event handlers\n */\nfunction eventProxy(event) {\n this._listeners[event.type](event);\n}\n\n/**\n * Set a property value on a DOM node\n */\nfunction setProperty(dom, name, value) {\n var useCapture;\n var nameLower;\n var oldValue = dom[name];\n if (name === 'style') {\n if (typeof value == 'string') {\n dom.style = value;\n } else {\n if (value === null) {\n dom.style = '';\n } else {\n for (name in value) {\n if (!oldValue || value[name] !== oldValue[name]) {\n setStyle(dom.style, name, value[name]);\n }\n }\n }\n }\n }\n // Benchmark for comparison: https://esbench.com/bench/574c954bdb965b9a00965ac6\n else if (name[0] === 'o' && name[1] === 'n') {\n useCapture = name !== (name = name.replace(/Capture$/, ''));\n nameLower = name.toLowerCase();\n if (nameLower in dom || TOUCH_EVENTS_ALIASES.includes(nameLower)) name = nameLower;\n name = name.slice(2);\n if (!dom._listeners) dom._listeners = {};\n dom._listeners[name] = value;\n if (value) {\n if (!oldValue) dom.addEventListener(name, eventProxy, useCapture);\n } else {\n dom.removeEventListener(name, eventProxy, useCapture);\n }\n } else if (name !== 'list' && name !== 'tagName' &&\n // HTMLButtonElement.form and HTMLInputElement.form are read-only but can be set using\n // setAttribute\n name !== 'form' && name !== 'type' && name !== 'size' && name !== 'download' && name !== 'href' && name in dom) {\n dom[name] = value == null ? '' : value;\n } else if (typeof value != 'function' && name !== 'dangerouslySetInnerHTML') {\n if (value == null || value === false &&\n // ARIA-attributes have a different notion of boolean values.\n // The value `false` is different from the attribute not\n // existing on the DOM, so we can't remove it. For non-boolean\n // ARIA-attributes we could treat false as a removal, but the\n // amount of exceptions would cost us too many bytes. On top of\n // that other VDOM frameworks also always stringify `false`.\n !/^ar/.test(name)) {\n dom.removeAttribute(name);\n } else {\n dom.setAttribute(name, value);\n }\n }\n}\nfunction getNormalizedName(name) {\n switch (name) {\n case 'onChange':\n return 'onInput';\n default:\n return name;\n }\n}\nfunction setProperties(dom, props) {\n for (var name in props) {\n setProperty(dom, getNormalizedName(name), props[name]);\n }\n}\nfunction setPropertiesWithoutEvents(dom, props) {\n for (var name in props) {\n if (!(name[0] === 'o' && name[1] === 'n')) {\n setProperty(dom, getNormalizedName(name), props[name]);\n }\n }\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-js/dist/esm/utils/setProperties.js?")},"./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createAlgoliaInsightsPlugin.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createAlgoliaInsightsPlugin": () => (/* binding */ createAlgoliaInsightsPlugin)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/debounce.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/safelyRunOnBrowser.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/createRef.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/isEqual.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/noop.js");\n/* harmony import */ var _createClickedEvent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./createClickedEvent */ "./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createClickedEvent.js");\n/* harmony import */ var _createSearchInsightsApi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createSearchInsightsApi */ "./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createSearchInsightsApi.js");\n/* harmony import */ var _createViewedEvents__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./createViewedEvents */ "./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createViewedEvents.js");\n/* harmony import */ var _isAlgoliaInsightsHit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./isAlgoliaInsightsHit */ "./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/isAlgoliaInsightsHit.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\n\n\n\n\nvar VIEW_EVENT_DELAY = 400;\nvar ALGOLIA_INSIGHTS_VERSION = \'2.6.0\';\nvar ALGOLIA_INSIGHTS_SRC = "https://cdn.jsdelivr.net/npm/search-insights@".concat(ALGOLIA_INSIGHTS_VERSION, "/dist/search-insights.min.js");\nvar sendViewedObjectIDs = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.debounce)(function (_ref) {\n var onItemsChange = _ref.onItemsChange,\n items = _ref.items,\n insights = _ref.insights,\n state = _ref.state;\n onItemsChange({\n insights: insights,\n insightsEvents: (0,_createViewedEvents__WEBPACK_IMPORTED_MODULE_1__.createViewedEvents)({\n items: items\n }).map(function (event) {\n return _objectSpread({\n eventName: \'Items Viewed\'\n }, event);\n }),\n state: state\n });\n}, VIEW_EVENT_DELAY);\nfunction createAlgoliaInsightsPlugin(options) {\n var _getOptions = getOptions(options),\n providedInsightsClient = _getOptions.insightsClient,\n onItemsChange = _getOptions.onItemsChange,\n onSelectEvent = _getOptions.onSelect,\n onActiveEvent = _getOptions.onActive;\n var insightsClient = providedInsightsClient;\n if (!providedInsightsClient) {\n (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_2__.safelyRunOnBrowser)(function (_ref2) {\n var window = _ref2.window;\n var pointer = window.AlgoliaAnalyticsObject || \'aa\';\n if (typeof pointer === \'string\') {\n insightsClient = window[pointer];\n }\n if (!insightsClient) {\n window.AlgoliaAnalyticsObject = pointer;\n if (!window[pointer]) {\n window[pointer] = function () {\n if (!window[pointer].queue) {\n window[pointer].queue = [];\n }\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n window[pointer].queue.push(args);\n };\n }\n window[pointer].version = ALGOLIA_INSIGHTS_VERSION;\n insightsClient = window[pointer];\n loadInsights(window);\n }\n });\n }\n var insights = (0,_createSearchInsightsApi__WEBPACK_IMPORTED_MODULE_3__.createSearchInsightsApi)(insightsClient);\n var previousItems = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_4__.createRef)([]);\n var debouncedOnStateChange = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.debounce)(function (_ref3) {\n var state = _ref3.state;\n if (!state.isOpen) {\n return;\n }\n var items = state.collections.reduce(function (acc, current) {\n return [].concat(_toConsumableArray(acc), _toConsumableArray(current.items));\n }, []).filter(_isAlgoliaInsightsHit__WEBPACK_IMPORTED_MODULE_5__.isAlgoliaInsightsHit);\n if (!(0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_6__.isEqual)(previousItems.current.map(function (x) {\n return x.objectID;\n }), items.map(function (x) {\n return x.objectID;\n }))) {\n previousItems.current = items;\n if (items.length > 0) {\n sendViewedObjectIDs({\n onItemsChange: onItemsChange,\n items: items,\n insights: insights,\n state: state\n });\n }\n }\n }, 0);\n return {\n name: \'aa.algoliaInsightsPlugin\',\n subscribe: function subscribe(_ref4) {\n var setContext = _ref4.setContext,\n onSelect = _ref4.onSelect,\n onActive = _ref4.onActive;\n insightsClient(\'addAlgoliaAgent\', \'insights-plugin\');\n setContext({\n algoliaInsightsPlugin: {\n __algoliaSearchParameters: {\n clickAnalytics: true\n },\n insights: insights\n }\n });\n onSelect(function (_ref5) {\n var item = _ref5.item,\n state = _ref5.state,\n event = _ref5.event;\n if (!(0,_isAlgoliaInsightsHit__WEBPACK_IMPORTED_MODULE_5__.isAlgoliaInsightsHit)(item)) {\n return;\n }\n onSelectEvent({\n state: state,\n event: event,\n insights: insights,\n item: item,\n insightsEvents: [_objectSpread({\n eventName: \'Item Selected\'\n }, (0,_createClickedEvent__WEBPACK_IMPORTED_MODULE_7__.createClickedEvent)({\n item: item,\n items: previousItems.current\n }))]\n });\n });\n onActive(function (_ref6) {\n var item = _ref6.item,\n state = _ref6.state,\n event = _ref6.event;\n if (!(0,_isAlgoliaInsightsHit__WEBPACK_IMPORTED_MODULE_5__.isAlgoliaInsightsHit)(item)) {\n return;\n }\n onActiveEvent({\n state: state,\n event: event,\n insights: insights,\n item: item,\n insightsEvents: [_objectSpread({\n eventName: \'Item Active\'\n }, (0,_createClickedEvent__WEBPACK_IMPORTED_MODULE_7__.createClickedEvent)({\n item: item,\n items: previousItems.current\n }))]\n });\n });\n },\n onStateChange: function onStateChange(_ref7) {\n var state = _ref7.state;\n debouncedOnStateChange({\n state: state\n });\n },\n __autocomplete_pluginOptions: options\n };\n}\nfunction getOptions(options) {\n return _objectSpread({\n onItemsChange: function onItemsChange(_ref8) {\n var insights = _ref8.insights,\n insightsEvents = _ref8.insightsEvents;\n insights.viewedObjectIDs.apply(insights, _toConsumableArray(insightsEvents.map(function (event) {\n return _objectSpread(_objectSpread({}, event), {}, {\n algoliaSource: [].concat(_toConsumableArray(event.algoliaSource || []), [\'autocomplete-internal\'])\n });\n })));\n },\n onSelect: function onSelect(_ref9) {\n var insights = _ref9.insights,\n insightsEvents = _ref9.insightsEvents;\n insights.clickedObjectIDsAfterSearch.apply(insights, _toConsumableArray(insightsEvents.map(function (event) {\n return _objectSpread(_objectSpread({}, event), {}, {\n algoliaSource: [].concat(_toConsumableArray(event.algoliaSource || []), [\'autocomplete-internal\'])\n });\n })));\n },\n onActive: _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_8__.noop\n }, options);\n}\nfunction loadInsights(environment) {\n var errorMessage = "[Autocomplete]: Could not load search-insights.js. Please load it manually following https://alg.li/insights-autocomplete";\n try {\n var script = environment.document.createElement(\'script\');\n script.async = true;\n script.src = ALGOLIA_INSIGHTS_SRC;\n script.onerror = function () {\n // eslint-disable-next-line no-console\n console.error(errorMessage);\n };\n document.body.appendChild(script);\n } catch (cause) {\n // eslint-disable-next-line no-console\n console.error(errorMessage);\n }\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createAlgoliaInsightsPlugin.js?')},"./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createClickedEvent.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createClickedEvent\": () => (/* binding */ createClickedEvent)\n/* harmony export */ });\nfunction createClickedEvent(_ref) {\n var item = _ref.item,\n items = _ref.items;\n return {\n index: item.__autocomplete_indexName,\n items: [item],\n positions: [1 + items.findIndex(function (x) {\n return x.objectID === item.objectID;\n })],\n queryID: item.__autocomplete_queryID,\n algoliaSource: ['autocomplete']\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createClickedEvent.js?")},"./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createSearchInsightsApi.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createSearchInsightsApi": () => (/* binding */ createSearchInsightsApi)\n/* harmony export */ });\n/* harmony import */ var _isModernInsightsClient__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isModernInsightsClient */ "./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/isModernInsightsClient.js");\nvar _excluded = ["items"],\n _excluded2 = ["items"];\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\nfunction chunk(item) {\n var chunkSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 20;\n var chunks = [];\n for (var i = 0; i < item.objectIDs.length; i += chunkSize) {\n chunks.push(_objectSpread(_objectSpread({}, item), {}, {\n objectIDs: item.objectIDs.slice(i, i + chunkSize)\n }));\n }\n return chunks;\n}\nfunction mapToInsightsParamsApi(params) {\n return params.map(function (_ref) {\n var items = _ref.items,\n param = _objectWithoutProperties(_ref, _excluded);\n return _objectSpread(_objectSpread({}, param), {}, {\n objectIDs: (items === null || items === void 0 ? void 0 : items.map(function (_ref2) {\n var objectID = _ref2.objectID;\n return objectID;\n })) || param.objectIDs\n });\n });\n}\nfunction createSearchInsightsApi(searchInsights) {\n var canSendHeaders = (0,_isModernInsightsClient__WEBPACK_IMPORTED_MODULE_0__.isModernInsightsClient)(searchInsights);\n function sendToInsights(method, payloads, items) {\n if (canSendHeaders && typeof items !== \'undefined\') {\n var _items$0$__autocomple = items[0].__autocomplete_algoliaCredentials,\n appId = _items$0$__autocomple.appId,\n apiKey = _items$0$__autocomple.apiKey;\n var headers = {\n \'X-Algolia-Application-Id\': appId,\n \'X-Algolia-API-Key\': apiKey\n };\n searchInsights.apply(void 0, [method].concat(_toConsumableArray(payloads), [{\n headers: headers\n }]));\n } else {\n searchInsights.apply(void 0, [method].concat(_toConsumableArray(payloads)));\n }\n }\n return {\n /**\n * Initializes Insights with Algolia credentials.\n */\n init: function init(appId, apiKey) {\n searchInsights(\'init\', {\n appId: appId,\n apiKey: apiKey\n });\n },\n /**\n * Sets the user token to attach to events.\n */\n setUserToken: function setUserToken(userToken) {\n searchInsights(\'setUserToken\', userToken);\n },\n /**\n * Sends click events to capture a query and its clicked items and positions.\n *\n * @link https://www.algolia.com/doc/api-reference/api-methods/clicked-object-ids-after-search/\n */\n clickedObjectIDsAfterSearch: function clickedObjectIDsAfterSearch() {\n for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {\n params[_key] = arguments[_key];\n }\n if (params.length > 0) {\n sendToInsights(\'clickedObjectIDsAfterSearch\', mapToInsightsParamsApi(params), params[0].items);\n }\n },\n /**\n * Sends click events to capture clicked items.\n *\n * @link https://www.algolia.com/doc/api-reference/api-methods/clicked-object-ids/\n */\n clickedObjectIDs: function clickedObjectIDs() {\n for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n params[_key2] = arguments[_key2];\n }\n if (params.length > 0) {\n sendToInsights(\'clickedObjectIDs\', mapToInsightsParamsApi(params), params[0].items);\n }\n },\n /**\n * Sends click events to capture the filters a user clicks on.\n *\n * @link https://www.algolia.com/doc/api-reference/api-methods/clicked-filters/\n */\n clickedFilters: function clickedFilters() {\n for (var _len3 = arguments.length, params = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n params[_key3] = arguments[_key3];\n }\n if (params.length > 0) {\n searchInsights.apply(void 0, [\'clickedFilters\'].concat(params));\n }\n },\n /**\n * Sends conversion events to capture a query and its clicked items.\n *\n * @link https://www.algolia.com/doc/api-reference/api-methods/converted-object-ids-after-search/\n */\n convertedObjectIDsAfterSearch: function convertedObjectIDsAfterSearch() {\n for (var _len4 = arguments.length, params = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n params[_key4] = arguments[_key4];\n }\n if (params.length > 0) {\n sendToInsights(\'convertedObjectIDsAfterSearch\', mapToInsightsParamsApi(params), params[0].items);\n }\n },\n /**\n * Sends conversion events to capture clicked items.\n *\n * @link https://www.algolia.com/doc/api-reference/api-methods/converted-object-ids/\n */\n convertedObjectIDs: function convertedObjectIDs() {\n for (var _len5 = arguments.length, params = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n params[_key5] = arguments[_key5];\n }\n if (params.length > 0) {\n sendToInsights(\'convertedObjectIDs\', mapToInsightsParamsApi(params), params[0].items);\n }\n },\n /**\n * Sends conversion events to capture the filters a user uses when converting.\n *\n * @link https://www.algolia.com/doc/api-reference/api-methods/converted-filters/\n */\n convertedFilters: function convertedFilters() {\n for (var _len6 = arguments.length, params = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n params[_key6] = arguments[_key6];\n }\n if (params.length > 0) {\n searchInsights.apply(void 0, [\'convertedFilters\'].concat(params));\n }\n },\n /**\n * Sends view events to capture clicked items.\n *\n * @link https://www.algolia.com/doc/api-reference/api-methods/viewed-object-ids/\n */\n viewedObjectIDs: function viewedObjectIDs() {\n for (var _len7 = arguments.length, params = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n params[_key7] = arguments[_key7];\n }\n if (params.length > 0) {\n params.reduce(function (acc, _ref3) {\n var items = _ref3.items,\n param = _objectWithoutProperties(_ref3, _excluded2);\n return [].concat(_toConsumableArray(acc), _toConsumableArray(chunk(_objectSpread(_objectSpread({}, param), {}, {\n objectIDs: (items === null || items === void 0 ? void 0 : items.map(function (_ref4) {\n var objectID = _ref4.objectID;\n return objectID;\n })) || param.objectIDs\n })).map(function (payload) {\n return {\n items: items,\n payload: payload\n };\n })));\n }, []).forEach(function (_ref5) {\n var items = _ref5.items,\n payload = _ref5.payload;\n return sendToInsights(\'viewedObjectIDs\', [payload], items);\n });\n }\n },\n /**\n * Sends view events to capture the filters a user uses when viewing.\n *\n * @link https://www.algolia.com/doc/api-reference/api-methods/viewed-filters/\n */\n viewedFilters: function viewedFilters() {\n for (var _len8 = arguments.length, params = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {\n params[_key8] = arguments[_key8];\n }\n if (params.length > 0) {\n searchInsights.apply(void 0, [\'viewedFilters\'].concat(params));\n }\n }\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createSearchInsightsApi.js?')},"./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createViewedEvents.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createViewedEvents\": () => (/* binding */ createViewedEvents)\n/* harmony export */ });\nfunction createViewedEvents(_ref) {\n var items = _ref.items;\n var itemsByIndexName = items.reduce(function (acc, current) {\n var _acc$current$__autoco;\n acc[current.__autocomplete_indexName] = ((_acc$current$__autoco = acc[current.__autocomplete_indexName]) !== null && _acc$current$__autoco !== void 0 ? _acc$current$__autoco : []).concat(current);\n return acc;\n }, {});\n return Object.keys(itemsByIndexName).map(function (indexName) {\n var items = itemsByIndexName[indexName];\n return {\n index: indexName,\n items: items,\n algoliaSource: ['autocomplete']\n };\n });\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/createViewedEvents.js?")},"./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/isAlgoliaInsightsHit.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "isAlgoliaInsightsHit": () => (/* binding */ isAlgoliaInsightsHit)\n/* harmony export */ });\nfunction isAlgoliaInsightsHit(hit) {\n return hit.objectID && hit.__autocomplete_indexName && hit.__autocomplete_queryID;\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/isAlgoliaInsightsHit.js?')},"./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/isModernInsightsClient.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "isModernInsightsClient": () => (/* binding */ isModernInsightsClient)\n/* harmony export */ });\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n/**\n * Determines if a given insights `client` supports the optional call to `init`\n * and the ability to set credentials via extra parameters when sending events.\n */\nfunction isModernInsightsClient(client) {\n var _split$map = (client.version || \'\').split(\'.\').map(Number),\n _split$map2 = _slicedToArray(_split$map, 2),\n major = _split$map2[0],\n minor = _split$map2[1];\n\n /* eslint-disable @typescript-eslint/camelcase */\n var v3 = major >= 3;\n var v2_4 = major === 2 && minor >= 4;\n var v1_10 = major === 1 && minor >= 10;\n return v3 || v2_4 || v1_10;\n /* eslint-enable @typescript-eslint/camelcase */\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-plugin-algolia-insights/dist/esm/isModernInsightsClient.js?')},"./node_modules/@algolia/autocomplete-plugin-tags/dist/esm/createTags.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createTags": () => (/* binding */ createTags)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/createRef.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\nfunction createTags(_ref) {\n var _ref$initialTags = _ref.initialTags,\n initialTags = _ref$initialTags === void 0 ? [] : _ref$initialTags;\n var tagsRef = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.createRef)(mapToTags(initialTags));\n var onChangeListeners = [];\n function mapToTags(baseTags) {\n return baseTags.map(function (baseTag) {\n var tag = _objectSpread(_objectSpread({}, baseTag), {}, {\n remove: function remove() {\n var prevTags = tagsRef.current.slice();\n tagsRef.current = tagsRef.current.filter(function (tagRef) {\n return tag !== tagRef;\n });\n onChangeListeners.forEach(function (listener) {\n return listener({\n prevTags: prevTags,\n tags: tagsRef.current\n });\n });\n }\n });\n return tag;\n });\n }\n return {\n get: function get() {\n return tagsRef.current;\n },\n set: function set(baseTags) {\n var prevTags = tagsRef.current.slice();\n tagsRef.current = mapToTags(baseTags);\n onChangeListeners.forEach(function (listener) {\n return listener({\n prevTags: prevTags,\n tags: tagsRef.current\n });\n });\n },\n add: function add(baseTags) {\n var _tagsRef$current;\n var prevTags = tagsRef.current.slice();\n (_tagsRef$current = tagsRef.current).push.apply(_tagsRef$current, _toConsumableArray(mapToTags(baseTags)));\n onChangeListeners.forEach(function (listener) {\n return listener({\n prevTags: prevTags,\n tags: tagsRef.current\n });\n });\n },\n onChange: function onChange(listener) {\n onChangeListeners.push(listener);\n }\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-plugin-tags/dist/esm/createTags.js?')},"./node_modules/@algolia/autocomplete-plugin-tags/dist/esm/createTagsPlugin.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createTagsPlugin": () => (/* binding */ createTagsPlugin)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/noop.js");\n/* harmony import */ var _createTags__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createTags */ "./node_modules/@algolia/autocomplete-plugin-tags/dist/esm/createTags.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n/** @jsx createElement */\n\n\n\nfunction createTagsPlugin() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _getOptions = getOptions(options),\n initialTags = _getOptions.initialTags,\n getTagsSubscribers = _getOptions.getTagsSubscribers,\n transformSource = _getOptions.transformSource,\n onChange = _getOptions.onChange;\n var tags = (0,_createTags__WEBPACK_IMPORTED_MODULE_0__.createTags)({\n initialTags: initialTags\n });\n var tagsApi = {\n setTags: tags.set,\n addTags: tags.add\n };\n return {\n name: \'aa.tagsPlugin\',\n subscribe: function subscribe(params) {\n var setContext = params.setContext,\n onSelect = params.onSelect,\n setIsOpen = params.setIsOpen,\n refresh = params.refresh;\n var subscribers = getTagsSubscribers();\n setContext({\n tagsPlugin: _objectSpread(_objectSpread({}, tagsApi), {}, {\n tags: tags.get()\n })\n });\n onSelect(function (_ref) {\n var source = _ref.source,\n item = _ref.item;\n var subscriber = subscribers.find(function (_ref2) {\n var sourceId = _ref2.sourceId;\n return sourceId === source.sourceId;\n });\n if (subscriber) {\n tags.add([subscriber.getTag({\n item: item\n })]);\n }\n });\n tags.onChange(function (_ref3) {\n var prevTags = _ref3.prevTags;\n setContext({\n tagsPlugin: _objectSpread(_objectSpread({}, tagsApi), {}, {\n tags: tags.get()\n })\n });\n setIsOpen(true);\n onChange(_objectSpread(_objectSpread({}, params), {}, {\n prevTags: prevTags,\n tags: tags.get()\n }));\n refresh();\n });\n },\n getSources: function getSources(_ref4) {\n var state = _ref4.state;\n return [transformSource({\n source: {\n sourceId: \'tagsPlugin\',\n getItems: function getItems() {\n return tags.get();\n },\n onSelect: function onSelect(_ref5) {\n var item = _ref5.item;\n item.remove();\n },\n templates: {\n item: function item(_ref6) {\n var item = _ref6.item,\n createElement = _ref6.createElement;\n return createElement("div", {\n className: "aa-TagsPlugin-Tag"\n }, createElement("span", {\n className: "aa-TagsPlugin-TagLabel"\n }, item.label), createElement("button", {\n className: "aa-TagsPlugin-RemoveButton",\n title: "Remove this tag"\n }, createElement("svg", {\n fill: "none",\n stroke: "currentColor",\n strokeLinecap: "round",\n strokeLinejoin: "round",\n strokeWidth: 2,\n viewBox: "0 0 24 24"\n }, createElement("path", {\n d: "M18 6L6 18"\n }), createElement("path", {\n d: "M6 6L18 18"\n }))));\n }\n }\n },\n state: state\n })];\n },\n data: _objectSpread(_objectSpread({}, tagsApi), {}, {\n get tags() {\n return tags.get();\n }\n }),\n __autocomplete_pluginOptions: options\n };\n}\nfunction getOptions(options) {\n return _objectSpread({\n initialTags: [],\n getTagsSubscribers: function getTagsSubscribers() {\n return [];\n },\n transformSource: function transformSource(_ref7) {\n var source = _ref7.source;\n return source;\n },\n onChange: _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__.noop\n }, options);\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-plugin-tags/dist/esm/createTagsPlugin.js?')},"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/constants/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"HIGHLIGHT_POST_TAG\": () => (/* binding */ HIGHLIGHT_POST_TAG),\n/* harmony export */ \"HIGHLIGHT_PRE_TAG\": () => (/* binding */ HIGHLIGHT_PRE_TAG)\n/* harmony export */ });\nvar HIGHLIGHT_PRE_TAG = '__aa-highlight__';\nvar HIGHLIGHT_POST_TAG = '__/aa-highlight__';\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/constants/index.js?")},"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/isPartHighlighted.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"isPartHighlighted\": () => (/* binding */ isPartHighlighted)\n/* harmony export */ });\nvar htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n};\nvar hasAlphanumeric = new RegExp(/\\w/i);\nvar regexEscapedHtml = /&(amp|quot|lt|gt|#39);/g;\nvar regexHasEscapedHtml = RegExp(regexEscapedHtml.source);\nfunction unescape(value) {\n return value && regexHasEscapedHtml.test(value) ? value.replace(regexEscapedHtml, function (character) {\n return htmlEscapes[character];\n }) : value;\n}\nfunction isPartHighlighted(parts, i) {\n var _parts, _parts2;\n var current = parts[i];\n var isNextHighlighted = ((_parts = parts[i + 1]) === null || _parts === void 0 ? void 0 : _parts.isHighlighted) || true;\n var isPreviousHighlighted = ((_parts2 = parts[i - 1]) === null || _parts2 === void 0 ? void 0 : _parts2.isHighlighted) || true;\n if (!hasAlphanumeric.test(unescape(current.value)) && isPreviousHighlighted === isNextHighlighted) {\n return isPreviousHighlighted;\n }\n return current.isHighlighted;\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/isPartHighlighted.js?")},"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitHighlight.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "parseAlgoliaHitHighlight": () => (/* binding */ parseAlgoliaHitHighlight)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/getAttributeValueByPath.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/warn.js");\n/* harmony import */ var _parseAttribute__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./parseAttribute */ "./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAttribute.js");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\nfunction parseAlgoliaHitHighlight(_ref) {\n var hit = _ref.hit,\n attribute = _ref.attribute;\n var path = Array.isArray(attribute) ? attribute : [attribute];\n var highlightedValue = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.getAttributeValueByPath)(hit, [\'_highlightResult\'].concat(_toConsumableArray(path), [\'value\']));\n if (typeof highlightedValue !== \'string\') {\n true ? (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__.warn)(false, "The attribute \\"".concat(path.join(\'.\'), "\\" described by the path ").concat(JSON.stringify(path), " does not exist on the hit. Did you set it in `attributesToHighlight`?") + \'\\nSee https://www.algolia.com/doc/api-reference/api-parameters/attributesToHighlight/\') : 0;\n highlightedValue = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.getAttributeValueByPath)(hit, path) || \'\';\n }\n return (0,_parseAttribute__WEBPACK_IMPORTED_MODULE_2__.parseAttribute)({\n highlightedValue: highlightedValue\n });\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitHighlight.js?')},"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitReverseHighlight.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "parseAlgoliaHitReverseHighlight": () => (/* binding */ parseAlgoliaHitReverseHighlight)\n/* harmony export */ });\n/* harmony import */ var _parseAlgoliaHitHighlight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parseAlgoliaHitHighlight */ "./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitHighlight.js");\n/* harmony import */ var _reverseHighlightedParts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./reverseHighlightedParts */ "./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/reverseHighlightedParts.js");\n\n\nfunction parseAlgoliaHitReverseHighlight(props) {\n return (0,_reverseHighlightedParts__WEBPACK_IMPORTED_MODULE_0__.reverseHighlightedParts)((0,_parseAlgoliaHitHighlight__WEBPACK_IMPORTED_MODULE_1__.parseAlgoliaHitHighlight)(props));\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitReverseHighlight.js?')},"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitReverseSnippet.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "parseAlgoliaHitReverseSnippet": () => (/* binding */ parseAlgoliaHitReverseSnippet)\n/* harmony export */ });\n/* harmony import */ var _parseAlgoliaHitSnippet__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parseAlgoliaHitSnippet */ "./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitSnippet.js");\n/* harmony import */ var _reverseHighlightedParts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./reverseHighlightedParts */ "./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/reverseHighlightedParts.js");\n\n\nfunction parseAlgoliaHitReverseSnippet(props) {\n return (0,_reverseHighlightedParts__WEBPACK_IMPORTED_MODULE_0__.reverseHighlightedParts)((0,_parseAlgoliaHitSnippet__WEBPACK_IMPORTED_MODULE_1__.parseAlgoliaHitSnippet)(props));\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitReverseSnippet.js?')},"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitSnippet.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "parseAlgoliaHitSnippet": () => (/* binding */ parseAlgoliaHitSnippet)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/getAttributeValueByPath.js");\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/warn.js");\n/* harmony import */ var _parseAttribute__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./parseAttribute */ "./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAttribute.js");\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\nfunction parseAlgoliaHitSnippet(_ref) {\n var hit = _ref.hit,\n attribute = _ref.attribute;\n var path = Array.isArray(attribute) ? attribute : [attribute];\n var highlightedValue = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.getAttributeValueByPath)(hit, [\'_snippetResult\'].concat(_toConsumableArray(path), [\'value\']));\n if (typeof highlightedValue !== \'string\') {\n true ? (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_1__.warn)(false, "The attribute \\"".concat(path.join(\'.\'), "\\" described by the path ").concat(JSON.stringify(path), " does not exist on the hit. Did you set it in `attributesToSnippet`?") + \'\\nSee https://www.algolia.com/doc/api-reference/api-parameters/attributesToSnippet/\') : 0;\n highlightedValue = (0,_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.getAttributeValueByPath)(hit, path) || \'\';\n }\n return (0,_parseAttribute__WEBPACK_IMPORTED_MODULE_2__.parseAttribute)({\n highlightedValue: highlightedValue\n });\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAlgoliaHitSnippet.js?')},"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAttribute.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "parseAttribute": () => (/* binding */ parseAttribute)\n/* harmony export */ });\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../constants */ "./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/constants/index.js");\n\n/**\n * Creates a data structure that allows to concatenate similar highlighting\n * parts in a single value.\n */\nfunction createAttributeSet() {\n var initialValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var value = initialValue;\n return {\n get: function get() {\n return value;\n },\n add: function add(part) {\n var lastPart = value[value.length - 1];\n if ((lastPart === null || lastPart === void 0 ? void 0 : lastPart.isHighlighted) === part.isHighlighted) {\n value[value.length - 1] = {\n value: lastPart.value + part.value,\n isHighlighted: lastPart.isHighlighted\n };\n } else {\n value.push(part);\n }\n }\n };\n}\nfunction parseAttribute(_ref) {\n var highlightedValue = _ref.highlightedValue;\n var preTagParts = highlightedValue.split(_constants__WEBPACK_IMPORTED_MODULE_0__.HIGHLIGHT_PRE_TAG);\n var firstValue = preTagParts.shift();\n var parts = createAttributeSet(firstValue ? [{\n value: firstValue,\n isHighlighted: false\n }] : []);\n preTagParts.forEach(function (part) {\n var postTagParts = part.split(_constants__WEBPACK_IMPORTED_MODULE_0__.HIGHLIGHT_POST_TAG);\n parts.add({\n value: postTagParts[0],\n isHighlighted: true\n });\n if (postTagParts[1] !== \'\') {\n parts.add({\n value: postTagParts[1],\n isHighlighted: false\n });\n }\n });\n return parts.get();\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/parseAttribute.js?')},"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/reverseHighlightedParts.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "reverseHighlightedParts": () => (/* binding */ reverseHighlightedParts)\n/* harmony export */ });\n/* harmony import */ var _isPartHighlighted__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isPartHighlighted */ "./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/isPartHighlighted.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\n\nfunction reverseHighlightedParts(parts) {\n // We don\'t want to highlight the whole word when no parts match.\n if (!parts.some(function (part) {\n return part.isHighlighted;\n })) {\n return parts.map(function (part) {\n return _objectSpread(_objectSpread({}, part), {}, {\n isHighlighted: false\n });\n });\n }\n return parts.map(function (part, i) {\n return _objectSpread(_objectSpread({}, part), {}, {\n isHighlighted: !(0,_isPartHighlighted__WEBPACK_IMPORTED_MODULE_0__.isPartHighlighted)(parts, i)\n });\n });\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/highlight/reverseHighlightedParts.js?')},"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/requester/createRequester.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createRequester": () => (/* binding */ createRequester)\n/* harmony export */ });\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\nfunction createRequester(fetcher, requesterId) {\n function execute(fetcherParams) {\n return fetcher({\n searchClient: fetcherParams.searchClient,\n queries: fetcherParams.requests.map(function (x) {\n return x.query;\n })\n }).then(function (responses) {\n return responses.map(function (response, index) {\n var _fetcherParams$reques = fetcherParams.requests[index],\n sourceId = _fetcherParams$reques.sourceId,\n transformResponse = _fetcherParams$reques.transformResponse;\n return {\n items: response,\n sourceId: sourceId,\n transformResponse: transformResponse\n };\n });\n });\n }\n return function createSpecifiedRequester(requesterParams) {\n return function requester(requestParams) {\n return _objectSpread(_objectSpread({\n requesterId: requesterId,\n execute: execute\n }, requesterParams), requestParams);\n };\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/requester/createRequester.js?')},"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/search/fetchAlgoliaResults.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "fetchAlgoliaResults": () => (/* binding */ fetchAlgoliaResults)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-shared */ "./node_modules/@algolia/autocomplete-shared/dist/esm/userAgents.js");\n/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants */ "./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/constants/index.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/utils/getAppIdAndApiKey.js");\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nvar _excluded = ["params"];\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\n\n\nfunction fetchAlgoliaResults(_ref) {\n var searchClient = _ref.searchClient,\n queries = _ref.queries,\n _ref$userAgents = _ref.userAgents,\n userAgents = _ref$userAgents === void 0 ? [] : _ref$userAgents;\n if (typeof searchClient.addAlgoliaAgent === \'function\') {\n var algoliaAgents = [].concat(_toConsumableArray(_algolia_autocomplete_shared__WEBPACK_IMPORTED_MODULE_0__.userAgents), _toConsumableArray(userAgents));\n algoliaAgents.forEach(function (_ref2) {\n var segment = _ref2.segment,\n version = _ref2.version;\n searchClient.addAlgoliaAgent(segment, version);\n });\n }\n var _getAppIdAndApiKey = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.getAppIdAndApiKey)(searchClient),\n appId = _getAppIdAndApiKey.appId,\n apiKey = _getAppIdAndApiKey.apiKey;\n return searchClient.search(queries.map(function (searchParameters) {\n var params = searchParameters.params,\n headers = _objectWithoutProperties(searchParameters, _excluded);\n return _objectSpread(_objectSpread({}, headers), {}, {\n params: _objectSpread({\n hitsPerPage: 5,\n highlightPreTag: _constants__WEBPACK_IMPORTED_MODULE_2__.HIGHLIGHT_PRE_TAG,\n highlightPostTag: _constants__WEBPACK_IMPORTED_MODULE_2__.HIGHLIGHT_POST_TAG\n }, params)\n });\n })).then(function (response) {\n return response.results.map(function (result) {\n var _result$hits;\n return _objectSpread(_objectSpread({}, result), {}, {\n hits: (_result$hits = result.hits) === null || _result$hits === void 0 ? void 0 : _result$hits.map(function (hit) {\n return _objectSpread(_objectSpread({}, hit), {}, {\n __autocomplete_algoliaCredentials: {\n appId: appId,\n apiKey: apiKey\n }\n });\n })\n });\n });\n });\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/search/fetchAlgoliaResults.js?')},"./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/utils/getAppIdAndApiKey.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"getAppIdAndApiKey\": () => (/* binding */ getAppIdAndApiKey)\n/* harmony export */ });\nfunction getAppIdAndApiKey(searchClient) {\n var _searchClient$transpo = searchClient.transporter,\n headers = _searchClient$transpo.headers,\n queryParameters = _searchClient$transpo.queryParameters;\n var APP_ID = 'x-algolia-application-id';\n var API_KEY = 'x-algolia-api-key';\n var appId = headers[APP_ID] || queryParameters[APP_ID];\n var apiKey = headers[API_KEY] || queryParameters[API_KEY];\n return {\n appId: appId,\n apiKey: apiKey\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-preset-algolia/dist/esm/utils/getAppIdAndApiKey.js?")},"./node_modules/@algolia/autocomplete-shared/dist/esm/createRef.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "createRef": () => (/* binding */ createRef)\n/* harmony export */ });\nfunction createRef(initialValue) {\n return {\n current: initialValue\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/createRef.js?')},"./node_modules/@algolia/autocomplete-shared/dist/esm/debounce.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "debounce": () => (/* binding */ debounce)\n/* harmony export */ });\nfunction debounce(fn, time) {\n var timerId = undefined;\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n if (timerId) {\n clearTimeout(timerId);\n }\n timerId = setTimeout(function () {\n return fn.apply(void 0, args);\n }, time);\n };\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/debounce.js?')},"./node_modules/@algolia/autocomplete-shared/dist/esm/decycle.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "decycle": () => (/* binding */ decycle)\n/* harmony export */ });\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\n/**\n * Decycles objects with circular references.\n * This is used to print cyclic structures in development environment only.\n */\nfunction decycle(obj) {\n var seen = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Set();\n if ( false || !obj || _typeof(obj) !== \'object\') {\n return obj;\n }\n if (seen.has(obj)) {\n return \'[Circular]\';\n }\n var newSeen = seen.add(obj);\n if (Array.isArray(obj)) {\n return obj.map(function (x) {\n return decycle(x, newSeen);\n });\n }\n return Object.fromEntries(Object.entries(obj).map(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n return [key, decycle(value, newSeen)];\n }));\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/decycle.js?')},"./node_modules/@algolia/autocomplete-shared/dist/esm/flatten.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "flatten": () => (/* binding */ flatten)\n/* harmony export */ });\nfunction flatten(values) {\n return values.reduce(function (a, b) {\n return a.concat(b);\n }, []);\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/flatten.js?')},"./node_modules/@algolia/autocomplete-shared/dist/esm/generateAutocompleteId.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "generateAutocompleteId": () => (/* binding */ generateAutocompleteId)\n/* harmony export */ });\nvar autocompleteId = 0;\nfunction generateAutocompleteId() {\n return "autocomplete-".concat(autocompleteId++);\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/generateAutocompleteId.js?')},"./node_modules/@algolia/autocomplete-shared/dist/esm/getAttributeValueByPath.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getAttributeValueByPath": () => (/* binding */ getAttributeValueByPath)\n/* harmony export */ });\nfunction getAttributeValueByPath(record, path) {\n return path.reduce(function (current, key) {\n return current && current[key];\n }, record);\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/getAttributeValueByPath.js?')},"./node_modules/@algolia/autocomplete-shared/dist/esm/getItemsCount.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getItemsCount": () => (/* binding */ getItemsCount)\n/* harmony export */ });\nfunction getItemsCount(state) {\n if (state.collections.length === 0) {\n return 0;\n }\n return state.collections.reduce(function (sum, collection) {\n return sum + collection.items.length;\n }, 0);\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/getItemsCount.js?')},"./node_modules/@algolia/autocomplete-shared/dist/esm/invariant.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "invariant": () => (/* binding */ invariant)\n/* harmony export */ });\n/**\n * Throws an error if the condition is not met in development mode.\n * This is used to make development a better experience to provide guidance as\n * to where the error comes from.\n */\nfunction invariant(condition, message) {\n if (false) {}\n if (!condition) {\n throw new Error("[Autocomplete] ".concat(typeof message === \'function\' ? message() : message));\n }\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/invariant.js?')},"./node_modules/@algolia/autocomplete-shared/dist/esm/isEqual.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"isEqual\": () => (/* binding */ isEqual)\n/* harmony export */ });\nfunction isPrimitive(obj) {\n return obj !== Object(obj);\n}\nfunction isEqual(first, second) {\n if (first === second) {\n return true;\n }\n if (isPrimitive(first) || isPrimitive(second) || typeof first === 'function' || typeof second === 'function') {\n return first === second;\n }\n if (Object.keys(first).length !== Object.keys(second).length) {\n return false;\n }\n for (var _i = 0, _Object$keys = Object.keys(first); _i < _Object$keys.length; _i++) {\n var key = _Object$keys[_i];\n if (!(key in second)) {\n return false;\n }\n if (!isEqual(first[key], second[key])) {\n return false;\n }\n }\n return true;\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/isEqual.js?")},"./node_modules/@algolia/autocomplete-shared/dist/esm/noop.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "noop": () => (/* binding */ noop)\n/* harmony export */ });\nvar noop = function noop() {};\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/noop.js?')},"./node_modules/@algolia/autocomplete-shared/dist/esm/safelyRunOnBrowser.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"safelyRunOnBrowser\": () => (/* binding */ safelyRunOnBrowser)\n/* harmony export */ });\n/**\n * Safely runs code meant for browser environments only.\n */\nfunction safelyRunOnBrowser(callback) {\n if (typeof window !== 'undefined') {\n return callback({\n window: window\n });\n }\n return undefined;\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/safelyRunOnBrowser.js?")},"./node_modules/@algolia/autocomplete-shared/dist/esm/userAgents.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "userAgents": () => (/* binding */ userAgents)\n/* harmony export */ });\n/* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./version */ "./node_modules/@algolia/autocomplete-shared/dist/esm/version.js");\n\nvar userAgents = [{\n segment: \'autocomplete-core\',\n version: _version__WEBPACK_IMPORTED_MODULE_0__.version\n}];\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/userAgents.js?')},"./node_modules/@algolia/autocomplete-shared/dist/esm/version.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"version\": () => (/* binding */ version)\n/* harmony export */ });\nvar version = '1.9.2';\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/version.js?")},"./node_modules/@algolia/autocomplete-shared/dist/esm/warn.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "warn": () => (/* binding */ warn),\n/* harmony export */ "warnCache": () => (/* binding */ warnCache)\n/* harmony export */ });\nvar warnCache = {\n current: {}\n};\n\n/**\n * Logs a warning if the condition is not met.\n * This is used to log issues in development environment only.\n */\nfunction warn(condition, message) {\n if (false) {}\n if (condition) {\n return;\n }\n var sanitizedMessage = message.trim();\n var hasAlreadyPrinted = warnCache.current[sanitizedMessage];\n if (!hasAlreadyPrinted) {\n warnCache.current[sanitizedMessage] = true;\n\n // eslint-disable-next-line no-console\n console.warn("[Autocomplete] ".concat(sanitizedMessage));\n }\n}\n\n//# sourceURL=webpack://theme/./node_modules/@algolia/autocomplete-shared/dist/esm/warn.js?')},"./node_modules/algoliasearch/dist/algoliasearch-lite.umd.js":function(module){eval('/*! algoliasearch-lite.umd.js | 4.17.0 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */\n!function(e,t){ true?module.exports=t():0}(this,(function(){"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],n=!0,o=!1,a=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(o)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var r=JSON.stringify(e),n=a()[r];return Promise.all([n||t(),void 0!==n])})).then((function(e){var t=o(e,2),n=t[0],a=t[1];return Promise.all([n,a||r.miss(n)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var o=a();return o[JSON.stringify(e)]=t,n().setItem(r,JSON.stringify(o)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=a();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(r)}))}}}function i(e){var t=a(e.caches),r=t.shift();return void 0===r?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},n=t();return n.then((function(e){return Promise.all([e,r.miss(e)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(e,n,o).catch((function(){return i({caches:t}).get(e,n,o)}))},set:function(e,n){return r.set(e,n).catch((function(){return i({caches:t}).set(e,n)}))},delete:function(e){return r.delete(e).catch((function(){return i({caches:t}).delete(e)}))},clear:function(){return r.clear().catch((function(){return i({caches:t}).clear()}))}}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);var u=n(),i=o&&o.miss||function(){return Promise.resolve()};return u.then((function(e){return i(e)})).then((function(){return u}))},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function l(e,t){return t?(Object.keys(t).forEach((function(r){e[r]=t[r](e)})),e):e}function f(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var m={Read:1,Write:2,Any:3},p=1,v=2,y=3;function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return r(r({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:m.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||m.Any}}var O="GET",P="POST";function q(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(g(t))}))}))).then((function(e){var r=e.filter((function(e){return function(e){return e.status===p||Date.now()-e.lastUpdate>12e4}(e)})),n=e.filter((function(e){return function(e){return e.status===y&&Date.now()-e.lastUpdate<=12e4}(e)})),o=[].concat(a(r),a(n));return{getTimeout:function(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:o.length>0?o.map((function(e){return b(e)})):t}}))}function w(e,t,n,o){var u=[],i=function(e,t){if(e.method===O||void 0===e.data&&void 0===t.data)return;var n=Array.isArray(e.data)?e.data:r(r({},e.data),t.data);return JSON.stringify(n)}(n,o),s=function(e,t){var n=r(r({},e.headers),t.headers),o={};return Object.keys(n).forEach((function(e){var t=n[e];o[e.toLowerCase()]=t})),o}(e,o),c=n.method,l=n.method!==O?{}:r(r({},n.data),o.data),f=r(r(r({"x-algolia-agent":e.userAgent.value},e.queryParameters),l),o.queryParameters),h=0,d=function t(r,a){var l=r.pop();if(void 0===l)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:A(u)};var d={data:i,headers:s,method:c,url:S(l,n.path,f),connectTimeout:a(h,e.timeouts.connect),responseTimeout:a(h,o.timeout)},m=function(e){var t={request:d,response:e,host:l,triesLeft:r.length};return u.push(t),t},p={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(n){var o=m(n);return n.isTimedOut&&h++,Promise.all([e.logger.info("Retryable failure",x(o)),e.hostsCache.set(l,g(l,n.isTimedOut?y:v))]).then((function(){return t(r,a)}))},onFail:function(e){throw m(e),function(e,t){var r=e.content,n=e.status,o=r;try{o=JSON.parse(r).message}catch(e){}return function(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}(o,n,t)}(e,A(u))}};return e.requester.send(d).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,r=e.status;return!t&&0==~~r}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,p)}))};return q(e.hostsCache,t).then((function(e){return d(a(e.statelessHosts).reverse(),e.getTimeout)}))}function j(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var r="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(r)&&(t.value="".concat(t.value).concat(r)),t}};return t}function S(e,t,r){var n=T(r),o="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return n.length&&(o+="?".concat(n)),o}function T(e){return Object.keys(e).map((function(t){return f("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}function A(e){return e.map((function(e){return x(e)}))}function x(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},e),{},{request:r(r({},e.request),{},{headers:r(r({},e.request.headers),t)})})}var N=function(e){var t=e.appId,n=function(e,t,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers:function(){return e===h.WithinHeaders?n:{}},queryParameters:function(){return e===h.WithinQueryParameters?n:{}}}}(void 0!==e.authMode?e.authMode:h.WithinHeaders,t,e.apiKey),a=function(e){var t=e.hostsCache,r=e.logger,n=e.requester,a=e.requestsCache,u=e.responsesCache,i=e.timeouts,s=e.userAgent,c=e.hosts,l=e.queryParameters,f={hostsCache:t,logger:r,requester:n,requestsCache:a,responsesCache:u,timeouts:i,userAgent:s,headers:e.headers,queryParameters:l,hosts:c.map((function(e){return b(e)})),read:function(e,t){var r=d(t,f.timeouts.read),n=function(){return w(f,f.hosts.filter((function(e){return 0!=(e.accept&m.Read)})),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return n();var a={request:e,mappedRequestOptions:r,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(a,(function(){return f.requestsCache.get(a,(function(){return f.requestsCache.set(a,n()).then((function(e){return Promise.all([f.requestsCache.delete(a),e])}),(function(e){return Promise.all([f.requestsCache.delete(a),Promise.reject(e)])})).then((function(e){var t=o(e,2);t[0];return t[1]}))}))}),{miss:function(e){return f.responsesCache.set(a,e)}})},write:function(e,t){return w(f,f.hosts.filter((function(e){return 0!=(e.accept&m.Write)})),e,d(t,f.timeouts.write))}};return f}(r(r({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:m.Read},{url:"".concat(t,".algolia.net"),accept:m.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:r(r(r({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:r(r({},n.queryParameters()),e.queryParameters)}));return l({transporter:a,appId:t,addAlgoliaAgent:function(e,t){a.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([a.requestsCache.clear(),a.responsesCache.clear()]).then((function(){}))}},e.methods)},C=function(e){return function(t,r){return t.method===O?e.transporter.read(t,r):e.transporter.write(t,r)}},k=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={transporter:e.transporter,appId:e.appId,indexName:t};return l(n,r.methods)}},J=function(e){return function(t,n){var o=t.map((function(e){return r(r({},e),{},{params:T(e.params||{})})}));return e.transporter.read({method:P,path:"1/indexes/*/queries",data:{requests:o},cacheable:!0},n)}},E=function(e){return function(t,o){return Promise.all(t.map((function(t){var a=t.params,u=a.facetName,i=a.facetQuery,s=n(a,["facetName","facetQuery"]);return k(e)(t.indexName,{methods:{searchForFacetValues:R}}).searchForFacetValues(u,i,r(r({},o),s))})))}},I=function(e){return function(t,r,n){return e.transporter.read({method:P,path:f("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},F=function(e){return function(t,r){return e.transporter.read({method:P,path:f("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},R=function(e){return function(t,r,n){return e.transporter.read({method:P,path:f("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},D=1,W=2,H=3;function Q(e,t,n){var o,a={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return r.setRequestHeader(t,e.headers[t])}));var n,o=function(e,n){return setTimeout((function(){r.abort(),t({status:0,content:n,isTimedOut:!0})}),1e3*e)},a=o(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(a),n=o(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(a),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(a),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},logger:(o=H,{debug:function(e,t){return D>=o&&console.debug(e,t),Promise.resolve()},info:function(e,t){return W>=o&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:i({caches:[u({key:"".concat("4.17.0","-").concat(e)}),s()]}),userAgent:j("4.17.0").add({segment:"Browser",version:"lite"}),authMode:h.WithinQueryParameters};return N(r(r(r({},a),n),{},{methods:{search:J,searchForFacetValues:E,multipleQueries:J,multipleSearchForFacetValues:E,customRequest:C,initIndex:function(e){return function(t){return k(e)(t,{methods:{search:F,searchForFacetValues:R,findAnswers:I}})}}}}))}return Q.version="4.17.0",Q}));\n\n\n//# sourceURL=webpack://theme/./node_modules/algoliasearch/dist/algoliasearch-lite.umd.js?')},"./node_modules/clipboard-polyfill/dist/main/clipboard-polyfill.esm.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "ClipboardItem": () => (/* binding */ L),\n/* harmony export */ "read": () => (/* binding */ G),\n/* harmony export */ "readText": () => (/* binding */ R),\n/* harmony export */ "setDebugLog": () => (/* binding */ i),\n/* harmony export */ "suppressWarnings": () => (/* binding */ a),\n/* harmony export */ "write": () => (/* binding */ F),\n/* harmony export */ "writeText": () => (/* binding */ O)\n/* harmony export */ });\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nfunction t(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}function e(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1?(r(\'UA "Edge" => assuming success\'),[2,!0]):S(document.body,n)?(r("copyUsingTempSelection worked"),[2,!0]):function(t){var e=document.createElement("div");e.setAttribute("style","-webkit-user-select: text !important"),e.textContent="temporary element",document.body.appendChild(e);var n=S(e,t);return document.body.removeChild(e),n}(n)?(r("copyUsingTempElem worked"),[2,!0]):function(t){r("copyTextUsingDOM");var e=document.createElement("div");e.setAttribute("style","-webkit-user-select: text !important");var n=e;e.attachShadow&&(r("Using shadow DOM."),n=e.attachShadow({mode:"open"}));var i=document.createElement("span");i.innerText=t,n.appendChild(i),document.body.appendChild(e),k(i);var o=document.execCommand("copy");return U(),document.body.removeChild(e),o}(n["text/plain"])?(r("copyTextUsingDOM worked"),[2,!0]):[2,!1]}))}))}function O(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){if(b)return r("Using `navigator.clipboard.writeText()`."),[2,b(n)];if(!A(function(t){var e={};return e["text/plain"]=t,e}(n)))throw new Error("writeText() failed");return[2]}))}))}function R(){return t(this,void 0,void 0,(function(){return e(this,(function(t){if(h)return r("Using `navigator.clipboard.readText()`."),[2,h()];if(x())return r("Reading text using IE strategy."),[2,E()];throw new Error("Read is not supported in your browser.")}))}))}function I(t,e){for(var n=0,r=t;n{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"connectGlobalObserver\": () => (/* binding */ connectGlobalObserver),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */ \"disconnectGlobalObserver\": () => (/* binding */ disconnectGlobalObserver),\n/* harmony export */ \"validAttributeName\": () => (/* binding */ validAttributeName)\n/* harmony export */ });\nvar validAttributeName = /^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/;\nvar nullController = {\n revert: function revert() {}\n};\nvar elements = /*#__PURE__*/new Map();\nvar mutations = /*#__PURE__*/new Set();\n\nfunction getObserverInit(attr) {\n return attr === 'html' ? {\n childList: true,\n subtree: true,\n attributes: true,\n characterData: true\n } : {\n childList: false,\n subtree: false,\n attributes: true,\n attributeFilter: [attr]\n };\n}\n\nfunction getElementRecord(element) {\n var record = elements.get(element);\n\n if (!record) {\n record = {\n element: element,\n attributes: {}\n };\n elements.set(element, record);\n }\n\n return record;\n}\n\nfunction createElementPropertyRecord(el, attr, getCurrentValue, setValue, mutationRunner) {\n var currentValue = getCurrentValue(el);\n var record = {\n isDirty: false,\n originalValue: currentValue,\n virtualValue: currentValue,\n mutations: [],\n el: el,\n _positionTimeout: null,\n observer: new MutationObserver(function () {\n // enact a 1 second timeout that blocks subsequent firing of the\n // observer until the timeout is complete. This will prevent multiple\n // mutations from firing in quick succession, which can cause the\n // mutation to be reverted before the DOM has a chance to update.\n if (attr === 'position' && record._positionTimeout) return;else if (attr === 'position') record._positionTimeout = setTimeout(function () {\n record._positionTimeout = null;\n }, 1000);\n var currentValue = getCurrentValue(el);\n if (attr === 'position' && currentValue.parentNode === record.virtualValue.parentNode && currentValue.insertBeforeNode === record.virtualValue.insertBeforeNode) return;\n if (currentValue === record.virtualValue) return;\n record.originalValue = currentValue;\n mutationRunner(record);\n }),\n mutationRunner: mutationRunner,\n setValue: setValue,\n getCurrentValue: getCurrentValue\n };\n\n if (attr === 'position' && el.parentNode) {\n record.observer.observe(el.parentNode, {\n childList: true,\n subtree: true,\n attributes: false,\n characterData: false\n });\n } else {\n record.observer.observe(el, getObserverInit(attr));\n }\n\n return record;\n}\n\nfunction queueIfNeeded(val, record) {\n var currentVal = record.getCurrentValue(record.el);\n record.virtualValue = val;\n\n if (val && typeof val !== 'string') {\n if (!currentVal || val.parentNode !== currentVal.parentNode || val.insertBeforeNode !== currentVal.insertBeforeNode) {\n record.isDirty = true;\n runDOMUpdates();\n }\n } else if (val !== currentVal) {\n record.isDirty = true;\n runDOMUpdates();\n }\n}\n\nfunction htmlMutationRunner(record) {\n var val = record.originalValue;\n record.mutations.forEach(function (m) {\n return val = m.mutate(val);\n });\n queueIfNeeded(getTransformedHTML(val), record);\n}\n\nfunction classMutationRunner(record) {\n var val = new Set(record.originalValue.split(/\\s+/).filter(Boolean));\n record.mutations.forEach(function (m) {\n return m.mutate(val);\n });\n queueIfNeeded(Array.from(val).filter(Boolean).join(' '), record);\n}\n\nfunction attrMutationRunner(record) {\n var val = record.originalValue;\n record.mutations.forEach(function (m) {\n return val = m.mutate(val);\n });\n queueIfNeeded(val, record);\n}\n\nfunction _loadDOMNodes(_ref) {\n var parentSelector = _ref.parentSelector,\n insertBeforeSelector = _ref.insertBeforeSelector;\n var parentNode = document.querySelector(parentSelector);\n if (!parentNode) return null;\n var insertBeforeNode = insertBeforeSelector ? document.querySelector(insertBeforeSelector) : null;\n if (insertBeforeSelector && !insertBeforeNode) return null;\n return {\n parentNode: parentNode,\n insertBeforeNode: insertBeforeNode\n };\n}\n\nfunction positionMutationRunner(record) {\n var val = record.originalValue;\n record.mutations.forEach(function (m) {\n var selectors = m.mutate();\n\n var newNodes = _loadDOMNodes(selectors);\n\n val = newNodes || val;\n });\n queueIfNeeded(val, record);\n}\n\nvar getHTMLValue = function getHTMLValue(el) {\n return el.innerHTML;\n};\n\nvar setHTMLValue = function setHTMLValue(el, value) {\n return el.innerHTML = value;\n};\n\nfunction getElementHTMLRecord(element) {\n var elementRecord = getElementRecord(element);\n\n if (!elementRecord.html) {\n elementRecord.html = createElementPropertyRecord(element, 'html', getHTMLValue, setHTMLValue, htmlMutationRunner);\n }\n\n return elementRecord.html;\n}\n\nvar getElementPosition = function getElementPosition(el) {\n return {\n parentNode: el.parentElement,\n insertBeforeNode: el.nextElementSibling\n };\n};\n\nvar setElementPosition = function setElementPosition(el, value) {\n if (value.insertBeforeNode && !value.parentNode.contains(value.insertBeforeNode)) {\n // skip position mutation - insertBeforeNode not a child of parent. happens\n // when mutation observer for indvidual element fires out of order\n return;\n }\n\n value.parentNode.insertBefore(el, value.insertBeforeNode);\n};\n\nfunction getElementPositionRecord(element) {\n var elementRecord = getElementRecord(element);\n\n if (!elementRecord.position) {\n elementRecord.position = createElementPropertyRecord(element, 'position', getElementPosition, setElementPosition, positionMutationRunner);\n }\n\n return elementRecord.position;\n}\n\nvar setClassValue = function setClassValue(el, val) {\n return val ? el.className = val : el.removeAttribute('class');\n};\n\nvar getClassValue = function getClassValue(el) {\n return el.className;\n};\n\nfunction getElementClassRecord(el) {\n var elementRecord = getElementRecord(el);\n\n if (!elementRecord.classes) {\n elementRecord.classes = createElementPropertyRecord(el, 'class', getClassValue, setClassValue, classMutationRunner);\n }\n\n return elementRecord.classes;\n}\n\nvar getAttrValue = function getAttrValue(attrName) {\n return function (el) {\n var _el$getAttribute;\n\n return (_el$getAttribute = el.getAttribute(attrName)) != null ? _el$getAttribute : null;\n };\n};\n\nvar setAttrValue = function setAttrValue(attrName) {\n return function (el, val) {\n return val !== null ? el.setAttribute(attrName, val) : el.removeAttribute(attrName);\n };\n};\n\nfunction getElementAttributeRecord(el, attr) {\n var elementRecord = getElementRecord(el);\n\n if (!elementRecord.attributes[attr]) {\n elementRecord.attributes[attr] = createElementPropertyRecord(el, attr, getAttrValue(attr), setAttrValue(attr), attrMutationRunner);\n }\n\n return elementRecord.attributes[attr];\n}\n\nfunction deleteElementPropertyRecord(el, attr) {\n var element = elements.get(el);\n if (!element) return;\n\n if (attr === 'html') {\n var _element$html, _element$html$observe;\n\n (_element$html = element.html) == null ? void 0 : (_element$html$observe = _element$html.observer) == null ? void 0 : _element$html$observe.disconnect();\n delete element.html;\n } else if (attr === 'class') {\n var _element$classes, _element$classes$obse;\n\n (_element$classes = element.classes) == null ? void 0 : (_element$classes$obse = _element$classes.observer) == null ? void 0 : _element$classes$obse.disconnect();\n delete element.classes;\n } else if (attr === 'position') {\n var _element$position, _element$position$obs;\n\n (_element$position = element.position) == null ? void 0 : (_element$position$obs = _element$position.observer) == null ? void 0 : _element$position$obs.disconnect();\n delete element.position;\n } else {\n var _element$attributes, _element$attributes$a, _element$attributes$a2;\n\n (_element$attributes = element.attributes) == null ? void 0 : (_element$attributes$a = _element$attributes[attr]) == null ? void 0 : (_element$attributes$a2 = _element$attributes$a.observer) == null ? void 0 : _element$attributes$a2.disconnect();\n delete element.attributes[attr];\n }\n}\n\nvar transformContainer;\n\nfunction getTransformedHTML(html) {\n if (!transformContainer) {\n transformContainer = document.createElement('div');\n }\n\n transformContainer.innerHTML = html;\n return transformContainer.innerHTML;\n}\n\nfunction setPropertyValue(el, attr, m) {\n if (!m.isDirty) return;\n m.isDirty = false;\n var val = m.virtualValue;\n\n if (!m.mutations.length) {\n deleteElementPropertyRecord(el, attr);\n }\n\n m.setValue(el, val);\n}\n\nfunction setValue(m, el) {\n m.html && setPropertyValue(el, 'html', m.html);\n m.classes && setPropertyValue(el, 'class', m.classes);\n m.position && setPropertyValue(el, 'position', m.position);\n Object.keys(m.attributes).forEach(function (attr) {\n setPropertyValue(el, attr, m.attributes[attr]);\n });\n}\n\nfunction runDOMUpdates() {\n elements.forEach(setValue);\n} // find or create ElementPropertyRecord, add mutation to it, then run\n\n\nfunction startMutating(mutation, element) {\n var record = null;\n\n if (mutation.kind === 'html') {\n record = getElementHTMLRecord(element);\n } else if (mutation.kind === 'class') {\n record = getElementClassRecord(element);\n } else if (mutation.kind === 'attribute') {\n record = getElementAttributeRecord(element, mutation.attribute);\n } else if (mutation.kind === 'position') {\n record = getElementPositionRecord(element);\n }\n\n if (!record) return;\n record.mutations.push(mutation);\n record.mutationRunner(record);\n} // get (existing) ElementPropertyRecord, remove mutation from it, then run\n\n\nfunction stopMutating(mutation, el) {\n var record = null;\n\n if (mutation.kind === 'html') {\n record = getElementHTMLRecord(el);\n } else if (mutation.kind === 'class') {\n record = getElementClassRecord(el);\n } else if (mutation.kind === 'attribute') {\n record = getElementAttributeRecord(el, mutation.attribute);\n } else if (mutation.kind === 'position') {\n record = getElementPositionRecord(el);\n }\n\n if (!record) return;\n var index = record.mutations.indexOf(mutation);\n if (index !== -1) record.mutations.splice(index, 1);\n record.mutationRunner(record);\n} // maintain list of elements associated with mutation\n\n\nfunction refreshElementsSet(mutation) {\n // if a position mutation has already found an element to move, don't move\n // any more elements\n if (mutation.kind === 'position' && mutation.elements.size === 1) return;\n var existingElements = new Set(mutation.elements);\n var matchingElements = document.querySelectorAll(mutation.selector);\n matchingElements.forEach(function (el) {\n if (!existingElements.has(el)) {\n mutation.elements.add(el);\n startMutating(mutation, el);\n }\n });\n}\n\nfunction revertMutation(mutation) {\n mutation.elements.forEach(function (el) {\n return stopMutating(mutation, el);\n });\n mutation.elements.clear();\n mutations[\"delete\"](mutation);\n}\n\nfunction refreshAllElementSets() {\n mutations.forEach(refreshElementsSet);\n} // Observer for elements that don't exist in the DOM yet\n\n\nvar observer;\nfunction disconnectGlobalObserver() {\n observer && observer.disconnect();\n}\nfunction connectGlobalObserver() {\n if (typeof document === 'undefined') return;\n\n if (!observer) {\n observer = new MutationObserver(function () {\n refreshAllElementSets();\n });\n }\n\n refreshAllElementSets();\n observer.observe(document.documentElement, {\n childList: true,\n subtree: true,\n attributes: false,\n characterData: false\n });\n} // run on init\n\nconnectGlobalObserver();\n\nfunction newMutation(m) {\n // Not in a browser\n if (typeof document === 'undefined') return nullController; // add to global index of mutations\n\n mutations.add(m); // run refresh on init to establish list of elements associated w/ mutation\n\n refreshElementsSet(m);\n return {\n revert: function revert() {\n revertMutation(m);\n }\n };\n}\n\nfunction html(selector, mutate) {\n return newMutation({\n kind: 'html',\n elements: new Set(),\n mutate: mutate,\n selector: selector\n });\n}\n\nfunction position(selector, mutate) {\n return newMutation({\n kind: 'position',\n elements: new Set(),\n mutate: mutate,\n selector: selector\n });\n}\n\nfunction classes(selector, mutate) {\n return newMutation({\n kind: 'class',\n elements: new Set(),\n mutate: mutate,\n selector: selector\n });\n}\n\nfunction attribute(selector, attribute, mutate) {\n if (!validAttributeName.test(attribute)) return nullController;\n\n if (attribute === 'class' || attribute === 'className') {\n return classes(selector, function (classnames) {\n var mutatedClassnames = mutate(Array.from(classnames).join(' '));\n classnames.clear();\n if (!mutatedClassnames) return;\n mutatedClassnames.split(/\\s+/g).filter(Boolean).forEach(function (c) {\n return classnames.add(c);\n });\n });\n }\n\n return newMutation({\n kind: 'attribute',\n attribute: attribute,\n elements: new Set(),\n mutate: mutate,\n selector: selector\n });\n}\n\nfunction declarative(_ref2) {\n var selector = _ref2.selector,\n action = _ref2.action,\n value = _ref2.value,\n attr = _ref2.attribute,\n parentSelector = _ref2.parentSelector,\n insertBeforeSelector = _ref2.insertBeforeSelector;\n\n if (attr === 'html') {\n if (action === 'append') {\n return html(selector, function (val) {\n return val + (value != null ? value : '');\n });\n } else if (action === 'set') {\n return html(selector, function () {\n return value != null ? value : '';\n });\n }\n } else if (attr === 'class') {\n if (action === 'append') {\n return classes(selector, function (val) {\n if (value) val.add(value);\n });\n } else if (action === 'remove') {\n return classes(selector, function (val) {\n if (value) val[\"delete\"](value);\n });\n } else if (action === 'set') {\n return classes(selector, function (val) {\n val.clear();\n if (value) val.add(value);\n });\n }\n } else if (attr === 'position') {\n if (action === 'set' && parentSelector) {\n return position(selector, function () {\n return {\n insertBeforeSelector: insertBeforeSelector,\n parentSelector: parentSelector\n };\n });\n }\n } else {\n if (action === 'append') {\n return attribute(selector, attr, function (val) {\n return val !== null ? val + (value != null ? value : '') : value != null ? value : '';\n });\n } else if (action === 'set') {\n return attribute(selector, attr, function () {\n return value != null ? value : '';\n });\n } else if (action === 'remove') {\n return attribute(selector, attr, function () {\n return null;\n });\n }\n }\n\n return nullController;\n}\n\nvar index = {\n html: html,\n classes: classes,\n attribute: attribute,\n position: position,\n declarative: declarative\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (index);\n\n//# sourceMappingURL=dom-mutator.esm.js.map\n\n\n//# sourceURL=webpack://theme/./node_modules/dom-mutator/dist/dom-mutator.esm.js?")},"./node_modules/htm/dist/htm.module.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nvar n=function(t,s,r,e){var u;s[0]=0;for(var h=1;h=5&&((e||!n&&5===r)&&(h.push(r,0,e,s),r=6),n&&(h.push(r,n,0,s),r=6)),e=""},a=0;a"===t?(r=1,e=""):e=t+e[0]:u?t===u?u="":e+=t:\'"\'===t||"\'"===t?u=t:">"===t?(p(),r=1):r&&("="===t?(r=5,s=e,e=""):"/"===t&&(r<5||">"===n[a][l+1])?(p(),3===r&&(h=h[0]),r=h,(h=h[0]).push(2,0,r),r=0):" "===t||"\\t"===t||"\\n"===t||"\\r"===t?(p(),r=2):e+=t),3===r&&"!--"===e&&(r=4,h=h[0])}return p(),h}(s)),r),arguments,[])).length>1?r:r[0]}\n\n\n//# sourceURL=webpack://theme/./node_modules/htm/dist/htm.module.js?')},"./src/scss/main.scss":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n\n\n//# sourceURL=webpack://theme/./src/scss/main.scss?")},"./node_modules/preact/dist/preact.module.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "Component": () => (/* binding */ k),\n/* harmony export */ "Fragment": () => (/* binding */ _),\n/* harmony export */ "cloneElement": () => (/* binding */ E),\n/* harmony export */ "createContext": () => (/* binding */ F),\n/* harmony export */ "createElement": () => (/* binding */ y),\n/* harmony export */ "createRef": () => (/* binding */ d),\n/* harmony export */ "h": () => (/* binding */ y),\n/* harmony export */ "hydrate": () => (/* binding */ D),\n/* harmony export */ "isValidElement": () => (/* binding */ i),\n/* harmony export */ "options": () => (/* binding */ l),\n/* harmony export */ "render": () => (/* binding */ B),\n/* harmony export */ "toChildArray": () => (/* binding */ P)\n/* harmony export */ });\nvar n,l,u,i,t,r,o,f,e,c={},s=[],a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(n,l){for(var u in l)n[u]=l[u];return n}function v(n){var l=n.parentNode;l&&l.removeChild(n)}function y(l,u,i){var t,r,o,f={};for(o in u)"key"==o?t=u[o]:"ref"==o?r=u[o]:f[o]=u[o];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===f[o]&&(f[o]=l.defaultProps[o]);return p(l,f,t,r,null)}function p(n,i,t,r,o){var f={type:n,props:i,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++u:o};return null==o&&null!=l.vnode&&l.vnode(f),f}function d(){return{current:null}}function _(n){return n.children}function k(n,l){this.props=n,this.context=l}function b(n,l){if(null==l)return n.__?b(n.__,n.__.__k.indexOf(n)+1):null;for(var u;ll&&t.sort(f));w.__r=0}function x(n,l,u,i,t,r,o,f,e,a){var h,v,y,d,k,g,m,w=i&&i.__k||s,x=w.length;for(u.__k=[],h=0;h0?p(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)){if(d.__=u,d.__b=u.__b+1,null===(y=w[h])||y&&d.key==y.key&&d.type===y.type)w[h]=void 0;else for(v=0;v=0;l--)if((u=n.__k[l])&&(i=$(u)))return i;return null}function H(n,l,u,i,t){var r;for(r in u)"children"===r||"key"===r||r in l||T(n,r,null,u[r],i);for(r in l)t&&"function"!=typeof l[r]||"children"===r||"key"===r||"value"===r||"checked"===r||u[r]===l[r]||T(n,r,l[r],u[r],i)}function I(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||a.test(l)?u:u+"px"}function T(n,l,u,i,t){var r;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||I(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||I(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])r=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?i||n.addEventListener(l,r?z:j,r):n.removeEventListener(l,r?z:j,r);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u))}}function j(n){return this.l[n.type+!1](l.event?l.event(n):n)}function z(n){return this.l[n.type+!0](l.event?l.event(n):n)}function L(n,u,i,t,r,o,f,e,c){var s,a,v,y,p,d,b,g,m,w,A,P,C,$,H,I=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,o=[e]),(s=l.__b)&&s(u);try{n:if("function"==typeof I){if(g=u.props,m=(s=I.contextType)&&t[s.__c],w=s?m?m.props.value:s.__:t,i.__c?b=(a=u.__c=i.__c).__=a.__E:("prototype"in I&&I.prototype.render?u.__c=a=new I(g,w):(u.__c=a=new k(g,w),a.constructor=I,a.render=q),m&&m.sub(a),a.props=g,a.state||(a.state={}),a.context=w,a.__n=t,v=a.__d=!0,a.__h=[],a._sb=[]),null==a.__s&&(a.__s=a.state),null!=I.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=h({},a.__s)),h(a.__s,I.getDerivedStateFromProps(g,a.__s))),y=a.props,p=a.state,a.__v=u,v)null==I.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==I.getDerivedStateFromProps&&g!==y&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(g,w),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(g,a.__s,w)||u.__v===i.__v){for(u.__v!==i.__v&&(a.props=g,a.state=a.__s,a.__d=!1),a.__e=!1,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u)}),A=0;A2&&(f.children=arguments.length>3?n.call(arguments,2):i),p(l.type,f,t||l.key,r||l.ref,null)}function F(n,l){var u={__c:l="__cC"+e++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,m(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=s.slice,l={__e:function(n,l,u,i){for(var t,r,o;l=l.__;)if((t=l.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),o=t.__d),o)return t.__E=t}catch(l){n=l}throw n}},u=0,i=function(n){return null!=n&&void 0===n.constructor},k.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof n&&(n=n(h({},u),this.props)),n&&h(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),m(this))},k.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),m(this))},k.prototype.render=_,t=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(n,l){return n.__v.__b-l.__v.__b},w.__r=0,e=0;\n//# sourceMappingURL=preact.module.js.map\n\n\n//# sourceURL=webpack://theme/./node_modules/preact/dist/preact.module.js?')},"./src/ts/algolia/autocomplete.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var algoliasearch_lite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! algoliasearch/lite */ "./node_modules/algoliasearch/dist/algoliasearch-lite.umd.js");\n/* harmony import */ var algoliasearch_lite__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(algoliasearch_lite__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _algolia_autocomplete_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @algolia/autocomplete-js */ "./node_modules/@algolia/autocomplete-js/dist/esm/requesters/getAlgoliaFacets.js");\n/* harmony import */ var _algolia_autocomplete_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @algolia/autocomplete-js */ "./node_modules/@algolia/autocomplete-js/dist/esm/requesters/getAlgoliaResults.js");\n/* harmony import */ var _algolia_autocomplete_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @algolia/autocomplete-js */ "./node_modules/@algolia/autocomplete-js/dist/esm/autocomplete.js");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./src/ts/algolia/utils.ts");\n\n\n\n// CSS selector of the element to convert into an autocomplete control.\nconst autocompleteContainer = "#search";\n// Algolia index settings. It\'s expected these are set as data-* attributes on the\n// `autocompleteContainer` element.\nlet appID;\nlet searchKey;\nlet indexName;\n// The autocomplete search client.\nlet searchClient;\n// The set of tags (or "facets"), that the autocomplete control should use for filtering. At least\n// one facet is required and must be set as a comma-delimited list on the `autocompleteContainer`\n// (e.g., data-facets="Docs,Registry").\nlet baseTags;\n// Initialize the autocomplete control.\nfunction initAutocomplete(el) {\n // Read the index settings from the container element.\n appID = el.getAttribute("data-app-id");\n searchKey = el.getAttribute("data-search-key");\n indexName = el.getAttribute("data-index");\n baseTags = el.getAttribute("data-facets").split(",").map(f => ({ label: f, facet: "section" }));\n if (!appID || !searchKey || !indexName || !baseTags) {\n console.error(`Autocomplete element found, but one or more require attributes were missing.`);\n return;\n }\n // Initialize the search client.\n searchClient = algoliasearch_lite__WEBPACK_IMPORTED_MODULE_1___default()(appID, searchKey);\n // Returns an autocomplete "source" consisting of a list of facets (e.g, "Docs", "Registry") and\n // the number of results within that facet that match the query provided.\n // https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/\n function getFacetsSource(query, state, setContext) {\n return {\n sourceId: "sections",\n // https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems\n getItems: () => {\n // https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/getAlgoliaFacets/\n return (0,_algolia_autocomplete_js__WEBPACK_IMPORTED_MODULE_2__.getAlgoliaFacets)({\n searchClient,\n queries: [\n {\n indexName,\n facet: "section",\n params: {\n query,\n filters: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.mapTagsToFilters)((0,_utils__WEBPACK_IMPORTED_MODULE_0__.groupBy)(baseTags, (tag) => tag.facet)),\n },\n },\n ],\n // Note that for this source, we deliberately drop the results on the floor (by\n // returning an empty array) because we only care about the number of results\n // per facet; we don\'t need the facets themselves because we already have them.\n transformResponse({ facetHits }) {\n // Save the item counts on the autocomplete context (its internal state).\n setContext({\n facetHits,\n });\n // Return an empty list.\n return [];\n }\n });\n },\n templates: {\n item: () => null,\n },\n };\n }\n // Returns an autocomplete source consisting of the list of actual search results.\n // https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/getAlgoliaResults/\n function getResultsSource(query, state, refresh) {\n return {\n sourceId: "results",\n getItems: ({ state }) => {\n return (0,_algolia_autocomplete_js__WEBPACK_IMPORTED_MODULE_3__.getAlgoliaResults)({\n searchClient,\n queries: [\n {\n indexName,\n query,\n params: {\n filters: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.mapTagsToFilters)((0,_utils__WEBPACK_IMPORTED_MODULE_0__.groupBy)((0,_utils__WEBPACK_IMPORTED_MODULE_0__.getTags)(state), (tag) => tag.facet)),\n // The existence of these params suggests that paging actually\n // *does* work in autocomplete (since this is the autocomplete API).\n // TODO: Make use of these, either with pagination or infinite scroll.\n hitsPerPage: 50,\n page: 0,\n },\n },\n ],\n });\n },\n // Tells the autocomplete control which URL to use for navigation (specifically keyboard navigation).\n // https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitemurl\n getItemUrl: ({ item }) => {\n const url = new URL([document.location.origin, item.href].join(""));\n return url.toString();\n },\n // Templates are the snippets of HTML to use for rendering the autocomplete panel\'s header,\n // item list, footer, and no-results view.\n // https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/templates/\n templates: {\n header: ({ html, state }) => {\n const facetHits = state.context.facetHits[0];\n const allCount = facetHits.reduce((acc, f) => acc + f.count, 0);\n // If only one facet was specified, return a single, non-interactive tab for "all results".\n if (baseTags.length === 1) {\n return html `\n
      \n
    • \n \n
    • \n
    \n `;\n }\n // Otherwise, return a list of tabs -- one "all results" tab and then one tab per facet.\n return html `\n
      \n
    • \n \n \n All results\n \n ${(0,_utils__WEBPACK_IMPORTED_MODULE_0__.formatCount)(allCount)}\n \n \n
    • \n\n ${baseTags.map(tag => {\n // Make a tab for each facet, including item counts. Disable tabs with zero results.\n const facetHit = facetHits.find(f => f.label === tag.label);\n const isActive = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.getTags)(state).length === 1 && (0,_utils__WEBPACK_IMPORTED_MODULE_0__.getTags)(state)[0].label === tag.label;\n const isDisabled = !facetHit || facetHit.count === 0;\n const facetCount = facetHit ? facetHit.count : 0;\n return html `\n
    • \n \n
    • `;\n })}\n
    \n `;\n },\n item: ({ state, item, components, html }) => {\n return html `\n \n `;\n },\n footer: ({ html }) => {\n return html `\n
    \n ↑ ↓ to navigate\n ↵ to select\n esc to close\n
    \n `;\n },\n noResults: ({ html, state }) => {\n if (!state.query) {\n return;\n }\n return html `\n

    \n

    We couldn\'t find any results for ${state.query}.

    \n

    Try a more general term or use fewer keywords.

    \n `;\n },\n },\n };\n }\n // Start listening for keyboard events.\n const keyEventsState = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.listenForEvents)();\n // Activate the autocomplete control. See the Algolia docs for configuration details.\n // https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/autocomplete\n (0,_algolia_autocomplete_js__WEBPACK_IMPORTED_MODULE_4__.autocomplete)({\n container: el,\n placeholder: "Search (⌘/ctrl-k)",\n // Whether to open the panel when the input gets focus (i.e., before a query is submitted).\n openOnFocus: false,\n // Whether to render the control as a modal dialog or drop-down. Empty string means modal.\n detachedMediaQuery: "",\n // The (zero-based) item that should be selected by default.\n defaultActiveItemId: 0,\n // Handler for any change that occurs on the state of the autocomplete control.\n onStateChange: ({ state, prevState, setCollections }) => {\n // When a query is "cleared out" by the user, reset the list of facets to "all" and drop\n // any existing results to start fresh.\n if (prevState.query !== "" && state.query === "") {\n setCollections([]);\n (0,_utils__WEBPACK_IMPORTED_MODULE_0__.setTags)(state, baseTags);\n }\n // When there\'s an active item, and an arrow key was just pressed, scroll the active\n // item into view.\n if (state.activeItemId >= 0) {\n const items = document.querySelectorAll(`.aa-Item`);\n if (items) {\n const item = items.item(state.activeItemId);\n if (item && keyEventsState.upDownPressed) {\n item.scrollIntoView({ behavior: "smooth", block: "nearest" });\n }\n }\n // Reset the arrow-key flag.\n keyEventsState.upDownPressed = false;\n }\n },\n // Returns the list of autocomplete sources to use for each query. Our control uses two\n // sources: one for obtaining query result counts by facet, another for obtaining actual\n // query results.\n getSources: ({ query, state, refresh, setContext }) => {\n const sources = [];\n sources.push(getFacetsSource(query, state, setContext));\n sources.push(getResultsSource(query, state, refresh));\n // Debounce requests to keep from sending too many queries to Algolia.\n return (0,_utils__WEBPACK_IMPORTED_MODULE_0__.debounce)(sources);\n },\n // Enable Algolia insights.\n // https://www.algolia.com/doc/guides/building-search-ui/events/js/\n insights: true,\n // https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/plugins/\n plugins: [\n (0,_utils__WEBPACK_IMPORTED_MODULE_0__.getTagsPlugin)(baseTags),\n ],\n });\n}\n// Wait until the DOM is ready before looking for any autocomplete controls on the page.\nwindow.addEventListener("DOMContentLoaded", () => {\n const el = document.querySelector(autocompleteContainer);\n if (el) {\n initAutocomplete(el);\n }\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/algolia/autocomplete.ts?')},"./src/ts/algolia/utils.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "debounce": () => (/* binding */ debounce),\n/* harmony export */ "formatCount": () => (/* binding */ formatCount),\n/* harmony export */ "getTags": () => (/* binding */ getTags),\n/* harmony export */ "getTagsPlugin": () => (/* binding */ getTagsPlugin),\n/* harmony export */ "groupBy": () => (/* binding */ groupBy),\n/* harmony export */ "iconForTag": () => (/* binding */ iconForTag),\n/* harmony export */ "labelForTag": () => (/* binding */ labelForTag),\n/* harmony export */ "listenForEvents": () => (/* binding */ listenForEvents),\n/* harmony export */ "mapTagsToFilters": () => (/* binding */ mapTagsToFilters),\n/* harmony export */ "setTags": () => (/* binding */ setTags)\n/* harmony export */ });\n/* harmony import */ var _algolia_autocomplete_plugin_tags__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @algolia/autocomplete-plugin-tags */ "./node_modules/@algolia/autocomplete-plugin-tags/dist/esm/createTagsPlugin.js");\n\n// Converts a list of tags into an Algolia filter query.\n// https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filters-and-facetfilters/\nfunction mapTagsToFilters(tagsByFacet, operator = "AND") {\n const result = Object\n .keys(tagsByFacet)\n .map(facet => {\n return `(${tagsByFacet[facet]\n .map(({ label }) => `${facet}:"${label}"`)\n .join(\' OR \')})`;\n })\n .join(` ${operator} `);\n return result;\n}\n// Groups a collection of items by key.\nfunction groupBy(items, predicate) {\n return items.reduce((acc, item) => {\n const key = predicate(item);\n if (!acc.hasOwnProperty(key)) {\n acc[key] = [];\n }\n acc[key].push(item);\n return acc;\n }, {});\n}\n// Creates a "tags plugin" for use with the autocomplete control. This plugin maps a set of tags to\n// Algolia "facets" for filtering results.\n// https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-plugin-tags/createTagsPlugin/\nfunction getTagsPlugin(baseTags) {\n return (0,_algolia_autocomplete_plugin_tags__WEBPACK_IMPORTED_MODULE_0__.createTagsPlugin)({\n initialTags: baseTags,\n transformSource: ({ source }) => {\n return undefined;\n },\n getTagsSubscribers: () => {\n return [\n {\n sourceId: "section",\n getTag: ({ item }) => {\n return item;\n },\n },\n ];\n },\n });\n}\n// Sets the list of tags to use for autocomplete filtering.\nfunction setTags(state, tags) {\n var _a, _b;\n (_b = (_a = state.context) === null || _a === void 0 ? void 0 : _a.tagsPlugin) === null || _b === void 0 ? void 0 : _b.setTags(tags);\n}\n// Returns the list of currently applied tags.\nfunction getTags(state) {\n var _a, _b;\n return ((_b = (_a = state.context) === null || _a === void 0 ? void 0 : _a.tagsPlugin) === null || _b === void 0 ? void 0 : _b.tags) || [];\n}\n// Returns a function that returns a promise to be resolved after some delay.\nfunction debouncePromise(fn, time) {\n let timerId = undefined;\n return (...args) => {\n if (timerId) {\n clearTimeout(timerId);\n }\n return new Promise((resolve) => {\n timerId = setTimeout(() => resolve(fn(...args)), time);\n });\n };\n}\n// Delays sending queries to Algolia by the specified number of milliseconds. (Without this, we\'d\n// send a query on every keystroke, which is snappy but expensive.)\nconst debounce = debouncePromise(items => Promise.resolve(items), 220);\n// Listens for search-relevant events.\nfunction listenForEvents() {\n // Tiny object make it easier to share data between event handlers and the autocomplete instance.\n const sharedData = {\n // Whether an up or down arrow key was just pressed. The control uses this to decide whether\n // to scroll the active item into view.\n upDownPressed: false,\n };\n // Handle command/control-k events by triggering the search button directly.\n window.addEventListener("keydown", (event) => {\n if ((event.key.toLowerCase() === "k" && (event.metaKey || event.ctrlKey))) {\n event.preventDefault();\n const searchButton = document.querySelector(`.aa-DetachedSearchButton`);\n searchButton.click();\n }\n });\n // Handle arrow up/down. It\'s a bit odd that we have to do this manually, as it *should* be\n // handled by the Algolia control itself, but there\'s a bug in that control that prevents the\n // code from locating the item to scroll to, so we have to do it ourselves. Note that we use the\n // capture phase to be sure we get notified *before* the control\'s state changes; if we didn\'t,\n // we wouldn\'t be notified of the keypress until afterward, at which point it\'d be too late to\n // know whether the state change had resulted from a keypress (and to scroll accordingly).\n window.addEventListener("keydown", (event) => {\n if ((event.key === "ArrowUp" || event.key === "ArrowDown") && event.target === document.querySelector(`.aa-DetachedFormContainer .aa-Input`)) {\n sharedData.upDownPressed = true;\n }\n }, { capture: true });\n // When the clear button is clicked, don\'t close the modal; instead, clear the value and leave\n // the modal open. To do this, we have to listen for clicks on the `body` element, because the\n // modal doesn\'t exist when the page is rendered -- and could be created and destroyed many\n // times within a given pageview.\n document.body.addEventListener("click", (event) => {\n var _a;\n const clickedElement = event.target;\n // If the thing clicked was a clear button or one of its descendants, stop the event and\n // clear the input field.\n if (clickedElement === null || clickedElement === void 0 ? void 0 : clickedElement.closest(".aa-ClearButton")) {\n event.stopPropagation();\n event.preventDefault();\n const input = (_a = clickedElement.closest(".aa-Form")) === null || _a === void 0 ? void 0 : _a.querySelector(".aa-Input");\n if (input) {\n input.value = "";\n input.focus();\n input.dispatchEvent(new Event("input"));\n }\n ;\n }\n });\n // Return the shared-data object.\n return sharedData;\n}\n// Formats numbers greater than 1000 by rounding them up and rendering as "1K".\nfunction formatCount(count) {\n return count > 1000 ? `${Math.ceil(count / 1000)}K` : count.toString();\n}\n// Returns the label to use for a given tag.\nfunction labelForTag(facet) {\n if (facet === "Registry") {\n return "Packages";\n }\n return facet;\n}\n// Returns the icon to use for a given tag.\nfunction iconForTag(label) {\n switch (label) {\n case "Docs":\n return "/icons/docs.svg";\n case "Registry":\n return "/icons/registry.svg";\n case "Tutorials":\n return "/icons/graduation-cap.svg";\n }\n return "/icons/list.svg";\n}\n\n\n//# sourceURL=webpack://theme/./src/ts/algolia/utils.ts?')},"./src/ts/carousel.ts":()=>{eval('(function ($) {\n // The home-page carousel. Items cycle every four seconds. Clicking a label stops the\n // cycling and shows the selected item.\n var carouselItem = 1;\n var carouselInterval = window.setInterval(function () {\n showCarouselItem(carouselItem);\n carouselItem++;\n if (carouselItem > 2) {\n carouselItem = 0;\n }\n }, 11000);\n showCarouselItem(0);\n $(".carousel-item-label").click(function () {\n clearInterval(carouselInterval);\n var i = $(".carousel-item-label").index(this);\n showCarouselItem(i);\n });\n function showCarouselItem(i) {\n // On some pages we might want to show all the carousel animations at\n // once, so if this element is available we show everything and return.\n if ($(".carousel-always-visible").length) {\n showIDE();\n showCLI();\n showConsole();\n return;\n }\n if ($(".carousel-always-visible-cli-only").length) {\n showCLIOnly();\n return;\n }\n $(".carousel-item").css("opacity", 0).css("pointer-events", "none").eq(i).css("opacity", 1).css("pointer-events", "auto");\n $(".carousel-item-description").css("opacity", 0).css("pointer-events", "none").eq(i).css("opacity", 1).css("pointer-events", "auto");\n $(".carousel-item-label")\n .removeClass("border-purple-700")\n .removeClass("text-purple-700")\n .removeClass("hover:text-purple-700")\n .addClass("text-purple-200")\n .addClass("hover:text-purple-300")\n .eq(i)\n .addClass("border-purple-700")\n .addClass("text-purple-700")\n .addClass("hover:text-purple-700");\n if (i === 0) {\n showIDE();\n }\n else if (i === 1) {\n showCLI();\n }\n else if (i === 2) {\n showConsole();\n }\n }\n function showIDE() {\n // Hide the windows.\n $(".menu").css("opacity", 0);\n // Restore the selection state of the first menu.\n $(".menu").find(".row").removeClass("bg-gray-600").eq(0).addClass("bg-gray-600");\n // Start typing. On completion, show the menus.\n startTyping(0, function () {\n $(".menu").each(function (i, el) {\n var delay = parseInt($(el).attr("data-delay")) || 0;\n // Animate the selection indicator of the first menu when it\'s shown.\n if (i === 0) {\n setTimeout(function () {\n $(el).find(".row").removeClass("bg-gray-600").eq(1).addClass("bg-gray-600");\n }, 600);\n }\n setTimeout(function () {\n $(el).css("opacity", 1);\n }, delay);\n });\n });\n }\n function showCLI() {\n startTyping(1);\n showLines(1);\n }\n function showCLIOnly() {\n startTyping(0);\n showLines(0);\n }\n function showConsole() {\n var tabs = $("#carousel-console .tab");\n tabs.css("opacity", 0).eq(0).css("opacity", 1);\n setTimeout(function () {\n tabs.eq(0).css("opacity", 0);\n tabs.eq(1).css("opacity", 1);\n }, 5000);\n }\n function startTyping(i, onComplete) {\n var spans = $(".carousel-item").eq(i).find(".line.typed span");\n var offset = 500; /* ms */\n var delay = 75; /* ms */\n // Wrap every character in a span to make it individually selectable.\n spans.each(function (i, span) {\n var chars = span.textContent.split("");\n $(span)\n .addClass("typing")\n .html(chars\n .map(char => {\n return "" + char + "";\n })\n .join("")\n .toString());\n });\n // Create an element to represent the cursor.\n var cursor = $("");\n var chars = $(".carousel-item").eq(i).find(".char");\n chars.map(function (j, el) {\n offset += Math.ceil(Math.random() * delay);\n // Position the cursor in relation to the character. If a line break is\n // encountered, show the cursor before the line break (as we pause for\n // line breaks); otherwise, show it after the character.\n setTimeout(function () {\n if (el.textContent === "\\n") {\n $(el).css("opacity", 1).prepend(cursor);\n }\n else {\n $(el).css("opacity", 1).append(cursor);\n }\n // If we\'ve reached end of the input in the current view, remove the cursor.\n if (j === chars.length - 1) {\n setTimeout(function () {\n cursor.remove();\n if (typeof onComplete === "function") {\n onComplete();\n }\n }, 600);\n }\n }, offset);\n // Wait a bit at the end of each line, just to give the viewer a moment to note\n // what was expressed.\n if (el.textContent === "\\n" || el.textContent === ";") {\n offset += 1000 /* ms */;\n }\n });\n }\n function showLines(i) {\n var lines = $(".carousel-item").eq(i).find(".line.full");\n lines.css("opacity", 0);\n var offset = 2000; /* ms */\n var delay = 75; /* ms */\n lines.each(function (i, el) {\n var d = parseInt($(el).attr("data-delay")) || delay;\n offset += Math.ceil(Math.random() * d);\n setTimeout(function () {\n $(el).css("opacity", 1);\n }, offset);\n });\n }\n})(jQuery);\n\n\n//# sourceURL=webpack://theme/./src/ts/carousel.ts?')},"./src/ts/chooser.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ "./src/ts/util.ts");\n\nfunction getElemClasses(e) {\n return ($(e).attr("class") || "").split(/\\s+/);\n}\n// selectChoice will remember a given choice -- such as language or operating system -- as a preferred setting using\n// a cookie and walk the DOM enabling all code tabs and snippets for that choice, and disabling those for others.\nfunction selectChoice(kind, choice, extra) {\n // Explicitly set `path` to `/` so the saved selection is available across all pages, and\n // set `max-age` to one year (31536000 is one year in seconds) so the saved selection does\n // not expire when the browser session ends.\n document.cookie = "pulumi_" + kind + "=" + choice + "; max-age=31536000; path=/";\n // Change the active tab.\n var choiceTabs = 0;\n $("a." + kind + "-tab").each(function (i, e) {\n choiceTabs++;\n var $e = $(e);\n var currentTabChoice = $e.attr("data-choice") || e.innerText.toLowerCase();\n if (currentTabChoice === choice) {\n $e.addClass("is-active");\n }\n else {\n $e.removeClass("is-active");\n }\n });\n // If and only if we found tabs, show and hide divs for the relevant choices.\n if (choiceTabs > 0) {\n $("div,span").each(function (i, e) {\n var classes = getElemClasses(e);\n for (var i = 0; i < classes.length; i++) {\n if (classes[i].startsWith(kind + "-prologue-")) {\n var next = $(e).next();\n if (next) {\n if (classes[i] === kind + "-prologue-" + choice) {\n $(next).show();\n }\n else {\n $(next).hide();\n }\n }\n break;\n }\n }\n });\n if (extra) {\n extra();\n }\n }\n}\n// selectLanguage chooses a language.\nfunction selectLanguage(lang) {\n selectChoice("language", lang, function () {\n var shellLanguages = ["bat", "batch", "batchfile", "powershell", "posh", "pwsh", "bash", "sh", "shell", "zsh", "diff"].map(function (l) {\n return "language-" + l;\n });\n // In addition to the basic showing/hiding, highlight the right code blocks:\n $("code").each(function (i, e) {\n var classes = getElemClasses(e);\n for (var i = 0; i < classes.length; i++) {\n if (classes[i].startsWith("language-") && shellLanguages.indexOf(classes[i]) === -1) {\n var parents = $(e).parents("div.highlight");\n if (!parents.length) {\n parents = $(e).parents("span.highlight");\n }\n // Our Node reference docs contain examples written in TypeScript, and\n // don\'t currently have JavaScript examples above.\n // Ensure these TypeScript examples are always visible, even when\n // JavaScript is the selected language.\n if (lang === "javascript" && (classes[i] === "language-typescript" || classes[i] === "language-ts")) {\n // If the previous element doesn\'t have a highlight, show it.\n var prev = parents.prev();\n if (prev && !prev.hasClass("highlight")) {\n parents.show();\n break;\n }\n }\n if (classes[i] === "language-" + lang ||\n (lang === "typescript" && classes[i] === "language-ts") ||\n (lang === "javascript" && classes[i] === "language-js") ||\n (lang === "visualbasic" && classes[i] === "language-vb")) {\n parents.show();\n }\n else {\n parents.hide();\n }\n break;\n }\n }\n });\n });\n}\n// selectOs chooses an operating system.\nfunction selectOs(os) {\n selectChoice("os", os);\n}\n// selectCloud chooses a cloud provider.\nfunction selectCloud(cloud) {\n selectChoice("cloud", cloud);\n}\n// selectCloud chooses a kubernetes language syntax.\nfunction selectK8sLang(syntax) {\n selectChoice("k8s-language", syntax);\n}\n// Hides and shows choices based on previous preferences.\nfunction hideShowChoices(kind, selector, defaultChoice) {\n var tabsOnPage = {};\n $("a." + kind + "-tab").each(function (i, e) {\n var choice = $(e).attr("data-choice") || e.innerText.toLowerCase();\n // Save the languages we\'ve seen.\n tabsOnPage[choice] = true;\n // For every language tab, inject a handler and make the correct one hidden.\n e.addEventListener("click", function () {\n // Choosing a tab currently affects the selection state of all of the other\n // tabs on the page, which can cause unpredictable reflows, so we note the\n // current position of the clicked element relative to the upper edge of the\n // viewport, do the selection, then scroll to the same relative location once\n // the reflow is complete.\n var el = $(this).get(0);\n var distanctFromViewportTop = el.getBoundingClientRect().top;\n selector(choice, e);\n requestAnimationFrame(function () {\n window.scroll(0, el.offsetTop - distanctFromViewportTop);\n });\n });\n });\n var tabsOnPageKeys = Object.keys(tabsOnPage);\n // If we didn\'t find any tabs, there\'s nothing else to do.\n if (tabsOnPageKeys.length === 0) {\n return;\n }\n // Now select the right choice based on whether there\'s a cookie, defaulting as appropriate.\n var choiceCookie = decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;\\\\s*)pulumi_" + kind + "\\\\=\\\\s*([^;]*).*$)|^.*$"), "$1"));\n if (choiceCookie && tabsOnPage.hasOwnProperty(choiceCookie)) {\n selector(choiceCookie);\n }\n else if (defaultChoice && tabsOnPage.hasOwnProperty(defaultChoice)) {\n selector(defaultChoice);\n }\n else if (tabsOnPageKeys.length > 0) {\n selector(tabsOnPageKeys[0]);\n }\n}\n// The first time the DOM is finished loading, select the right language and OS.\n$(document).on("rendered", function () {\n // If a query param\'s been provided for a tab category, honor that.\n ["language", "os", "cloud", "k8s-language", "input-kind"].forEach(function (kind) {\n var val = (0,_util__WEBPACK_IMPORTED_MODULE_0__.getQueryVariable)(kind);\n if (val) {\n selectChoice(kind, val);\n }\n });\n // If no language is chosen yet, default to TypeScript.\n hideShowChoices("language", selectLanguage, "typescript");\n // If no OS is chosen yet, do our best to detect it using the browser.\n var defaultOsChoice;\n if (navigator.appVersion.indexOf("Win") !== -1) {\n defaultOsChoice = "windows";\n }\n else if (navigator.appVersion.indexOf("Mac") !== -1) {\n defaultOsChoice = "macos";\n }\n else if (navigator.appVersion.indexOf("Linux") !== -1) {\n defaultOsChoice = "linux";\n }\n hideShowChoices("os", selectOs, defaultOsChoice);\n hideShowChoices("cloud", selectCloud, "aws");\n hideShowChoices("k8s-language", selectK8sLang, "typescript");\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/chooser.ts?')},"./src/ts/code-tabbed.ts":()=>{eval('(function ($) {\n var languageItem = 1;\n var languageInterval = window.setInterval(function () {\n showLanguageItem(languageItem);\n languageItem++;\n if (languageItem > 3) {\n languageItem = 0;\n }\n }, 5000);\n showLanguageItem(0);\n $(".code-tabbed-tab").click(function () {\n clearInterval(languageInterval);\n var i = $(".code-tabbed-tab").index(this);\n showLanguageItem(i);\n });\n function showLanguageItem(i) {\n $(".code-tabbed-content").scrollTop(0).scrollLeft(0);\n $(".code-tabbed-tab").removeClass("active").eq(i).addClass("active");\n $(".code-tabbed-content-item").removeClass("active").eq(i).addClass("active");\n }\n})(jQuery);\n\n\n//# sourceURL=webpack://theme/./src/ts/code-tabbed.ts?')},"./src/ts/copybutton.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var clipboard_polyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! clipboard-polyfill */ "./node_modules/clipboard-polyfill/dist/main/clipboard-polyfill.esm.js");\n\n("use strict");\n// Used to "normalize" code snippet text that will be written to the clipboard.\nfunction normalizeText(lang, text) {\n if (!text) {\n return "";\n }\n // Replace all "\\r\\n" with "\\n" to ensure consistent newlines.\n text = text.replace("\\r\\n", "\\n");\n // Trim whitespace.\n text = text.trim();\n // For command line code snippets:\n // 1. Strip the prompt from any lines that are prefixed with it\n // 2. Discard subsequent lines that don\'t start with the prompt (i.e. output),\n // making sure to respect line continuation characters.\n // 3. Combine multiple lines that start with a prompt into a single line, e.g.\n // "$ mkdir mydir && mydir\\n$ pulumi new typescript" =>\n // "mkdir mydir && mydir && pulumi new typescript"\n var prompt;\n var comment;\n var trailingCommentRE;\n var trailingContinuationChar;\n var combinator;\n switch (lang) {\n case "bash":\n case "sh":\n case "shell":\n case "zsh":\n prompt = "$ ";\n comment = "#";\n trailingCommentRE = /\\s+#.*$/m;\n trailingContinuationChar = "\\\\";\n combinator = " && ";\n break;\n case "bat":\n case "batch":\n case "batchfile":\n prompt = "> ";\n comment = "::";\n trailingCommentRE = /\\s+::.*$/m;\n trailingContinuationChar = "^";\n combinator = " && ";\n break;\n case "powershell":\n case "posh":\n case "pwsh":\n prompt = "> ";\n comment = "#";\n trailingCommentRE = /\\s+#.*$/m;\n trailingContinuationChar = "`";\n combinator = "; ";\n break;\n }\n if (prompt) {\n var results = [];\n var lines = text.split("\\n");\n var priorLineContinued = false;\n for (var i = 0; i < lines.length; i++) {\n var line = lines[i].trim();\n // If the first line doesn\'t start with a prompt, break out of the loop to avoid any\n // further processing, so the whole thing is returned.\n if (i === 0 && !line.startsWith(prompt)) {\n break;\n }\n // Skip empty lines and comments.\n if (line.length === 0 || line.startsWith(comment)) {\n priorLineContinued = false;\n continue;\n }\n // Include all initial lines that start with a prompt and discard subsequent lines after\n // a line is reached that doesn\'t start with a prompt.\n if (line.startsWith(prompt) || priorLineContinued) {\n // Removing trailing comments.\n line = line.replace(trailingCommentRE, "");\n // Remember and remove line continuations.\n var wasContinued = priorLineContinued;\n if (line.endsWith(trailingContinuationChar)) {\n priorLineContinued = true;\n line = line.substring(0, line.length - trailingContinuationChar.length);\n }\n else {\n priorLineContinued = false;\n }\n // Continue the prior line, or add a new one, as appropriate.\n if (wasContinued) {\n results.push(results.pop() + line);\n }\n else {\n results.push(line.substring(2));\n }\n }\n else {\n break;\n }\n }\n // If we have results, combine into a single line, with commands separated by the combinator.\n if (results.length > 0) {\n text = results.join(combinator);\n }\n }\n // If on Windows, ensure the appropriate line endings are applied.\n if (navigator.appVersion.indexOf("Win") !== -1) {\n text = text.replace("\\n", "\\r\\n");\n }\n return text;\n}\nfunction addCopyButton(e) {\n var tooltipText = "Copy";\n var buttonHtml = \'
    \' +\n " " +\n \' \' +\n \' \' +\n tooltipText +\n "" +\n " " +\n "
    ";\n e.append(buttonHtml).on("click", "button.copy-button", function () {\n var $b = $(this);\n var $code = $b.parent().parent().parent().siblings("pre").children("code");\n // Get the lang and code.\n var lang = $code.attr("data-lang");\n var text = $code.text();\n // Write the text to the clipboard.\n var normalized = normalizeText(lang, text);\n if (normalized && normalized.length > 0) {\n clipboard_polyfill__WEBPACK_IMPORTED_MODULE_0__.writeText(normalized);\n }\n // Remove focus from the button.\n $b.blur();\n // Show a "Copied!" tooltip for a second.\n var $tooltip = $b.closest("pulumi-tooltip");\n var $tooltipContent = $tooltip.find("[slot=\'content\']");\n var tooltipEl = $tooltip.get(0);\n $tooltipContent.text("Copied!");\n tooltipEl.show().then(() => {\n setTimeout(function () {\n tooltipEl.hide().then(() => $tooltipContent.text(tooltipText));\n }, 1000);\n });\n // Track analytics if data-track is present\n const analytics = window.analytics;\n const analyticsAvailable = analytics && analytics.track && typeof analytics.track === "function";\n var codeBlockName = $code.attr("data-track");\n if (analyticsAvailable && codeBlockName) { // Don\'t track empty email addresses\n const trackData = {\n codeBlockName: codeBlockName\n };\n analytics.track("copy-code-block", trackData);\n }\n });\n}\n// When the DOM is ready, add copy buttons to code snippets.\n$(function () {\n addCopyButton($(":not(.no-copy) > div.highlight"));\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/copybutton.ts?')},"./src/ts/developer-advocates.ts":()=>{eval('$(function () {\n $("#upcoming-talks-select").on("click", function () {\n $("#upcoming-talks").removeClass("hidden");\n $("#past-talks").addClass("hidden");\n $("#upcoming-talks-select").addClass("is-selected");\n $("#past-talks-select").removeClass("is-selected");\n });\n $("#past-talks-select").on("click", function () {\n $("#upcoming-talks").addClass("hidden");\n $("#past-talks").removeClass("hidden");\n $("#upcoming-talks-select").removeClass("is-selected");\n $("#past-talks-select").addClass("is-selected");\n });\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/developer-advocates.ts?')},"./src/ts/docs-feedback.ts":()=>{eval('$(function () {\n // Check that the analytics track function is available.\n var analyticsAvailable = window["analytics"] && window["analytics"].track && typeof window["analytics"].track === "function";\n // Show the docs feedback container.\n $("#docsFeedbackContainer").removeClass("hidden");\n // For each of the button ids attach a click handler that shows\n // the additional comment section.\n ["#docsFeedbackYes", "#docsFeedbackNo"].forEach(function (key) {\n var answer = key === "#docsFeedbackYes" ? "Yes" : "No";\n $(key).on("click", function () {\n $("#feedbackLongForm").removeClass("hidden");\n // Show the additional comment section.\n showAdditionalCommentSection(answer);\n });\n });\n /**\n * Submit the documentation feedback to Segment.\n *\n * @param {string} answer The value of the button the user clicked when giving feedback.\n * @param {string} comments The value of the text area in the comment section. Defaults to an empty string\n * @param {string} email The value of the email input in the comment section. Defaults to an empty string\n */\n function sendFeedbackToSegment(answer, comments, email) {\n var trackingObj = {\n answer: answer,\n comments: comments || "",\n email: email || "",\n url: window.location.pathname,\n category: "Documentation Feedback",\n label: answer,\n };\n if (analyticsAvailable) {\n window["analytics"].track("docs-feedback", trackingObj);\n }\n else {\n console.log("Skipped call to analytics.track:", "docs-feedback", trackingObj);\n }\n }\n /**\n * Show the additional comments section and inject the user\'s feedback\n * answer into the submission click handler and form abandonment handler.\n *\n * @param {string} answer The value of the button the user clicked when giving feedback.\n */\n function showAdditionalCommentSection(answer) {\n // Temporarily reparent the overlay and dialog (to the end of the body), so it\n // doesn\'t have to compete for proper z-index positioning.\n // TODO: Make a proper dialog component for this.\n var feedbackLongForm = $("#feedbackLongForm");\n var feedbackLongFormParent = feedbackLongForm.parent();\n $("body").append(feedbackLongForm);\n // Add a click handler to the submit button.\n $("#docsSubmitFeedback").on("click", function () {\n // Grab the values of the comments and email inputs.\n var comments = $("#feedbackAdditionalComments").val().toString().trim();\n var email = $("#feedbackEmail").val().toString().trim();\n // Send to Segment.\n sendFeedbackToSegment(answer, comments, email);\n // Clear the form\n $("#feedbackAdditionalComments").val("");\n $("#feedbackEmail").val("");\n // Show the thank you section.\n $("#feedbackButtons").addClass("hidden");\n $("#feedbackLongForm").addClass("hidden");\n $("#feedbackThankYou").removeClass("hidden");\n });\n $("#docsCloseFeedbackLongForm").on("click", function () {\n // Send to Segment.\n sendFeedbackToSegment(answer, "", "");\n // Clear the form\n $("#feedbackAdditionalComments").val("");\n $("#feedbackEmail").val("");\n // Show the thank you section.\n $("#feedbackButtons").addClass("hidden");\n $("#feedbackLongForm").addClass("hidden");\n $("#feedbackThankYou").removeClass("hidden");\n // Return the overlay to its original position.\n feedbackLongFormParent.append(feedbackLongForm);\n });\n $(window).on("beforeunload", function () {\n // When page unloads send the answer if it has not already been sent.\n var feedbackSent = $("#feedbackLongForm").hasClass("hidden");\n if (!feedbackSent) {\n sendFeedbackToSegment(answer, "", "");\n }\n });\n }\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/docs-feedback.ts?')},"./src/ts/docs-main.ts":()=>{eval('let docsMainNavToggleWrapper = $(".docs-main-nav-toggle-wrapper");\nlet docsNavToggleIcon = $(".docs-nav-toggle-icon");\n$(window).on("resize", function () {\n setDocsMainNavPosition();\n setTableOfContentsVisibility();\n setMainNavHeight();\n}).trigger(\'resize\');\n$(window).on("scroll", function () {\n setDocsMainNavPosition();\n}).trigger(\'resize\');\n$(window).on("load", function () {\n setDocsMainNavPosition();\n setTableOfContentsVisibility();\n setMainNavHeight();\n});\n(function (document, $) {\n let docsToggle = $(".docs-nav-toggle");\n docsToggle.on("click", function () {\n docsMainNavToggleWrapper.toggleClass("docs-nav-show");\n docsMainNavToggleWrapper.toggleClass("docs-nav-hide");\n docsNavToggleIcon.toggleClass("close-docs-main-nav");\n docsNavToggleIcon.toggleClass("open-docs-main-nav");\n setTableOfContentsVisibility();\n });\n let packageCardCheckbox = $("#accordion-checkbox-package-card");\n let packageCardBackground = $("#accordion-package-card");\n packageCardCheckbox.on("change", function () {\n if (packageCardCheckbox.is(":checked")) {\n packageCardBackground.css("background", "#fff");\n }\n else {\n packageCardBackground.css("background", "#f9f9f9");\n }\n });\n function loadContentWidthState() {\n const contentWidthState = window.localStorage.getItem("content-width-state");\n if (contentWidthState === "expanded") {\n expandContentWidth();\n }\n else {\n collapseContentWidth();\n }\n }\n let collapseContentButton = $("#collapse-content-button");\n let expandContentButton = $("#expand-content-button");\n function expandContentWidth() {\n $(".docs-main-content").addClass("docs-content-width-expanded");\n if (window.location.pathname.startsWith("/registry")) {\n $(".docs-main-content").addClass("expand-registry");\n }\n collapseContentButton.removeClass("hide");\n expandContentButton.addClass("hide");\n window.localStorage.setItem("content-width-state", "expanded");\n }\n function collapseContentWidth() {\n $(".docs-main-content").removeClass("docs-content-width-expanded");\n collapseContentButton.addClass("hide");\n expandContentButton.removeClass("hide");\n window.localStorage.setItem("content-width-state", "collapsed");\n }\n expandContentButton.on("click", expandContentWidth);\n collapseContentButton.on("click", collapseContentWidth);\n loadContentWidthState();\n})(document, jQuery);\nfunction setDocsMainNavPosition() {\n if ($(this).width() <= 1024) {\n if (docsMainNavToggleWrapper.hasClass("docs-nav-show")) {\n docsNavToggleIcon.removeClass("open-docs-main-nav");\n docsNavToggleIcon.addClass("close-docs-main-nav");\n }\n else if (docsMainNavToggleWrapper.hasClass("docs-nav-hide")) {\n docsNavToggleIcon.removeClass("close-docs-main-nav");\n docsNavToggleIcon.addClass("open-docs-main-nav");\n }\n }\n let mainNav = $(".main-nav");\n let mainNavToggle = $(".docs-nav-toggle");\n let docsTypeNavSearch = $(".docs-type-nav-search");\n let docsToggleOffset = 94;\n if ($(".section-docs .docs-list-main").length > 0) {\n if ($(".section-docs .docs-list-main").get(0).getBoundingClientRect().y <= 0) {\n mainNav.css("margin-top", docsTypeNavSearch.height() - Math.max($(".top-nav-container").get(0).getBoundingClientRect().y, 0));\n mainNavToggle.css("top", docsToggleOffset + docsTypeNavSearch.height() - Math.max($(".top-nav-container").get(0).getBoundingClientRect().y, 0));\n }\n else {\n mainNav.css("margin-top", 0);\n }\n }\n if ($(this).width() > 1024) {\n docsMainNavToggleWrapper.removeClass("docs-nav-show");\n docsMainNavToggleWrapper.removeClass("docs-nav-hide");\n }\n else if (!docsMainNavToggleWrapper.hasClass("docs-nav-hide") && !docsMainNavToggleWrapper.hasClass("docs-nav-show")) {\n docsMainNavToggleWrapper.addClass("docs-nav-hide");\n }\n}\nfunction setTableOfContentsVisibility() {\n let docsTableOfContents = $(".docs-toc-desktop");\n if (window.innerWidth < 1280) {\n docsTableOfContents.hide();\n }\n else {\n docsTableOfContents.show();\n }\n}\nfunction setMainNavHeight() {\n $(".docs-main-nav").css("height", $(".docs-footer").height() + window.innerHeight);\n}\n\n\n//# sourceURL=webpack://theme/./src/ts/docs-main.ts?')},"./src/ts/event-filtering.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ "./src/ts/util.ts");\n\n$(function () {\n /**\n * This function creates a checkbox from a given text string.\n * It will set the label and the value to whatever the input string is.\n *\n * @param {string} text The label and value of the checkbox\n */\n function createCheckbox(text) {\n var filterValue = (0,_util__WEBPACK_IMPORTED_MODULE_0__.getQueryVariable)("filter");\n var container = document.createElement("div");\n container.className = "my-2 uppercase flex items-center";\n var checkbox = document.createElement("input");\n checkbox.id = "checkbox-" + text;\n checkbox.type = "checkbox";\n checkbox.className = "mr-2 cursor-pointer";\n checkbox.value = text.toLowerCase();\n // If the filter query parameter is available use it to determine\n // what checkboxes should initially be checked. If the query param\n // is not set, check all the boxes.\n if (filterValue !== undefined) {\n var shouldBeChecked = filterValue.toLowerCase().split(",").indexOf(checkbox.value) > -1;\n if (shouldBeChecked) {\n checkbox.checked = true;\n }\n }\n else {\n checkbox.checked = true;\n }\n var label = document.createElement("label");\n label.innerText = text + "s";\n label.className = "cursor-pointer";\n label.setAttribute("for", checkbox.id);\n container.appendChild(checkbox);\n container.appendChild(label);\n return container;\n }\n // This function grabs the filter checkboxes, loops through them to\n // determine what is checked, and then filters the events.\n function getFilterValuesAndFilterList() {\n var inputs = $("input[type=\'checkbox\']");\n var chosenInputs = [];\n for (var i = 0; i < inputs.length; i++) {\n var input = inputs[i];\n var isChecked = $(input).prop("checked");\n if (isChecked) {\n chosenInputs.push($(input).val());\n }\n }\n filterEventList(chosenInputs);\n }\n /**\n * This function checks to see if two arrays have any value in common. This\n * function can return false for arrays of objects becasue the objects\n * in each array can have different references.\n *\n * @param {*[]} arr1 An array of non object values\n * @param {*[]} arr2 An array of non object values\n */\n function checkForIntersection(arr1, arr2) {\n for (var i = 0; i < arr1.length; i++) {\n var val = arr1[i];\n if (arr2.indexOf(val) > -1) {\n return true;\n }\n }\n return false;\n }\n /**\n * This function will fitler the event list and hide/show specific items\n * based on the select checkboxes. If no checkboxes are selected we will show all\n * the events.\n *\n * @param {string[]} tags An array of tags that should appear in the event list.\n */\n function filterEventList(tags) {\n var events = $("#event-list li");\n var visibleEvents = 0;\n for (var i = 0; i < events.length; i++) {\n var event = $(events[i]);\n var dataEventType = event.attr("data-event-type").split(",");\n var shouldBeVisible = tags.length === 0 ? true : checkForIntersection(tags, dataEventType);\n if (shouldBeVisible) {\n visibleEvents += 1;\n event.removeClass("hidden");\n }\n else {\n event.addClass("hidden");\n }\n }\n if (visibleEvents === events.length) {\n $("#event-list-heading").text("All Upcoming Events");\n }\n else {\n $("#event-list-heading").text(visibleEvents + " Upcoming Events");\n }\n }\n // This is the start of the code that is executed on page load.\n var eventsElements = $(".event-tags span");\n var eventFilterParent = $("#eventFilter");\n // Check to see if the event elements exists.\n if (!eventsElements.length) {\n // Stop the script as there are no tags to filter.\n return;\n }\n if (!eventFilterParent.length) {\n // Stop the script because the event filter element does not exist.\n return;\n }\n var tags = [];\n // Loop through the tags and create a unique array of tag names and\n // append a checkbox to the event filter for each unique tag.\n for (var i = 0; i < eventsElements.length; i++) {\n var elem = eventsElements[i];\n // Grab the text of the element. We use the .text method because\n // it will grab the string value of the text.\n //\n // See: https://api.jquery.com/text/\n var text = $(elem).text();\n if (tags.indexOf(text) === -1) {\n tags.push(text);\n const input = createCheckbox(text);\n eventFilterParent.append(input);\n }\n }\n // Filter the events based on the filter query parameter.\n getFilterValuesAndFilterList();\n // This click handler will determine which checkboxes are selected\n // and then provide them to the filter event function to filter the events.\n $("#eventFilter input[type=\'checkbox\']").click(function () {\n getFilterValuesAndFilterList();\n });\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/event-filtering.ts?')},"./src/ts/main.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _stencil_dist__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stencil/dist */ "./stencil/dist/index.js");\n/* harmony import */ var _scss_main_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scss/main.scss */ "./src/scss/main.scss");\n/* harmony import */ var _misc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./misc */ "./src/ts/misc.ts");\n/* harmony import */ var _nav__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nav */ "./src/ts/nav.ts");\n/* harmony import */ var _carousel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./carousel */ "./src/ts/carousel.ts");\n/* harmony import */ var _carousel__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_carousel__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _chooser__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./chooser */ "./src/ts/chooser.ts");\n/* harmony import */ var _price_toggle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./price-toggle */ "./src/ts/price-toggle.ts");\n/* harmony import */ var _price_toggle__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_price_toggle__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _noselect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./noselect */ "./src/ts/noselect.ts");\n/* harmony import */ var _noselect__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_noselect__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _tracking__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./tracking */ "./src/ts/tracking.ts");\n/* harmony import */ var _tracking__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_tracking__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var _docs_feedback__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./docs-feedback */ "./src/ts/docs-feedback.ts");\n/* harmony import */ var _docs_feedback__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_docs_feedback__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _event_filtering__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./event-filtering */ "./src/ts/event-filtering.ts");\n/* harmony import */ var _copybutton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./copybutton */ "./src/ts/copybutton.ts");\n/* harmony import */ var _code_tabbed__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./code-tabbed */ "./src/ts/code-tabbed.ts");\n/* harmony import */ var _code_tabbed__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_code_tabbed__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var _resources__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./resources */ "./src/ts/resources.ts");\n/* harmony import */ var _resources__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_resources__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _packages__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./packages */ "./src/ts/packages.ts");\n/* harmony import */ var _packages__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_packages__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var _pricing_trial__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./pricing-trial */ "./src/ts/pricing-trial.ts");\n/* harmony import */ var _pricing_trial__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_pricing_trial__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _pricing__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./pricing */ "./src/ts/pricing.ts");\n/* harmony import */ var _pricing__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_pricing__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var _pulumi_cloud__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./pulumi-cloud */ "./src/ts/pulumi-cloud.ts");\n/* harmony import */ var _pulumi_cloud__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_pulumi_cloud__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var _developer_advocates__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./developer-advocates */ "./src/ts/developer-advocates.ts");\n/* harmony import */ var _developer_advocates__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_developer_advocates__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var _toc__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./toc */ "./src/ts/toc.ts");\n/* harmony import */ var _toc__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_toc__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var _docs_main__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./docs-main */ "./src/ts/docs-main.ts");\n/* harmony import */ var _docs_main__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_docs_main__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var _redirects__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./redirects */ "./src/ts/redirects.ts");\n/* harmony import */ var _redirects__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_redirects__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var _algolia_autocomplete__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./algolia/autocomplete */ "./src/ts/algolia/autocomplete.ts");\n/* harmony import */ var _terraform_compare__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./terraform-compare */ "./src/ts/terraform-compare.ts");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n// Register all Stencil components.\n(0,_stencil_dist__WEBPACK_IMPORTED_MODULE_0__.defineCustomElements)();\n\n\n//# sourceURL=webpack://theme/./src/ts/main.ts?')},"./src/ts/misc.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "generateOnThisPage": () => (/* binding */ generateOnThisPage)\n/* harmony export */ });\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./state */ "./src/ts/state.ts");\n\nconst navigationState = new _state__WEBPACK_IMPORTED_MODULE_0__.LocalStorageService("navigation-toggle-state");\nloadToggleStates();\nfunction bindToggle(el) {\n $(".toggleButton", el).click(function () {\n if ($(this).closest(".toggle, .toggleVisible")[0] != el) {\n // Only trigger the closest toggle header.\n return;\n }\n if ($(el).is(".toggle")) {\n $(el).addClass("toggleVisible").removeClass("toggle");\n }\n else {\n $(el).addClass("toggle").removeClass("toggleVisible");\n }\n });\n}\nfunction loadToggleStates() {\n // checks whether the menu item refers to the current page the\n // user is on.\n const isCurrentPage = (el) => {\n const browserUrl = window.location.href;\n const anchorRef = $(el).find(\'a\').attr(\'href\');\n return browserUrl.includes(anchorRef);\n };\n $(".toggle-topLevel, .toggleVisible-topLevel").each(function (i, el) {\n if (navigationState.getKey(el.id) == "expanded" || isCurrentPage(el)) {\n $(el).addClass("toggleVisible").removeClass("toggle");\n }\n else if (navigationState.getKey(el.id) == "collapsed") {\n $(el).addClass("toggle").removeClass("toggleVisible");\n }\n // Control open/closed folder icons if they exist as a subelement of the parent toggle-able item.\n $(el).click(function () {\n const folderOpenIcon = $(el).find(".folder-open");\n const folderClosedIcon = $(el).find(".folder");\n if (folderOpenIcon.length > 0) {\n folderOpenIcon.addClass("folder").removeClass("folder-open");\n }\n else if (folderClosedIcon.length > 0) {\n folderClosedIcon.addClass("folder-open").removeClass("folder");\n }\n });\n });\n $(".toggleVisible, .toggleVisible-topLevel").each(function (i, el) {\n // Scroll to active item in list.\n if (isCurrentPage(el)) {\n $("#left-nav").animate({\n scrollTop: $(el).offset().top - 145\n }, 0);\n }\n });\n}\nfunction updateToggleState(el, toggleState) {\n navigationState.updateKey(el.id, toggleState);\n}\nfunction bindTopLevelToggle(el) {\n $(".toggleButton-topLevel", el).click(function () {\n if ($(this).closest(".toggle-topLevel, .toggleVisible-topLevel")[0] != el) {\n // Only trigger the closest toggle header.\n return;\n }\n if ($(el).is(".toggle")) {\n $(el).addClass("toggleVisible").removeClass("toggle");\n updateToggleState(el, "expanded");\n }\n else {\n $(el).addClass("toggle").removeClass("toggleVisible");\n updateToggleState(el, "collapsed");\n }\n });\n}\nfunction bindTopLevelToggles(selector) {\n $(selector).each(function (i, el) {\n bindTopLevelToggle(el);\n });\n}\nfunction bindToggles(selector) {\n $(selector).each(function (i, el) {\n bindToggle(el);\n });\n}\nfunction generateOnThisPage() {\n // Hide the table of contents by default. We explicitly decide when to show it\n // below based on if elements exist to display.\n $(".table-of-contents").hide();\n var $ul = $(".table-of-contents .content ul.table-of-contents-list");\n if ($ul) {\n var found = false;\n var headings = [];\n $("h2, h3").each(function () {\n var $el = $(this);\n // Skip if this heading is inside a hidden element\n if ($el.closest(\'.hidden\').length > 0) {\n return;\n }\n var id = $el.attr("id");\n var text = $el.text();\n var linkTitle = $el.data("link-title");\n var tag = $el.prop("tagName").toLowerCase();\n if (id && text) {\n found = true;\n var li = $("
  • " + (linkTitle || text) + "
  • ");\n $ul.append(li);\n // Capture associated heading and list-item elements, so we can mark list\n // items active when they become visible.\n headings.push({\n element: $el,\n listItem: li,\n });\n }\n });\n // It\'s hidden by default. If we added links to the list, show it.\n if (found) {\n $(".table-of-contents").show();\n // Highlight the first heading whose offset from top is greater than the current scroll\n // position, to best indicate your location within the page hierarchy.\n const setActiveItem = () => {\n var active;\n for (var heading of headings) {\n if (!active && heading.element.offset().top >= window.scrollY) {\n active = heading;\n }\n heading.listItem.toggleClass("active", heading === active);\n }\n };\n $(window).on("scroll", function () {\n setActiveItem();\n });\n setActiveItem();\n }\n }\n}\n(function ($) {\n const observer = new IntersectionObserver(([e]) => {\n e.target.classList.toggle("is-pinned", e.intersectionRatio < 1);\n const pinnedSearchContainerEl = document.querySelector(".header-pinned");\n const dotOverlay = document.querySelector(".hide-on-pinned");\n const heroTitle = document.querySelector(".header-hero-title");\n if (e.isIntersecting) {\n $(pinnedSearchContainerEl).addClass("hidden");\n $(pinnedSearchContainerEl).removeClass("flex");\n $(dotOverlay).removeClass("hidden");\n $(dotOverlay).addClass("flex");\n $(heroTitle).removeClass("hidden");\n $(heroTitle).addClass("flex");\n }\n else {\n $(pinnedSearchContainerEl).removeClass("hidden");\n $(pinnedSearchContainerEl).addClass("flex");\n $(dotOverlay).addClass("hidden");\n $(dotOverlay).removeClass("flex");\n $(heroTitle).addClass("hidden");\n $(heroTitle).removeClass("flex");\n }\n }, { threshold: [1] });\n const headerContainerEl = document.querySelector(".header-container");\n // The header-container won\'t be available in the registry.\n // If the registry\'s top nav bar is available attach the observer to that.\n if (!headerContainerEl) {\n const registryNavBar = document.querySelector(".top-nav-bar.registry");\n if (registryNavBar) {\n observer.observe(registryNavBar);\n }\n }\n else {\n observer.observe(headerContainerEl);\n }\n // Set up toggle functionality.\n bindToggles(".toggle");\n bindToggles(".toggleVisible");\n bindTopLevelToggles(".toggle-topLevel");\n bindTopLevelToggles(".toggleVisible-topLevel");\n // Create "On This Page" in the right nav.\n generateOnThisPage();\n // Mobile menu toggles.\n $(".nav-header-toggle").click(function () {\n $(".nav-header-items").toggleClass("hidden");\n });\n $(".blog-sidebar-toggle").click(function () {\n $(".blog-sidebar-content").toggleClass("hidden");\n });\n $(".docs-sidebar-toggle").click(function () {\n $(".docs-sidebar-content").toggleClass("hidden");\n });\n // Shuffle lists that want to be shuffled.\n $("ul[data-shuffle=\'true\']").each(function (i, list) {\n var items = $(list).find("> li");\n items.each(function (i, item) {\n $(item).css("order", Math.ceil(Math.random() * items.length));\n });\n $(list).removeClass("invisible");\n });\n $(`#about-nav li[data-filter-name="who-we-are"]`).addClass("active-about-nav-item");\n $(function () {\n $("#about-nav li").click(function () {\n const activeClassName = "active-about-nav-item";\n $(this).addClass(activeClassName);\n const activeLink = $(this).data("filter-name");\n const allLinks = ["who-we-are", "what-we-believe", "community", "history", "awards", "newsroom", "join-us"];\n const inactiveLinks = allLinks.filter(link => link !== activeLink);\n inactiveLinks.forEach(link => {\n $(`#about-nav li[data-filter-name="${link}"]`).removeClass(activeClassName);\n });\n });\n });\n // Wrap "required" asterisks in tooltips.\n $("dl.resources-properties dt.property-required.property-replacement")\n .removeAttr("title")\n .find(".property-indicator")\n .replaceWith(\'
    \' + "" + \' \' + \' This property is required.\' + "" + "" + \'
    \' + "" + \' \' + \' \' + \'\' + \' Changes to this property will trigger replacement.\' + "" + "
    " + "
    ");\n $("dl.resources-properties dt.property-required:not(.property-replacement)")\n .removeAttr("title")\n .find(".property-indicator")\n .replaceWith("" + \' \' + \' This property is required.\' + "");\n $("dl.resources-properties dt.property-replacement:not(.property-required)")\n .removeAttr("title")\n .find(".property-indicator")\n .replaceWith("" + \' \' + \' \' + \'\' + \' Changes to this property will trigger replacement.\' + "");\n})(jQuery);\n\n\n//# sourceURL=webpack://theme/./src/ts/misc.ts?')},"./src/ts/nav.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./state */ "./src/ts/state.ts");\n\n(function (document, $) {\n // The main navigation bar. Binds handlers for showing and hiding\n // the big purple submenu on non-touch devices.\n var isTouchDevice = "ontouchstart" in document;\n if (!isTouchDevice) {\n $(".nav-header-items li a").mouseenter(function (event) {\n var item = $(event.target).data("submenu");\n $(".submenu-item").hide();\n $(".submenu-item-" + item).show();\n });\n $(".submenu").mouseleave(function (event) {\n // Only hide the submenu if the mouse moves to an element that\n // isn\'t the main menu.\n if (event.relatedTarget !== $("nav.nav-main").get(0)) {\n $(".submenu-item").hide();\n }\n });\n }\n // Handlers for mobile navigation menus.\n (function () {\n let whyPulumiOpened = false;\n let learnOpened = false;\n $("#why-pulumi-menu-label").click(function () {\n $("#mobile-dropdown").scroll();\n if (whyPulumiOpened) {\n $("#mobile-dropdown").animate({\n scrollTop: top\n }, 300);\n }\n else {\n $("#mobile-dropdown").animate({\n scrollTop: $("#why-pulumi-mobile-menu").position().top - 115\n }, 300);\n }\n whyPulumiOpened = !whyPulumiOpened;\n });\n $("#learn-menu-label").click(function () {\n $("#mobile-dropdown").scroll();\n if (learnOpened) {\n $("#mobile-dropdown").animate({\n scrollTop: top\n }, 300);\n }\n else {\n $("#mobile-dropdown").animate({\n scrollTop: $("#learn-mobile-menu").position().top - 115\n }, 300);\n }\n learnOpened = !learnOpened;\n });\n })();\n // track banner state in local storage.\n const bannerState = new _state__WEBPACK_IMPORTED_MODULE_0__.LocalStorageService("banner-state");\n const banner = $("#dismissable-banner");\n loadBannerState();\n // load saved state of the banner from local storage.\n function loadBannerState() {\n if (bannerState.getKey("dismissed") !== "true") {\n $(banner).css({ "display": "block" });\n }\n else {\n $(banner).css({ "display": "none" });\n }\n }\n // click handler for banner dismiss button.\n $("#dismiss-banner").on("click", function (e) {\n // intercept href event, so we don\'t navigate to the link.\n e.preventDefault();\n $(banner).css({ "display": "none" });\n bannerState.updateKey("dismissed", "true");\n });\n})(document, jQuery);\n\n\n//# sourceURL=webpack://theme/./src/ts/nav.ts?')},"./src/ts/noselect.ts":()=>{eval('$(function () {\n // Make the prompt inside command line code snippets unselectable.\n function noselect(langs, pattern) {\n var replaceWith = \'$1\';\n var selector = langs\n .map(function (lang) {\n return ".highlight .chroma .language-" + lang;\n })\n .join(", ");\n $(selector).each(function () {\n var $el = $(this);\n $el.html($el.html().replace(pattern, replaceWith));\n });\n }\n noselect(["bash", "sh", "shell", "zsh"], /([ |\\t]*\\$ )/gim);\n noselect(["bat", "batch", "batchfile", "powershell", "posh", "pwsh"], /([ |\\t]*><\\/span> )/gim);\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/noselect.ts?')},"./src/ts/packages.ts":()=>{eval('const filterByTextAndTags = (filters, filterText) => {\n // We custom match these so that if someone searches "amazon" they also get all\n // the "aws" results and vice versa, same for Google Cloud.\n const AMAZON_STRING = "amazon";\n const AWS_STRING = "aws";\n const GOOGLE_CLOUD_STRING = "gcp";\n const GCP_STRING = "google cloud";\n const GOOGLE_STRING = "google";\n const packages = $(".all-packages").find(".package");\n const noSelectedType = filters.find(f => f.group === "type") === undefined;\n const noSelectedCategory = filters.find(f => f.group === "category") === undefined;\n // Even if we have 0 filters or no filter text, if the other still exists, we\n // still need to show a filtered list of results.\n if (filters.length > 0 || filterText) {\n $(packages).addClass("hidden");\n $(packages).each((i, package) => {\n const el = $(package).find("[data-category]");\n const packageType = el.attr("data-type");\n const packageCategory = el.attr("data-category");\n const packageIsNative = packageType === "native-provider";\n const packageHasSelectedType = !!filters.find(f => f.group === "type" && f.value === packageType) || (filters.find(f => f.group === "type" && f.value === "provider") && packageIsNative);\n const packageHasSelectedCategory = !!filters.find(f => f.group === "category" && f.value === packageCategory);\n const packageTitle = el.attr("data-title");\n const downcasedPackageTitle = packageTitle.toLowerCase();\n const downcasedFilterText = filterText === null || filterText === void 0 ? void 0 : filterText.trim().toLowerCase();\n let packageIsAMatch;\n if (downcasedFilterText === AMAZON_STRING || downcasedFilterText === AWS_STRING) {\n packageIsAMatch = downcasedPackageTitle.includes(AMAZON_STRING) || downcasedPackageTitle.includes(AWS_STRING);\n }\n else if (downcasedFilterText === GOOGLE_CLOUD_STRING || downcasedFilterText === GCP_STRING || downcasedFilterText === GOOGLE_STRING) {\n packageIsAMatch = downcasedPackageTitle.includes(GOOGLE_CLOUD_STRING) || downcasedPackageTitle.includes(GCP_STRING) || downcasedPackageTitle.includes(GOOGLE_STRING);\n }\n else {\n packageIsAMatch = downcasedPackageTitle.includes(downcasedFilterText);\n }\n /**\n Show the package if it matches any of the selected filters. For example:\n\n * If type Component and type Provider are selected, show packages that are\n tagged as either "component" OR "provider", since those two filters belong\n to the same option group.\n\n * If type Component and use-case Cloud are selected, show packages that\n are tagged as both "component" AND "cloud", since those two filters\n belong to different option groups.\n\n * If nothing is selected from a given group, assume the intent is to see\n everything in that group (so don\'t apply any of the filters within it).\n\n * If there is text to filter on, only show packages that meet the above criteria\n AND match the filter text. If there is no text, show the full matching package list.\n */\n if ((packageHasSelectedType || noSelectedType) && (packageHasSelectedCategory || noSelectedCategory) && (!filterText || packageIsAMatch)) {\n $(package).removeClass("hidden");\n }\n });\n }\n else {\n $(packages).removeClass("hidden");\n }\n};\n$(".section-registry").on("filterSelect", event => {\n const source = event.target;\n const detail = event.detail;\n const filters = detail;\n // We need to cross reference the search input when filter change, so that\n // users get the combined results of the two mechanisms.\n const searchElement = $("pulumi-registry-list-search").get(0);\n const inputElement = $(searchElement).find(\'.registry-filter-input\');\n const filterText = inputElement.val();\n filterByTextAndTags(filters, filterText);\n // Update the list of active filters.\n const activeTags = $("ul.active-tags");\n activeTags.empty();\n filters.forEach(filter => {\n const tag = $($("#active-tag-template").html());\n tag.appendTo(activeTags);\n tag.attr("data-filter-group", filter.group).attr("data-filter-value", filter.value);\n tag.find("span").text(filter.label);\n tag.find("button").on("click", () => source.deselect(filter));\n });\n // Apply selections on the DOM, so cards and tags can use them as well.\n $(".packages, .active-tags")\n .attr("data-selected-types", filters\n .filter(f => f.group === "type")\n .map(t => t.value)\n .join(","))\n .attr("data-selected-categories", filters\n .filter(f => f.group === "category")\n .map(t => t.value)\n .join(","));\n // Update the count-badge value.\n const allCount = $(".all-packages .package:not(.hidden)").length;\n $(".all-count").text(allCount);\n // Close the menu.\n $("pulumi-filter-select-option-group").each((i, el) => el.close());\n});\n$(".section-registry .no-results .reset").on("click", event => {\n event.stopPropagation();\n const search = $("pulumi-registry-list-search").get(0);\n search.reset();\n const fs = $("pulumi-filter-select").get(0);\n fs.reset();\n filterByTextAndTags([], "");\n // Update the count-badge value.\n const allCount = $(".all-packages .package:not(.hidden)").length;\n $(".all-count").text(allCount);\n});\n$(".section-registry").on("packageSearch", event => {\n const filterText = event.detail;\n // We need to cross reference the filter tags when search changes, so that\n // users get the combined results of the two mechanisms.\n const filters = [];\n const activeTags = $("ul.active-tags").find("li");\n if (activeTags.length > 0) {\n activeTags.each((i, tag) => {\n const el = $(tag);\n const tagCategory = el.attr("data-filter-group");\n const tagValue = el.attr("data-filter-value");\n const tagLabel = el.attr("data-filter-label");\n filters.push({ group: tagCategory, value: tagValue, label: tagLabel });\n });\n }\n ;\n filterByTextAndTags(filters, filterText);\n // Update the count-badge value.\n const allCount = $(".all-packages .package:not(.hidden)").length;\n $(".all-count").text(allCount);\n});\ndocument.addEventListener("DOMContentLoaded", function () {\n const logoNavMenuButton = $(".logo-nav-button");\n const bgMask = $(".logo-nav-bg-mask");\n const logoNavMenu = $("#logo-nav-menu");\n function toggleMenu() {\n logoNavMenu.toggleClass("hidden");\n const navMenuVisible = logoNavMenu.is(":visible");\n logoNavMenuButton.attr("aria-expanded", `${navMenuVisible}`);\n $(".logo-nav-button .mobile-menu-toggle-icon").toggleClass("hidden");\n bgMask.toggleClass("hidden");\n }\n logoNavMenuButton.on("click", toggleMenu);\n // This handles closing the menu when selecting outside for Registry.\n bgMask.on("click", toggleMenu);\n // This handles closing the menu when selecting outside for non-Registry.\n $(document).on("click", function (event) {\n if ($(event.target).closest(logoNavMenuButton).length === 0 &&\n $(event.target).closest(logoNavMenu).length === 0 &&\n logoNavMenu.is(":visible")) {\n toggleMenu();\n }\n });\n // Close the menu when the page is scrolled past point where the\n // practitioner nav is replaced with the sticky search nav.\n $(document).on("scroll", function () {\n const PRACTITIONER_NAV_HEIGHT = 53;\n const scrollY = window.scrollY;\n if (scrollY > PRACTITIONER_NAV_HEIGHT && logoNavMenu.is(":visible")) {\n toggleMenu();\n }\n });\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/packages.ts?')},"./src/ts/price-toggle.ts":()=>{eval('// The first time the DOM is finished loading, wire up billing period listeners.\n$(document).on("rendered", function () {\n // If there\'s a billing period element on the page, wire up a change listener\n // so we can toggle the various pricing elements between annual/monthly.\n $("#billing-period").each(function (i, e) {\n e.addEventListener("change", function (ev) {\n if (ev && ev.target && ev.target.checked) {\n $(".billing-price-monthly").each(function (i, p) {\n $(p).hide();\n });\n $(".billing-price-annually").each(function (i, p) {\n $(p).show();\n });\n }\n else {\n $(".billing-price-monthly").each(function (i, p) {\n $(p).show();\n });\n $(".billing-price-annually").each(function (i, p) {\n $(p).hide();\n });\n }\n });\n });\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/price-toggle.ts?')},"./src/ts/pricing-trial.ts":()=>{eval('$(function () {\n // If the button is selected from any entry point, open the dialog.\n $("#pricingStartTrial").on("click", function () {\n $("#pricingTrialOptionsDialog").removeClass("hidden");\n });\n $("#pricingStartTrialBottomCTA").on("click", function () {\n $("#pricingTrialOptionsDialog").removeClass("hidden");\n });\n $("#businessCriticalStartTrialButton").on("click", function () {\n $("#pricingTrialOptionsDialog").removeClass("hidden");\n });\n $("#enterpriseStartTrialButton").on("click", function () {\n $("#pricingTrialOptionsDialog").removeClass("hidden");\n });\n $("#teamStartTrialButton").on("click", function () {\n $("#pricingTrialOptionsDialog").removeClass("hidden");\n });\n // If the close button in the dialog is selected, hide the dialog.\n $("#closePricingTrialOptionsDialog").on("click", function () {\n $("#pricingTrialOptionsDialog").addClass("hidden");\n });\n // If either link in the dialog is followed, hide the dialog.\n $("#startServiceTrial").on("click", function () {\n $("#pricingTrialOptionsDialog").addClass("hidden");\n });\n $("#startSelfHostedTrial").on("click", function () {\n $("#pricingTrialOptionsDialog").addClass("hidden");\n });\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/pricing-trial.ts?')},"./src/ts/pricing.ts":()=>{eval('$(function () {\n $("#iac-pricing-select").on("click", function () {\n // show/hide prices by tab\n $(".esc-price").addClass("hidden");\n $(".iac-price").removeClass("hidden");\n // flip tab styles\n $(\'#esc-pricing-select\').removeClass("border-blue-600 bg-violet-100");\n $(\'#esc-pricing-select\').addClass("border-gray-300");\n $(\'#esc-pricing-select-text\').removeClass("rainbow-text");\n $(\'#iac-pricing-select\').addClass("border-blue-600 bg-violet-100");\n $(\'#iac-pricing-select-text\').addClass("rainbow-text");\n });\n $("#esc-pricing-select").on("click", function () {\n // show/hide prices by tab\n $(".iac-price").addClass("hidden");\n $(".esc-price").removeClass("hidden");\n // flip tab styles\n $(\'#iac-pricing-select\').removeClass("border-blue-600 bg-violet-100");\n $(\'#iac-pricing-select\').addClass("border-gray-300");\n $(\'#iac-pricing-select-text\').removeClass("rainbow-text");\n $(\'#esc-pricing-select\').addClass("border-blue-600 bg-violet-100");\n $(\'#esc-pricing-select-text\').addClass("rainbow-text");\n });\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/pricing.ts?')},"./src/ts/pulumi-cloud.ts":()=>{eval('$(function () {\n const productTabs = ["iac-select", "esc-select", "insights-select"];\n const capabilityTabs = ["crossguard-select", "deployments-select", "copilot-select", "management-select"];\n productTabs.forEach(tab => {\n $(`#${tab}`).on("click", function () {\n // hide all others\n productTabs.forEach(id => {\n if (id !== tab) {\n $(`#${id}-content`).addClass("hidden");\n $(`#${id}`).removeClass("border-blue-600");\n $(`#${id}-text`).removeClass("rainbow-text");\n }\n });\n $(`#${tab}`).addClass("border-blue-600");\n $(`#${tab}-text`).addClass("rainbow-text");\n $(`#${tab}-content`).removeClass("hidden");\n });\n });\n capabilityTabs.forEach(tab => {\n $(`#${tab}`).on("click", function () {\n // hide all others\n capabilityTabs.forEach(id => {\n if (id !== tab) {\n $(`#${id}-content`).addClass("hidden");\n $(`#${id}`).removeClass("border-blue-600");\n $(`#${id}-text`).removeClass("rainbow-text");\n }\n });\n $(`#${tab}`).addClass("border-blue-600");\n $(`#${tab}-text`).addClass("rainbow-text");\n $(`#${tab}-content`).removeClass("hidden");\n });\n });\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/pulumi-cloud.ts?')},"./src/ts/redirects.ts":()=>{eval('const path = document.location.pathname;\nif (path === "/docs/intro/concepts/programming-model/" || path === "/docs/reference/programming-model/") {\n // The following list maps the headings that previously appeared on these pages to their new locations.\n // We use this list to determine whether we can redirect visitors from the old content to the new.\n let redirects = {\n "#additionalsecretoutputs": "/docs/concepts/resources/#additionalsecretoutputs",\n "#aliases": "/docs/concepts/resources/#aliases",\n "#all": "/docs/concepts/inputs-outputs/#all",\n "#apply": "/docs/concepts/inputs-outputs/#apply",\n "#assets-and-archives": "/docs/concepts/assets-archives/",\n "#autonaming": "/docs/concepts/resources/#autonaming",\n "#components": "/docs/concepts/resources/#components",\n "#config": "/docs/concepts/config",\n "#custom-resources": "/docs/concepts/resources/#custom-resources",\n "#declaring-infrastructure": "/docs/concepts/#overview",\n "#deletebeforereplace": "/docs/concepts/resources/#deletebeforereplace",\n "#dependson": "/docs/concepts/resources/#dependson",\n "#dynamicproviders": "/docs/concepts/resources/#dynamicproviders",\n "#explicit-provider-configuration": "/docs/concepts/resources/#explicit-provider-configuration",\n "#import": "/docs/concepts/resources/#import",\n "#introduction": "/docs/intro/concepts",\n "#lifting": "/docs/concepts/inputs-outputs/#lifting",\n "#names": "/docs/concepts/resources/#names",\n "#outputs": "/docs/concepts/inputs-outputs",\n "#outputs-and-strings": "/docs/concepts/inputs-outputs/#outputs-and-strings",\n "#program-structure": "/docs/concepts/#overview",\n "#programs": "/docs/concepts/#overview",\n "#providers": "/docs/concepts/resources/#providers",\n "#reading-configuration-values": "/docs/concepts/config/#code",\n "#resource-get": "/docs/concepts/resources/#resource-get",\n "#resource-providers": "/docs/concepts/resources/#providers",\n "#resourceoptions": "/docs/concepts/resources/#options",\n "#resources": "/docs/concepts/resources",\n "#runtime": "/docs/concepts/",\n "#runtime-functions": "/docs/concepts/",\n "#secrets": "/docs/concepts/secrets",\n "#stack-outputs": "/docs/concepts/stack/#outputs",\n "#stack-references": "/docs/concepts/stack/#stack-references",\n "#transformations": "/docs/concepts/resources/#transformations",\n };\n var redirect = redirects[location.hash];\n if (redirect) {\n location.href = redirect;\n }\n}\n\n\n//# sourceURL=webpack://theme/./src/ts/redirects.ts?')},"./src/ts/resources.ts":()=>{eval('const filterResourceItems = (filters) => {\n const events = $(".event-list").find(".event-card");\n const monthLabels = $(".event-list").find(".month-label");\n $(monthLabels).css("display", "none");\n const noResultsMessage = $(".pulumi-event-list-container").find(".no-results");\n $(noResultsMessage).removeClass("hidden");\n if (filters.length > 0) {\n $(events).each((i, event) => {\n const tags = ($(event).attr("data-filters")).split(" ");\n const dateLabel = $(event).attr("data-month-label");\n if (!tags.includes(location.hash.slice(1))) {\n $(event).css("display", "none");\n }\n else {\n let matches = 0;\n tags.forEach(tag => {\n if (filters.includes(tag)) {\n matches++;\n }\n });\n if (matches > 0) {\n $(noResultsMessage).addClass("hidden");\n $(event).css("display", "block");\n $(`.month-label.${dateLabel}`).css("display", "block");\n }\n else {\n $(event).css("display", "none");\n }\n }\n });\n }\n else {\n $(events).each((i, event) => {\n const tags = ($(event).attr("data-filters")).split(" ");\n const dateLabel = $(event).attr("data-month-label");\n if (!tags.includes(location.hash.slice(1))) {\n $(event).css("display", "none");\n const dateLabel = $(event).attr("data-month-label");\n }\n else {\n $(noResultsMessage).addClass("hidden");\n $(event).css("display", "block");\n $(`.month-label.${dateLabel}`).css("display", "block");\n }\n });\n }\n};\n$(".pulumi-event-list-container").on("filterSelect", event => {\n const detail = event.detail;\n const filters = detail;\n const filtersText = [];\n filters.forEach(filter => {\n filtersText.push(filter.value);\n });\n filterResourceItems(filtersText);\n});\n$(window).on(\'hashchange\', function () {\n const options = $(\'pulumi-filter-select-option\').toArray();\n let selectedFilters = [];\n options.forEach((option) => {\n const shadow = option.shadowRoot;\n if ($(shadow).find(\'.selected\').length > 0) {\n selectedFilters.push(option.value);\n }\n });\n filterResourceItems(selectedFilters);\n});\n$(function () {\n const resourcesEventListFilterNav = document.getElementById("event-list-filter-nav");\n if (resourcesEventListFilterNav) {\n // When the arrows are selected, they scroll the tertiary nav in either direction.\n $("#slideForward").on("click", function () {\n // The width of an individual tab, so the scroll brings one additional full tab into view.\n resourcesEventListFilterNav.scrollLeft += 180;\n });\n $("#slideBackwards").on("click", function () {\n // The width of an individual tab, so the scroll moves one full tab into view.\n resourcesEventListFilterNav.scrollLeft -= 180;\n });\n // If the last or first items are fully in view (depending on the scroll direction),\n // the scroll arrow button is hidden from view (since it\'s no longer possible to scroll).\n const options = {\n root: document.getElementById("event-list-filter-nav"),\n // To count as in view, the tab must be 100% in view.\n threshold: 1.0,\n };\n const controlScrollForwardVisibility = (entries, observer) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n $("#slideForward").addClass("hidden");\n }\n else {\n $("#slideForward").removeClass("hidden");\n }\n });\n };\n const scrollForwardObserver = new IntersectionObserver(controlScrollForwardVisibility, options);\n const lastNavItem = document.querySelector("#event-list-filter-nav li:last-of-type");\n scrollForwardObserver.observe(lastNavItem);\n const controlScrollBackwardVisibility = (entries, observer) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n $("#slideBackwards").addClass("hidden");\n }\n else {\n $("#slideBackwards").removeClass("hidden");\n }\n });\n };\n const scrollBackwardObserver = new IntersectionObserver(controlScrollBackwardVisibility, options);\n const firstNavItem = document.querySelector("#event-list-filter-nav li:first-of-type");\n scrollBackwardObserver.observe(firstNavItem);\n }\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/resources.ts?')},"./src/ts/state.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "LocalStorageService": () => (/* binding */ LocalStorageService)\n/* harmony export */ });\n// Service to persist state into local storage. We can expound on this more\n// in the future, but for now gives us what we need and something to work\n// with when persisting state.\nclass LocalStorageService {\n // name is the name of the key this service will use to store state.\n constructor(name) {\n this.serviceName = name;\n // load state from local storage.\n this.state = JSON.parse(window.localStorage.getItem(name) || "{}");\n }\n getState() {\n return this.state;\n }\n getKey(key) {\n return this.state[key];\n }\n updateKey(key, val) {\n this.state = Object.assign(this.state, { [key]: val });\n // persist state to local storage.\n window.localStorage.setItem(this.serviceName, JSON.stringify(this.state));\n }\n}\n;\n\n\n//# sourceURL=webpack://theme/./src/ts/state.ts?')},"./src/ts/terraform-compare.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _stencil_src_util_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../stencil/src/util/util */ "./stencil/src/util/util.ts");\n/* harmony import */ var _misc__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./misc */ "./src/ts/misc.ts");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util */ "./src/ts/util.ts");\n\n\n\nfunction runTerraformExperiment() {\n // Elements for both variants\n const controlElements = document.querySelectorAll(\'[data-tf-variant="control"]\');\n const newElements = document.querySelectorAll(\'[data-tf-variant="new"]\');\n // Check feature flag\n const urlVariant = (0,_util__WEBPACK_IMPORTED_MODULE_2__.getQueryVariable)(\'variant-vs-terraform-docs-page\');\n const showNewVariant = urlVariant ? urlVariant === \'1\' : _stencil_src_util_util__WEBPACK_IMPORTED_MODULE_0__.gb.isOn(\'20241028-vs-terraform-new\');\n // Toggle visibility\n controlElements.forEach(element => {\n element.classList.toggle(\'hidden\', showNewVariant);\n });\n newElements.forEach(element => {\n element.classList.toggle(\'hidden\', !showNewVariant);\n });\n // Clear and regenerate the "On This Page" navigation\n window.jQuery(".table-of-contents .content ul.table-of-contents-list").empty();\n (0,_misc__WEBPACK_IMPORTED_MODULE_1__.generateOnThisPage)();\n}\n_stencil_src_util_util__WEBPACK_IMPORTED_MODULE_0__.gb.setRenderer(() => {\n if (window.location.pathname === "/docs/iac/concepts/vs/terraform/") {\n runTerraformExperiment();\n }\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/terraform-compare.ts?')},"./src/ts/toc.ts":()=>{eval('$(function () {\n const pathTocHeaderMap = {\n "/docs/get-started/": "get-started-with-pulumi-toc-header",\n "/docs/": "intro-toc-header",\n "/docs/using-pulumi/": "user-guides-toc-header",\n "/docs/concepts/": "reference-toc-header",\n "/docs/support/": "support-toc-header",\n "/docs/iac/adopting-pulumi/converters/": "converters-toc-header",\n };\n Object.keys(pathTocHeaderMap).map(key => {\n const headerElement = document.getElementById(pathTocHeaderMap[key]);\n if (headerElement) {\n headerElement.classList.remove("active");\n if (document.location.pathname === key) {\n const container = document.getElementById("left-nav");\n headerElement.classList.add("active");\n container.scrollTop = headerElement.offsetTop - 100;\n }\n }\n });\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/toc.ts?')},"./src/ts/tracking.ts":()=>{eval('/*\n * Function for registering tracking to a link. To add tracking to a link you\n * need to have an "id" attritube on the element and the "track-click" attribute.\n *\n * - ex. GET STARTED\n */\n$(document).ready(function () {\n // Check if the analytics object and track function are available. If they are\n // not we do not even want to attempt to track anything.\n if (window && window["analytics"] && typeof window["analytics"].track === "function") {\n // Find all the links with a "data-track" attribute.\n const links = $("a");\n // Get the current date/time so we can track time from page load to user click.\n const now = new Date().getTime();\n function registerTracker(element, i) {\n const elem = $(element);\n // If jQuery doesn\'t find the element return.\n if (!elem) {\n return;\n }\n // Get the tracking id.\n const dataTrack = elem.attr("data-track");\n const href = (elem.attr("href") || "").replace(/https?:\\/\\//g, "");\n const trackingDescription = dataTrack ? dataTrack : href.replace(/^#/, "anchor-").replace(/^\\//, "").split("/").join("-");\n const currentPath = window.location.pathname === "/" ? "home" : window.location.pathname;\n const path = currentPath\n .split("/")\n .filter(function (segment) {\n return segment !== "";\n })\n .map(function (segment) {\n return segment;\n });\n const trackingId = path.concat(trackingDescription, i).join("-");\n // Create the tracking object.\n const trackingData = {\n // The id of the element.\n element_id: trackingId,\n // The destination url of the link.\n destinationPath: elem.attr("href"),\n // The current path.\n url: window.location.pathname,\n // The Google Analytic Event Values. These values are pushed into GA\n // specifically. More info: https://support.google.com/analytics/answer/1033068#Anatomy\n category: "User Interaction",\n label: trackingId,\n value: undefined,\n };\n // Register a listener to the link to send data to Segment\n // when it has been clicked.\n elem.on("click", function (e) {\n // The value is the time in seconds from page load to user action.\n trackingData.value = (new Date().getTime() - now) / 1000;\n window["analytics"].track("link-click", trackingData);\n });\n }\n // Loop over the array of elements to register the click listeners.\n for (var i = 0; i < links.length; i++) {\n registerTracker(links[i], i);\n }\n // Remove the event listeners when we navigate to a new page.\n $(window).on("unload", function () {\n for (var i = 0; i < links.length; i++) {\n $(links[i]).off("click");\n }\n });\n }\n});\n\n\n//# sourceURL=webpack://theme/./src/ts/tracking.ts?')},"./src/ts/util.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "getQueryVariable": () => (/* binding */ getQueryVariable)\n/* harmony export */ });\n// Extracts a query string variable from the browser\'s location.\nfunction getQueryVariable(variable) {\n var query = window.location.search.substring(1);\n var vars = query.split("&");\n for (var i = 0; i < vars.length; i++) {\n var pair = vars[i].split("=");\n if (pair[0] === variable) {\n return decodeURIComponent(pair[1].replace(/\\+/g, "%20"));\n }\n }\n}\n\n\n//# sourceURL=webpack://theme/./src/ts/util.ts?')},"./stencil/src/util/util.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "gb": () => (/* binding */ gb),\n/* harmony export */ "getQueryVariable": () => (/* binding */ getQueryVariable),\n/* harmony export */ "getUUID": () => (/* binding */ getUUID),\n/* harmony export */ "parseCookie": () => (/* binding */ parseCookie),\n/* harmony export */ "parseUTMCookieString": () => (/* binding */ parseUTMCookieString),\n/* harmony export */ "waitForElementToExist": () => (/* binding */ waitForElementToExist),\n/* harmony export */ "waitForWindowPropertyToExist": () => (/* binding */ waitForWindowPropertyToExist)\n/* harmony export */ });\n/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uuid */ "./stencil/node_modules/uuid/dist/esm-browser/v4.js");\n/* harmony import */ var _growthbook_growthbook__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @growthbook/growthbook */ "./node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs");\n\n\n// Initialize GrowthBook\nconst gb = new _growthbook_growthbook__WEBPACK_IMPORTED_MODULE_0__.GrowthBook({\n apiHost: "https://cdn.growthbook.io",\n clientKey: window.growthbook_sdk_key,\n decryptionKey: window.growthbook_decrypt_key,\n enableDevMode: window.growthbook_dev_mode,\n});\ngb.init({ streaming: true });\n// Hook up GrowthBook to analytics when ready\nwindow.analytics.ready(function () {\n gb.setTrackingCallback((experiment, result) => {\n window.analytics.track("Experiment Viewed", {\n experimentId: experiment.key,\n variationId: result.key,\n });\n });\n gb.setAttributes(Object.assign(Object.assign({}, gb.getAttributes()), { id: window.analytics.user().anonymousId(), userId: window.analytics.user().id(), url: window.location.href, path: window.location.pathname, query: window.location.search, referrer: document.referrer, utmCampaign: getQueryVariable("utm_campaign"), utmSource: getQueryVariable("utm_source"), utmMedium: getQueryVariable("utm_medium"), utmTerm: getQueryVariable("utm_term"), utmContent: getQueryVariable("utm_content") }));\n});\n// Extracts a query string variable from the browser\'s location.\nfunction getQueryVariable(paramKey) {\n const query = window.location.search.substring(1);\n const vars = query.split("&");\n let paramVal = null;\n vars.forEach(v => {\n const pair = v.split("=");\n if (pair[0] === paramKey) {\n paramVal = decodeURIComponent(pair[1].replace(/\\+/g, "%20"));\n }\n });\n return paramVal;\n}\nfunction getUUID() {\n return uuid__WEBPACK_IMPORTED_MODULE_1__["default"]();\n}\n// waitForElementToExist waits for an element to exists on the DOM and timesout\n// after a set amount of time.\nfunction waitForElementToExist(selector, timeout = 3000) {\n return new Promise((resolve, reject) => {\n const element = document.querySelector(selector);\n // If the element exists let\'s return it.\n if (element) {\n return resolve(element);\n }\n // Poll for the element to exist.\n const interval = setInterval(() => {\n const intervalElement = document.querySelector(selector);\n // If the element exists return it.\n if (intervalElement) {\n clearInterval(interval);\n return resolve(intervalElement);\n }\n }, 100);\n // Timeout the function and clear the interval.\n setTimeout(() => {\n clearInterval(interval);\n return reject(new Error(`The provided selector [${selector}] was not found on the DOM after ${timeout}ms.`));\n }, timeout);\n });\n}\n// waitForWindowPropertyToExist waits for a property to exist on the global window\n// variable.\nfunction waitForWindowPropertyToExist(key, timeout = 3000) {\n return new Promise((resolve, reject) => {\n const property = window[key];\n // If the property exists lets return it.\n if (property) {\n return resolve(property);\n }\n // Poll for the property to exist.\n const interval = setInterval(() => {\n const intervalProperty = window[key];\n // If the property exists lets return it.\n if (intervalProperty) {\n clearInterval(interval);\n return resolve(intervalProperty);\n }\n }, 100);\n // Timeout the function and clear the interval.\n setTimeout(() => {\n clearInterval(interval);\n return reject(new Error(`The provided key [${key}] didn\'t propogate after ${timeout}ms.`));\n }, timeout);\n });\n}\n// parseUTMCookieString parses a UTM cookie string and returns an object of the values.\nfunction parseUTMCookieString(utmCookieString) {\n return (utmCookieString || "").split("|").reduce((obj, utm) => {\n const parts = utm.split("=");\n obj[parts[0]] = parts[1];\n return obj;\n }, {});\n}\n// parseCookie parses the document\'s cookie into an object.\nfunction parseCookie() {\n return document.cookie.split(";").reduce((obj, cookie) => {\n const index = cookie.indexOf("=");\n const key = cookie.substring(0, index).trim();\n const value = cookie.substring(index + 1).trim();\n obj[key] = value;\n return obj;\n }, {});\n}\n\n\n//# sourceURL=webpack://theme/./stencil/src/util/util.ts?')},"./stencil/dist/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"CopilotSidebar\": () => (/* binding */ CopilotSidebar),\n/* harmony export */ \"EventSessionRegistrationModal\": () => (/* binding */ EventSessionRegistrationModal),\n/* harmony export */ \"HeaderCta\": () => (/* binding */ HeaderCta),\n/* harmony export */ \"HomeSlots\": () => (/* binding */ HomeSlots),\n/* harmony export */ \"PricingCta\": () => (/* binding */ PricingCta),\n/* harmony export */ \"PulumiApiDocFilterableNav\": () => (/* binding */ PulumiApiDocFilterableNav),\n/* harmony export */ \"PulumiApiDocNavNode\": () => (/* binding */ PulumiApiDocNavNode),\n/* harmony export */ \"PulumiApiDocNavTree\": () => (/* binding */ PulumiApiDocNavTree),\n/* harmony export */ \"PulumiAudio\": () => (/* binding */ PulumiAudio),\n/* harmony export */ \"PulumiBanner\": () => (/* binding */ PulumiBanner),\n/* harmony export */ \"PulumiChoosable\": () => (/* binding */ PulumiChoosable),\n/* harmony export */ \"PulumiChooser\": () => (/* binding */ PulumiChooser),\n/* harmony export */ \"PulumiContactUsForm\": () => (/* binding */ PulumiContactUsForm),\n/* harmony export */ \"PulumiConvert\": () => (/* binding */ PulumiConvert),\n/* harmony export */ \"PulumiDateCountdown\": () => (/* binding */ PulumiDateCountdown),\n/* harmony export */ \"PulumiDateCountdownCircles\": () => (/* binding */ PulumiDateCountdownCircles),\n/* harmony export */ \"PulumiDatetime\": () => (/* binding */ PulumiDatetime),\n/* harmony export */ \"PulumiDeveloperQuotes\": () => (/* binding */ PulumiDeveloperQuotes),\n/* harmony export */ \"PulumiDocsNav\": () => (/* binding */ PulumiDocsNav),\n/* harmony export */ \"PulumiExample\": () => (/* binding */ PulumiExample),\n/* harmony export */ \"PulumiExamples\": () => (/* binding */ PulumiExamples),\n/* harmony export */ \"PulumiFilterSelect\": () => (/* binding */ PulumiFilterSelect),\n/* harmony export */ \"PulumiFilterSelectOption\": () => (/* binding */ PulumiFilterSelectOption),\n/* harmony export */ \"PulumiFilterSelectOptionGroup\": () => (/* binding */ PulumiFilterSelectOptionGroup),\n/* harmony export */ \"PulumiGreenhouseJobsList\": () => (/* binding */ PulumiGreenhouseJobsList),\n/* harmony export */ \"PulumiHubspotForm\": () => (/* binding */ PulumiHubspotForm),\n/* harmony export */ \"PulumiInstall\": () => (/* binding */ PulumiInstall),\n/* harmony export */ \"PulumiMultiSelectForm\": () => (/* binding */ PulumiMultiSelectForm),\n/* harmony export */ \"PulumiPricingCalculator\": () => (/* binding */ PulumiPricingCalculator),\n/* harmony export */ \"PulumiRegistryListSearch\": () => (/* binding */ PulumiRegistryListSearch),\n/* harmony export */ \"PulumiResourceLinks\": () => (/* binding */ PulumiResourceLinks),\n/* harmony export */ \"PulumiRoot\": () => (/* binding */ PulumiRoot),\n/* harmony export */ \"PulumiSlotMachine\": () => (/* binding */ PulumiSlotMachine),\n/* harmony export */ \"PulumiSwipeable\": () => (/* binding */ PulumiSwipeable),\n/* harmony export */ \"PulumiSwiper\": () => (/* binding */ PulumiSwiper),\n/* harmony export */ \"PulumiTab\": () => (/* binding */ PulumiTab),\n/* harmony export */ \"PulumiTabs\": () => (/* binding */ PulumiTabs),\n/* harmony export */ \"PulumiTertiaryNav\": () => (/* binding */ PulumiTertiaryNav),\n/* harmony export */ \"PulumiTooltip\": () => (/* binding */ PulumiTooltip),\n/* harmony export */ \"PulumiTopButton\": () => (/* binding */ PulumiTopButton),\n/* harmony export */ \"PulumiUserToggle\": () => (/* binding */ PulumiUserToggle),\n/* harmony export */ \"PulumiWebinarFormSelect\": () => (/* binding */ PulumiWebinarFormSelect),\n/* harmony export */ \"defineCustomElements\": () => (/* binding */ defineCustomElements),\n/* harmony export */ \"setAssetPath\": () => (/* reexport safe */ _stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.setAssetPath),\n/* harmony export */ \"setPlatformOptions\": () => (/* reexport safe */ _stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.setPlatformOptions)\n/* harmony export */ });\n/* harmony import */ var _stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @stencil/core/internal/client */ \"./stencil/node_modules/@stencil/core/internal/client/index.js\");\n\n\n\n// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nfunction rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}\n\nconst REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nconst polyfills$1 = {\n fetch: globalThis.fetch ? globalThis.fetch.bind(globalThis) : undefined,\n SubtleCrypto: globalThis.crypto ? globalThis.crypto.subtle : undefined,\n EventSource: globalThis.EventSource\n};\nfunction getPolyfills() {\n return polyfills$1;\n}\nfunction hashFnv32a(str) {\n let hval = 0x811c9dc5;\n const l = str.length;\n for (let i = 0; i < l; i++) {\n hval ^= str.charCodeAt(i);\n hval += (hval << 1) + (hval << 4) + (hval << 7) + (hval << 8) + (hval << 24);\n }\n return hval >>> 0;\n}\nfunction hash(seed, value, version) {\n // New unbiased hashing algorithm\n if (version === 2) {\n return hashFnv32a(hashFnv32a(seed + value) + \"\") % 10000 / 10000;\n }\n // Original biased hashing algorithm (keep for backwards compatibility)\n if (version === 1) {\n return hashFnv32a(value + seed) % 1000 / 1000;\n }\n\n // Unknown hash version\n return null;\n}\nfunction getEqualWeights(n) {\n if (n <= 0) return [];\n return new Array(n).fill(1 / n);\n}\nfunction inRange(n, range) {\n return n >= range[0] && n < range[1];\n}\nfunction inNamespace(hashValue, namespace) {\n const n = hash(\"__\" + namespace[0], hashValue, 1);\n if (n === null) return false;\n return n >= namespace[1] && n < namespace[2];\n}\nfunction chooseVariation(n, ranges) {\n for (let i = 0; i < ranges.length; i++) {\n if (inRange(n, ranges[i])) {\n return i;\n }\n }\n return -1;\n}\nfunction getUrlRegExp(regexString) {\n try {\n const escaped = regexString.replace(/([^\\\\])\\//g, \"$1\\\\/\");\n return new RegExp(escaped);\n } catch (e) {\n console.error(e);\n return undefined;\n }\n}\nfunction isURLTargeted(url, targets) {\n if (!targets.length) return false;\n let hasIncludeRules = false;\n let isIncluded = false;\n for (let i = 0; i < targets.length; i++) {\n const match = _evalURLTarget(url, targets[i].type, targets[i].pattern);\n if (targets[i].include === false) {\n if (match) return false;\n } else {\n hasIncludeRules = true;\n if (match) isIncluded = true;\n }\n }\n return isIncluded || !hasIncludeRules;\n}\nfunction _evalSimpleUrlPart(actual, pattern, isPath) {\n try {\n // Escape special regex characters and change wildcard `_____` to `.*`\n let escaped = pattern.replace(/[*.+?^${}()|[\\]\\\\]/g, \"\\\\$&\").replace(/_____/g, \".*\");\n if (isPath) {\n // When matching pathname, make leading/trailing slashes optional\n escaped = \"\\\\/?\" + escaped.replace(/(^\\/|\\/$)/g, \"\") + \"\\\\/?\";\n }\n const regex = new RegExp(\"^\" + escaped + \"$\", \"i\");\n return regex.test(actual);\n } catch (e) {\n return false;\n }\n}\nfunction _evalSimpleUrlTarget(actual, pattern) {\n try {\n // If a protocol is missing, but a host is specified, add `https://` to the front\n // Use \"_____\" as the wildcard since `*` is not a valid hostname in some browsers\n const expected = new URL(pattern.replace(/^([^:/?]*)\\./i, \"https://$1.\").replace(/\\*/g, \"_____\"), \"https://_____\");\n\n // Compare each part of the URL separately\n const comps = [[actual.host, expected.host, false], [actual.pathname, expected.pathname, true]];\n // We only want to compare hashes if it's explicitly being targeted\n if (expected.hash) {\n comps.push([actual.hash, expected.hash, false]);\n }\n expected.searchParams.forEach((v, k) => {\n comps.push([actual.searchParams.get(k) || \"\", v, false]);\n });\n\n // If any comparisons fail, the whole thing fails\n return !comps.some(data => !_evalSimpleUrlPart(data[0], data[1], data[2]));\n } catch (e) {\n return false;\n }\n}\nfunction _evalURLTarget(url, type, pattern) {\n try {\n const parsed = new URL(url, \"https://_\");\n if (type === \"regex\") {\n const regex = getUrlRegExp(pattern);\n if (!regex) return false;\n return regex.test(parsed.href) || regex.test(parsed.href.substring(parsed.origin.length));\n } else if (type === \"simple\") {\n return _evalSimpleUrlTarget(parsed, pattern);\n }\n return false;\n } catch (e) {\n return false;\n }\n}\nfunction getBucketRanges(numVariations, coverage, weights) {\n coverage = coverage === undefined ? 1 : coverage;\n\n // Make sure coverage is within bounds\n if (coverage < 0) {\n coverage = 0;\n } else if (coverage > 1) {\n coverage = 1;\n }\n\n // Default to equal weights if missing or invalid\n const equal = getEqualWeights(numVariations);\n weights = weights || equal;\n if (weights.length !== numVariations) {\n weights = equal;\n }\n\n // If weights don't add up to 1 (or close to it), default to equal weights\n const totalWeight = weights.reduce((w, sum) => sum + w, 0);\n if (totalWeight < 0.99 || totalWeight > 1.01) {\n weights = equal;\n }\n\n // Covert weights to ranges\n let cumulative = 0;\n return weights.map(w => {\n const start = cumulative;\n cumulative += w;\n return [start, start + coverage * w];\n });\n}\nfunction getQueryStringOverride(id, url, numVariations) {\n if (!url) {\n return null;\n }\n const search = url.split(\"?\")[1];\n if (!search) {\n return null;\n }\n const match = search.replace(/#.*/, \"\") // Get rid of anchor\n .split(\"&\") // Split into key/value pairs\n .map(kv => kv.split(\"=\", 2)).filter(_ref => {\n let [k] = _ref;\n return k === id;\n }) // Look for key that matches the experiment id\n .map(_ref2 => {\n let [, v] = _ref2;\n return parseInt(v);\n }); // Parse the value into an integer\n\n if (match.length > 0 && match[0] >= 0 && match[0] < numVariations) return match[0];\n return null;\n}\nfunction isIncluded(include) {\n try {\n return include();\n } catch (e) {\n console.error(e);\n return false;\n }\n}\nconst base64ToBuf = b => Uint8Array.from(atob(b), c => c.charCodeAt(0));\nasync function decrypt(encryptedString, decryptionKey, subtle) {\n decryptionKey = decryptionKey || \"\";\n subtle = subtle || globalThis.crypto && globalThis.crypto.subtle || polyfills$1.SubtleCrypto;\n if (!subtle) {\n throw new Error(\"No SubtleCrypto implementation found\");\n }\n try {\n const key = await subtle.importKey(\"raw\", base64ToBuf(decryptionKey), {\n name: \"AES-CBC\",\n length: 128\n }, true, [\"encrypt\", \"decrypt\"]);\n const [iv, cipherText] = encryptedString.split(\".\");\n const plainTextBuffer = await subtle.decrypt({\n name: \"AES-CBC\",\n iv: base64ToBuf(iv)\n }, key, base64ToBuf(cipherText));\n return new TextDecoder().decode(plainTextBuffer);\n } catch (e) {\n throw new Error(\"Failed to decrypt\");\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction toString(input) {\n if (typeof input === \"string\") return input;\n return JSON.stringify(input);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction paddedVersionString(input) {\n if (typeof input === \"number\") {\n input = input + \"\";\n }\n if (!input || typeof input !== \"string\") {\n input = \"0\";\n }\n // Remove build info and leading `v` if any\n // Split version into parts (both core version numbers and pre-release tags)\n // \"v1.2.3-rc.1+build123\" -> [\"1\",\"2\",\"3\",\"rc\",\"1\"]\n const parts = input.replace(/(^v|\\+.*$)/g, \"\").split(/[-.]/);\n\n // If it's SemVer without a pre-release, add `~` to the end\n // [\"1\",\"0\",\"0\"] -> [\"1\",\"0\",\"0\",\"~\"]\n // \"~\" is the largest ASCII character, so this will make \"1.0.0\" greater than \"1.0.0-beta\" for example\n if (parts.length === 3) {\n parts.push(\"~\");\n }\n\n // Left pad each numeric part with spaces so string comparisons will work (\"9\">\"10\", but \" 9\"<\"10\")\n // Then, join back together into a single string\n return parts.map(v => v.match(/^[0-9]+$/) ? v.padStart(5, \" \") : v).join(\"-\");\n}\nfunction loadSDKVersion() {\n let version;\n try {\n // @ts-expect-error right-hand value to be replaced by build with string literal\n version = \"1.2.1\";\n } catch (e) {\n version = \"\";\n }\n return version;\n}\nfunction mergeQueryStrings(oldUrl, newUrl) {\n let currUrl;\n let redirectUrl;\n try {\n currUrl = new URL(oldUrl);\n redirectUrl = new URL(newUrl);\n } catch (e) {\n console.error(\"Unable to merge query strings: \".concat(e));\n return newUrl;\n }\n currUrl.searchParams.forEach((value, key) => {\n // skip if search param already exists in redirectUrl\n if (redirectUrl.searchParams.has(key)) {\n return;\n }\n redirectUrl.searchParams.set(key, value);\n });\n return redirectUrl.toString();\n}\nfunction isObj(x) {\n return typeof x === \"object\" && x !== null;\n}\nfunction getAutoExperimentChangeType(exp) {\n if (exp.urlPatterns && exp.variations.some(variation => isObj(variation) && \"urlRedirect\" in variation)) {\n return \"redirect\";\n } else if (exp.variations.some(variation => isObj(variation) && (variation.domMutations || \"js\" in variation || \"css\" in variation))) {\n return \"visual\";\n }\n return \"unknown\";\n}\n\n// Guarantee the promise always resolves within {timeout} ms\n// Resolved value will be `null` when there's an error or it takes too long\n// Note: The promise will continue running in the background, even if the timeout is hit\nasync function promiseTimeout(promise, timeout) {\n return new Promise(resolve => {\n let resolved = false;\n let timer;\n const finish = data => {\n if (resolved) return;\n resolved = true;\n timer && clearTimeout(timer);\n resolve(data || null);\n };\n if (timeout) {\n timer = setTimeout(() => finish(), timeout);\n }\n promise.then(data => finish(data)).catch(() => finish());\n });\n}\n\n// Config settings\nconst cacheSettings = {\n // Consider a fetch stale after 1 minute\n staleTTL: 1000 * 60,\n // Max time to keep a fetch in cache (4 hours default)\n maxAge: 1000 * 60 * 60 * 4,\n cacheKey: \"gbFeaturesCache\",\n backgroundSync: true,\n maxEntries: 10,\n disableIdleStreams: false,\n idleStreamInterval: 20000,\n disableCache: false\n};\nconst polyfills = getPolyfills();\nconst helpers = {\n fetchFeaturesCall: _ref => {\n let {\n host,\n clientKey,\n headers\n } = _ref;\n return polyfills.fetch(\"\".concat(host, \"/api/features/\").concat(clientKey), {\n headers\n });\n },\n fetchRemoteEvalCall: _ref2 => {\n let {\n host,\n clientKey,\n payload,\n headers\n } = _ref2;\n const options = {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...headers\n },\n body: JSON.stringify(payload)\n };\n return polyfills.fetch(\"\".concat(host, \"/api/eval/\").concat(clientKey), options);\n },\n eventSourceCall: _ref3 => {\n let {\n host,\n clientKey,\n headers\n } = _ref3;\n if (headers) {\n return new polyfills.EventSource(\"\".concat(host, \"/sub/\").concat(clientKey), {\n headers\n });\n }\n return new polyfills.EventSource(\"\".concat(host, \"/sub/\").concat(clientKey));\n },\n startIdleListener: () => {\n let idleTimeout;\n const isBrowser = typeof window !== \"undefined\" && typeof document !== \"undefined\";\n if (!isBrowser) return;\n const onVisibilityChange = () => {\n if (document.visibilityState === \"visible\") {\n window.clearTimeout(idleTimeout);\n onVisible();\n } else if (document.visibilityState === \"hidden\") {\n idleTimeout = window.setTimeout(onHidden, cacheSettings.idleStreamInterval);\n }\n };\n document.addEventListener(\"visibilitychange\", onVisibilityChange);\n return () => document.removeEventListener(\"visibilitychange\", onVisibilityChange);\n },\n stopIdleListener: () => {\n // No-op, replaced by startIdleListener\n }\n};\ntry {\n if (globalThis.localStorage) {\n polyfills.localStorage = globalThis.localStorage;\n }\n} catch (e) {\n // Ignore localStorage errors\n}\n\n// Global state\nconst subscribedInstances = new Map();\nlet cacheInitialized = false;\nconst cache = new Map();\nconst activeFetches = new Map();\nconst streams = new Map();\nconst supportsSSE = new Set();\nfunction configureCache(overrides) {\n Object.assign(cacheSettings, overrides);\n if (!cacheSettings.backgroundSync) {\n clearAutoRefresh();\n }\n}\n\n// Get or fetch features and refresh the SDK instance\nasync function refreshFeatures(_ref4) {\n let {\n instance,\n timeout,\n skipCache,\n allowStale,\n backgroundSync\n } = _ref4;\n if (!backgroundSync) {\n cacheSettings.backgroundSync = false;\n }\n return fetchFeaturesWithCache({\n instance,\n allowStale,\n timeout,\n skipCache\n });\n}\n\n// Subscribe a GrowthBook instance to feature changes\nfunction subscribe(instance) {\n const key = getKey(instance);\n const subs = subscribedInstances.get(key) || new Set();\n subs.add(instance);\n subscribedInstances.set(key, subs);\n}\nfunction unsubscribe(instance) {\n subscribedInstances.forEach(s => s.delete(instance));\n}\nfunction onHidden() {\n streams.forEach(channel => {\n if (!channel) return;\n channel.state = \"idle\";\n disableChannel(channel);\n });\n}\nfunction onVisible() {\n streams.forEach(channel => {\n if (!channel) return;\n if (channel.state !== \"idle\") return;\n enableChannel(channel);\n });\n}\n\n// Private functions\n\nasync function updatePersistentCache() {\n try {\n if (!polyfills.localStorage) return;\n await polyfills.localStorage.setItem(cacheSettings.cacheKey, JSON.stringify(Array.from(cache.entries())));\n } catch (e) {\n // Ignore localStorage errors\n }\n}\n\n// SWR wrapper for fetching features. May indirectly or directly start SSE streaming.\nasync function fetchFeaturesWithCache(_ref5) {\n let {\n instance,\n allowStale,\n timeout,\n skipCache\n } = _ref5;\n const key = getKey(instance);\n const cacheKey = getCacheKey(instance);\n const now = new Date();\n const minStaleAt = new Date(now.getTime() - cacheSettings.maxAge + cacheSettings.staleTTL);\n await initializeCache();\n const existing = !cacheSettings.disableCache && !skipCache ? cache.get(cacheKey) : undefined;\n if (existing && (allowStale || existing.staleAt > now) && existing.staleAt > minStaleAt) {\n // Restore from cache whether SSE is supported\n if (existing.sse) supportsSSE.add(key);\n\n // Reload features in the background if stale\n if (existing.staleAt < now) {\n fetchFeatures(instance);\n }\n // Otherwise, if we don't need to refresh now, start a background sync\n else {\n startAutoRefresh(instance);\n }\n return {\n data: existing.data,\n success: true,\n source: \"cache\"\n };\n } else {\n const res = await promiseTimeout(fetchFeatures(instance), timeout);\n return res || {\n data: null,\n success: false,\n source: \"timeout\",\n error: new Error(\"Timeout\")\n };\n }\n}\nfunction getKey(instance) {\n const [apiHost, clientKey] = instance.getApiInfo();\n return \"\".concat(apiHost, \"||\").concat(clientKey);\n}\nfunction getCacheKey(instance) {\n const baseKey = getKey(instance);\n if (!instance.isRemoteEval()) return baseKey;\n const attributes = instance.getAttributes();\n const cacheKeyAttributes = instance.getCacheKeyAttributes() || Object.keys(instance.getAttributes());\n const ca = {};\n cacheKeyAttributes.forEach(key => {\n ca[key] = attributes[key];\n });\n const fv = instance.getForcedVariations();\n const url = instance.getUrl();\n return \"\".concat(baseKey, \"||\").concat(JSON.stringify({\n ca,\n fv,\n url\n }));\n}\n\n// Populate cache from localStorage (if available)\nasync function initializeCache() {\n if (cacheInitialized) return;\n cacheInitialized = true;\n try {\n if (polyfills.localStorage) {\n const value = await polyfills.localStorage.getItem(cacheSettings.cacheKey);\n if (!cacheSettings.disableCache && value) {\n const parsed = JSON.parse(value);\n if (parsed && Array.isArray(parsed)) {\n parsed.forEach(_ref6 => {\n let [key, data] = _ref6;\n cache.set(key, {\n ...data,\n staleAt: new Date(data.staleAt)\n });\n });\n }\n cleanupCache();\n }\n }\n } catch (e) {\n // Ignore localStorage errors\n }\n if (!cacheSettings.disableIdleStreams) {\n const cleanupFn = helpers.startIdleListener();\n if (cleanupFn) {\n helpers.stopIdleListener = cleanupFn;\n }\n }\n}\n\n// Enforce the maxEntries limit\nfunction cleanupCache() {\n const entriesWithTimestamps = Array.from(cache.entries()).map(_ref7 => {\n let [key, value] = _ref7;\n return {\n key,\n staleAt: value.staleAt.getTime()\n };\n }).sort((a, b) => a.staleAt - b.staleAt);\n const entriesToRemoveCount = Math.min(Math.max(0, cache.size - cacheSettings.maxEntries), cache.size);\n for (let i = 0; i < entriesToRemoveCount; i++) {\n cache.delete(entriesWithTimestamps[i].key);\n }\n}\n\n// Called whenever new features are fetched from the API\nfunction onNewFeatureData(key, cacheKey, data) {\n // If contents haven't changed, ignore the update, extend the stale TTL\n const version = data.dateUpdated || \"\";\n const staleAt = new Date(Date.now() + cacheSettings.staleTTL);\n const existing = !cacheSettings.disableCache ? cache.get(cacheKey) : undefined;\n if (existing && version && existing.version === version) {\n existing.staleAt = staleAt;\n updatePersistentCache();\n return;\n }\n if (!cacheSettings.disableCache) {\n // Update in-memory cache\n cache.set(cacheKey, {\n data,\n version,\n staleAt,\n sse: supportsSSE.has(key)\n });\n cleanupCache();\n }\n // Update local storage (don't await this, just update asynchronously)\n updatePersistentCache();\n\n // Update features for all subscribed GrowthBook instances\n const instances = subscribedInstances.get(key);\n instances && instances.forEach(instance => refreshInstance(instance, data));\n}\nasync function refreshInstance(instance, data) {\n await instance.setPayload(data || instance.getPayload());\n}\n\n// Fetch the features payload from helper function or from in-mem injected payload\nasync function fetchFeatures(instance) {\n const {\n apiHost,\n apiRequestHeaders\n } = instance.getApiHosts();\n const clientKey = instance.getClientKey();\n const remoteEval = instance.isRemoteEval();\n const key = getKey(instance);\n const cacheKey = getCacheKey(instance);\n let promise = activeFetches.get(cacheKey);\n if (!promise) {\n const fetcher = remoteEval ? helpers.fetchRemoteEvalCall({\n host: apiHost,\n clientKey,\n payload: {\n attributes: instance.getAttributes(),\n forcedVariations: instance.getForcedVariations(),\n forcedFeatures: Array.from(instance.getForcedFeatures().entries()),\n url: instance.getUrl()\n },\n headers: apiRequestHeaders\n }) : helpers.fetchFeaturesCall({\n host: apiHost,\n clientKey,\n headers: apiRequestHeaders\n });\n\n // TODO: auto-retry if status code indicates a temporary error\n promise = fetcher.then(res => {\n if (!res.ok) {\n throw new Error(\"HTTP error: \".concat(res.status));\n }\n if (res.headers.get(\"x-sse-support\") === \"enabled\") {\n supportsSSE.add(key);\n }\n return res.json();\n }).then(data => {\n onNewFeatureData(key, cacheKey, data);\n startAutoRefresh(instance);\n activeFetches.delete(cacheKey);\n return {\n data,\n success: true,\n source: \"network\"\n };\n }).catch(e => {\n activeFetches.delete(cacheKey);\n return {\n data: null,\n source: \"error\",\n success: false,\n error: e\n };\n });\n activeFetches.set(cacheKey, promise);\n }\n return promise;\n}\n\n// Start SSE streaming, listens to feature payload changes and triggers a refresh or re-fetch\nfunction startAutoRefresh(instance) {\n let forceSSE = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n const key = getKey(instance);\n const cacheKey = getCacheKey(instance);\n const {\n streamingHost,\n streamingHostRequestHeaders\n } = instance.getApiHosts();\n const clientKey = instance.getClientKey();\n if (forceSSE) {\n supportsSSE.add(key);\n }\n if (cacheSettings.backgroundSync && supportsSSE.has(key) && polyfills.EventSource) {\n if (streams.has(key)) return;\n const channel = {\n src: null,\n host: streamingHost,\n clientKey,\n headers: streamingHostRequestHeaders,\n cb: event => {\n try {\n if (event.type === \"features-updated\") {\n const instances = subscribedInstances.get(key);\n instances && instances.forEach(instance => {\n fetchFeatures(instance);\n });\n } else if (event.type === \"features\") {\n const json = JSON.parse(event.data);\n onNewFeatureData(key, cacheKey, json);\n }\n // Reset error count on success\n channel.errors = 0;\n } catch (e) {\n onSSEError(channel);\n }\n },\n errors: 0,\n state: \"active\"\n };\n streams.set(key, channel);\n enableChannel(channel);\n }\n}\nfunction onSSEError(channel) {\n if (channel.state === \"idle\") return;\n channel.errors++;\n if (channel.errors > 3 || channel.src && channel.src.readyState === 2) {\n // exponential backoff after 4 errors, with jitter\n const delay = Math.pow(3, channel.errors - 3) * (1000 + Math.random() * 1000);\n disableChannel(channel);\n setTimeout(() => {\n if ([\"idle\", \"active\"].includes(channel.state)) return;\n enableChannel(channel);\n }, Math.min(delay, 300000)); // 5 minutes max\n }\n}\n\nfunction disableChannel(channel) {\n if (!channel.src) return;\n channel.src.onopen = null;\n channel.src.onerror = null;\n channel.src.close();\n channel.src = null;\n if (channel.state === \"active\") {\n channel.state = \"disabled\";\n }\n}\nfunction enableChannel(channel) {\n channel.src = helpers.eventSourceCall({\n host: channel.host,\n clientKey: channel.clientKey,\n headers: channel.headers\n });\n channel.state = \"active\";\n channel.src.addEventListener(\"features\", channel.cb);\n channel.src.addEventListener(\"features-updated\", channel.cb);\n channel.src.onerror = () => onSSEError(channel);\n channel.src.onopen = () => {\n channel.errors = 0;\n };\n}\nfunction destroyChannel(channel, key) {\n disableChannel(channel);\n streams.delete(key);\n}\nfunction clearAutoRefresh() {\n // Clear list of which keys are auto-updated\n supportsSSE.clear();\n\n // Stop listening for any SSE events\n streams.forEach(destroyChannel);\n\n // Remove all references to GrowthBook instances\n subscribedInstances.clear();\n\n // Run the idle stream cleanup function\n helpers.stopIdleListener();\n}\n\nvar validAttributeName = /^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/;\nvar nullController = {\n revert: function revert() {}\n};\nvar elements = /*#__PURE__*/new Map();\nvar mutations = /*#__PURE__*/new Set();\n\nfunction getObserverInit(attr) {\n return attr === 'html' ? {\n childList: true,\n subtree: true,\n attributes: true,\n characterData: true\n } : {\n childList: false,\n subtree: false,\n attributes: true,\n attributeFilter: [attr]\n };\n}\n\nfunction getElementRecord(element) {\n var record = elements.get(element);\n\n if (!record) {\n record = {\n element: element,\n attributes: {}\n };\n elements.set(element, record);\n }\n\n return record;\n}\n\nfunction createElementPropertyRecord(el, attr, getCurrentValue, setValue, mutationRunner) {\n var currentValue = getCurrentValue(el);\n var record = {\n isDirty: false,\n originalValue: currentValue,\n virtualValue: currentValue,\n mutations: [],\n el: el,\n _positionTimeout: null,\n observer: new MutationObserver(function () {\n // enact a 1 second timeout that blocks subsequent firing of the\n // observer until the timeout is complete. This will prevent multiple\n // mutations from firing in quick succession, which can cause the\n // mutation to be reverted before the DOM has a chance to update.\n if (attr === 'position' && record._positionTimeout) return;else if (attr === 'position') record._positionTimeout = setTimeout(function () {\n record._positionTimeout = null;\n }, 1000);\n var currentValue = getCurrentValue(el);\n if (attr === 'position' && currentValue.parentNode === record.virtualValue.parentNode && currentValue.insertBeforeNode === record.virtualValue.insertBeforeNode) return;\n if (currentValue === record.virtualValue) return;\n record.originalValue = currentValue;\n mutationRunner(record);\n }),\n mutationRunner: mutationRunner,\n setValue: setValue,\n getCurrentValue: getCurrentValue\n };\n\n if (attr === 'position' && el.parentNode) {\n record.observer.observe(el.parentNode, {\n childList: true,\n subtree: true,\n attributes: false,\n characterData: false\n });\n } else {\n record.observer.observe(el, getObserverInit(attr));\n }\n\n return record;\n}\n\nfunction queueIfNeeded(val, record) {\n var currentVal = record.getCurrentValue(record.el);\n record.virtualValue = val;\n\n if (val && typeof val !== 'string') {\n if (!currentVal || val.parentNode !== currentVal.parentNode || val.insertBeforeNode !== currentVal.insertBeforeNode) {\n record.isDirty = true;\n runDOMUpdates();\n }\n } else if (val !== currentVal) {\n record.isDirty = true;\n runDOMUpdates();\n }\n}\n\nfunction htmlMutationRunner(record) {\n var val = record.originalValue;\n record.mutations.forEach(function (m) {\n return val = m.mutate(val);\n });\n queueIfNeeded(getTransformedHTML(val), record);\n}\n\nfunction classMutationRunner(record) {\n var val = new Set(record.originalValue.split(/\\s+/).filter(Boolean));\n record.mutations.forEach(function (m) {\n return m.mutate(val);\n });\n queueIfNeeded(Array.from(val).filter(Boolean).join(' '), record);\n}\n\nfunction attrMutationRunner(record) {\n var val = record.originalValue;\n record.mutations.forEach(function (m) {\n return val = m.mutate(val);\n });\n queueIfNeeded(val, record);\n}\n\nfunction _loadDOMNodes(_ref) {\n var parentSelector = _ref.parentSelector,\n insertBeforeSelector = _ref.insertBeforeSelector;\n var parentNode = document.querySelector(parentSelector);\n if (!parentNode) return null;\n var insertBeforeNode = insertBeforeSelector ? document.querySelector(insertBeforeSelector) : null;\n if (insertBeforeSelector && !insertBeforeNode) return null;\n return {\n parentNode: parentNode,\n insertBeforeNode: insertBeforeNode\n };\n}\n\nfunction positionMutationRunner(record) {\n var val = record.originalValue;\n record.mutations.forEach(function (m) {\n var selectors = m.mutate();\n\n var newNodes = _loadDOMNodes(selectors);\n\n val = newNodes || val;\n });\n queueIfNeeded(val, record);\n}\n\nvar getHTMLValue = function getHTMLValue(el) {\n return el.innerHTML;\n};\n\nvar setHTMLValue = function setHTMLValue(el, value) {\n return el.innerHTML = value;\n};\n\nfunction getElementHTMLRecord(element) {\n var elementRecord = getElementRecord(element);\n\n if (!elementRecord.html) {\n elementRecord.html = createElementPropertyRecord(element, 'html', getHTMLValue, setHTMLValue, htmlMutationRunner);\n }\n\n return elementRecord.html;\n}\n\nvar getElementPosition = function getElementPosition(el) {\n return {\n parentNode: el.parentElement,\n insertBeforeNode: el.nextElementSibling\n };\n};\n\nvar setElementPosition = function setElementPosition(el, value) {\n if (value.insertBeforeNode && !value.parentNode.contains(value.insertBeforeNode)) {\n // skip position mutation - insertBeforeNode not a child of parent. happens\n // when mutation observer for indvidual element fires out of order\n return;\n }\n\n value.parentNode.insertBefore(el, value.insertBeforeNode);\n};\n\nfunction getElementPositionRecord(element) {\n var elementRecord = getElementRecord(element);\n\n if (!elementRecord.position) {\n elementRecord.position = createElementPropertyRecord(element, 'position', getElementPosition, setElementPosition, positionMutationRunner);\n }\n\n return elementRecord.position;\n}\n\nvar setClassValue = function setClassValue(el, val) {\n return val ? el.className = val : el.removeAttribute('class');\n};\n\nvar getClassValue = function getClassValue(el) {\n return el.className;\n};\n\nfunction getElementClassRecord(el) {\n var elementRecord = getElementRecord(el);\n\n if (!elementRecord.classes) {\n elementRecord.classes = createElementPropertyRecord(el, 'class', getClassValue, setClassValue, classMutationRunner);\n }\n\n return elementRecord.classes;\n}\n\nvar getAttrValue = function getAttrValue(attrName) {\n return function (el) {\n var _el$getAttribute;\n\n return (_el$getAttribute = el.getAttribute(attrName)) != null ? _el$getAttribute : null;\n };\n};\n\nvar setAttrValue = function setAttrValue(attrName) {\n return function (el, val) {\n return val !== null ? el.setAttribute(attrName, val) : el.removeAttribute(attrName);\n };\n};\n\nfunction getElementAttributeRecord(el, attr) {\n var elementRecord = getElementRecord(el);\n\n if (!elementRecord.attributes[attr]) {\n elementRecord.attributes[attr] = createElementPropertyRecord(el, attr, getAttrValue(attr), setAttrValue(attr), attrMutationRunner);\n }\n\n return elementRecord.attributes[attr];\n}\n\nfunction deleteElementPropertyRecord(el, attr) {\n var element = elements.get(el);\n if (!element) return;\n\n if (attr === 'html') {\n var _element$html, _element$html$observe;\n\n (_element$html = element.html) == null ? void 0 : (_element$html$observe = _element$html.observer) == null ? void 0 : _element$html$observe.disconnect();\n delete element.html;\n } else if (attr === 'class') {\n var _element$classes, _element$classes$obse;\n\n (_element$classes = element.classes) == null ? void 0 : (_element$classes$obse = _element$classes.observer) == null ? void 0 : _element$classes$obse.disconnect();\n delete element.classes;\n } else if (attr === 'position') {\n var _element$position, _element$position$obs;\n\n (_element$position = element.position) == null ? void 0 : (_element$position$obs = _element$position.observer) == null ? void 0 : _element$position$obs.disconnect();\n delete element.position;\n } else {\n var _element$attributes, _element$attributes$a, _element$attributes$a2;\n\n (_element$attributes = element.attributes) == null ? void 0 : (_element$attributes$a = _element$attributes[attr]) == null ? void 0 : (_element$attributes$a2 = _element$attributes$a.observer) == null ? void 0 : _element$attributes$a2.disconnect();\n delete element.attributes[attr];\n }\n}\n\nvar transformContainer;\n\nfunction getTransformedHTML(html) {\n if (!transformContainer) {\n transformContainer = document.createElement('div');\n }\n\n transformContainer.innerHTML = html;\n return transformContainer.innerHTML;\n}\n\nfunction setPropertyValue(el, attr, m) {\n if (!m.isDirty) return;\n m.isDirty = false;\n var val = m.virtualValue;\n\n if (!m.mutations.length) {\n deleteElementPropertyRecord(el, attr);\n }\n\n m.setValue(el, val);\n}\n\nfunction setValue(m, el) {\n m.html && setPropertyValue(el, 'html', m.html);\n m.classes && setPropertyValue(el, 'class', m.classes);\n m.position && setPropertyValue(el, 'position', m.position);\n Object.keys(m.attributes).forEach(function (attr) {\n setPropertyValue(el, attr, m.attributes[attr]);\n });\n}\n\nfunction runDOMUpdates() {\n elements.forEach(setValue);\n} // find or create ElementPropertyRecord, add mutation to it, then run\n\n\nfunction startMutating(mutation, element) {\n var record = null;\n\n if (mutation.kind === 'html') {\n record = getElementHTMLRecord(element);\n } else if (mutation.kind === 'class') {\n record = getElementClassRecord(element);\n } else if (mutation.kind === 'attribute') {\n record = getElementAttributeRecord(element, mutation.attribute);\n } else if (mutation.kind === 'position') {\n record = getElementPositionRecord(element);\n }\n\n if (!record) return;\n record.mutations.push(mutation);\n record.mutationRunner(record);\n} // get (existing) ElementPropertyRecord, remove mutation from it, then run\n\n\nfunction stopMutating(mutation, el) {\n var record = null;\n\n if (mutation.kind === 'html') {\n record = getElementHTMLRecord(el);\n } else if (mutation.kind === 'class') {\n record = getElementClassRecord(el);\n } else if (mutation.kind === 'attribute') {\n record = getElementAttributeRecord(el, mutation.attribute);\n } else if (mutation.kind === 'position') {\n record = getElementPositionRecord(el);\n }\n\n if (!record) return;\n var index = record.mutations.indexOf(mutation);\n if (index !== -1) record.mutations.splice(index, 1);\n record.mutationRunner(record);\n} // maintain list of elements associated with mutation\n\n\nfunction refreshElementsSet(mutation) {\n // if a position mutation has already found an element to move, don't move\n // any more elements\n if (mutation.kind === 'position' && mutation.elements.size === 1) return;\n var existingElements = new Set(mutation.elements);\n var matchingElements = document.querySelectorAll(mutation.selector);\n matchingElements.forEach(function (el) {\n if (!existingElements.has(el)) {\n mutation.elements.add(el);\n startMutating(mutation, el);\n }\n });\n}\n\nfunction revertMutation(mutation) {\n mutation.elements.forEach(function (el) {\n return stopMutating(mutation, el);\n });\n mutation.elements.clear();\n mutations[\"delete\"](mutation);\n}\n\nfunction refreshAllElementSets() {\n mutations.forEach(refreshElementsSet);\n} // Observer for elements that don't exist in the DOM yet\n\n\nvar observer;\nfunction connectGlobalObserver() {\n if (typeof document === 'undefined') return;\n\n if (!observer) {\n observer = new MutationObserver(function () {\n refreshAllElementSets();\n });\n }\n\n refreshAllElementSets();\n observer.observe(document.documentElement, {\n childList: true,\n subtree: true,\n attributes: false,\n characterData: false\n });\n} // run on init\n\nconnectGlobalObserver();\n\nfunction newMutation(m) {\n // Not in a browser\n if (typeof document === 'undefined') return nullController; // add to global index of mutations\n\n mutations.add(m); // run refresh on init to establish list of elements associated w/ mutation\n\n refreshElementsSet(m);\n return {\n revert: function revert() {\n revertMutation(m);\n }\n };\n}\n\nfunction html$1(selector, mutate) {\n return newMutation({\n kind: 'html',\n elements: new Set(),\n mutate: mutate,\n selector: selector\n });\n}\n\nfunction position(selector, mutate) {\n return newMutation({\n kind: 'position',\n elements: new Set(),\n mutate: mutate,\n selector: selector\n });\n}\n\nfunction classes$1(selector, mutate) {\n return newMutation({\n kind: 'class',\n elements: new Set(),\n mutate: mutate,\n selector: selector\n });\n}\n\nfunction attribute(selector, attribute, mutate) {\n if (!validAttributeName.test(attribute)) return nullController;\n\n if (attribute === 'class' || attribute === 'className') {\n return classes$1(selector, function (classnames) {\n var mutatedClassnames = mutate(Array.from(classnames).join(' '));\n classnames.clear();\n if (!mutatedClassnames) return;\n mutatedClassnames.split(/\\s+/g).filter(Boolean).forEach(function (c) {\n return classnames.add(c);\n });\n });\n }\n\n return newMutation({\n kind: 'attribute',\n attribute: attribute,\n elements: new Set(),\n mutate: mutate,\n selector: selector\n });\n}\n\nfunction declarative(_ref2) {\n var selector = _ref2.selector,\n action = _ref2.action,\n value = _ref2.value,\n attr = _ref2.attribute,\n parentSelector = _ref2.parentSelector,\n insertBeforeSelector = _ref2.insertBeforeSelector;\n\n if (attr === 'html') {\n if (action === 'append') {\n return html$1(selector, function (val) {\n return val + (value != null ? value : '');\n });\n } else if (action === 'set') {\n return html$1(selector, function () {\n return value != null ? value : '';\n });\n }\n } else if (attr === 'class') {\n if (action === 'append') {\n return classes$1(selector, function (val) {\n if (value) val.add(value);\n });\n } else if (action === 'remove') {\n return classes$1(selector, function (val) {\n if (value) val[\"delete\"](value);\n });\n } else if (action === 'set') {\n return classes$1(selector, function (val) {\n val.clear();\n if (value) val.add(value);\n });\n }\n } else if (attr === 'position') {\n if (action === 'set' && parentSelector) {\n return position(selector, function () {\n return {\n insertBeforeSelector: insertBeforeSelector,\n parentSelector: parentSelector\n };\n });\n }\n } else {\n if (action === 'append') {\n return attribute(selector, attr, function (val) {\n return val !== null ? val + (value != null ? value : '') : value != null ? value : '';\n });\n } else if (action === 'set') {\n return attribute(selector, attr, function () {\n return value != null ? value : '';\n });\n } else if (action === 'remove') {\n return attribute(selector, attr, function () {\n return null;\n });\n }\n }\n\n return nullController;\n}\n\nvar index$1 = {\n html: html$1,\n classes: classes$1,\n attribute: attribute,\n position: position,\n declarative: declarative\n};\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\nconst _regexCache = {};\n\n// The top-level condition evaluation function\nfunction evalCondition(obj, condition,\n// Must be included for `condition` to correctly evaluate group Operators\nsavedGroups) {\n savedGroups = savedGroups || {};\n // Condition is an object, keys are either specific operators or object paths\n // values are either arguments for operators or conditions for paths\n for (const [k, v] of Object.entries(condition)) {\n switch (k) {\n case \"$or\":\n if (!evalOr(obj, v, savedGroups)) return false;\n break;\n case \"$nor\":\n if (evalOr(obj, v, savedGroups)) return false;\n break;\n case \"$and\":\n if (!evalAnd(obj, v, savedGroups)) return false;\n break;\n case \"$not\":\n if (evalCondition(obj, v, savedGroups)) return false;\n break;\n default:\n if (!evalConditionValue(v, getPath(obj, k), savedGroups)) return false;\n }\n }\n return true;\n}\n\n// Return value at dot-separated path of an object\nfunction getPath(obj, path) {\n const parts = path.split(\".\");\n let current = obj;\n for (let i = 0; i < parts.length; i++) {\n if (current && typeof current === \"object\" && parts[i] in current) {\n current = current[parts[i]];\n } else {\n return null;\n }\n }\n return current;\n}\n\n// Transform a regex string into a real RegExp object\nfunction getRegex(regex) {\n if (!_regexCache[regex]) {\n _regexCache[regex] = new RegExp(regex.replace(/([^\\\\])\\//g, \"$1\\\\/\"));\n }\n return _regexCache[regex];\n}\n\n// Evaluate a single value against a condition\nfunction evalConditionValue(condition, value, savedGroups) {\n // Simple equality comparisons\n if (typeof condition === \"string\") {\n return value + \"\" === condition;\n }\n if (typeof condition === \"number\") {\n return value * 1 === condition;\n }\n if (typeof condition === \"boolean\") {\n return !!value === condition;\n }\n if (condition === null) {\n return value === null;\n }\n if (Array.isArray(condition) || !isOperatorObject(condition)) {\n return JSON.stringify(value) === JSON.stringify(condition);\n }\n\n // This is a special operator condition and we should evaluate each one separately\n for (const op in condition) {\n if (!evalOperatorCondition(op, value, condition[op], savedGroups)) {\n return false;\n }\n }\n return true;\n}\n\n// If the object has only keys that start with '$'\nfunction isOperatorObject(obj) {\n const keys = Object.keys(obj);\n return keys.length > 0 && keys.filter(k => k[0] === \"$\").length === keys.length;\n}\n\n// Return the data type of a value\nfunction getType(v) {\n if (v === null) return \"null\";\n if (Array.isArray(v)) return \"array\";\n const t = typeof v;\n if ([\"string\", \"number\", \"boolean\", \"object\", \"undefined\"].includes(t)) {\n return t;\n }\n return \"unknown\";\n}\n\n// At least one element of actual must match the expected condition/value\nfunction elemMatch(actual, expected, savedGroups) {\n if (!Array.isArray(actual)) return false;\n const check = isOperatorObject(expected) ? v => evalConditionValue(expected, v, savedGroups) : v => evalCondition(v, expected, savedGroups);\n for (let i = 0; i < actual.length; i++) {\n if (actual[i] && check(actual[i])) {\n return true;\n }\n }\n return false;\n}\nfunction isIn(actual, expected) {\n // Do an intersection if attribute is an array\n if (Array.isArray(actual)) {\n return actual.some(el => expected.includes(el));\n }\n return expected.includes(actual);\n}\n\n// Evaluate a single operator condition\nfunction evalOperatorCondition(operator, actual, expected, savedGroups) {\n switch (operator) {\n case \"$veq\":\n return paddedVersionString(actual) === paddedVersionString(expected);\n case \"$vne\":\n return paddedVersionString(actual) !== paddedVersionString(expected);\n case \"$vgt\":\n return paddedVersionString(actual) > paddedVersionString(expected);\n case \"$vgte\":\n return paddedVersionString(actual) >= paddedVersionString(expected);\n case \"$vlt\":\n return paddedVersionString(actual) < paddedVersionString(expected);\n case \"$vlte\":\n return paddedVersionString(actual) <= paddedVersionString(expected);\n case \"$eq\":\n return actual === expected;\n case \"$ne\":\n return actual !== expected;\n case \"$lt\":\n return actual < expected;\n case \"$lte\":\n return actual <= expected;\n case \"$gt\":\n return actual > expected;\n case \"$gte\":\n return actual >= expected;\n case \"$exists\":\n // Using `!=` and `==` instead of strict checks so it also matches for undefined\n return expected ? actual != null : actual == null;\n case \"$in\":\n if (!Array.isArray(expected)) return false;\n return isIn(actual, expected);\n case \"$inGroup\":\n return isIn(actual, savedGroups[expected] || []);\n case \"$notInGroup\":\n return !isIn(actual, savedGroups[expected] || []);\n case \"$nin\":\n if (!Array.isArray(expected)) return false;\n return !isIn(actual, expected);\n case \"$not\":\n return !evalConditionValue(expected, actual, savedGroups);\n case \"$size\":\n if (!Array.isArray(actual)) return false;\n return evalConditionValue(expected, actual.length, savedGroups);\n case \"$elemMatch\":\n return elemMatch(actual, expected, savedGroups);\n case \"$all\":\n if (!Array.isArray(actual)) return false;\n for (let i = 0; i < expected.length; i++) {\n let passed = false;\n for (let j = 0; j < actual.length; j++) {\n if (evalConditionValue(expected[i], actual[j], savedGroups)) {\n passed = true;\n break;\n }\n }\n if (!passed) return false;\n }\n return true;\n case \"$regex\":\n try {\n return getRegex(expected).test(actual);\n } catch (e) {\n return false;\n }\n case \"$type\":\n return getType(actual) === expected;\n default:\n console.error(\"Unknown operator: \" + operator);\n return false;\n }\n}\n\n// Recursive $or rule\nfunction evalOr(obj, conditions, savedGroups) {\n if (!conditions.length) return true;\n for (let i = 0; i < conditions.length; i++) {\n if (evalCondition(obj, conditions[i], savedGroups)) {\n return true;\n }\n }\n return false;\n}\n\n// Recursive $and rule\nfunction evalAnd(obj, conditions, savedGroups) {\n for (let i = 0; i < conditions.length; i++) {\n if (!evalCondition(obj, conditions[i], savedGroups)) {\n return false;\n }\n }\n return true;\n}\n\nconst isBrowser = typeof window !== \"undefined\" && typeof document !== \"undefined\";\nconst SDK_VERSION = loadSDKVersion();\nclass GrowthBook {\n // context is technically private, but some tools depend on it so we can't mangle the name\n // _ctx below is a clone of this property that we use internally\n\n // Properties and methods that start with \"_\" are mangled by Terser (saves ~150 bytes)\n\n // eslint-disable-next-line\n\n constructor(context) {\n context = context || {};\n // These properties are all initialized in the constructor instead of above\n // This saves ~80 bytes in the final output\n this.version = SDK_VERSION;\n this._ctx = this.context = context;\n this._renderer = context.renderer || null;\n this._trackedExperiments = new Set();\n this._completedChangeIds = new Set();\n this._trackedFeatures = {};\n this.debug = !!context.debug;\n this._subscriptions = new Set();\n this._rtQueue = [];\n this._rtTimer = 0;\n this.ready = false;\n this._assigned = new Map();\n this._forcedFeatureValues = new Map();\n this._attributeOverrides = {};\n this._activeAutoExperiments = new Map();\n this._triggeredExpKeys = new Set();\n this._initialized = false;\n this._redirectedUrl = \"\";\n this._deferredTrackingCalls = new Map();\n this._autoExperimentsAllowed = !context.disableExperimentsOnLoad;\n if (context.remoteEval) {\n if (context.decryptionKey) {\n throw new Error(\"Encryption is not available for remoteEval\");\n }\n if (!context.clientKey) {\n throw new Error(\"Missing clientKey\");\n }\n let isGbHost = false;\n try {\n isGbHost = !!new URL(context.apiHost || \"\").hostname.match(/growthbook\\.io$/i);\n } catch (e) {\n // ignore invalid URLs\n }\n if (isGbHost) {\n throw new Error(\"Cannot use remoteEval on GrowthBook Cloud\");\n }\n } else {\n if (context.cacheKeyAttributes) {\n throw new Error(\"cacheKeyAttributes are only used for remoteEval\");\n }\n }\n if (context.features) {\n this.ready = true;\n }\n if (isBrowser && context.enableDevMode) {\n window._growthbook = this;\n document.dispatchEvent(new Event(\"gbloaded\"));\n }\n if (context.experiments) {\n this.ready = true;\n this._updateAllAutoExperiments();\n }\n\n // Hydrate sticky bucket service\n if (this._ctx.stickyBucketService && this._ctx.stickyBucketAssignmentDocs) {\n for (const key in this._ctx.stickyBucketAssignmentDocs) {\n const doc = this._ctx.stickyBucketAssignmentDocs[key];\n if (doc) {\n this._ctx.stickyBucketService.saveAssignments(doc).catch(() => {\n // Ignore hydration errors\n });\n }\n }\n }\n\n // Legacy - passing in features/experiments into the constructor instead of using init\n if (this.ready) {\n this.refreshStickyBuckets(this.getPayload());\n }\n }\n async setPayload(payload) {\n this._payload = payload;\n const data = await this.decryptPayload(payload);\n this._decryptedPayload = data;\n await this.refreshStickyBuckets(data);\n if (data.features) {\n this._ctx.features = data.features;\n }\n if (data.savedGroups) {\n this._ctx.savedGroups = data.savedGroups;\n }\n if (data.experiments) {\n this._ctx.experiments = data.experiments;\n this._updateAllAutoExperiments();\n }\n this.ready = true;\n this._render();\n }\n initSync(options) {\n this._initialized = true;\n const payload = options.payload;\n if (payload.encryptedExperiments || payload.encryptedFeatures) {\n throw new Error(\"initSync does not support encrypted payloads\");\n }\n if (this._ctx.stickyBucketService && !this._ctx.stickyBucketAssignmentDocs) {\n throw new Error(\"initSync requires you to pass stickyBucketAssignmentDocs into the GrowthBook constructor\");\n }\n this._payload = payload;\n this._decryptedPayload = payload;\n if (payload.features) {\n this._ctx.features = payload.features;\n }\n if (payload.experiments) {\n this._ctx.experiments = payload.experiments;\n this._updateAllAutoExperiments();\n }\n this.ready = true;\n if (options.streaming) {\n if (!this._ctx.clientKey) {\n throw new Error(\"Must specify clientKey to enable streaming\");\n }\n startAutoRefresh(this, true);\n subscribe(this);\n }\n return this;\n }\n async init(options) {\n this._initialized = true;\n options = options || {};\n if (options.cacheSettings) {\n configureCache(options.cacheSettings);\n }\n if (options.payload) {\n await this.setPayload(options.payload);\n if (options.streaming) {\n if (!this._ctx.clientKey) {\n throw new Error(\"Must specify clientKey to enable streaming\");\n }\n startAutoRefresh(this, true);\n subscribe(this);\n }\n return {\n success: true,\n source: \"init\"\n };\n } else {\n const {\n data,\n ...res\n } = await this._refresh({\n ...options,\n allowStale: true\n });\n if (options.streaming) {\n subscribe(this);\n }\n await this.setPayload(data || {});\n return res;\n }\n }\n\n /** @deprecated Use {@link init} */\n async loadFeatures(options) {\n this._initialized = true;\n options = options || {};\n if (options.autoRefresh) {\n // interpret deprecated autoRefresh option as subscribeToChanges\n this._ctx.subscribeToChanges = true;\n }\n const {\n data\n } = await this._refresh({\n ...options,\n allowStale: true\n });\n await this.setPayload(data || {});\n if (this._canSubscribe()) {\n subscribe(this);\n }\n }\n async refreshFeatures(options) {\n const res = await this._refresh({\n ...(options || {}),\n allowStale: false\n });\n if (res.data) {\n await this.setPayload(res.data);\n }\n }\n getApiInfo() {\n return [this.getApiHosts().apiHost, this.getClientKey()];\n }\n getApiHosts() {\n const defaultHost = this._ctx.apiHost || \"https://cdn.growthbook.io\";\n return {\n apiHost: defaultHost.replace(/\\/*$/, \"\"),\n streamingHost: (this._ctx.streamingHost || defaultHost).replace(/\\/*$/, \"\"),\n apiRequestHeaders: this._ctx.apiHostRequestHeaders,\n streamingHostRequestHeaders: this._ctx.streamingHostRequestHeaders\n };\n }\n getClientKey() {\n return this._ctx.clientKey || \"\";\n }\n getPayload() {\n return this._payload || {\n features: this.getFeatures(),\n experiments: this.getExperiments()\n };\n }\n getDecryptedPayload() {\n return this._decryptedPayload || this.getPayload();\n }\n isRemoteEval() {\n return this._ctx.remoteEval || false;\n }\n getCacheKeyAttributes() {\n return this._ctx.cacheKeyAttributes;\n }\n async _refresh(_ref) {\n var _ref2;\n let {\n timeout,\n skipCache,\n allowStale,\n streaming\n } = _ref;\n if (!this._ctx.clientKey) {\n throw new Error(\"Missing clientKey\");\n }\n // Trigger refresh in feature repository\n return refreshFeatures({\n instance: this,\n timeout,\n skipCache: skipCache || this._ctx.disableCache,\n allowStale,\n backgroundSync: (_ref2 = streaming !== null && streaming !== void 0 ? streaming : this._ctx.backgroundSync) !== null && _ref2 !== void 0 ? _ref2 : true\n });\n }\n _render() {\n if (this._renderer) {\n try {\n this._renderer();\n } catch (e) {\n console.error(\"Failed to render\", e);\n }\n }\n }\n\n /** @deprecated Use {@link setPayload} */\n setFeatures(features) {\n this._ctx.features = features;\n this.ready = true;\n this._render();\n }\n\n /** @deprecated Use {@link setPayload} */\n async setEncryptedFeatures(encryptedString, decryptionKey, subtle) {\n const featuresJSON = await decrypt(encryptedString, decryptionKey || this._ctx.decryptionKey, subtle);\n this.setFeatures(JSON.parse(featuresJSON));\n }\n\n /** @deprecated Use {@link setPayload} */\n setExperiments(experiments) {\n this._ctx.experiments = experiments;\n this.ready = true;\n this._updateAllAutoExperiments();\n }\n\n /** @deprecated Use {@link setPayload} */\n async setEncryptedExperiments(encryptedString, decryptionKey, subtle) {\n const experimentsJSON = await decrypt(encryptedString, decryptionKey || this._ctx.decryptionKey, subtle);\n this.setExperiments(JSON.parse(experimentsJSON));\n }\n async decryptPayload(data, decryptionKey, subtle) {\n data = {\n ...data\n };\n if (data.encryptedFeatures) {\n try {\n data.features = JSON.parse(await decrypt(data.encryptedFeatures, decryptionKey || this._ctx.decryptionKey, subtle));\n } catch (e) {\n console.error(e);\n }\n delete data.encryptedFeatures;\n }\n if (data.encryptedExperiments) {\n try {\n data.experiments = JSON.parse(await decrypt(data.encryptedExperiments, decryptionKey || this._ctx.decryptionKey, subtle));\n } catch (e) {\n console.error(e);\n }\n delete data.encryptedExperiments;\n }\n if (data.encryptedSavedGroups) {\n try {\n data.savedGroups = JSON.parse(await decrypt(data.encryptedSavedGroups, decryptionKey || this._ctx.decryptionKey, subtle));\n } catch (e) {\n console.error(e);\n }\n delete data.encryptedSavedGroups;\n }\n return data;\n }\n async setAttributes(attributes) {\n this._ctx.attributes = attributes;\n if (this._ctx.stickyBucketService) {\n await this.refreshStickyBuckets();\n }\n if (this._ctx.remoteEval) {\n await this._refreshForRemoteEval();\n return;\n }\n this._render();\n this._updateAllAutoExperiments();\n }\n async updateAttributes(attributes) {\n return this.setAttributes({\n ...this._ctx.attributes,\n ...attributes\n });\n }\n async setAttributeOverrides(overrides) {\n this._attributeOverrides = overrides;\n if (this._ctx.stickyBucketService) {\n await this.refreshStickyBuckets();\n }\n if (this._ctx.remoteEval) {\n await this._refreshForRemoteEval();\n return;\n }\n this._render();\n this._updateAllAutoExperiments();\n }\n async setForcedVariations(vars) {\n this._ctx.forcedVariations = vars || {};\n if (this._ctx.remoteEval) {\n await this._refreshForRemoteEval();\n return;\n }\n this._render();\n this._updateAllAutoExperiments();\n }\n\n // eslint-disable-next-line\n setForcedFeatures(map) {\n this._forcedFeatureValues = map;\n this._render();\n }\n async setURL(url) {\n if (url === this._ctx.url) return;\n this._ctx.url = url;\n this._redirectedUrl = \"\";\n if (this._ctx.remoteEval) {\n await this._refreshForRemoteEval();\n this._updateAllAutoExperiments(true);\n return;\n }\n this._updateAllAutoExperiments(true);\n }\n getAttributes() {\n return {\n ...this._ctx.attributes,\n ...this._attributeOverrides\n };\n }\n getForcedVariations() {\n return this._ctx.forcedVariations || {};\n }\n getForcedFeatures() {\n // eslint-disable-next-line\n return this._forcedFeatureValues || new Map();\n }\n getStickyBucketAssignmentDocs() {\n return this._ctx.stickyBucketAssignmentDocs || {};\n }\n getUrl() {\n return this._ctx.url || \"\";\n }\n getFeatures() {\n return this._ctx.features || {};\n }\n getExperiments() {\n return this._ctx.experiments || [];\n }\n getCompletedChangeIds() {\n return Array.from(this._completedChangeIds);\n }\n subscribe(cb) {\n this._subscriptions.add(cb);\n return () => {\n this._subscriptions.delete(cb);\n };\n }\n _canSubscribe() {\n var _this$_ctx$background;\n return ((_this$_ctx$background = this._ctx.backgroundSync) !== null && _this$_ctx$background !== void 0 ? _this$_ctx$background : true) && this._ctx.subscribeToChanges;\n }\n async _refreshForRemoteEval() {\n if (!this._ctx.remoteEval) return;\n if (!this._initialized) return;\n const res = await this._refresh({\n allowStale: false\n });\n if (res.data) {\n await this.setPayload(res.data);\n }\n }\n getAllResults() {\n return new Map(this._assigned);\n }\n destroy() {\n // Release references to save memory\n this._subscriptions.clear();\n this._assigned.clear();\n this._trackedExperiments.clear();\n this._completedChangeIds.clear();\n this._deferredTrackingCalls.clear();\n this._trackedFeatures = {};\n this._rtQueue = [];\n this._payload = undefined;\n if (this._rtTimer) {\n clearTimeout(this._rtTimer);\n }\n unsubscribe(this);\n if (isBrowser && window._growthbook === this) {\n delete window._growthbook;\n }\n\n // Undo any active auto experiments\n this._activeAutoExperiments.forEach(exp => {\n exp.undo();\n });\n this._activeAutoExperiments.clear();\n this._triggeredExpKeys.clear();\n }\n setRenderer(renderer) {\n this._renderer = renderer;\n }\n forceVariation(key, variation) {\n this._ctx.forcedVariations = this._ctx.forcedVariations || {};\n this._ctx.forcedVariations[key] = variation;\n if (this._ctx.remoteEval) {\n this._refreshForRemoteEval();\n return;\n }\n this._updateAllAutoExperiments();\n this._render();\n }\n run(experiment) {\n const {\n result\n } = this._run(experiment, null);\n this._fireSubscriptions(experiment, result);\n return result;\n }\n triggerExperiment(key) {\n this._triggeredExpKeys.add(key);\n if (!this._ctx.experiments) return null;\n const experiments = this._ctx.experiments.filter(exp => exp.key === key);\n return experiments.map(exp => {\n return this._runAutoExperiment(exp);\n }).filter(res => res !== null);\n }\n triggerAutoExperiments() {\n this._autoExperimentsAllowed = true;\n this._updateAllAutoExperiments(true);\n }\n _runAutoExperiment(experiment, forceRerun) {\n const existing = this._activeAutoExperiments.get(experiment);\n\n // If this is a manual experiment and it's not already running, skip\n if (experiment.manual && !this._triggeredExpKeys.has(experiment.key) && !existing) return null;\n\n // Check if this particular experiment is blocked by context settings\n // For example, if all visualEditor experiments are disabled\n const isBlocked = this._isAutoExperimentBlockedByContext(experiment);\n let result;\n let trackingCall;\n // Run the experiment (if blocked exclude)\n if (isBlocked) {\n result = this._getResult(experiment, -1, false, \"\");\n } else {\n ({\n result,\n trackingCall\n } = this._run(experiment, null));\n this._fireSubscriptions(experiment, result);\n }\n\n // A hash to quickly tell if the assigned value changed\n const valueHash = JSON.stringify(result.value);\n\n // If the changes are already active, no need to re-apply them\n if (!forceRerun && result.inExperiment && existing && existing.valueHash === valueHash) {\n return result;\n }\n\n // Undo any existing changes\n if (existing) this._undoActiveAutoExperiment(experiment);\n\n // Apply new changes\n if (result.inExperiment) {\n const changeType = getAutoExperimentChangeType(experiment);\n if (changeType === \"redirect\" && result.value.urlRedirect && experiment.urlPatterns) {\n const url = experiment.persistQueryString ? mergeQueryStrings(this._getContextUrl(), result.value.urlRedirect) : result.value.urlRedirect;\n if (isURLTargeted(url, experiment.urlPatterns)) {\n this.log(\"Skipping redirect because original URL matches redirect URL\", {\n id: experiment.key\n });\n return result;\n }\n this._redirectedUrl = url;\n const {\n navigate,\n delay\n } = this._getNavigateFunction();\n if (navigate) {\n if (isBrowser) {\n var _this$_ctx$maxNavigat;\n // Wait for the possibly-async tracking callback, bound by min and max delays\n Promise.all([...(trackingCall ? [promiseTimeout(trackingCall, (_this$_ctx$maxNavigat = this._ctx.maxNavigateDelay) !== null && _this$_ctx$maxNavigat !== void 0 ? _this$_ctx$maxNavigat : 1000)] : []), new Promise(resolve => {\n var _this$_ctx$navigateDe;\n return window.setTimeout(resolve, (_this$_ctx$navigateDe = this._ctx.navigateDelay) !== null && _this$_ctx$navigateDe !== void 0 ? _this$_ctx$navigateDe : delay);\n })]).then(() => {\n try {\n navigate(url);\n } catch (e) {\n console.error(e);\n }\n });\n } else {\n try {\n navigate(url);\n } catch (e) {\n console.error(e);\n }\n }\n }\n } else if (changeType === \"visual\") {\n const undo = this._ctx.applyDomChangesCallback ? this._ctx.applyDomChangesCallback(result.value) : this._applyDOMChanges(result.value);\n if (undo) {\n this._activeAutoExperiments.set(experiment, {\n undo,\n valueHash\n });\n }\n }\n }\n return result;\n }\n _undoActiveAutoExperiment(exp) {\n const data = this._activeAutoExperiments.get(exp);\n if (data) {\n data.undo();\n this._activeAutoExperiments.delete(exp);\n }\n }\n _updateAllAutoExperiments(forceRerun) {\n if (!this._autoExperimentsAllowed) return;\n const experiments = this._ctx.experiments || [];\n\n // Stop any experiments that are no longer defined\n const keys = new Set(experiments);\n this._activeAutoExperiments.forEach((v, k) => {\n if (!keys.has(k)) {\n v.undo();\n this._activeAutoExperiments.delete(k);\n }\n });\n\n // Re-run all new/updated experiments\n for (const exp of experiments) {\n const result = this._runAutoExperiment(exp, forceRerun);\n\n // Once you're in a redirect experiment, break out of the loop and don't run any further experiments\n if (result !== null && result !== void 0 && result.inExperiment && getAutoExperimentChangeType(exp) === \"redirect\") {\n break;\n }\n }\n }\n _fireSubscriptions(experiment, result) {\n const key = experiment.key;\n\n // If assigned variation has changed, fire subscriptions\n const prev = this._assigned.get(key);\n // TODO: what if the experiment definition has changed?\n if (!prev || prev.result.inExperiment !== result.inExperiment || prev.result.variationId !== result.variationId) {\n this._assigned.set(key, {\n experiment,\n result\n });\n this._subscriptions.forEach(cb => {\n try {\n cb(experiment, result);\n } catch (e) {\n console.error(e);\n }\n });\n }\n }\n _trackFeatureUsage(key, res) {\n // Don't track feature usage that was forced via an override\n if (res.source === \"override\") return;\n\n // Only track a feature once, unless the assigned value changed\n const stringifiedValue = JSON.stringify(res.value);\n if (this._trackedFeatures[key] === stringifiedValue) return;\n this._trackedFeatures[key] = stringifiedValue;\n\n // Fire user-supplied callback\n if (this._ctx.onFeatureUsage) {\n try {\n this._ctx.onFeatureUsage(key, res);\n } catch (e) {\n // Ignore feature usage callback errors\n }\n }\n\n // In browser environments, queue up feature usage to be tracked in batches\n if (!isBrowser || !window.fetch) return;\n this._rtQueue.push({\n key,\n on: res.on\n });\n if (!this._rtTimer) {\n this._rtTimer = window.setTimeout(() => {\n // Reset the queue\n this._rtTimer = 0;\n const q = [...this._rtQueue];\n this._rtQueue = [];\n\n // Skip logging if a real-time usage key is not configured\n if (!this._ctx.realtimeKey) return;\n window.fetch(\"https://rt.growthbook.io/?key=\".concat(this._ctx.realtimeKey, \"&events=\").concat(encodeURIComponent(JSON.stringify(q))), {\n cache: \"no-cache\",\n mode: \"no-cors\"\n }).catch(() => {\n // TODO: retry in case of network errors?\n });\n }, this._ctx.realtimeInterval || 2000);\n }\n }\n _getFeatureResult(key, value, source, ruleId, experiment, result) {\n const ret = {\n value,\n on: !!value,\n off: !value,\n source,\n ruleId: ruleId || \"\"\n };\n if (experiment) ret.experiment = experiment;\n if (result) ret.experimentResult = result;\n\n // Track the usage of this feature in real-time\n this._trackFeatureUsage(key, ret);\n return ret;\n }\n isOn(key) {\n return this.evalFeature(key).on;\n }\n isOff(key) {\n return this.evalFeature(key).off;\n }\n getFeatureValue(key, defaultValue) {\n const value = this.evalFeature(key).value;\n return value === null ? defaultValue : value;\n }\n\n /**\n * @deprecated Use {@link evalFeature}\n * @param id\n */\n // eslint-disable-next-line\n feature(id) {\n return this.evalFeature(id);\n }\n evalFeature(id) {\n return this._evalFeature(id);\n }\n _evalFeature(id, evalCtx) {\n evalCtx = evalCtx || {\n evaluatedFeatures: new Set()\n };\n if (evalCtx.evaluatedFeatures.has(id)) {\n return this._getFeatureResult(id, null, \"cyclicPrerequisite\");\n }\n evalCtx.evaluatedFeatures.add(id);\n evalCtx.id = id;\n\n // Global override\n if (this._forcedFeatureValues.has(id)) {\n return this._getFeatureResult(id, this._forcedFeatureValues.get(id), \"override\");\n }\n\n // Unknown feature id\n if (!this._ctx.features || !this._ctx.features[id]) {\n return this._getFeatureResult(id, null, \"unknownFeature\");\n }\n\n // Get the feature\n const feature = this._ctx.features[id];\n\n // Loop through the rules\n if (feature.rules) {\n rules: for (const rule of feature.rules) {\n // If there are prerequisite flag(s), evaluate them\n if (rule.parentConditions) {\n for (const parentCondition of rule.parentConditions) {\n const parentResult = this._evalFeature(parentCondition.id, evalCtx);\n // break out for cyclic prerequisites\n if (parentResult.source === \"cyclicPrerequisite\") {\n return this._getFeatureResult(id, null, \"cyclicPrerequisite\");\n }\n const evalObj = {\n value: parentResult.value\n };\n const evaled = evalCondition(evalObj, parentCondition.condition || {});\n if (!evaled) {\n // blocking prerequisite eval failed: feature evaluation fails\n if (parentCondition.gate) {\n return this._getFeatureResult(id, null, \"prerequisite\");\n }\n continue rules;\n }\n }\n }\n\n // If there are filters for who is included (e.g. namespaces)\n if (rule.filters && this._isFilteredOut(rule.filters)) {\n continue;\n }\n\n // Feature value is being forced\n if (\"force\" in rule) {\n // If it's a conditional rule, skip if the condition doesn't pass\n if (rule.condition && !this._conditionPasses(rule.condition)) {\n continue;\n }\n\n // If this is a percentage rollout, skip if not included\n if (!this._isIncludedInRollout(rule.seed || id, rule.hashAttribute, this._ctx.stickyBucketService && !rule.disableStickyBucketing ? rule.fallbackAttribute : undefined, rule.range, rule.coverage, rule.hashVersion)) {\n continue;\n }\n\n // If this was a remotely evaluated experiment, fire the tracking callbacks\n if (rule.tracks) {\n rule.tracks.forEach(t => {\n this._track(t.experiment, t.result);\n });\n }\n return this._getFeatureResult(id, rule.force, \"force\", rule.id);\n }\n if (!rule.variations) {\n continue;\n }\n\n // For experiment rules, run an experiment\n const exp = {\n variations: rule.variations,\n key: rule.key || id\n };\n if (\"coverage\" in rule) exp.coverage = rule.coverage;\n if (rule.weights) exp.weights = rule.weights;\n if (rule.hashAttribute) exp.hashAttribute = rule.hashAttribute;\n if (rule.fallbackAttribute) exp.fallbackAttribute = rule.fallbackAttribute;\n if (rule.disableStickyBucketing) exp.disableStickyBucketing = rule.disableStickyBucketing;\n if (rule.bucketVersion !== undefined) exp.bucketVersion = rule.bucketVersion;\n if (rule.minBucketVersion !== undefined) exp.minBucketVersion = rule.minBucketVersion;\n if (rule.namespace) exp.namespace = rule.namespace;\n if (rule.meta) exp.meta = rule.meta;\n if (rule.ranges) exp.ranges = rule.ranges;\n if (rule.name) exp.name = rule.name;\n if (rule.phase) exp.phase = rule.phase;\n if (rule.seed) exp.seed = rule.seed;\n if (rule.hashVersion) exp.hashVersion = rule.hashVersion;\n if (rule.filters) exp.filters = rule.filters;\n if (rule.condition) exp.condition = rule.condition;\n\n // Only return a value if the user is part of the experiment\n const {\n result\n } = this._run(exp, id);\n this._fireSubscriptions(exp, result);\n if (result.inExperiment && !result.passthrough) {\n return this._getFeatureResult(id, result.value, \"experiment\", rule.id, exp, result);\n }\n }\n }\n\n // Fall back to using the default value\n return this._getFeatureResult(id, feature.defaultValue === undefined ? null : feature.defaultValue, \"defaultValue\");\n }\n _isIncludedInRollout(seed, hashAttribute, fallbackAttribute, range, coverage, hashVersion) {\n if (!range && coverage === undefined) return true;\n if (!range && coverage === 0) return false;\n const {\n hashValue\n } = this._getHashAttribute(hashAttribute, fallbackAttribute);\n if (!hashValue) {\n return false;\n }\n const n = hash(seed, hashValue, hashVersion || 1);\n if (n === null) return false;\n return range ? inRange(n, range) : coverage !== undefined ? n <= coverage : true;\n }\n _conditionPasses(condition) {\n return evalCondition(this.getAttributes(), condition, this._ctx.savedGroups || {});\n }\n _isFilteredOut(filters) {\n return filters.some(filter => {\n const {\n hashValue\n } = this._getHashAttribute(filter.attribute);\n if (!hashValue) return true;\n const n = hash(filter.seed, hashValue, filter.hashVersion || 2);\n if (n === null) return true;\n return !filter.ranges.some(r => inRange(n, r));\n });\n }\n _run(experiment, featureId) {\n const key = experiment.key;\n const numVariations = experiment.variations.length;\n\n // 1. If experiment has less than 2 variations, return immediately\n if (numVariations < 2) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n\n // 2. If the context is disabled, return immediately\n if (this._ctx.enabled === false) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n\n // 2.5. Merge in experiment overrides from the context\n experiment = this._mergeOverrides(experiment);\n\n // 2.6 New, more powerful URL targeting\n if (experiment.urlPatterns && !isURLTargeted(this._getContextUrl(), experiment.urlPatterns)) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n\n // 3. If a variation is forced from a querystring, return the forced variation\n const qsOverride = getQueryStringOverride(key, this._getContextUrl(), numVariations);\n if (qsOverride !== null) {\n return {\n result: this._getResult(experiment, qsOverride, false, featureId)\n };\n }\n\n // 4. If a variation is forced in the context, return the forced variation\n if (this._ctx.forcedVariations && key in this._ctx.forcedVariations) {\n const variation = this._ctx.forcedVariations[key];\n return {\n result: this._getResult(experiment, variation, false, featureId)\n };\n }\n\n // 5. Exclude if a draft experiment or not active\n if (experiment.status === \"draft\" || experiment.active === false) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n\n // 6. Get the hash attribute and return if empty\n const {\n hashAttribute,\n hashValue\n } = this._getHashAttribute(experiment.hashAttribute, this._ctx.stickyBucketService && !experiment.disableStickyBucketing ? experiment.fallbackAttribute : undefined);\n if (!hashValue) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n let assigned = -1;\n let foundStickyBucket = false;\n let stickyBucketVersionIsBlocked = false;\n if (this._ctx.stickyBucketService && !experiment.disableStickyBucketing) {\n const {\n variation,\n versionIsBlocked\n } = this._getStickyBucketVariation({\n expKey: experiment.key,\n expBucketVersion: experiment.bucketVersion,\n expHashAttribute: experiment.hashAttribute,\n expFallbackAttribute: experiment.fallbackAttribute,\n expMinBucketVersion: experiment.minBucketVersion,\n expMeta: experiment.meta\n });\n foundStickyBucket = variation >= 0;\n assigned = variation;\n stickyBucketVersionIsBlocked = !!versionIsBlocked;\n }\n\n // Some checks are not needed if we already have a sticky bucket\n if (!foundStickyBucket) {\n // 7. Exclude if user is filtered out (used to be called \"namespace\")\n if (experiment.filters) {\n if (this._isFilteredOut(experiment.filters)) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n } else if (experiment.namespace && !inNamespace(hashValue, experiment.namespace)) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n\n // 7.5. Exclude if experiment.include returns false or throws\n if (experiment.include && !isIncluded(experiment.include)) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n\n // 8. Exclude if condition is false\n if (experiment.condition && !this._conditionPasses(experiment.condition)) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n\n // 8.05. Exclude if prerequisites are not met\n if (experiment.parentConditions) {\n for (const parentCondition of experiment.parentConditions) {\n const parentResult = this._evalFeature(parentCondition.id);\n // break out for cyclic prerequisites\n if (parentResult.source === \"cyclicPrerequisite\") {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n const evalObj = {\n value: parentResult.value\n };\n if (!evalCondition(evalObj, parentCondition.condition || {})) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n }\n }\n\n // 8.1. Exclude if user is not in a required group\n if (experiment.groups && !this._hasGroupOverlap(experiment.groups)) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n }\n\n // 8.2. Old style URL targeting\n if (experiment.url && !this._urlIsValid(experiment.url)) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n\n // 9. Get the variation from the sticky bucket or get bucket ranges and choose variation\n const n = hash(experiment.seed || key, hashValue, experiment.hashVersion || 1);\n if (n === null) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n if (!foundStickyBucket) {\n const ranges = experiment.ranges || getBucketRanges(numVariations, experiment.coverage === undefined ? 1 : experiment.coverage, experiment.weights);\n assigned = chooseVariation(n, ranges);\n }\n\n // 9.5 Unenroll if any prior sticky buckets are blocked by version\n if (stickyBucketVersionIsBlocked) {\n return {\n result: this._getResult(experiment, -1, false, featureId, undefined, true)\n };\n }\n\n // 10. Return if not in experiment\n if (assigned < 0) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n\n // 11. Experiment has a forced variation\n if (\"force\" in experiment) {\n return {\n result: this._getResult(experiment, experiment.force === undefined ? -1 : experiment.force, false, featureId)\n };\n }\n\n // 12. Exclude if in QA mode\n if (this._ctx.qaMode) {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n\n // 12.5. Exclude if experiment is stopped\n if (experiment.status === \"stopped\") {\n return {\n result: this._getResult(experiment, -1, false, featureId)\n };\n }\n\n // 13. Build the result object\n const result = this._getResult(experiment, assigned, true, featureId, n, foundStickyBucket);\n\n // 13.5. Persist sticky bucket\n if (this._ctx.stickyBucketService && !experiment.disableStickyBucketing) {\n const {\n changed,\n key: attrKey,\n doc\n } = this._generateStickyBucketAssignmentDoc(hashAttribute, toString(hashValue), {\n [this._getStickyBucketExperimentKey(experiment.key, experiment.bucketVersion)]: result.key\n });\n if (changed) {\n // update local docs\n this._ctx.stickyBucketAssignmentDocs = this._ctx.stickyBucketAssignmentDocs || {};\n this._ctx.stickyBucketAssignmentDocs[attrKey] = doc;\n // save doc\n this._ctx.stickyBucketService.saveAssignments(doc);\n }\n }\n\n // 14. Fire the tracking callback\n // Store the promise in case we're awaiting it (ex: browser url redirects)\n const trackingCall = this._track(experiment, result);\n\n // 14.1 Keep track of completed changeIds\n \"changeId\" in experiment && experiment.changeId && this._completedChangeIds.add(experiment.changeId);\n return {\n result,\n trackingCall\n };\n }\n log(msg, ctx) {\n if (!this.debug) return;\n if (this._ctx.log) this._ctx.log(msg, ctx);else console.log(msg, ctx);\n }\n getDeferredTrackingCalls() {\n return Array.from(this._deferredTrackingCalls.values());\n }\n setDeferredTrackingCalls(calls) {\n this._deferredTrackingCalls = new Map(calls.filter(c => c && c.experiment && c.result).map(c => {\n return [this._getTrackKey(c.experiment, c.result), c];\n }));\n }\n async fireDeferredTrackingCalls() {\n if (!this._ctx.trackingCallback) return;\n const promises = [];\n this._deferredTrackingCalls.forEach(call => {\n if (!call || !call.experiment || !call.result) {\n console.error(\"Invalid deferred tracking call\", {\n call: call\n });\n } else {\n promises.push(this._track(call.experiment, call.result));\n }\n });\n this._deferredTrackingCalls.clear();\n await Promise.all(promises);\n }\n setTrackingCallback(callback) {\n this._ctx.trackingCallback = callback;\n this.fireDeferredTrackingCalls();\n }\n _getTrackKey(experiment, result) {\n return result.hashAttribute + result.hashValue + experiment.key + result.variationId;\n }\n async _track(experiment, result) {\n const k = this._getTrackKey(experiment, result);\n if (!this._ctx.trackingCallback) {\n // Add to deferred tracking if it hasn't already been added\n if (!this._deferredTrackingCalls.has(k)) {\n this._deferredTrackingCalls.set(k, {\n experiment,\n result\n });\n }\n return;\n }\n\n // Make sure a tracking callback is only fired once per unique experiment\n if (this._trackedExperiments.has(k)) return;\n this._trackedExperiments.add(k);\n try {\n await this._ctx.trackingCallback(experiment, result);\n } catch (e) {\n console.error(e);\n }\n }\n _mergeOverrides(experiment) {\n const key = experiment.key;\n const o = this._ctx.overrides;\n if (o && o[key]) {\n experiment = Object.assign({}, experiment, o[key]);\n if (typeof experiment.url === \"string\") {\n experiment.url = getUrlRegExp(\n // eslint-disable-next-line\n experiment.url);\n }\n }\n return experiment;\n }\n _getHashAttribute(attr, fallback) {\n let hashAttribute = attr || \"id\";\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n let hashValue = \"\";\n if (this._attributeOverrides[hashAttribute]) {\n hashValue = this._attributeOverrides[hashAttribute];\n } else if (this._ctx.attributes) {\n hashValue = this._ctx.attributes[hashAttribute] || \"\";\n } else if (this._ctx.user) {\n hashValue = this._ctx.user[hashAttribute] || \"\";\n }\n\n // if no match, try fallback\n if (!hashValue && fallback) {\n if (this._attributeOverrides[fallback]) {\n hashValue = this._attributeOverrides[fallback];\n } else if (this._ctx.attributes) {\n hashValue = this._ctx.attributes[fallback] || \"\";\n } else if (this._ctx.user) {\n hashValue = this._ctx.user[fallback] || \"\";\n }\n if (hashValue) {\n hashAttribute = fallback;\n }\n }\n return {\n hashAttribute,\n hashValue\n };\n }\n _getResult(experiment, variationIndex, hashUsed, featureId, bucket, stickyBucketUsed) {\n let inExperiment = true;\n // If assigned variation is not valid, use the baseline and mark the user as not in the experiment\n if (variationIndex < 0 || variationIndex >= experiment.variations.length) {\n variationIndex = 0;\n inExperiment = false;\n }\n const {\n hashAttribute,\n hashValue\n } = this._getHashAttribute(experiment.hashAttribute, this._ctx.stickyBucketService && !experiment.disableStickyBucketing ? experiment.fallbackAttribute : undefined);\n const meta = experiment.meta ? experiment.meta[variationIndex] : {};\n const res = {\n key: meta.key || \"\" + variationIndex,\n featureId,\n inExperiment,\n hashUsed,\n variationId: variationIndex,\n value: experiment.variations[variationIndex],\n hashAttribute,\n hashValue,\n stickyBucketUsed: !!stickyBucketUsed\n };\n if (meta.name) res.name = meta.name;\n if (bucket !== undefined) res.bucket = bucket;\n if (meta.passthrough) res.passthrough = meta.passthrough;\n return res;\n }\n _getContextUrl() {\n return this._ctx.url || (isBrowser ? window.location.href : \"\");\n }\n _urlIsValid(urlRegex) {\n const url = this._getContextUrl();\n if (!url) return false;\n const pathOnly = url.replace(/^https?:\\/\\//, \"\").replace(/^[^/]*\\//, \"/\");\n if (urlRegex.test(url)) return true;\n if (urlRegex.test(pathOnly)) return true;\n return false;\n }\n _hasGroupOverlap(expGroups) {\n const groups = this._ctx.groups || {};\n for (let i = 0; i < expGroups.length; i++) {\n if (groups[expGroups[i]]) return true;\n }\n return false;\n }\n _isAutoExperimentBlockedByContext(experiment) {\n const changeType = getAutoExperimentChangeType(experiment);\n if (changeType === \"visual\") {\n if (this._ctx.disableVisualExperiments) return true;\n if (this._ctx.disableJsInjection) {\n if (experiment.variations.some(v => v.js)) {\n return true;\n }\n }\n } else if (changeType === \"redirect\") {\n if (this._ctx.disableUrlRedirectExperiments) return true;\n\n // Validate URLs\n try {\n const current = new URL(this._getContextUrl());\n for (const v of experiment.variations) {\n if (!v || !v.urlRedirect) continue;\n const url = new URL(v.urlRedirect);\n\n // If we're blocking cross origin redirects, block if the protocol or host is different\n if (this._ctx.disableCrossOriginUrlRedirectExperiments) {\n if (url.protocol !== current.protocol) return true;\n if (url.host !== current.host) return true;\n }\n }\n } catch (e) {\n // Problem parsing one of the URLs\n this.log(\"Error parsing current or redirect URL\", {\n id: experiment.key,\n error: e\n });\n return true;\n }\n } else {\n // Block any unknown changeTypes\n return true;\n }\n if (experiment.changeId && (this._ctx.blockedChangeIds || []).includes(experiment.changeId)) {\n return true;\n }\n return false;\n }\n getRedirectUrl() {\n return this._redirectedUrl;\n }\n _getNavigateFunction() {\n if (this._ctx.navigate) {\n return {\n navigate: this._ctx.navigate,\n delay: 0\n };\n } else if (isBrowser) {\n return {\n navigate: url => {\n window.location.replace(url);\n },\n delay: 100\n };\n }\n return {\n navigate: null,\n delay: 0\n };\n }\n _applyDOMChanges(changes) {\n if (!isBrowser) return;\n const undo = [];\n if (changes.css) {\n const s = document.createElement(\"style\");\n s.innerHTML = changes.css;\n document.head.appendChild(s);\n undo.push(() => s.remove());\n }\n if (changes.js) {\n const script = document.createElement(\"script\");\n script.innerHTML = changes.js;\n if (this._ctx.jsInjectionNonce) {\n script.nonce = this._ctx.jsInjectionNonce;\n }\n document.head.appendChild(script);\n undo.push(() => script.remove());\n }\n if (changes.domMutations) {\n changes.domMutations.forEach(mutation => {\n undo.push(index$1.declarative(mutation).revert);\n });\n }\n return () => {\n undo.forEach(fn => fn());\n };\n }\n _deriveStickyBucketIdentifierAttributes(data) {\n const attributes = new Set();\n const features = data && data.features ? data.features : this.getFeatures();\n const experiments = data && data.experiments ? data.experiments : this.getExperiments();\n Object.keys(features).forEach(id => {\n const feature = features[id];\n if (feature.rules) {\n for (const rule of feature.rules) {\n if (rule.variations) {\n attributes.add(rule.hashAttribute || \"id\");\n if (rule.fallbackAttribute) {\n attributes.add(rule.fallbackAttribute);\n }\n }\n }\n }\n });\n experiments.map(experiment => {\n attributes.add(experiment.hashAttribute || \"id\");\n if (experiment.fallbackAttribute) {\n attributes.add(experiment.fallbackAttribute);\n }\n });\n return Array.from(attributes);\n }\n async refreshStickyBuckets(data) {\n if (this._ctx.stickyBucketService) {\n const attributes = this._getStickyBucketAttributes(data);\n this._ctx.stickyBucketAssignmentDocs = await this._ctx.stickyBucketService.getAllAssignments(attributes);\n }\n }\n _getStickyBucketAssignments(expHashAttribute, expFallbackAttribute) {\n if (!this._ctx.stickyBucketAssignmentDocs) return {};\n const {\n hashAttribute,\n hashValue\n } = this._getHashAttribute(expHashAttribute);\n const hashKey = \"\".concat(hashAttribute, \"||\").concat(toString(hashValue));\n const {\n hashAttribute: fallbackAttribute,\n hashValue: fallbackValue\n } = this._getHashAttribute(expFallbackAttribute);\n const fallbackKey = fallbackValue ? \"\".concat(fallbackAttribute, \"||\").concat(toString(fallbackValue)) : null;\n const assignments = {};\n if (fallbackKey && this._ctx.stickyBucketAssignmentDocs[fallbackKey]) {\n Object.assign(assignments, this._ctx.stickyBucketAssignmentDocs[fallbackKey].assignments || {});\n }\n if (this._ctx.stickyBucketAssignmentDocs[hashKey]) {\n Object.assign(assignments, this._ctx.stickyBucketAssignmentDocs[hashKey].assignments || {});\n }\n return assignments;\n }\n _getStickyBucketVariation(_ref3) {\n let {\n expKey,\n expBucketVersion,\n expHashAttribute,\n expFallbackAttribute,\n expMinBucketVersion,\n expMeta\n } = _ref3;\n expBucketVersion = expBucketVersion || 0;\n expMinBucketVersion = expMinBucketVersion || 0;\n expHashAttribute = expHashAttribute || \"id\";\n expMeta = expMeta || [];\n const id = this._getStickyBucketExperimentKey(expKey, expBucketVersion);\n const assignments = this._getStickyBucketAssignments(expHashAttribute, expFallbackAttribute);\n\n // users with any blocked bucket version (0 to minExperimentBucketVersion) are excluded from the test\n if (expMinBucketVersion > 0) {\n for (let i = 0; i <= expMinBucketVersion; i++) {\n const blockedKey = this._getStickyBucketExperimentKey(expKey, i);\n if (assignments[blockedKey] !== undefined) {\n return {\n variation: -1,\n versionIsBlocked: true\n };\n }\n }\n }\n const variationKey = assignments[id];\n if (variationKey === undefined)\n // no assignment found\n return {\n variation: -1\n };\n const variation = expMeta.findIndex(m => m.key === variationKey);\n if (variation < 0)\n // invalid assignment, treat as \"no assignment found\"\n return {\n variation: -1\n };\n return {\n variation\n };\n }\n _getStickyBucketExperimentKey(experimentKey, experimentBucketVersion) {\n experimentBucketVersion = experimentBucketVersion || 0;\n return \"\".concat(experimentKey, \"__\").concat(experimentBucketVersion);\n }\n _getStickyBucketAttributes(data) {\n const attributes = {};\n this._ctx.stickyBucketIdentifierAttributes = this._deriveStickyBucketIdentifierAttributes(data);\n this._ctx.stickyBucketIdentifierAttributes.forEach(attr => {\n const {\n hashValue\n } = this._getHashAttribute(attr);\n attributes[attr] = toString(hashValue);\n });\n return attributes;\n }\n _generateStickyBucketAssignmentDoc(attributeName, attributeValue, assignments) {\n const key = \"\".concat(attributeName, \"||\").concat(attributeValue);\n const existingAssignments = this._ctx.stickyBucketAssignmentDocs && this._ctx.stickyBucketAssignmentDocs[key] ? this._ctx.stickyBucketAssignmentDocs[key].assignments || {} : {};\n const newAssignments = {\n ...existingAssignments,\n ...assignments\n };\n const changed = JSON.stringify(existingAssignments) !== JSON.stringify(newAssignments);\n return {\n key,\n doc: {\n attributeName,\n attributeValue,\n assignments: newAssignments\n },\n changed\n };\n }\n}\n\n// Initialize GrowthBook\nconst gb = new GrowthBook({\n apiHost: \"https://cdn.growthbook.io\",\n clientKey: window.growthbook_sdk_key,\n decryptionKey: window.growthbook_decrypt_key,\n enableDevMode: window.growthbook_dev_mode,\n});\ngb.init({ streaming: true });\n// Hook up GrowthBook to analytics when ready\nwindow.analytics.ready(function () {\n gb.setTrackingCallback((experiment, result) => {\n window.analytics.track(\"Experiment Viewed\", {\n experimentId: experiment.key,\n variationId: result.key,\n });\n });\n gb.setAttributes(Object.assign(Object.assign({}, gb.getAttributes()), { id: window.analytics.user().anonymousId(), userId: window.analytics.user().id(), url: window.location.href, path: window.location.pathname, query: window.location.search, referrer: document.referrer, utmCampaign: getQueryVariable(\"utm_campaign\"), utmSource: getQueryVariable(\"utm_source\"), utmMedium: getQueryVariable(\"utm_medium\"), utmTerm: getQueryVariable(\"utm_term\"), utmContent: getQueryVariable(\"utm_content\") }));\n});\n// Extracts a query string variable from the browser's location.\nfunction getQueryVariable(paramKey) {\n const query = window.location.search.substring(1);\n const vars = query.split(\"&\");\n let paramVal = null;\n vars.forEach(v => {\n const pair = v.split(\"=\");\n if (pair[0] === paramKey) {\n paramVal = decodeURIComponent(pair[1].replace(/\\+/g, \"%20\"));\n }\n });\n return paramVal;\n}\nfunction getUUID() {\n return v4();\n}\n// parseUTMCookieString parses a UTM cookie string and returns an object of the values.\nfunction parseUTMCookieString(utmCookieString) {\n return (utmCookieString || \"\").split(\"|\").reduce((obj, utm) => {\n const parts = utm.split(\"=\");\n obj[parts[0]] = parts[1];\n return obj;\n }, {});\n}\n// parseCookie parses the document's cookie into an object.\nfunction parseCookie() {\n return document.cookie.split(\";\").reduce((obj, cookie) => {\n const index = cookie.indexOf(\"=\");\n const key = cookie.substring(0, index).trim();\n const value = cookie.substring(index + 1).trim();\n obj[key] = value;\n return obj;\n }, {});\n}\n\nconst copilotSidebarCss = \":host{display:block}\";\n\nconst CopilotSidebar$1 = class extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.showSidebar = false;\n }\n componentWillLoad() {\n this.showSidebar = gb.isOn('copilot-on-docs');\n gb.setRenderer(() => this.showSidebar = gb.isOn('copilot-on-docs'));\n }\n render() {\n if (this.showSidebar === true) {\n return (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.Host, null, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"aside\", { id: \"ai-sidebar-target\" }), (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"iframe\", { id: \"ai-sidebar-host\", src: this.copilotSrc }));\n }\n else {\n return (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.Host, null);\n }\n }\n static get style() { return copilotSidebarCss; }\n};\n\nconst eventSessionRegistrationModalCss = \":host{display:block}.event-session-modal-container{position:fixed;width:100%;height:100%;background-color:black;z-index:9999;top:0;left:0}.event-session-modal-container .hidden{display:none}.event-session-modal-container .modal-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.event-session-modal-container .modal-container h2,.event-session-modal-container .modal-container h3,.event-session-modal-container .modal-container h4,.event-session-modal-container .modal-container h5,.event-session-modal-container .modal-container h6,.event-session-modal-container .modal-container p{color:black}.event-session-modal-container .modal-container .modal{height:85%;width:85%;background-color:white;border-radius:5px;padding:1.5rem;overflow-y:scroll}.event-session-modal-container .modal-container .modal .title-container{display:flex;border-bottom:1px solid black}.event-session-modal-container .modal-container .modal .title-container .title-text{width:75%;text-align:left}.event-session-modal-container .modal-container .modal .title-container .title-text h2{color:black}.event-session-modal-container .modal-container .modal .title-container .close-icon{width:25%;text-align:right}.event-session-modal-container .modal-container .modal .title-container .close-icon i{cursor:pointer;font-size:1.5rem}.event-session-modal-container .modal-container .modal .session-select-container{text-align:left}.event-session-modal-container .modal-container .modal .session-select-container p{font-size:1.25rem;margin-top:2rem}.event-session-modal-container .modal-container .modal .session-select-list{list-style:none;text-align:left;display:flex;flex-wrap:wrap;align-items:stretch}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container{width:10%;position:relative;cursor:pointer}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input{position:absolute;opacity:0;height:0;width:0}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark{position:absolute;height:25px;width:25px;border:2px solid #805ac3;border-radius:5px;background-color:white}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark:after{content:\\\"\\\";position:absolute;display:none;left:8px;top:5px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark{background-color:#805ac3}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark:after{display:block}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-label{width:90%}.event-session-modal-container .modal-container .modal .session-select-list li{width:50%;padding:0.75rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list li{width:100%}}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item{height:100%;display:flex;justify-items:center;align-items:start;cursor:pointer;border:1px solid black;border-radius:5px;padding:1rem;border-radius:5px}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item:hover{background-color:#f9f9fa}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item p{font-size:1rem;margin-top:0.5rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item h6{padding-left:1rem}}.event-session-modal-container .modal-container .modal .next-button-container{text-align:right}.event-session-modal-container .modal-container .modal .next-button-container .modal-button{display:inline-block}.event-session-modal-container .modal-container .modal .next-button-container .modal-button:hover{background-color:#4d3675}.event-session-modal-container .modal-container .modal .next-button-container .error-message{color:red}.event-session-modal-container .modal-container .modal .registration-form-container{text-align:left;padding-top:0.5rem}.event-session-modal-container .modal-container .modal .registration-form-container a{color:black}.event-session-modal-container .modal-container .modal .registration-form-container a:hover{text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form{max-width:36rem;margin:0 auto;text-align:left}.event-session-modal-container .modal-container .modal .registration-form form{padding:0.25rem}.event-session-modal-container .modal-container .modal .registration-form a{color:black;text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form a:hover{font-weight:bold}\";\n\nconst EventSessionRegistrationModal$1 = class extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.redirectUrl = \"/pulumi-up/thank-you/\";\n this.isModalOpen = false;\n this.displayingContent = \"session-select\";\n this.selectedSessions = [];\n this.skippedSessionSelection = false;\n this.processingFormSubmissions = false;\n this.formProcessor = undefined;\n this.error = undefined;\n this.submittedFormValues = {};\n this.onMessage = (event) => {\n var _a;\n // Ignore any non-HubSpot-form-related events and if the modal isn't open.\n if ((((_a = event.data) === null || _a === void 0 ? void 0 : _a.type) !== \"hsFormCallback\") || (!this.isModalOpen)) {\n return;\n }\n const eventName = event.data.eventName;\n if ((eventName === \"onFormReady\") && this.processingFormSubmissions) {\n this.handleFormSubmissions();\n }\n if (eventName === \"onFormSubmit\") {\n const formInputs = this.el.querySelectorAll(\"form input\");\n const newSubmittedFormValues = {};\n formInputs.forEach((input) => {\n if (input.type !== \"checkbox\") {\n newSubmittedFormValues[input.name] = input.value;\n }\n });\n this.submittedFormValues = newSubmittedFormValues;\n setTimeout(() => {\n this.selectedSessions = [...this.selectedSessions.slice(1)];\n this.processingFormSubmissions = true;\n if (this.selectedSessions.length === 0) {\n window.location.href = this.redirectUrl;\n }\n }, 500);\n }\n };\n this.handleButtonClick = (e) => {\n e.preventDefault();\n this.isModalOpen = true;\n document.querySelector(\"body\").className += \" disable-scroll\";\n };\n this.handleCloseModal = (e) => {\n e.preventDefault();\n this.isModalOpen = false;\n if (!this.skippedSessionSelection) {\n this.displayingContent = \"session-select\";\n this.selectedSessions = [];\n }\n document.querySelector(\"body\").className = document.querySelector(\"body\").className.replace(\"disable-scroll\", \"\");\n };\n this.handleSessionSelection = (formId) => {\n const formIdIndex = this.selectedSessions.indexOf(formId);\n if (formIdIndex === -1) {\n this.selectedSessions.push(formId);\n }\n else {\n this.selectedSessions.splice(formIdIndex, 1);\n }\n };\n this.handleGotToSessionSelect = (e) => {\n e.preventDefault();\n this.displayingContent = \"session-select\";\n };\n }\n handleEventSessionInfo(newEventSessions) {\n this.parsedEventSessions = JSON.parse(newEventSessions);\n }\n handleSkipSessionSelection(parsedEventSessions) {\n if (parsedEventSessions.length === 1) {\n this.selectedSessions.push(parsedEventSessions[0].hubspot_form_id);\n this.displayingContent = \"form\";\n this.skippedSessionSelection = true;\n }\n }\n componentWillLoad() {\n this.handleEventSessionInfo(this.eventSessions);\n this.handleSkipSessionSelection(this.parsedEventSessions);\n }\n componentDidLoad() {\n window.addEventListener(\"message\", this.onMessage);\n }\n disconnectedCallback() {\n window.removeEventListener(\"message\", this.onMessage);\n }\n handleGoToForm(e, content) {\n e.preventDefault();\n if (this.selectedSessions.length === 0) {\n this.error = \"You must select at least one of the above options.\";\n return;\n }\n this.displayingContent = content;\n this.error = undefined;\n }\n handleFormSubmissions() {\n if (this.selectedSessions.length === 0) {\n window.location.href = this.redirectUrl;\n return;\n }\n // Check the code of conduct checkbox as it has to have already been checked\n // to reach this point.\n const cocCheckbox = this.el.querySelectorAll(\"form input[type='checkbox']\");\n cocCheckbox[1].click();\n setTimeout(() => {\n const submittedFormValueKeys = Object.keys(this.submittedFormValues);\n if (submittedFormValueKeys.length > 0) {\n for (let i = 0; i < submittedFormValueKeys.length; i++) {\n const formValueKey = submittedFormValueKeys[i];\n if (formValueKey === \"\") {\n continue;\n }\n const formInput = this.el.querySelector(`form input[name=\"${formValueKey}\"]`);\n formInput.value = this.submittedFormValues[formValueKey];\n formInput.dispatchEvent(new Event(\"change\"));\n }\n }\n }, 500);\n setTimeout(() => {\n const formSubmitButton = this.el.querySelector(\"form input[type='submit']\");\n formSubmitButton.click();\n }, 500);\n }\n renderSessionSelectionItem(info) {\n const isChecked = this.selectedSessions.indexOf(info.hubspot_form_id) > -1;\n return ((0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"li\", null, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"label\", { class: \"session-selection-item\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"checkbox-container\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"input\", { type: \"checkbox\", id: info.title, name: info.title, onChange: () => this.handleSessionSelection(info.hubspot_form_id), checked: isChecked }), (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"span\", { class: \"checkmark\" })), (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"checkbox-label\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"h6\", null, info.title), (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"p\", null, info.description)))));\n }\n renderSessionSelectContent() {\n return [\n (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"session-select-container\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"p\", null, \"Please select all the options you'd like to register for:\"), (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"ul\", { class: \"session-select-list\" }, this.parsedEventSessions.map((session) => this.renderSessionSelectionItem(session)))),\n (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"next-button-container\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"a\", { href: \"#\", class: `${this.buttonClass} modal-button`, onClick: (e) => this.handleGoToForm(e, \"form\") }, \"Next\"), this.error ? (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"p\", { class: \"error-message\" }, this.error) : null),\n ];\n }\n renderForm(formId) {\n if (!this.processingFormSubmissions) {\n return ((0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"registration-form-container\" }, this.skippedSessionSelection ? null : (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"a\", { href: \"#\", onClick: this.handleGotToSessionSelect }, \"\\u2190 Go back to select sessions.\"), (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"registration-form\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"pulumi-hubspot-form\", { formId: this.selectedSessions[0] }))));\n }\n return ((0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", null, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"h4\", null, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"i\", { class: \"fas fa-spinner fa-spin\" })), (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"invisible\", ref: (el) => this.formProcessor = el }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"pulumi-hubspot-form\", { key: formId, formId: formId }))));\n }\n renderContent() {\n console.log(\"rendering content\");\n switch (this.displayingContent) {\n case \"session-select\":\n return this.renderSessionSelectContent();\n case \"form\":\n console.log(\"rendering form\");\n return this.renderForm(this.selectedSessions[0]);\n }\n }\n renderModal() {\n return ((0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"event-session-modal-container\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"modal-container\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"modal\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"title-container\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"title-text\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"h4\", null, this.modalTitle)), (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"close-icon\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"i\", { class: \"fa fa-times\", onClick: this.handleCloseModal }))), this.renderContent()))));\n }\n render() {\n return ((0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.Host, null, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", null, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", null, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"a\", { class: this.buttonClass, href: \"#\", onClick: this.handleButtonClick }, this.buttonText)), this.isModalOpen ? this.renderModal() : null)));\n }\n get el() { return this; }\n static get watchers() { return {\n \"eventSessions\": [\"handleEventSessionInfo\"]\n }; }\n static get style() { return eventSessionRegistrationModalCss; }\n};\n\nconst headerCtaCss = \":host{display:block}\";\n\nconst HeaderCta$1 = class extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.buttonClass = \"\";\n this.loading = true;\n this.isLoggedIn = false;\n }\n componentWillRender() {\n var _a;\n try {\n const cookie = parseCookie();\n const userCookie = (_a = cookie[\"pulumi_web_user_info\"]) !== null && _a !== void 0 ? _a : \"j:{}\";\n const userInfo = JSON.parse(decodeURIComponent(userCookie).slice(2));\n if (userInfo && userInfo.userId && userInfo.userId !== \"\") {\n this.isLoggedIn = true;\n }\n }\n catch (e) {\n // Swallow the error and so the component shows the \"Get Started\" button.\n }\n this.loading = false;\n }\n render() {\n if (this.loading) {\n return;\n }\n if (this.isLoggedIn) {\n return ((0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"a\", { class: this.buttonClass, \"data-track\": \"header-signup\", href: \"https://app.pulumi.com/signup?utm_source=header-button\", target: \"_blank\", rel: \"noopener noreferrer\", title: \"Dashboard\" }, \"Dashboard\"));\n }\n return ((0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"a\", { class: this.buttonClass, \"data-track\": \"header-signup\", href: \"https://app.pulumi.com/signup?utm_source=header-button\", title: \"Sign up\" }, \"Sign up\"));\n }\n static get style() { return headerCtaCss; }\n};\n\nconst homeSlotsCss = \"home-slots .slot-container{display:flex;align-items:center;justify-items:center;text-align:center}home-slots .slot-container .item-container{width:25%;text-align:center}home-slots .slot-container .item-container img{animation:fadeIn 500ms}home-slots .slot-container .separator-container{width:12.5%;text-align:center}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}\";\n\nconst HomeSlots$1 = class extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.leftItems = \"\";\n this.centerItems = \"\";\n this.rightItems = \"\";\n this.imageClass = \"\";\n this.columnOne = [];\n this.columnTwo = [];\n this.columnThree = [];\n }\n componentDidLoad() {\n this.columnOne = this.shuffleArray(this.leftItems.split(\",\"));\n this.columnTwo = this.shuffleArray(this.centerItems.split(\",\"));\n this.columnThree = this.shuffleArray(this.rightItems.split(\",\"));\n this.startRotators();\n }\n shuffleArray(arr) {\n for (let i = arr.length - 1; i > 0; i--) {\n const j = Math.floor(Math.random() * (i + 1));\n [arr[i], arr[j]] = [arr[j], arr[i]];\n }\n return arr;\n }\n startRotators() {\n this.columnOneRotator = setInterval(() => this.incrementColumnOne(), 400);\n setTimeout(() => {\n this.columnTwoRotator = setInterval(() => this.incrementColumnTwo(), 400);\n }, 500);\n setTimeout(() => {\n this.columnThreeRotator = setInterval(() => this.incrementColumnThree(), 400);\n }, 1000);\n setTimeout(() => this.stopRotators(), 3000);\n }\n stopRotators() {\n clearInterval(this.columnOneRotator);\n setTimeout(() => clearInterval(this.columnTwoRotator), 500);\n setTimeout(() => clearInterval(this.columnThreeRotator), 1000);\n setTimeout(() => this.startRotators(), 10000);\n }\n incrementColumnOne() {\n this.columnOne = this.updateOrder(this.columnOne);\n }\n incrementColumnTwo() {\n this.columnTwo = this.updateOrder(this.columnTwo);\n }\n incrementColumnThree() {\n this.columnThree = this.updateOrder(this.columnThree);\n }\n updateOrder(items) {\n const newItems = [...items];\n const oldFirst = newItems.shift();\n newItems.push(oldFirst);\n return newItems;\n }\n render() {\n const itemOne = this.columnOne[0];\n const itemTwo = this.columnTwo[0];\n const itemThree = this.columnThree[0];\n return ((0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.Host, null, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", null, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"slot-container\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"item-container\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"img\", { key: itemOne, class: this.imageClass, src: itemOne })), (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"separator-container\" }, \"+\"), (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"item-container\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"img\", { key: itemTwo, class: this.imageClass, src: itemTwo })), (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"separator-container\" }, \"+\"), (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"div\", { class: \"item-container\" }, (0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"img\", { key: itemThree, class: this.imageClass, src: itemThree }))))));\n }\n static get style() { return homeSlotsCss; }\n};\n\nconst pricingCta = class extends HTMLElement {\n constructor() {\n super();\n this.__registerHost();\n this.buttonClass = \"\";\n this.loading = true;\n this.isLoggedIn = false;\n }\n componentWillRender() {\n var _a;\n try {\n const cookie = parseCookie();\n const userCookie = (_a = cookie[\"pulumi_web_user_info\"]) !== null && _a !== void 0 ? _a : \"j:{}\";\n const userInfo = JSON.parse(decodeURIComponent(userCookie).slice(2));\n if (userInfo && userInfo.userId && userInfo.userId !== \"\") {\n this.isLoggedIn = true;\n }\n }\n catch (e) {\n // Swallow the error and so the component shows the \"Get Started\" button.\n }\n this.loading = false;\n }\n render() {\n if (this.loading) {\n return;\n }\n if (this.isLoggedIn) {\n return ((0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"a\", { class: this.buttonClass, href: \"https://app.pulumi.com/?create-organization=1\", target: \"_blank\" }, this.signedInText));\n }\n return ((0,_stencil_core_internal_client__WEBPACK_IMPORTED_MODULE_0__.h)(\"a\", { class: this.buttonClass, href: \"https://app.pulumi.com/signup/\", target: \"_blank\" }, this.signedOutText));\n }\n};\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : typeof self !== 'undefined' ? self : {};\n\nfunction createCommonjsModule(fn, basedir, module) {\n\treturn module = {\n\t\tpath: basedir,\n\t\texports: {},\n\t\trequire: function (path, base) {\n\t\t\treturn commonjsRequire();\n\t\t}\n\t}, fn(module, module.exports), module.exports;\n}\n\nfunction getAugmentedNamespace(n) {\n\tif (n.__esModule) return n;\n\tvar a = Object.defineProperty({}, '__esModule', {value: true});\n\tObject.keys(n).forEach(function (k) {\n\t\tvar d = Object.getOwnPropertyDescriptor(n, k);\n\t\tObject.defineProperty(a, k, d.get ? d : {\n\t\t\tenumerable: true,\n\t\t\tget: function () {\n\t\t\t\treturn n[k];\n\t\t\t}\n\t\t});\n\t});\n\treturn a;\n}\n\nfunction commonjsRequire () {\n\tthrow new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');\n}\n\nvar lodash = createCommonjsModule(function (module, exports) {\n(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined$1;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.21';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function',\n INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading whitespace. */\n var reTrimStart = /^\\s+/;\n\n /** Used to match a single whitespace character. */\n var reWhitespace = /\\s/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /**\n * Used to validate the `validate` option in `_.template` variable.\n *\n * Forbids characters which could potentially change the meaning of the function argument definition:\n * - \"(),\" (modification of function parameters)\n * - \"=\" (default value)\n * - \"[]{}\" (destructuring of function parameters)\n * - \"/\" (beginning of a comment)\n * - whitespace\n */\n var reForbiddenIdentifierChars = /[()=,{}\\[\\]\\/\\s]/;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined$1 : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined$1 : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined$1) {\n result = result === undefined$1 ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\n function baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined$1 : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\n function trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined$1,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined$1,\n symIterator = Symbol ? Symbol.iterator : undefined$1,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined$1;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined$1,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1,\n symbolToString = symbolProto ? symbolProto.toString : undefined$1;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined$1;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined$1;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined$1 : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined$1;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined$1) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined$1) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined$1 : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined$1;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined$1 && !eq(object[key], value)) ||\n (value === undefined$1 && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined$1 && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined$1 : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined$1) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined$1) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined$1) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined$1 : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined$1 && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined$1, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined$1\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined$1 || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined$1;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined$1 ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined$1;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined$1 : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined$1 && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined$1\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined$1 && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined$1;\n\n if (newValue === undefined$1) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined$1;\n\n var isCommon = newValue === undefined$1;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined$1;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined$1;\n if (newValue === undefined$1) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n var low = 0,\n high = array == null ? 0 : array.length;\n if (high === 0) {\n return 0;\n }\n\n value = iteratee(value);\n var valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined$1;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined$1,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined$1;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined$1 ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined$1,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined$1,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined$1;\n\n if (newValue === undefined$1) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined$1,\n guard = length > 2 ? sources[2] : undefined$1;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined$1;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined$1 : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined$1;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined$1,\n args, holders, undefined$1, undefined$1, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined$1;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined$1;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined$1 : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined$1 && other === undefined$1) {\n return defaultValue;\n }\n if (value !== undefined$1) {\n result = value;\n }\n if (other !== undefined$1) {\n if (result === undefined$1) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined$1 ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined$1;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined$1) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined$1 ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined$1,\n newHoldersRight = isCurry ? undefined$1 : holders,\n newPartials = isCurry ? partials : undefined$1,\n newPartialsRight = isCurry ? undefined$1 : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined$1, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision && nativeIsFinite(number)) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined$1;\n }\n ary = ary === undefined$1 ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined$1 ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined$1;\n }\n var data = isBindKey ? undefined$1 : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined$1\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined$1, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined$1 ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined$1, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined$1 : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined$1;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined$1) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined$1\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined$1, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined$1;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined$1;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined$1,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined$1 || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined$1 ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined$1;\n }\n return array;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined$1, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined$1 ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined$1)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined$1;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined$1;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined$1, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined$1) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined$1) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined$1) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined$1 ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined$1;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined$1;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined$1;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined$1, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined$1;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined$1) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined$1;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined$1, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined$1 ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined$1) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined$1) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined$1;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined$1;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined$1, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined$1;\n return (array && array.length) ? baseUniq(array, undefined$1, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined$1, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined$1;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined$1;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined$1, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined$1;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined$1;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined$1\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined$1);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined$1) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined$1 : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined$1;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined$1\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined$1;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n *\n * // Combining several predicates using `_.overEvery` or `_.overSome`.\n * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n * // => objects for ['fred', 'barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined$1 ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined$1 : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined$1)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined$1;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined$1 : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined$1;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined$1 : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, undefined$1, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined$1 : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, undefined$1, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined$1;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined$1 || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined$1;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined$1;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined$1) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined$1;\n }\n\n function flush() {\n return timerId === undefined$1 ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined$1) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined$1) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined$1, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined$1, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined$1, undefined$1, undefined$1, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined$1 ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '

    ' + func(text) + '

    ';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '

    fred, barney, & pebbles

    '\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined$1;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined$1;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined$1;\n var result = customizer ? customizer(value, other) : undefined$1;\n return result === undefined$1 ? baseIsEqual(value, other, undefined$1, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined$1;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined$1;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined$1;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined$1 ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined$1, customDefaultsMerge);\n return apply(mergeWith, undefined$1, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined$1 : baseGet(object, path);\n return result === undefined$1 ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined$1;\n }\n while (++index < length) {\n var value = object == null ? undefined$1 : object[toKey(path[index])];\n if (value === undefined$1) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined$1;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined$1;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined$1) {\n upper = lower;\n lower = undefined$1;\n }\n if (upper !== undefined$1) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined$1) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined$1) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined$1;\n }\n if (floating === undefined$1) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined$1;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined$1;\n }\n }\n if (lower === undefined$1 && upper === undefined$1) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined$1) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined$1\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined$1)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined$1;\n }\n limit = limit === undefined$1 ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<%- value %>');\n * compiled({ 'value': '