@bridgeline-digital/hawksearch-handlebars-ui 2.0.0-beta.13 → 2.0.0-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/index.js.map +1 -1
  3. package/docs/assets/highlight.css +13 -6
  4. package/docs/classes/Components.AutocompleteComponent.html +51 -18
  5. package/docs/classes/Components.BaseComponent.html +36 -12
  6. package/docs/classes/Components.BaseContentComponent.html +39 -13
  7. package/docs/classes/Components.BaseFacetComponent.html +42 -14
  8. package/docs/classes/Components.CheckboxListFacetComponent.html +56 -20
  9. package/docs/classes/Components.ColorFacetComponent.html +54 -19
  10. package/docs/classes/Components.ContentZoneComponent.html +57 -20
  11. package/docs/classes/Components.CustomContentComponent.html +51 -18
  12. package/docs/classes/Components.DatePickerComponent.html +63 -22
  13. package/docs/classes/Components.DateRangeFacetComponent.html +54 -19
  14. package/docs/classes/Components.FacetWrapperComponent.html +54 -19
  15. package/docs/classes/Components.FacetsListComponent.html +51 -18
  16. package/docs/classes/Components.FeaturedItemsContentComponent.html +51 -18
  17. package/docs/classes/Components.FeaturedItemsContentItemComponent.html +51 -18
  18. package/docs/classes/Components.IconComponent.html +51 -18
  19. package/docs/classes/Components.ImageContentComponent.html +51 -18
  20. package/docs/classes/Components.LandingPageComponent.html +57 -20
  21. package/docs/classes/Components.LinkListFacetComponent.html +54 -19
  22. package/docs/classes/Components.ModifiedQueryComponent.html +51 -18
  23. package/docs/classes/Components.NumericRangeFacetComponent.html +54 -19
  24. package/docs/classes/Components.PageSizeComponent.html +51 -18
  25. package/docs/classes/Components.PaginationComponent.html +54 -19
  26. package/docs/classes/Components.PopularQueriesContentComponent.html +51 -18
  27. package/docs/classes/Components.QuerySuggestionsComponent.html +51 -18
  28. package/docs/classes/Components.RangeSliderComponent.html +63 -22
  29. package/docs/classes/Components.RangeSliderFacetComponent.html +54 -19
  30. package/docs/classes/Components.RecentSearchesFacetComponent.html +54 -19
  31. package/docs/classes/Components.RecommendationsComponent.html +63 -22
  32. package/docs/classes/Components.RecommendationsItemComponent.html +51 -18
  33. package/docs/classes/Components.RelatedSearchesFacetComponent.html +54 -19
  34. package/docs/classes/Components.SearchFieldComponent.html +57 -20
  35. package/docs/classes/Components.SearchResultsComponent.html +60 -21
  36. package/docs/classes/Components.SearchResultsItemComponent.html +51 -18
  37. package/docs/classes/Components.SearchResultsListComponent.html +51 -18
  38. package/docs/classes/Components.SearchWithinFacetComponent.html +54 -19
  39. package/docs/classes/Components.SelectedFacetsComponent.html +51 -18
  40. package/docs/classes/Components.SizeFacetComponent.html +54 -19
  41. package/docs/classes/Components.SortingComponent.html +51 -18
  42. package/docs/classes/Components.TabsComponent.html +51 -18
  43. package/docs/classes/Components.TooltipComponent.html +51 -18
  44. package/docs/classes/Services.AutocompleteService.html +42 -14
  45. package/docs/classes/Services.RecommendationsService.html +42 -14
  46. package/docs/classes/Services.SearchService.html +120 -40
  47. package/docs/classes/Services.TrackingService.html +72 -24
  48. package/docs/enums/Models.AutocompleteItemType.html +15 -5
  49. package/docs/enums/Models.EventType.html +36 -12
  50. package/docs/enums/Models.PageType.html +18 -6
  51. package/docs/enums/Models.SearchType.html +9 -3
  52. package/docs/functions/Helpers.add.html +3 -1
  53. package/docs/functions/Helpers.and.html +4 -2
  54. package/docs/functions/Helpers.attribute.html +3 -1
  55. package/docs/functions/Helpers.concat.html +3 -1
  56. package/docs/functions/Helpers.currency.html +3 -1
  57. package/docs/functions/Helpers.eq.html +3 -1
  58. package/docs/functions/Helpers.exclude.html +4 -2
  59. package/docs/functions/Helpers.gt.html +3 -1
  60. package/docs/functions/Helpers.gte.html +3 -1
  61. package/docs/functions/Helpers.html.html +3 -1
  62. package/docs/functions/Helpers.ifElse.html +3 -1
  63. package/docs/functions/Helpers.lt.html +3 -1
  64. package/docs/functions/Helpers.lte.html +3 -1
  65. package/docs/functions/Helpers.number.html +3 -1
  66. package/docs/functions/Helpers.or.html +3 -1
  67. package/docs/functions/Helpers.string.html +3 -1
  68. package/docs/functions/Helpers.subtract.html +3 -1
  69. package/docs/index.html +2 -2
  70. package/docs/interfaces/Configuration.AutocompleteComponentConfig.html +9 -3
  71. package/docs/interfaces/Configuration.BaseComponentConfig.html +9 -3
  72. package/docs/interfaces/Configuration.Breakpoints.html +3 -1
  73. package/docs/interfaces/Configuration.CheckboxListFacetComponentConfig.html +15 -5
  74. package/docs/interfaces/Configuration.ColorFacetComponentConfig.html +15 -5
  75. package/docs/interfaces/Configuration.ContentZoneComponentConfig.html +9 -3
  76. package/docs/interfaces/Configuration.CustomContentComponentConfig.html +9 -3
  77. package/docs/interfaces/Configuration.DatePickerComponentConfig.html +12 -4
  78. package/docs/interfaces/Configuration.DateRangeFacetComponentConfig.html +12 -4
  79. package/docs/interfaces/Configuration.FacetWrapperComponentConfig.html +9 -3
  80. package/docs/interfaces/Configuration.FacetsListComponentConfig.html +12 -4
  81. package/docs/interfaces/Configuration.FeaturedItemsContentComponentConfig.html +9 -3
  82. package/docs/interfaces/Configuration.FeaturedItemsContentItemComponentConfig.html +12 -4
  83. package/docs/interfaces/Configuration.HawkSearchComponents.html +114 -38
  84. package/docs/interfaces/Configuration.HawkSearchConfig.html +52 -18
  85. package/docs/interfaces/Configuration.HawkSearchGlobal.html +18 -6
  86. package/docs/interfaces/Configuration.HawkSearchState.html +9 -3
  87. package/docs/interfaces/Configuration.IconComponentConfig.html +9 -3
  88. package/docs/interfaces/Configuration.ImageContentComponentConfig.html +9 -3
  89. package/docs/interfaces/Configuration.LandingPageComponentConfig.html +9 -3
  90. package/docs/interfaces/Configuration.LinkListFacetComponentConfig.html +12 -4
  91. package/docs/interfaces/Configuration.ModifiedQueryComponentConfig.html +12 -4
  92. package/docs/interfaces/Configuration.NumericRangeFacetComponentConfig.html +12 -4
  93. package/docs/interfaces/Configuration.PageSizeComponentConfig.html +9 -3
  94. package/docs/interfaces/Configuration.PaginationComponentConfig.html +12 -4
  95. package/docs/interfaces/Configuration.PopularQueriesContentComponentConfig.html +9 -3
  96. package/docs/interfaces/Configuration.QuerySuggestionsComponentConfig.html +12 -4
  97. package/docs/interfaces/Configuration.RangeSliderComponentConfig.html +12 -4
  98. package/docs/interfaces/Configuration.RangeSliderFacetComponentConfig.html +12 -4
  99. package/docs/interfaces/Configuration.RecentSearchesFacetComponentConfig.html +9 -3
  100. package/docs/interfaces/Configuration.RecommendationsComponentConfig.html +21 -7
  101. package/docs/interfaces/Configuration.RecommendationsItemComponentConfig.html +12 -4
  102. package/docs/interfaces/Configuration.RelatedSearchesFacetComponentConfig.html +9 -3
  103. package/docs/interfaces/Configuration.SearchFieldComponentConfig.html +12 -4
  104. package/docs/interfaces/Configuration.SearchResultsComponentConfig.html +9 -3
  105. package/docs/interfaces/Configuration.SearchResultsItemComponentConfig.html +12 -4
  106. package/docs/interfaces/Configuration.SearchResultsListComponentConfig.html +9 -3
  107. package/docs/interfaces/Configuration.SearchWithinFacetComponentConfig.html +12 -4
  108. package/docs/interfaces/Configuration.SelectedFacetsComponentConfig.html +12 -4
  109. package/docs/interfaces/Configuration.SizeFacetComponentConfig.html +15 -5
  110. package/docs/interfaces/Configuration.SortingComponentConfig.html +9 -3
  111. package/docs/interfaces/Configuration.TabsComponentConfig.html +9 -3
  112. package/docs/interfaces/Configuration.TooltipComponentConfig.html +9 -3
  113. package/docs/interfaces/Models.AutocompleteCategories.html +9 -3
  114. package/docs/interfaces/Models.AutocompleteCategory.html +15 -5
  115. package/docs/interfaces/Models.AutocompleteComponentModel.html +27 -9
  116. package/docs/interfaces/Models.AutocompleteContent.html +12 -4
  117. package/docs/interfaces/Models.AutocompleteContentResult.html +21 -7
  118. package/docs/interfaces/Models.AutocompleteProductResult.html +27 -9
  119. package/docs/interfaces/Models.AutocompleteProducts.html +12 -4
  120. package/docs/interfaces/Models.AutocompleteQueries.html +9 -3
  121. package/docs/interfaces/Models.AutocompleteQuery.html +9 -3
  122. package/docs/interfaces/Models.AutocompleteRequest.html +6 -2
  123. package/docs/interfaces/Models.AutocompleteResponse.html +24 -8
  124. package/docs/interfaces/Models.BaseComponentModel.html +3 -1
  125. package/docs/interfaces/Models.CalendarDay.html +18 -6
  126. package/docs/interfaces/Models.CheckboxListFacetComponentModel.html +24 -8
  127. package/docs/interfaces/Models.CheckboxListFacetValue.html +39 -13
  128. package/docs/interfaces/Models.ColorFacetComponentModel.html +18 -6
  129. package/docs/interfaces/Models.ColorFacetValue.html +33 -11
  130. package/docs/interfaces/Models.ContentConfiguration.html +12 -4
  131. package/docs/interfaces/Models.ContentType.html +18 -6
  132. package/docs/interfaces/Models.ContentZone.html +9 -3
  133. package/docs/interfaces/Models.ContentZoneComponentModel.html +9 -3
  134. package/docs/interfaces/Models.ContentZoneItem.html +12 -4
  135. package/docs/interfaces/Models.ContentZones.html +3 -1
  136. package/docs/interfaces/Models.CustomContent.html +21 -7
  137. package/docs/interfaces/Models.CustomContentComponentModel.html +21 -7
  138. package/docs/interfaces/Models.CustomWidgetContent.html +21 -7
  139. package/docs/interfaces/Models.DateFacetRange.html +18 -6
  140. package/docs/interfaces/Models.DatePickerComponentModel.html +30 -10
  141. package/docs/interfaces/Models.DateRangeFacetComponentModel.html +18 -6
  142. package/docs/interfaces/Models.Facet.html +48 -16
  143. package/docs/interfaces/Models.FacetScrolling.html +9 -3
  144. package/docs/interfaces/Models.FacetSearch.html +6 -2
  145. package/docs/interfaces/Models.FacetTruncation.html +6 -2
  146. package/docs/interfaces/Models.FacetValue.html +30 -10
  147. package/docs/interfaces/Models.FacetValueColor.html +12 -4
  148. package/docs/interfaces/Models.FacetWrapperComponentModel.html +54 -18
  149. package/docs/interfaces/Models.FacetsListComponentModel.html +12 -4
  150. package/docs/interfaces/Models.FeaturedItemsContent.html +21 -7
  151. package/docs/interfaces/Models.FeaturedItemsContentComponentModel.html +21 -7
  152. package/docs/interfaces/Models.FeaturedItemsContentItemComponentModel.html +42 -14
  153. package/docs/interfaces/Models.IconComponentModel.html +15 -5
  154. package/docs/interfaces/Models.ImageContent.html +24 -8
  155. package/docs/interfaces/Models.ImageContentComponentModel.html +24 -8
  156. package/docs/interfaces/Models.LandingPageComponentModel.html +51 -17
  157. package/docs/interfaces/Models.LinkListFacetComponentModel.html +21 -7
  158. package/docs/interfaces/Models.LinkListFacetValue.html +33 -11
  159. package/docs/interfaces/Models.ModifiedQueryComponentModel.html +12 -4
  160. package/docs/interfaces/Models.ModifiedQueryData.html +12 -4
  161. package/docs/interfaces/Models.NumericFacetRange.html +18 -6
  162. package/docs/interfaces/Models.NumericRangeFacetComponentModel.html +18 -6
  163. package/docs/interfaces/Models.PageSizeComponentModel.html +6 -2
  164. package/docs/interfaces/Models.Pagination.html +27 -9
  165. package/docs/interfaces/Models.PaginationComponentModel.html +45 -15
  166. package/docs/interfaces/Models.PaginationOption.html +15 -5
  167. package/docs/interfaces/Models.PopularQueriesContent.html +21 -7
  168. package/docs/interfaces/Models.PopularQueriesContentComponentModel.html +21 -7
  169. package/docs/interfaces/Models.PopularQueriesContentItem.html +12 -4
  170. package/docs/interfaces/Models.QuerySuggestionsComponentModel.html +6 -2
  171. package/docs/interfaces/Models.QuerySuggestionsData.html +9 -3
  172. package/docs/interfaces/Models.RangeSliderComponentModel.html +12 -4
  173. package/docs/interfaces/Models.RangeSliderEventData.html +9 -3
  174. package/docs/interfaces/Models.RangeSliderFacetComponentModel.html +24 -8
  175. package/docs/interfaces/Models.RecentSearchesFacetComponentModel.html +6 -2
  176. package/docs/interfaces/Models.RecommendationsComponentModel.html +39 -13
  177. package/docs/interfaces/Models.RecommendationsItem.html +27 -9
  178. package/docs/interfaces/Models.RecommendationsItemComponentModel.html +30 -10
  179. package/docs/interfaces/Models.RecommendationsRequest.html +12 -4
  180. package/docs/interfaces/Models.RecommendationsResponse.html +9 -3
  181. package/docs/interfaces/Models.RecommendationsWidget.html +18 -6
  182. package/docs/interfaces/Models.Redirect.html +9 -3
  183. package/docs/interfaces/Models.RelatedSearchesFacetComponentModel.html +6 -2
  184. package/docs/interfaces/Models.SearchFieldComponentModel.html +9 -3
  185. package/docs/interfaces/Models.SearchRequest.html +30 -10
  186. package/docs/interfaces/Models.SearchResponse.html +48 -16
  187. package/docs/interfaces/Models.SearchResultsComponentModel.html +48 -16
  188. package/docs/interfaces/Models.SearchResultsItem.html +39 -13
  189. package/docs/interfaces/Models.SearchResultsItemComponentModel.html +42 -14
  190. package/docs/interfaces/Models.SearchResultsListComponentModel.html +6 -2
  191. package/docs/interfaces/Models.SearchWithinFacetComponentModel.html +9 -3
  192. package/docs/interfaces/Models.SelectedFacet.html +15 -5
  193. package/docs/interfaces/Models.SelectedFacetValue.html +12 -4
  194. package/docs/interfaces/Models.SelectedFacetsComponentModel.html +9 -3
  195. package/docs/interfaces/Models.SeoConfiguration.html +18 -6
  196. package/docs/interfaces/Models.SizeFacetComponentModel.html +18 -6
  197. package/docs/interfaces/Models.SizeFacetValue.html +33 -11
  198. package/docs/interfaces/Models.Sorting.html +9 -3
  199. package/docs/interfaces/Models.SortingComponentModel.html +6 -2
  200. package/docs/interfaces/Models.SortingOption.html +15 -5
  201. package/docs/interfaces/Models.TabsComponentModel.html +9 -3
  202. package/docs/interfaces/Models.TooltipComponentModel.html +6 -2
  203. package/docs/modules/Components.html +3 -1
  204. package/docs/modules/Configuration.html +3 -1
  205. package/docs/modules/Helpers.html +3 -1
  206. package/docs/modules/Models.html +3 -1
  207. package/docs/modules/Services.html +3 -1
  208. package/docs/types/Configuration.DisplayType.html +3 -1
  209. package/docs/types/Models.FacetState.html +3 -1
  210. package/docs/types/Models.FacetType.html +3 -1
  211. package/docs/types/Models.FacetValueState.html +3 -1
  212. package/docs/types/Models.IconName.html +3 -1
  213. package/docs/types/Models.SearchResultsItemType.html +3 -1
  214. package/docs/types/Models.SearchResultsMode.html +3 -1
  215. package/docs/types/Models.SelectedFacets.html +3 -1
  216. package/docs/variables/Services.autocompleteService-1.html +3 -1
  217. package/docs/variables/Services.recommendationsService-1.html +3 -1
  218. package/docs/variables/Services.searchService-1.html +3 -1
  219. package/docs/variables/Services.trackingService-1.html +3 -1
  220. package/package.json +1 -1
  221. package/readme.md +1 -1
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- (()=>{var e={675:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0;var i=r(n(2)),a=r(n(45)),s=n(46),o=n(51),l=r(n(52)),c=r(n(49)),u=r(n(44)),h=i.default.create;function d(){var e=h();return e.compile=function(t,n){return o.compile(t,n,e)},e.precompile=function(t,n){return o.precompile(t,n,e)},e.AST=a.default,e.Compiler=o.Compiler,e.JavaScriptCompiler=l.default,e.Parser=s.parser,e.parse=s.parse,e.parseWithoutProcessing=s.parseWithoutProcessing,e}var p=d();p.create=d,u.default(p),p.Visitor=c.default,p.default=p,t.default=p,e.exports=t.default},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,n){"use strict";var r=n(3).default,i=n(1).default;t.__esModule=!0;var a=r(n(4)),s=i(n(37)),o=i(n(6)),l=r(n(5)),c=r(n(38)),u=i(n(44));function h(){var e=new a.HandlebarsEnvironment;return l.extend(e,a),e.SafeString=s.default,e.Exception=o.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var d=h();d.create=h,u.default(d),d.default=d,t.default=d,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__esModule=!0},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0,t.HandlebarsEnvironment=h;var i=n(5),a=r(n(6)),s=n(10),o=n(30),l=r(n(32)),c=n(33);t.VERSION="4.7.7",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var u="[object Object]";function h(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},s.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}h.prototype={constructor:h,logger:l.default,log:l.default.log,registerHelper:function(e,t){if(i.toString.call(e)===u){if(t)throw new a.default("Arg not supported with multiple helpers");i.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(i.toString.call(e)===u)i.extend(this.partials,e);else{if(void 0===t)throw new a.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(i.toString.call(e)===u){if(t)throw new a.default("Arg not supported with multiple decorators");i.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var d=l.default.log;t.log=d,t.createFrame=i.createFrame,t.logger=l.default},function(e,t){"use strict";t.__esModule=!0,t.extend=s,t.indexOf=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return i.test(e)?e.replace(r,a):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=s({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,i=/[&<>"'`=]/;function a(e){return n[e]}function s(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var o=Object.prototype.toString;t.toString=o;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===o.call(e)};t.isArray=c},function(e,t,n){"use strict";var r=n(7).default;t.__esModule=!0;var i=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function a(e,t){var n=t&&t.loc,s=void 0,o=void 0,l=void 0,c=void 0;n&&(s=n.start.line,o=n.end.line,l=n.start.column,c=n.end.column,e+=" - "+s+":"+l);for(var u=Error.prototype.constructor.call(this,e),h=0;h<i.length;h++)this[i[h]]=u[i[h]];Error.captureStackTrace&&Error.captureStackTrace(this,a);try{n&&(this.lineNumber=s,this.endLineNumber=o,r?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=l,this.endColumn=c))}catch(e){}}a.prototype=new Error,t.default=a,e.exports=t.default},function(e,t,n){e.exports={default:n(8),__esModule:!0}},function(e,t,n){var r=n(9);e.exports=function(e,t,n){return r.setDesc(e,t,n)}},function(e,t){var n=Object;e.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){i.default(e),a.default(e),s.default(e),o.default(e),l.default(e),c.default(e),u.default(e)},t.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])};var i=r(n(11)),a=r(n(12)),s=r(n(25)),o=r(n(26)),l=r(n(27)),c=r(n(28)),u=r(n(29))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var i=n.inverse,a=n.fn;if(!0===t)return a(this);if(!1===t||null==t)return i(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var s=r.createFrame(n.data);s.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:s}}return a(t,n)}))},e.exports=t.default},function(e,t,n){(function(r){"use strict";var i=n(13).default,a=n(1).default;t.__esModule=!0;var s=n(5),o=a(n(6));t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new o.default("Must pass iterator to #each");var n,a=t.fn,l=t.inverse,c=0,u="",h=void 0,d=void 0;function p(t,n,r){h&&(h.key=t,h.index=n,h.first=0===n,h.last=!!r,d&&(h.contextPath=d+t)),u+=a(e[t],{data:h,blockParams:s.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=s.appendContextPath(t.data.contextPath,t.ids[0])+"."),s.isFunction(e)&&(e=e.call(this)),t.data&&(h=s.createFrame(t.data)),e&&"object"==typeof e)if(s.isArray(e))for(var v=e.length;c<v;c++)c in e&&p(c,c,c===e.length-1);else if(r.Symbol&&e[r.Symbol.iterator]){for(var f=[],m=e[r.Symbol.iterator](),g=m.next();!g.done;g=m.next())f.push(g.value);for(v=(e=f).length;c<v;c++)p(c,c,c===e.length-1)}else n=void 0,i(e).forEach((function(e){void 0!==n&&p(n,c-1),n=e,c++})),void 0!==n&&p(n,c-1,!0);return 0===c&&(u=l(this)),u}))},e.exports=t.default}).call(t,function(){return this}())},function(e,t,n){e.exports={default:n(14),__esModule:!0}},function(e,t,n){n(15),e.exports=n(21).Object.keys},function(e,t,n){var r=n(16);n(18)("keys",(function(e){return function(t){return e(r(t))}}))},function(e,t,n){var r=n(17);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(19),i=n(21),a=n(24);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*a((function(){n(1)})),"Object",s)}},function(e,t,n){var r=n(20),i=n(21),a=n(22),s="prototype",o=function(e,t,n){var l,c,u,h=e&o.F,d=e&o.G,p=e&o.S,v=e&o.P,f=e&o.B,m=e&o.W,g=d?i:i[t]||(i[t]={}),y=d?r:p?r[t]:(r[t]||{})[s];for(l in d&&(n=t),n)(c=!h&&y&&l in y)&&l in g||(u=c?y[l]:n[l],g[l]=d&&"function"!=typeof y[l]?n[l]:f&&c?a(u,r):m&&y[l]==u?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[s]=e[s],t}(u):v&&"function"==typeof u?a(Function.call,u):u,v&&((g[s]||(g[s]={}))[l]=u))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,e.exports=o},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(23);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0;var i=r(n(6));t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0;var i=n(5),a=r(n(6));t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new a.default("#if requires exactly one argument");return i.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||i.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,n){if(2!=arguments.length)throw new a.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),t[0]=i,e.log.apply(e,t)}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",(function(e,t,n){return e?n.lookupProperty(e,t):e}))},e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0;var i=n(5),a=r(n(6));t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new a.default("#with requires exactly one argument");i.isFunction(e)&&(e=e.call(this));var n=t.fn;if(i.isEmpty(e))return t.inverse(this);var r=t.data;return t.data&&t.ids&&((r=i.createFrame(t.data)).contextPath=i.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:r,blockParams:i.blockParams([e],[r&&r.contextPath])})}))},e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){i.default(e)};var i=r(n(31))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5);t.default=function(e){e.registerDecorator("inline",(function(e,t,n,i){var a=e;return t.partials||(t.partials={},a=function(i,a){var s=n.partials;n.partials=r.extend({},s,t.partials);var o=e(i,a);return n.partials=s,o}),t.partials[i.args[0]]=i.fn,a}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(i.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];console[t].apply(console,r)}}};t.default=i,e.exports=t.default},function(e,t,n){"use strict";var r=n(34).default,i=n(13).default,a=n(3).default;t.__esModule=!0,t.createProtoAccessControl=function(e){var t=r(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var n=r(null);return n.__proto__=!1,{properties:{whitelist:s.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:s.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,n){return function(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==l[e]&&(l[e]=!0,o.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}("function"==typeof e?t.methods:t.properties,n)},t.resetLoggedProperties=function(){i(l).forEach((function(e){delete l[e]}))};var s=n(36),o=a(n(32)),l=r(null)},function(e,t,n){e.exports={default:n(35),__esModule:!0}},function(e,t,n){var r=n(9);e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){"use strict";var r=n(34).default;t.__esModule=!0,t.createNewLookupObject=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.extend.apply(void 0,[r(null)].concat(t))};var i=n(5)},function(e,t){"use strict";function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default},function(e,t,n){"use strict";var r=n(39).default,i=n(13).default,a=n(3).default,s=n(1).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,n=c.COMPILER_REVISION;if(!(t>=c.LAST_COMPATIBLE_COMPILER_REVISION&&t<=c.COMPILER_REVISION)){if(t<c.LAST_COMPATIBLE_COMPILER_REVISION){var r=c.REVISION_CHANGES[n],i=c.REVISION_CHANGES[t];throw new l.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new l.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(e,t){if(!t)throw new l.default("No environment passed to template");if(!e||!e.main)throw new l.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&7===e.compiler[0],a={strict:function(e,t,n){if(!e||!(t in e))throw new l.default('"'+t+'" not defined in '+e,{loc:n});return a.lookupProperty(e,t)},lookupProperty:function(e,t){var n=e[t];return null==n||Object.prototype.hasOwnProperty.call(e,t)||d.resultIsAllowed(n,a.protoAccessControl,t)?n:void 0},lookup:function(e,t){for(var n=e.length,r=0;r<n;r++)if(null!=(e[r]&&a.lookupProperty(e[r],t)))return e[r][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:o.escapeExpression,invokePartial:function(n,r,i){i.hash&&(r=o.extend({},r,i.hash),i.ids&&(i.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,i);var a=o.extend({},i,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),s=t.VM.invokePartial.call(this,n,r,a);if(null==s&&t.compile&&(i.partials[i.name]=t.compile(n,e.compilerOptions,t),s=i.partials[i.name](r,a)),null!=s){if(i.indent){for(var c=s.split("\n"),u=0,h=c.length;u<h&&(c[u]||u+1!==h);u++)c[u]=i.indent+c[u];s=c.join("\n")}return s}throw new l.default("The partial "+i.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,r,i){var a=this.programs[e],s=this.fn(e);return t||i||r||n?a=p(this,e,s,t,n,r,i):a||(a=this.programs[e]=p(this,e,s)),a},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=o.extend({},t,e)),n},nullContext:r({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=n.data;s._setup(n),!n.partial&&e.useData&&(r=function(e,t){return t&&"root"in t||((t=t?c.createFrame(t):{}).root=e),t}(t,r));var i=void 0,o=e.useBlockParams?[]:void 0;function l(t){return""+e.main(a,t,a.helpers,a.partials,r,o,i)}return e.useDepths&&(i=n.depths?t!=n.depths[0]?[t].concat(n.depths):n.depths:[t]),(l=f(e.main,l,a,n.depths||[],r,o))(t,n)}return s.isTop=!0,s._setup=function(r){if(r.partial)a.protoAccessControl=r.protoAccessControl,a.helpers=r.helpers,a.partials=r.partials,a.decorators=r.decorators,a.hooks=r.hooks;else{var s=o.extend({},t.helpers,r.helpers);!function(e,t){i(e).forEach((function(n){var r=e[n];e[n]=function(e,t){var n=t.lookupProperty;return h.wrapHelper(e,(function(e){return o.extend({lookupProperty:n},e)}))}(r,t)}))}(s,a),a.helpers=s,e.usePartial&&(a.partials=a.mergeIfNeeded(r.partials,t.partials)),(e.usePartial||e.useDecorators)&&(a.decorators=o.extend({},t.decorators,r.decorators)),a.hooks={},a.protoAccessControl=d.createProtoAccessControl(r);var l=r.allowCallsToHelperMissing||n;u.moveHelperToHooks(a,"helperMissing",l),u.moveHelperToHooks(a,"blockHelperMissing",l)}},s._child=function(t,n,r,i){if(e.useBlockParams&&!r)throw new l.default("must pass block params");if(e.useDepths&&!i)throw new l.default("must pass parent depths");return p(a,t,e[t],n,0,r,i)},s},t.wrapProgram=p,t.resolvePartial=function(e,t,n){return e?e.call||n.name||(n.name=e,e=n.partials[e]):e="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name],e},t.invokePartial=function(e,t,n){var r=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var i=void 0;if(n.fn&&n.fn!==v&&function(){n.data=c.createFrame(n.data);var e=n.fn;i=n.data["partial-block"]=function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=c.createFrame(n.data),n.data["partial-block"]=r,e(t,n)},e.partials&&(n.partials=o.extend({},n.partials,e.partials))}(),void 0===e&&i&&(e=i),void 0===e)throw new l.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},t.noop=v;var o=a(n(5)),l=s(n(6)),c=n(4),u=n(10),h=n(43),d=n(33);function p(e,t,n,r,i,a,s){function o(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=s;return!s||t==s[0]||t===e.nullContext&&null===s[0]||(o=[t].concat(s)),n(e,t,e.helpers,e.partials,i.data||r,a&&[i.blockParams].concat(a),o)}return(o=f(n,o,e,s,r,a)).program=t,o.depth=s?s.length:0,o.blockParams=i||0,o}function v(){return""}function f(e,t,n,r,i,a){if(e.decorator){var s={};t=e.decorator(t,s,n,r&&r[0],i,a,r),o.extend(t,s)}return t}},function(e,t,n){e.exports={default:n(40),__esModule:!0}},function(e,t,n){n(41),e.exports=n(21).Object.seal},function(e,t,n){var r=n(42);n(18)("seal",(function(e){return function(t){return e&&r(t)?e(t):t}}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){return"function"!=typeof e?e:function(){return arguments[arguments.length-1]=t(arguments[arguments.length-1]),e.apply(this,arguments)}}},function(e,t){(function(n){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0!==n?n:window,r=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=r),e}},e.exports=t.default}).call(t,function(){return this}())},function(e,t){"use strict";t.__esModule=!0;var n={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!n.helpers.scopedId(e)&&!e.depth}}};t.default=n,e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default,i=n(3).default;t.__esModule=!0,t.parseWithoutProcessing=u,t.parse=function(e,t){var n=u(e,t);return new s.default(t).accept(n)};var a=r(n(47)),s=r(n(48)),o=i(n(50)),l=n(5);t.parser=a.default;var c={};function u(e,t){return"Program"===e.type?e:(a.default.yy=c,c.locInfo=function(e){return new c.SourceLocation(t&&t.srcName,e)},a.default.parse(e))}l.extend(c,o)},function(e,t){"use strict";t.__esModule=!0;var n=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,n,r,i,a,s){var o=a.length-1;switch(i){case 1:return a[o-1];case 2:this.$=r.prepareProgram(a[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=a[o];break;case 9:this.$={type:"CommentStatement",value:r.stripComment(a[o]),strip:r.stripFlags(a[o],a[o]),loc:r.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:a[o],value:a[o],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(a[o-2],a[o-1],a[o],this._$);break;case 12:this.$={path:a[o-3],params:a[o-2],hash:a[o-1]};break;case 13:this.$=r.prepareBlock(a[o-3],a[o-2],a[o-1],a[o],!1,this._$);break;case 14:this.$=r.prepareBlock(a[o-3],a[o-2],a[o-1],a[o],!0,this._$);break;case 15:this.$={open:a[o-5],path:a[o-4],params:a[o-3],hash:a[o-2],blockParams:a[o-1],strip:r.stripFlags(a[o-5],a[o])};break;case 16:case 17:this.$={path:a[o-4],params:a[o-3],hash:a[o-2],blockParams:a[o-1],strip:r.stripFlags(a[o-5],a[o])};break;case 18:this.$={strip:r.stripFlags(a[o-1],a[o-1]),program:a[o]};break;case 19:var l=r.prepareBlock(a[o-2],a[o-1],a[o],a[o],!1,this._$),c=r.prepareProgram([l],a[o-1].loc);c.chained=!0,this.$={strip:a[o-2].strip,program:c,chain:!0};break;case 21:this.$={path:a[o-1],strip:r.stripFlags(a[o-2],a[o])};break;case 22:case 23:this.$=r.prepareMustache(a[o-3],a[o-2],a[o-1],a[o-4],r.stripFlags(a[o-4],a[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:a[o-3],params:a[o-2],hash:a[o-1],indent:"",strip:r.stripFlags(a[o-4],a[o]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(a[o-2],a[o-1],a[o],this._$);break;case 26:this.$={path:a[o-3],params:a[o-2],hash:a[o-1],strip:r.stripFlags(a[o-4],a[o])};break;case 29:this.$={type:"SubExpression",path:a[o-3],params:a[o-2],hash:a[o-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:a[o],loc:r.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:r.id(a[o-2]),value:a[o],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(a[o-1]);break;case 35:this.$={type:"StringLiteral",value:a[o],original:a[o],loc:r.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(a[o]),original:Number(a[o]),loc:r.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===a[o],original:"true"===a[o],loc:r.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:r.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:r.locInfo(this._$)};break;case 42:this.$=r.preparePath(!0,a[o],this._$);break;case 43:this.$=r.preparePath(!1,a[o],this._$);break;case 44:a[o-2].push({part:r.id(a[o]),original:a[o],separator:a[o-1]}),this.$=a[o-2];break;case 45:this.$=[{part:r.id(a[o]),original:a[o]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:a[o-1].push(a[o]);break;case 98:case 100:this.$=[a[o]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=[0],n=[null],r=[],i=this.table,a="",s=0,o=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var c=this.lexer.yylloc;r.push(c);var u=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var h,d,p,v,f,m,g,y,k,w,b={};;){if(p=t[t.length-1],this.defaultActions[p]?v=this.defaultActions[p]:(null==h&&(w=void 0,"number"!=typeof(w=this.lexer.lex()||1)&&(w=this.symbols_[w]||w),h=w),v=i[p]&&i[p][h]),void 0===v||!v.length||!v[0]){var _="";if(!l){for(m in k=[],i[p])this.terminals_[m]&&m>2&&k.push("'"+this.terminals_[m]+"'");_=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[h]||h)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:c,expected:k})}}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+h);switch(v[0]){case 1:t.push(h),n.push(this.lexer.yytext),r.push(this.lexer.yylloc),t.push(v[1]),h=null,d?(h=d,d=null):(o=this.lexer.yyleng,a=this.lexer.yytext,s=this.lexer.yylineno,c=this.lexer.yylloc,l>0&&l--);break;case 2:if(g=this.productions_[v[1]][1],b.$=n[n.length-g],b._$={first_line:r[r.length-(g||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(g||1)].first_column,last_column:r[r.length-1].last_column},u&&(b._$.range=[r[r.length-(g||1)].range[0],r[r.length-1].range[1]]),void 0!==(f=this.performAction.call(b,a,o,s,this.yy,v[1],n,r)))return f;g&&(t=t.slice(0,-1*g*2),n=n.slice(0,-1*g),r=r.slice(0,-1*g)),t.push(this.productions_[v[1]][0]),n.push(b.$),r.push(b._$),y=i[t[t.length-2]][t[t.length-1]],t.push(y);break;case 3:return!0}}return!0}},t={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,n,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;s<a.length&&(!(n=this._input.match(this.rules[a[s]]))||t&&!(n[0].length>t[0].length)||(t=n,r=s,this.options.flex));s++);return t?((i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,a[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,n,r){function i(e,n){return t.yytext=t.yytext.substring(e,t.yyleng-n+e)}switch(n){case 0:if("\\\\"===t.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(i(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};function n(){this.yy={}}return e.lexer=t,n.prototype=e,e.Parser=n,new n}();t.default=n,e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0;var i=r(n(49));function a(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function s(e,t,n){void 0===t&&(t=e.length);var r=e[t-1],i=e[t-2];return r?"ContentStatement"===r.type?(i||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:n}function o(e,t,n){void 0===t&&(t=-1);var r=e[t+1],i=e[t+2];return r?"ContentStatement"===r.type?(i||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:n}function l(e,t,n){var r=e[null==t?0:t+1];if(r&&"ContentStatement"===r.type&&(n||!r.rightStripped)){var i=r.value;r.value=r.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==i}}function c(e,t,n){var r=e[null==t?e.length-1:t-1];if(r&&"ContentStatement"===r.type&&(n||!r.leftStripped)){var i=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==i,r.leftStripped}}a.prototype=new i.default,a.prototype.Program=function(e){var t=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=e.body,i=0,a=r.length;i<a;i++){var u=r[i],h=this.accept(u);if(h){var d=s(r,i,n),p=o(r,i,n),v=h.openStandalone&&d,f=h.closeStandalone&&p,m=h.inlineStandalone&&d&&p;h.close&&l(r,i,!0),h.open&&c(r,i,!0),t&&m&&(l(r,i),c(r,i)&&"PartialStatement"===u.type&&(u.indent=/([ \t]+$)/.exec(r[i-1].original)[1])),t&&v&&(l((u.program||u.inverse).body),c(r,i)),t&&f&&(l(r,i),c((u.inverse||u.program).body))}}return e},a.prototype.BlockStatement=a.prototype.DecoratorBlock=a.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,n=e.program&&e.inverse,r=n,i=n;if(n&&n.chained)for(r=n.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var a={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:o(t.body),closeStandalone:s((r||t).body)};if(e.openStrip.close&&l(t.body,null,!0),n){var u=e.inverseStrip;u.open&&c(t.body,null,!0),u.close&&l(r.body,null,!0),e.closeStrip.open&&c(i.body,null,!0),!this.options.ignoreStandalone&&s(t.body)&&o(r.body)&&(c(t.body),l(r.body))}else e.closeStrip.open&&c(t.body,null,!0);return a},a.prototype.Decorator=a.prototype.MustacheStatement=function(e){return e.strip},a.prototype.PartialStatement=a.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=a,e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0;var i=r(n(6));function a(){this.parents=[]}function s(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function o(e){s.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function l(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}a.prototype={constructor:a,mutating:!1,acceptKey:function(e,t){var n=this.accept(e[t]);if(this.mutating){if(n&&!a.prototype[n.type])throw new i.default('Unexpected node type "'+n.type+'" found when accepting '+t+" on "+e.type);e[t]=n}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new i.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,n=e.length;t<n;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,n--)},accept:function(e){if(e){if(!this[e.type])throw new i.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:s,Decorator:s,BlockStatement:o,DecoratorBlock:o,PartialStatement:l,PartialBlockStatement:function(e){l.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:s,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=a,e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",a=[],s=0,o=0,l=t.length;o<l;o++){var c=t[o].part,u=t[o].original!==c;if(r+=(t[o].separator||"")+c,u||".."!==c&&"."!==c&&"this"!==c)a.push(c);else{if(a.length>0)throw new i.default("Invalid path: "+r,{loc:n});".."===c&&s++}}return{type:"PathExpression",data:e,depth:s,parts:a,original:r,loc:n}},t.prepareMustache=function(e,t,n,r,i,a){var s=r.charAt(3)||r.charAt(2),o="{"!==s&&"&"!==s;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:o,strip:i,loc:this.locInfo(a)}},t.prepareRawBlock=function(e,t,n,r){a(e,n);var i={type:"Program",body:t,strip:{},loc:r=this.locInfo(r)};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},t.prepareBlock=function(e,t,n,r,s,o){r&&r.path&&a(e,r);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(n){if(l)throw new i.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),u=n.strip,c=n.program}return s&&(s=c,c=t,t=s),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:r&&r.strip,loc:this.locInfo(o)}},t.prepareProgram=function(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,n,r){return a(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}};var i=r(n(6));function a(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new i.default(e.path.original+" doesn't match "+t,n)}}},function(e,t,n){"use strict";var r=n(34).default,i=n(1).default;t.__esModule=!0,t.Compiler=c,t.precompile=function(e,t,n){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new a.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var r=n.parse(e,t),i=(new n.Compiler).compile(r,t);return(new n.JavaScriptCompiler).compile(i,t)},t.compile=function(e,t,n){if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new a.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=s.extend({},t))||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function i(){var r=n.parse(e,t),i=(new n.Compiler).compile(r,t),a=(new n.JavaScriptCompiler).compile(i,t,void 0,!0);return n.template(a)}function o(e,t){return r||(r=i()),r.call(this,e,t)}return o._setup=function(e){return r||(r=i()),r._setup(e)},o._child=function(e,t,n,a){return r||(r=i()),r._child(e,t,n,a)},o};var a=i(n(6)),s=n(5),o=i(n(45)),l=[].slice;function c(){}function u(e,t){if(e===t)return!0;if(s.isArray(e)&&s.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!u(e[n],t[n]))return!1;return!0}}function h(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}c.prototype={compiler:c,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var n=0;n<t;n++){var r=this.opcodes[n],i=e.opcodes[n];if(r.opcode!==i.opcode||!u(r.args,i.args))return!1}for(t=this.children.length,n=0;n<t;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=s.extend(r(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),n=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[n]=t,this.useDepths=this.useDepths||t.useDepths,n},accept:function(e){if(!this[e.type])throw new a.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,n=t.length,r=0;r<n;r++)this.accept(t[r]);return this.options.blockParams.shift(),this.isSimple=1===n,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){h(e);var t=e.program,n=e.inverse;t=t&&this.compileProgram(t),n=n&&this.compileProgram(n);var r=this.classifySexpr(e);"helper"===r?this.helperSexpr(e,t,n):"simple"===r?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,n),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),n=this.setupFullMustacheParams(e,t,void 0),r=e.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,r.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var n=e.params;if(n.length>1)throw new a.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var r=e.name.original,i="SubExpression"===e.name.type;i&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var s=e.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",i,r,s),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){h(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,n){var r=e.path,i=r.parts[0],a=null!=t||null!=n;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",n),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,a)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,n){var r=this.setupFullMustacheParams(e,t,n),i=e.path,s=i.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",r.length,s);else{if(this.options.knownHelpersOnly)throw new a.default("You specified knownHelpersOnly, but used the unknown helper "+s,e);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,o.default.helpers.simpleId(i))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],n=o.default.helpers.scopedId(e),r=!e.depth&&!n&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,n=0,r=t.length;for(this.opcode("pushHash");n<r;n++)this.pushParam(t[n].value);for(;n--;)this.opcode("assignToHash",t[n].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:l.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=o.default.helpers.simpleId(e.path),n=t&&!!this.blockParamIndex(e.path.parts[0]),r=!n&&o.default.helpers.helperExpression(e),i=!n&&(r||t);if(i&&!r){var a=e.path.parts[0],s=this.options;s.knownHelpers[a]?r=!0:s.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(e){for(var t=0,n=e.length;t<n;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var n=void 0;if(!e.parts||o.default.helpers.scopedId(e)||e.depth||(n=this.blockParamIndex(e.parts[0])),n){var r=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,r)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,n,r){var i=e.params;return this.pushParams(i),this.opcode("pushProgram",t),this.opcode("pushProgram",n),e.hash?this.accept(e.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(e){for(var t=0,n=this.options.blockParams.length;t<n;t++){var r=this.options.blockParams[t],i=r&&s.indexOf(r,e);if(r&&i>=0)return[t,i]}}}},function(e,t,n){"use strict";var r=n(13).default,i=n(1).default;t.__esModule=!0;var a=n(4),s=i(n(6)),o=n(5),l=i(n(53));function c(e){this.value=e}function u(){}u.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=a.COMPILER_REVISION;return[e,a.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,n){return o.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,n,r){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,o=void 0,l=void 0,c=void 0;for(l=0,c=i.length;l<c;l++)a=i[l],this.source.currentLocation=a.loc,o=o||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new s.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),r?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(r);if(this.isChild)return u;var h={compiler:this.compilerInfo(),main:u};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var d=this.context,p=d.programs,v=d.decorators;for(l=0,c=p.length;l<c;l++)p[l]&&(h[l]=p[l],v[l]&&(h[l+"_d"]=v[l],h.useDecorators=!0));return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),r?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),t.srcName?(h=h.toStringWithSourceMap({file:t.destName})).map=h.map&&h.map.toString():h=h.toString()),h},preamble:function(){this.lastContext=0,this.source=new l.default(this.options.srcName),this.decorators=new l.default(this.options.srcName)},createFunctionContext:function(e){var t=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var a=0;r(this.aliases).forEach((function(e){var r=t.aliases[e];r.children&&r.referenceCount>1&&(n+=", alias"+ ++a+"="+e,r.children[0]="alias"+a)})),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var o=this.mergeSource(n);return e?(s.push(o),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),") {\n ",o,"}"])},mergeSource:function(e){var t=this.environment.isSimple,n=!this.forceBuffer,r=void 0,i=void 0,a=void 0,s=void 0;return this.source.each((function(e){e.appendToBuffer?(a?e.prepend(" + "):a=e,s=e):(a&&(i?a.prepend("buffer += "):r=!0,s.add(";"),a=s=void 0),i=!0,t||(n=!1))})),n?a?(a.prepend("return "),s.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),s.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(t,"call",n))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var n=this.topStack();t.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,n,r){var i=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[i++])),this.resolvePath("context",e,i,t,n)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,n)},resolvePath:function(e,t,n,r,i){var a=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,n,r){var i=t.popStack(),a=0,s=n.length;for(e&&s--;a<s;a++)i=t.nameLookup(i,n[a],r);return e?[t.aliasable("container.strict"),"(",i,", ",t.quotedString(n[a]),", ",JSON.stringify(t.source.currentLocation)," )"]:i}(this.options.strict&&i,this,t,e));else for(var s=t.length;n<s;n++)this.replaceStack((function(i){var s=a.nameLookup(i,t[n],e);return r?[" && ",s]:[" != null ? ",s," : ",i]}))},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var n=this.nameLookup("decorators",t,"decorator"),r=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",r])," || fn;"])},invokeHelper:function(e,t,n){var r=this.popStack(),i=this.setupHelper(e,t),a=[];n&&a.push(i.name),a.push(r),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var s=["(",this.itemsSeparatedBy(a,"||"),")"],o=this.source.functionCall(s,"call",i.callParams);this.push(o)},itemsSeparatedBy:function(e,t){var n=[];n.push(e[0]);for(var r=1;r<e.length;r++)n.push(t,e[r]);return n},invokeKnownHelper:function(e,t){var n=this.setupHelper(e,t);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var n=this.popStack();this.emptyHash();var r=this.setupHelper(0,e,t),i=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",n,")"];this.options.strict||(i[0]="(helper = ",i.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",i,r.paramsInit?["),(",r.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",r.callParams)," : helper))"])},invokePartial:function(e,t,n){var r=[],i=this.setupParams(t,1,r);e&&(t=this.popStack(),delete i.name),n&&(i.indent=JSON.stringify(n)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",e?r.unshift(t):r.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),r.push(i),this.push(this.source.functionCall("container.invokePartial","",r))},assignToHash:function(e){var t=this.popStack(),n=void 0,r=void 0,i=void 0;this.trackIds&&(i=this.popStack()),this.stringParams&&(r=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[e]=n),r&&(a.types[e]=r),i&&(a.ids[e]=i),a.values[e]=t},pushId:function(e,t,n){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(e,t){for(var n=e.children,r=void 0,i=void 0,a=0,s=n.length;a<s;a++){r=n[a],i=new this.compiler;var o=this.matchExistingProgram(r);if(null==o){this.context.programs.push("");var l=this.context.programs.length;r.index=l,r.name="program"+l,this.context.programs[l]=i.compile(r,t,this.context,!this.precompile),this.context.decorators[l]=i.decorators,this.context.environments[l]=r,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams,r.useDepths=this.useDepths,r.useBlockParams=this.useBlockParams}else r.index=o.index,r.name="program"+o.index,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams}},matchExistingProgram:function(e){for(var t=0,n=this.context.environments.length;t<n;t++){var r=this.context.environments[t];if(r&&r.equals(e))return r}},programExpression:function(e){var t=this.environment.children[e],n=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof c||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new c(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],n=void 0,r=void 0,i=void 0;if(!this.isInline())throw new s.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof c)t=["(",n=[a.value]],i=!0;else{r=!0;var o=this.incrStack();t=["((",this.push(o)," = ",a,")"],n=this.topStack()}var l=e.call(this,n);i||this.popStack(),r&&this.stackSlot--,this.push(t.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r instanceof c)this.compileStack.push(r);else{var i=this.incrStack();this.pushSource([i," = ",r,";"]),this.compileStack.push(i)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),n=(t?this.inlineStack:this.compileStack).pop();if(!e&&n instanceof c)return n.value;if(!t){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return n},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof c?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,n){var r=[];return{params:r,paramsInit:this.setupHelperArgs(t,e,r,n),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(r)}},setupParams:function(e,t,n){var r={},i=[],a=[],s=[],o=!n,l=void 0;o&&(n=[]),r.name=this.quotedString(e),r.hash=this.popStack(),this.trackIds&&(r.hashIds=this.popStack()),this.stringParams&&(r.hashTypes=this.popStack(),r.hashContexts=this.popStack());var c=this.popStack(),u=this.popStack();(u||c)&&(r.fn=u||"container.noop",r.inverse=c||"container.noop");for(var h=t;h--;)l=this.popStack(),n[h]=l,this.trackIds&&(s[h]=this.popStack()),this.stringParams&&(a[h]=this.popStack(),i[h]=this.popStack());return o&&(r.args=this.source.generateArray(n)),this.trackIds&&(r.ids=this.source.generateArray(s)),this.stringParams&&(r.types=this.source.generateArray(a),r.contexts=this.source.generateArray(i)),this.options.data&&(r.data="data"),this.useBlockParams&&(r.blockParams="blockParams"),r},setupHelperArgs:function(e,t,n,r){var i=this.setupParams(e,t,n);return i.loc=JSON.stringify(this.source.currentLocation),i=this.objectLiteral(i),r?(this.useRegister("options"),n.push("options"),["options=",i]):n?(n.push(i),""):i}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=u.RESERVED_WORDS={},n=0,r=e.length;n<r;n++)t[e[n]]=!0}(),u.isValidJavaScriptVariableName=function(e){return!u.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=u,e.exports=t.default},function(e,t,n){"use strict";var r=n(13).default;t.__esModule=!0;var i=n(5),a=void 0;function s(e,t,n){if(i.isArray(e)){for(var r=[],a=0,s=e.length;a<s;a++)r.push(t.wrap(e[a],n));return r}return"boolean"==typeof e||"number"==typeof e?e+"":e}function o(e){this.srcFile=e,this.source=[]}a||((a=function(e,t,n,r){this.src="",r&&this.add(r)}).prototype={add:function(e){i.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){i.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),o.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each((function(t){e.add([" ",t,"\n"])})),e},each:function(e){for(var t=0,n=this.source.length;t<n;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new a(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof a?e:(e=s(e,this,t),new a(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,n){return n=this.generateList(n),this.wrap([e,t?"."+t+"(":"(",n,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,n=[];r(e).forEach((function(r){var i=s(e[r],t);"undefined"!==i&&n.push([t.quotedString(r),":",i])}));var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},generateList:function(e){for(var t=this.empty(),n=0,r=e.length;n<r;n++)n&&t.add(","),t.add(s(e[n],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=o,e.exports=t.default}])},e.exports=t()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{"use strict";var e=n(675);const t=n.p+"styles.deb5d9247e589cc159f67dd3a83d6112.css";class r extends HTMLElement{constructor(){super(...arguments),this.handlebars=HawkSearch.handlebars}get configuration(){var e;return null===(e=HawkSearch.config.components)||void 0===e?void 0:e[this.componentName]}get shadowDom(){var e,t;return void 0!==(null===(e=this.configuration)||void 0===e?void 0:e.shadowDom)?this.configuration.shadowDom:null===(t=HawkSearch.config.shadowDom)||void 0===t||t}get rootElement(){var e;return null!==(e=this.shadowRoot)&&void 0!==e?e:this}get hasContentTemplateOverride(){return!!this.innerHTML.trim().length}get eventName(){if(!this.bindFromEvent)return;let e=`hawksearch:bind-${this.componentName}`;return this.eventFilter&&(e=`${e}:${this.eventFilter}`),e}connectedCallback(){this.shadowDom&&this.attachShadow({mode:"open"}),this.registerHelpers();const e=this.getCustomTemplateHtml(),t=/\[\[((?!\[).+?)\]\]/g;let n=null!=e?e:this.defaultHtml;for(;t.test(n);)n=n.replace(t,"{{$1}}");this.template=this.handlebars.compile(n),setTimeout((()=>{this.render()})),this.eventName&&(this.bindEventHandler=e=>{this.data=e.detail,this.render()},window.addEventListener(this.eventName,this.bindEventHandler))}disconnectedCallback(){this.eventName&&this.bindEventHandler&&window.removeEventListener(this.eventName,this.bindEventHandler)}registerHelpers(){}render(){var e,n;if(!this.template||!this.renderContent())return this.rootElement.replaceChildren(),void(this.style.display="none");const r=this.getContentModel(),i=new CustomEvent(`hawksearch:before-${this.componentName}-rendered`,{detail:{component:this,contentModel:r}});dispatchEvent(i);const a=[];let s=[];if(!1!==(null===(e=HawkSearch.config.css)||void 0===e?void 0:e.defaultStyles)&&s.push(t),null===(n=HawkSearch.config.css)||void 0===n?void 0:n.customStyles){const e="string"==typeof HawkSearch.config.css.customStyles?[HawkSearch.config.css.customStyles]:HawkSearch.config.css.customStyles;s=s.concat(e)}s.forEach(((e,t)=>{const n=`hawksearch-handlebars-ui-css-${t}`;if(!this.shadowDom&&document.head.querySelector(`[id="${n}"]`))return;let r;if(/^.*?.css$/.test(e)){const t=document.createElement("link");t.id=n,t.type="text/css",t.rel="stylesheet",t.href=e,r=t}else{const t=document.getElementById(e);if(t instanceof HTMLTemplateElement){const e=t.content.cloneNode(!0).querySelector("style");e&&(e.id=n,r=e)}else{const t=document.createElement("style");t.id=n,t.innerHTML=e,r=t}}r&&(this.shadowDom?a.push(r):document.head.append(r))}));const o=document.createElement("template"),l=this.template(r);o.innerHTML=l;const c=o.content.cloneNode(!0);a.push(c),this.rootElement.replaceChildren(...a),this.style.display=o.innerHTML?"":"none",this.contentModel=r,this.bindChildElements(),this.onRender();const u=new CustomEvent(`hawksearch:after-${this.componentName}-rendered`,{detail:{component:this,contentModel:r}});dispatchEvent(u)}renderContent(){return!0}bindChildElements(){}onRender(){}getCustomTemplateHtml(){var e;let t;if(this.hasContentTemplateOverride)t=this.innerHTML;else if(t=null===(e=this.configuration)||void 0===e?void 0:e.template,t){const e=document.getElementById(t);e instanceof HTMLTemplateElement&&(t=e.innerHTML);const n={"{{&gt;":"{{>"};Object.entries(n).forEach((([e,n])=>{const r=new RegExp(e,"g");t=t.replace(r,n)}))}return t}interpolate(e,t){let n=e;return Object.entries(t).forEach((([e,t])=>{n=n.replace("${"+e+"}",t)})),n}}class i extends r{constructor(){super(...arguments),this.bindFromEvent=!1}}const a=n.p+"placeholder.c99b7374b9bf579d0fd0.png",s="object"==typeof global&&global&&global.Object===Object&&global;var o="object"==typeof self&&self&&self.Object===Object&&self;const l=s||o||Function("return this")(),c=l.Symbol,u=Array.isArray;var h=Object.prototype,d=h.hasOwnProperty,p=h.toString,v=c?c.toStringTag:void 0;var f=Object.prototype.toString;var m=c?c.toStringTag:void 0;const g=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":m&&m in Object(e)?function(e){var t=d.call(e,v),n=e[v];try{e[v]=void 0;var r=!0}catch(e){}var i=p.call(e);return r&&(t?e[v]=n:delete e[v]),i}(e):function(e){return f.call(e)}(e)},y=function(e){return null!=e&&"object"==typeof e};const k=function(e){return"symbol"==typeof e||y(e)&&"[object Symbol]"==g(e)};var w=c?c.prototype:void 0,b=w?w.toString:void 0;const _=function e(t){if("string"==typeof t)return t;if(u(t))return function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,e)+"";if(k(t))return b?b.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},S=function(e){return null==e?"":_(e)},E=(x={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},function(e){return null==x?void 0:x[e]});var x,P=/&(?:amp|lt|gt|quot|#39);/g,C=RegExp(P.source);const I={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let H;const q=new Uint8Array(16);function L(){if(!H&&(H="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!H))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return H(q)}const M=[];for(let e=0;e<256;++e)M.push((e+256).toString(16).slice(1));const A=function(e,t,n){if(I.randomUUID&&!t&&!e)return I.randomUUID();const r=(e=e||{}).random||(e.rng||L)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(M[e[t+0]]+M[e[t+1]]+M[e[t+2]]+M[e[t+3]]+"-"+M[e[t+4]]+M[e[t+5]]+"-"+M[e[t+6]]+M[e[t+7]]+"-"+M[e[t+8]]+M[e[t+9]]+"-"+M[e[t+10]]+M[e[t+11]]+M[e[t+12]]+M[e[t+13]]+M[e[t+14]]+M[e[t+15]]).toLowerCase()}(r)};class R{constructor(){var e,t,n,r,i,a,s,o;this.queryStringParams={disableSpellcheck:(null===(e=HawkSearch.config.queryStringMappings)||void 0===e?void 0:e.disableSpellcheck)||"disableSpellcheck",facet:(null===(t=HawkSearch.config.queryStringMappings)||void 0===t?void 0:t.facet)||"facet",page:(null===(n=HawkSearch.config.queryStringMappings)||void 0===n?void 0:n.page)||"page",pageSize:(null===(r=HawkSearch.config.queryStringMappings)||void 0===r?void 0:r.pageSize)||"pageSize",query:(null===(i=HawkSearch.config.queryStringMappings)||void 0===i?void 0:i.query)||"query",searchWithin:(null===(a=HawkSearch.config.queryStringMappings)||void 0===a?void 0:a.searchWithin)||"searchWithin",sort:(null===(s=HawkSearch.config.queryStringMappings)||void 0===s?void 0:s.sort)||"sort"},this.searchUrl=null!==(o=HawkSearch.config.searchUrl)&&void 0!==o?o:"/search"}httpPost(e,t){return n=this,r=void 0,a=function*(){const n=this.baseUrl+e,r=this.getHeaders(),i=yield fetch(n,{method:"POST",headers:r,body:JSON.stringify(t)}),a=i.headers.get("content-type");return(null==a?void 0:a.startsWith("application/json"))?i.json():void 0},new((i=void 0)||(i=Promise))((function(e,t){function s(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,o)}l((a=a.apply(n,r||[])).next())}));var n,r,i,a}stripHtml(e){let t=e.replace(/<[^>]+>/g,"");return t=(n=S(n=t))&&C.test(n)?n.replace(P,E):n,t=decodeURIComponent(t),t;var n}getHeaders(){const e=new Headers;return e.set("Content-Type","application/json"),e.set("X-Requested-With","XMLHttpRequest"),e}getVisitorId(){const e="VisitorId";let t=localStorage.getItem(e);return t||(t=this.generateGuid(),localStorage.setItem(e,t)),t}getVisitId(){const e="VisitId";let t=sessionStorage.getItem(e);return t||(t=this.generateGuid(),sessionStorage.setItem(e,t)),t}generateGuid(){return A()}getUrl(e,t){if(t)return e&&!/^https?:\/\//.test(t)?`${e}/${t.replace(/^\/+/,"")}`:t}triggerBindEvent(e,t,n){let r=`hawksearch:bind-${e}`;n&&(r=`${r}:${n}`),this.triggerEvent(r,t)}triggerEvent(e,t){const n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)}}const D=new class extends R{constructor(){var e;super(...arguments),this.baseUrl=(null===(e=HawkSearch.config.endpoints)||void 0===e?void 0:e.search)||"https://searchapi-dev.hawksearch.net/api/v2"}query(e){return t=this,n=void 0,i=function*(){const t={query:e};return yield this.executeAutocomplete(t)},new((r=void 0)||(r=Promise))((function(e,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,o)}l((i=i.apply(t,n||[])).next())}));var t,n,r,i}executeAutocomplete(e){const t={ClientGuid:HawkSearch.config.clientId,IndexName:HawkSearch.config.index,Keyword:e.query,DisplayFullResponse:!0};return this.triggerEvent("hawksearch:before-autocomplete-executed",t),this.httpPost("/autocomplete",t).then((t=>{this.triggerEvent("hawksearch:after-autocomplete-executed",t);const n=this.convertResponse(e.query,t);return this.triggerEvent("hawksearch:autocomplete-completed",n),this.bindComponent(n),n}))}convertResponse(e,t){return{query:e,categories:{title:t.CategoryHeading,results:t.Categories.map((e=>({title:this.stripHtml(e.Value),field:e.FieldQSName,value:e.FieldQSValue,url:`${this.searchUrl}?${this.queryStringParams.facet}-${e.FieldQSName}=${encodeURIComponent(e.FieldQSValue)}`})))},content:{title:t.ContentHeading,results:t.Content.map((e=>({id:e.Results.DocId,pinned:e.Results.IsPin,score:e.Results.Score,attributes:e.Results.Document,title:this.stripHtml(e.Value),url:e.Url}))),totalRecords:t.ContentCount},queries:{title:t.PopularHeading,results:t.Popular.map((e=>({query:this.stripHtml(e.RawValue),url:`${this.searchUrl}?${this.queryStringParams.query}=${encodeURIComponent(this.stripHtml(e.RawValue))}`})))},products:{title:t.ProductHeading,results:t.Products.map((e=>{var t;return{id:e.Results.DocId,pinned:e.Results.IsPin,score:e.Results.Score,attributes:e.Results.Document,title:this.stripHtml(e.ProductName),sku:e.Sku||void 0,imageUrl:null===(t=e.Thumb)||void 0===t?void 0:t.Url,url:e.Url}})),totalRecords:t.ProductCount},totalRecords:t.Count,viewAllText:t.ViewAllButtonLabel}}bindComponent(e){this.triggerBindEvent("autocomplete",e)}};var O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/;const N=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const F=function(e){if(!N(e))return!1;var t=g(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},j=l["__core-js_shared__"];var B,V=(B=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"";var $=Function.prototype.toString;const U=function(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var z=/^\[object .+?Constructor\]$/,W=Function.prototype,Q=Object.prototype,Z=W.toString,K=Q.hasOwnProperty,Y=RegExp("^"+Z.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const G=function(e){return!(!N(e)||(t=e,V&&V in t))&&(F(e)?Y:z).test(U(e));var t},X=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return G(n)?n:void 0},J=X(Object,"create");var ee=Object.prototype.hasOwnProperty;var te=Object.prototype.hasOwnProperty;function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ne.prototype.clear=function(){this.__data__=J?J(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if(J){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ee.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return J?void 0!==t[e]:te.call(t,e)},ne.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=J&&void 0===t?"__lodash_hash_undefined__":t,this};const re=ne,ie=function(e,t){return e===t||e!=e&&t!=t},ae=function(e,t){for(var n=e.length;n--;)if(ie(e[n][0],t))return n;return-1};var se=Array.prototype.splice;function oe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oe.prototype.clear=function(){this.__data__=[],this.size=0},oe.prototype.delete=function(e){var t=this.__data__,n=ae(t,e);return!(n<0||(n==t.length-1?t.pop():se.call(t,n,1),--this.size,0))},oe.prototype.get=function(e){var t=this.__data__,n=ae(t,e);return n<0?void 0:t[n][1]},oe.prototype.has=function(e){return ae(this.__data__,e)>-1},oe.prototype.set=function(e,t){var n=this.__data__,r=ae(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const le=oe,ce=X(l,"Map"),ue=function(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}he.prototype.clear=function(){this.size=0,this.__data__={hash:new re,map:new(ce||le),string:new re}},he.prototype.delete=function(e){var t=ue(this,e).delete(e);return this.size-=t?1:0,t},he.prototype.get=function(e){return ue(this,e).get(e)},he.prototype.has=function(e){return ue(this,e).has(e)},he.prototype.set=function(e,t){var n=ue(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const de=he;var pe="Expected a function";function ve(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(pe);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(ve.Cache||de),n}ve.Cache=de;var fe,me,ge=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ye=/\\(\\)?/g;const ke=(fe=ve((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ge,(function(e,n,r,i){t.push(r?i.replace(ye,"$1"):n||e)})),t}),(function(e){return 500===me.size&&me.clear(),e})),me=fe.cache,fe),we=function(e,t){return u(e)?e:function(e,t){if(u(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!k(e))||T.test(e)||!O.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:ke(S(e))};const be=function(e){if("string"==typeof e||k(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},_e=function(e,t,n){var r=null==e?void 0:function(e,t){for(var n=0,r=(t=we(t,e)).length;null!=e&&n<r;)e=e[be(t[n++])];return n&&n==r?e:void 0}(e,t);return void 0===r?n:r},Se=new class extends R{constructor(){var e,t,n,r,i,a,s;super(...arguments),this.baseUrl=(null===(e=HawkSearch.config.endpoints)||void 0===e?void 0:e.recommendations)||"https://recs-dev.hawksearch.net/api/recommendation/v2",this.fieldMappings={imageUrl:(null===(t=HawkSearch.config.recommendationsFieldMappings)||void 0===t?void 0:t.imageUrl)||"imageUrl",price:(null===(n=HawkSearch.config.recommendationsFieldMappings)||void 0===n?void 0:n.price)||"price",salePrice:(null===(r=HawkSearch.config.recommendationsFieldMappings)||void 0===r?void 0:r.salePrice)||"salePrice",title:(null===(i=HawkSearch.config.recommendationsFieldMappings)||void 0===i?void 0:i.title)||"itemName",description:(null===(a=HawkSearch.config.recommendationsFieldMappings)||void 0===a?void 0:a.description)||"shortDescription",url:(null===(s=HawkSearch.config.recommendationsFieldMappings)||void 0===s?void 0:s.url)||"url"}}getItems(e){return this.executeRecommendations(e)}executeRecommendations(e){const t={clientGuid:HawkSearch.config.clientId,indexName:HawkSearch.config.index,landingPageUrl:e.url,renderHTML:!1,visitId:this.getVisitId(),visitorId:this.getVisitorId(),widgetUids:[{widgetGuid:e.widgetId,uniqueid:e.itemId}]};return this.triggerEvent("hawksearch:before-recommendations-executed",t),this.httpPost("/getwidgetitems",t).then((e=>{this.triggerEvent("hawksearch:after-recommendations-executed",e);const t=this.convertResponse(e);return this.triggerEvent("hawksearch:recommendations-completed",t),this.bindComponents(t),t}))}convertResponse(e){var t,n,r;return window.test=null===(n=null===(t=null==e?void 0:e.widgetItems)||void 0===t?void 0:t[0])||void 0===n?void 0:n.recommendationItems,{requestId:e.requestId,widgets:null===(r=null==e?void 0:e.widgetItems)||void 0===r?void 0:r.map((t=>{var n;return{id:t.widgetGuid,requestId:e.requestId,title:t.widgetName,carousel:t.isCarousel,items:null===(n=t.recommendationItems)||void 0===n?void 0:n.map((e=>{var t,n;return{id:e.id,imageUrl:this.getUrl(null===(t=HawkSearch.config.urlPrefixes)||void 0===t?void 0:t.content,_e(e,this.fieldMappings.imageUrl)),title:_e(e,this.fieldMappings.title),description:_e(e,this.fieldMappings.description),url:this.getUrl(null===(n=HawkSearch.config.urlPrefixes)||void 0===n?void 0:n.content,_e(e,this.fieldMappings.url)),price:parseFloat(_e(e,this.fieldMappings.price))||void 0,salePrice:parseFloat(_e(e,this.fieldMappings.salePrice))||void 0,attributes:e}}))}}))}}bindComponents(e){var t;null===(t=e.widgets)||void 0===t||t.forEach((e=>{this.triggerBindEvent("recommendations",e,e.id)}))}};function Ee(e){var t=this.__data__=new le(e);this.size=t.size}Ee.prototype.clear=function(){this.__data__=new le,this.size=0},Ee.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ee.prototype.get=function(e){return this.__data__.get(e)},Ee.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.set=function(e,t){var n=this.__data__;if(n instanceof le){var r=n.__data__;if(!ce||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new de(r)}return n.set(e,t),this.size=n.size,this};const xe=Ee,Pe=function(){try{var e=X(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ce=function(e,t,n){"__proto__"==t&&Pe?Pe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Ie=Object.prototype.hasOwnProperty;const He=function(e,t,n){var r=e[t];Ie.call(e,t)&&ie(r,n)&&(void 0!==n||t in e)||Ce(e,t,n)},qe=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=r?r(n[o],e[o],o,n,e):void 0;void 0===l&&(l=e[o]),i?Ce(n,o,l):He(n,o,l)}return n};const Le=function(e){return y(e)&&"[object Arguments]"==g(e)};var Me=Object.prototype,Ae=Me.hasOwnProperty,Re=Me.propertyIsEnumerable;const De=Le(function(){return arguments}())?Le:function(e){return y(e)&&Ae.call(e,"callee")&&!Re.call(e,"callee")};var Oe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Te=Oe&&"object"==typeof module&&module&&!module.nodeType&&module,Ne=Te&&Te.exports===Oe?l.Buffer:void 0;const Fe=(Ne?Ne.isBuffer:void 0)||function(){return!1};var je=/^(?:0|[1-9]\d*)$/;const Be=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&je.test(e))&&e>-1&&e%1==0&&e<t};const Ve=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var $e={};$e["[object Float32Array]"]=$e["[object Float64Array]"]=$e["[object Int8Array]"]=$e["[object Int16Array]"]=$e["[object Int32Array]"]=$e["[object Uint8Array]"]=$e["[object Uint8ClampedArray]"]=$e["[object Uint16Array]"]=$e["[object Uint32Array]"]=!0,$e["[object Arguments]"]=$e["[object Array]"]=$e["[object ArrayBuffer]"]=$e["[object Boolean]"]=$e["[object DataView]"]=$e["[object Date]"]=$e["[object Error]"]=$e["[object Function]"]=$e["[object Map]"]=$e["[object Number]"]=$e["[object Object]"]=$e["[object RegExp]"]=$e["[object Set]"]=$e["[object String]"]=$e["[object WeakMap]"]=!1;const Ue=function(e){return function(t){return e(t)}};var ze="object"==typeof exports&&exports&&!exports.nodeType&&exports,We=ze&&"object"==typeof module&&module&&!module.nodeType&&module,Qe=We&&We.exports===ze&&s.process;const Ze=function(){try{return We&&We.require&&We.require("util").types||Qe&&Qe.binding&&Qe.binding("util")}catch(e){}}();var Ke=Ze&&Ze.isTypedArray;const Ye=Ke?Ue(Ke):function(e){return y(e)&&Ve(e.length)&&!!$e[g(e)]};var Ge=Object.prototype.hasOwnProperty;const Xe=function(e,t){var n=u(e),r=!n&&De(e),i=!n&&!r&&Fe(e),a=!n&&!r&&!i&&Ye(e),s=n||r||i||a,o=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=o.length;for(var c in e)!t&&!Ge.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Be(c,l))||o.push(c);return o};var Je=Object.prototype;const et=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Je)},tt=function(e,t){return function(n){return e(t(n))}},nt=tt(Object.keys,Object);var rt=Object.prototype.hasOwnProperty;const it=function(e){return null!=e&&Ve(e.length)&&!F(e)},at=function(e){return it(e)?Xe(e):function(e){if(!et(e))return nt(e);var t=[];for(var n in Object(e))rt.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)};var st=Object.prototype.hasOwnProperty;const ot=function(e){if(!N(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=et(e),n=[];for(var r in e)("constructor"!=r||!t&&st.call(e,r))&&n.push(r);return n},lt=function(e){return it(e)?Xe(e,!0):ot(e)};var ct="object"==typeof exports&&exports&&!exports.nodeType&&exports,ut=ct&&"object"==typeof module&&module&&!module.nodeType&&module,ht=ut&&ut.exports===ct?l.Buffer:void 0,dt=ht?ht.allocUnsafe:void 0;const pt=function(){return[]};var vt=Object.prototype.propertyIsEnumerable,ft=Object.getOwnPropertySymbols;const mt=ft?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}(ft(e),(function(t){return vt.call(e,t)})))}:pt,gt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},yt=tt(Object.getPrototypeOf,Object),kt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)gt(t,mt(e)),e=yt(e);return t}:pt,wt=function(e,t,n){var r=t(e);return u(e)?r:gt(r,n(e))},bt=function(e){return wt(e,at,mt)},_t=function(e){return wt(e,lt,kt)},St=X(l,"DataView"),Et=X(l,"Promise"),xt=X(l,"Set"),Pt=X(l,"WeakMap");var Ct="[object Map]",It="[object Promise]",Ht="[object Set]",qt="[object WeakMap]",Lt="[object DataView]",Mt=U(St),At=U(ce),Rt=U(Et),Dt=U(xt),Ot=U(Pt),Tt=g;(St&&Tt(new St(new ArrayBuffer(1)))!=Lt||ce&&Tt(new ce)!=Ct||Et&&Tt(Et.resolve())!=It||xt&&Tt(new xt)!=Ht||Pt&&Tt(new Pt)!=qt)&&(Tt=function(e){var t=g(e),n="[object Object]"==t?e.constructor:void 0,r=n?U(n):"";if(r)switch(r){case Mt:return Lt;case At:return Ct;case Rt:return It;case Dt:return Ht;case Ot:return qt}return t});const Nt=Tt;var Ft=Object.prototype.hasOwnProperty;const jt=l.Uint8Array,Bt=function(e){var t=new e.constructor(e.byteLength);return new jt(t).set(new jt(e)),t};var Vt=/\w*$/;var $t=c?c.prototype:void 0,Ut=$t?$t.valueOf:void 0;const zt=function(e,t,n){var r,i=e.constructor;switch(t){case"[object ArrayBuffer]":return Bt(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?Bt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?Bt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,Vt.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,Ut?Object(Ut.call(r)):{}}};var Wt=Object.create;const Qt=function(){function e(){}return function(t){if(!N(t))return{};if(Wt)return Wt(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Zt=Ze&&Ze.isMap;const Kt=Zt?Ue(Zt):function(e){return y(e)&&"[object Map]"==Nt(e)};var Yt=Ze&&Ze.isSet;const Gt=Yt?Ue(Yt):function(e){return y(e)&&"[object Set]"==Nt(e)};var Xt="[object Arguments]",Jt="[object Function]",en="[object Object]",tn={};tn[Xt]=tn["[object Array]"]=tn["[object ArrayBuffer]"]=tn["[object DataView]"]=tn["[object Boolean]"]=tn["[object Date]"]=tn["[object Float32Array]"]=tn["[object Float64Array]"]=tn["[object Int8Array]"]=tn["[object Int16Array]"]=tn["[object Int32Array]"]=tn["[object Map]"]=tn["[object Number]"]=tn[en]=tn["[object RegExp]"]=tn["[object Set]"]=tn["[object String]"]=tn["[object Symbol]"]=tn["[object Uint8Array]"]=tn["[object Uint8ClampedArray]"]=tn["[object Uint16Array]"]=tn["[object Uint32Array]"]=!0,tn["[object Error]"]=tn[Jt]=tn["[object WeakMap]"]=!1;const nn=function e(t,n,r,i,a,s){var o,l=1&n,c=2&n,h=4&n;if(r&&(o=a?r(t,i,a,s):r(t)),void 0!==o)return o;if(!N(t))return t;var d=u(t);if(d){if(o=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ft.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(t,o)}else{var p=Nt(t),v=p==Jt||"[object GeneratorFunction]"==p;if(Fe(t))return function(e,t){if(t)return e.slice();var n=e.length,r=dt?dt(n):new e.constructor(n);return e.copy(r),r}(t,l);if(p==en||p==Xt||v&&!a){if(o=c||v?{}:function(e){return"function"!=typeof e.constructor||et(e)?{}:Qt(yt(e))}(t),!l)return c?function(e,t){return qe(e,kt(e),t)}(t,function(e,t){return e&&qe(t,lt(t),e)}(o,t)):function(e,t){return qe(e,mt(e),t)}(t,function(e,t){return e&&qe(t,at(t),e)}(o,t))}else{if(!tn[p])return a?t:{};o=zt(t,p,l)}}s||(s=new xe);var f=s.get(t);if(f)return f;s.set(t,o),Gt(t)?t.forEach((function(i){o.add(e(i,n,r,i,t,s))})):Kt(t)&&t.forEach((function(i,a){o.set(a,e(i,n,r,a,t,s))}));var m=d?void 0:(h?c?_t:bt:c?lt:at)(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(m||t,(function(i,a){m&&(i=t[a=i]),He(o,a,e(i,n,r,a,t,s))})),o};const rn=function(e){return nn(e,5)};var an,sn,on,ln;!function(e){e[e.Search=1]="Search",e[e.Category=2]="Category",e[e.Product=3]="Product",e[e.Content=4]="Content"}(an||(an={})),function(e){e[e.PageLoad=1]="PageLoad",e[e.Search=2]="Search",e[e.Click=3]="Click",e[e.AddToCart=4]="AddToCart",e[e.Rate=5]="Rate",e[e.Sale=6]="Sale",e[e.BannerClick=7]="BannerClick",e[e.BannerImpression=8]="BannerImpression",e[e.RecommendationClick=10]="RecommendationClick",e[e.AutocompleteClick=11]="AutocompleteClick",e[e.AddToCartMultiple=14]="AddToCartMultiple"}(sn||(sn={})),function(e){e[e.Item=1]="Item",e[e.Landing=2]="Landing",e[e.Cart=3]="Cart",e[e.Order=4]="Order",e[e.Custom=5]="Custom"}(on||(on={})),function(e){e[e.Initial=1]="Initial",e[e.Refinement=2]="Refinement"}(ln||(ln={}));const cn=new class extends R{constructor(){var e;super(...arguments),this.baseUrl=(null===(e=HawkSearch.config.endpoints)||void 0===e?void 0:e.tracking)||"https://tracking-dev.hawksearch.net/api"}trackAddToCart(e,t,n,r){const i={UniqueId:e,Quantity:t,Price:n,Currency:r};return this.trackEvent(sn.AddToCart,i)}trackAddToCartMultiple(e){const t={ItemsList:e.map((e=>({UniqueId:e.productId,Quantity:e.quantity,Price:e.price,Currency:e.currencyIsoCode})))};return this.trackEvent(sn.AddToCartMultiple,t)}trackAutocompleteClick(e,t,n,r){const i={Keyword:e,Name:n,SuggestType:t,Url:r};return this.trackEvent(sn.AutocompleteClick,i)}trackBannerClick(e,t){var n;if(!(null===(n=HawkSearch.searchResponse)||void 0===n?void 0:n.trackingId))return Promise.resolve();const r={BannerId:e,CampaignId:t,TrackingId:HawkSearch.searchResponse.trackingId};return this.trackEvent(sn.BannerClick,r)}trackBannerImpression(e,t){var n;if(!(null===(n=HawkSearch.searchResponse)||void 0===n?void 0:n.trackingId)||!e||!t)return Promise.resolve();const r={BannerId:e,CampaignId:t,TrackingId:HawkSearch.searchResponse.trackingId};return this.trackEvent(sn.BannerImpression,r)}trackOrder(e,t,n,r,i,a){const s={OrderNo:e,ItemList:t.map((e=>({UniqueId:e.productId,Quantity:e.quantity,Price:e.price}))),SubTotal:n,Tax:r,Total:i,Currency:a};return this.trackEvent(sn.Sale,s)}trackPageLoad(e,t){if(e===on.Item&&!t)throw new Error("productId is required for tracking product detail page requests");const n={PageTypeId:e,RequestPath:window.location.pathname,Qs:window.location.search,UniqueId:t,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth};return this.trackEvent(sn.PageLoad,n)}trackRating(e,t){const n={UniqueId:e,Value:t};return this.trackEvent(sn.Rate,n)}trackRecommendationClick(e,t,n){const r={WidgetGuid:e,RequestId:t,UniqueId:n};return this.trackEvent(sn.RecommendationClick,r)}trackSearchResultClick(e,t,n){var r;if(!(null===(r=HawkSearch.searchResponse)||void 0===r?void 0:r.trackingId))return Promise.resolve();const i={UniqueId:e,Url:t,TrackingId:HawkSearch.searchResponse.trackingId,RequestPath:window.location.pathname,Qs:window.location.search,ScrollX:window.scrollX,ScrollY:window.scrollY,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth,MouseX:null==n?void 0:n.pageX,MouseY:null==n?void 0:n.pageY};return this.trackEvent(sn.Click,i)}trackSearch(e,t){var n;if(!(null===(n=HawkSearch.searchResponse)||void 0===n?void 0:n.trackingId))return Promise.resolve();const r={QueryId:t?this.setNewQueryId():this.getQueryId(),TrackingId:HawkSearch.searchResponse.trackingId,TypeId:t?ln.Initial:ln.Refinement,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth,keyword:e};return this.trackEvent(sn.Search,r)}trackEvent(e,t){if(!1===HawkSearch.config.trackingEnabled)return Promise.resolve();const n={ClientGuid:HawkSearch.config.clientId,EventType:e,EventData:btoa(JSON.stringify(t)),VisitorId:this.getVisitorId(),VisitId:this.getVisitId()};return this.httpPost("/trackevent",n)}getQueryId(){let e=localStorage.getItem("QueryId");return e||(e=this.setNewQueryId()),e}setNewQueryId(){const e=this.generateGuid();return localStorage.setItem("QueryId",e),e}};var un=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(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,o)}l((r=r.apply(e,t||[])).next())}))};const hn=new class extends R{constructor(){var e,t,n,r,i,a,s,o;super(...arguments),this.baseUrl=(null===(e=HawkSearch.config.endpoints)||void 0===e?void 0:e.search)||"https://searchapi-dev.hawksearch.net/api/v2",this.fieldMappings={imageUrl:(null===(t=HawkSearch.config.searchResultsFieldMappings)||void 0===t?void 0:t.imageUrl)||"image",price:(null===(n=HawkSearch.config.searchResultsFieldMappings)||void 0===n?void 0:n.price)||"price",salePrice:(null===(r=HawkSearch.config.searchResultsFieldMappings)||void 0===r?void 0:r.salePrice)||"saleprice",title:(null===(i=HawkSearch.config.searchResultsFieldMappings)||void 0===i?void 0:i.title)||"itemname",description:(null===(a=HawkSearch.config.searchResultsFieldMappings)||void 0===a?void 0:a.description)||"longdescription",type:(null===(s=HawkSearch.config.searchResultsFieldMappings)||void 0===s?void 0:s.type)||"type",url:(null===(o=HawkSearch.config.searchResultsFieldMappings)||void 0===o?void 0:o.url)||"url"}}search(e){return un(this,void 0,void 0,(function*(){const t=yield this.executeSearch(e,!0,!1);return this.bindComponents(t),t}))}query(e,t,n=!1){return un(this,void 0,void 0,(function*(){if(window.location.pathname!==this.searchUrl){const r={newRequest:!0,query:e,facets:t,disableSpellcheck:n},i=this.getSearchUrl(r);return window.location.assign(i),Promise.resolve()}if(e){const t=this.getRecentQueries(),n=5;t.includes(e)||(t.length>=n&&t.splice(n-1),t.unshift(e),this.saveRecentQueries(t))}const r={disableSpellcheck:!!n||void 0,query:e,newRequest:!0},i=yield this.executeSearch(r,!0,!1);return this.bindComponents(i),i}))}addFacetValue(e,t){var n,r;return un(this,void 0,void 0,(function*(){this.ensureSearchRequest();const i=rn(HawkSearch.searchRequest);i.newRequest=!1,i.page=void 0,i.facets||(i.facets={}),this.clearExistingFacetValue(i,e,t),i.facets[e]=[...null!==(r=null===(n=i.facets[e])||void 0===n?void 0:n.filter((e=>e!==t)))&&void 0!==r?r:[],t];const a=yield this.executeSearch(i,!1);return this.bindFacetsListComponent(a),this.bindPaginationComponent(a),this.bindSelectedFacetsComponent(a),this.bindTabsComponent(a),this.bindZoneComponent(a),a}))}removeFacetValue(e,t){return un(this,void 0,void 0,(function*(){if(this.ensureSearchRequest(),"searchWithin"===e)return yield this.searchWithin("");const n=rn(HawkSearch.searchRequest);n.newRequest=!1,n.page=void 0,this.clearExistingFacetValue(n,e,t);const r=yield this.executeSearch(n,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}))}includeFacetValue(e,t){const n=`@${t}`;return this.removeFacetValue(e,n)}excludeFacetValue(e,t){var n;return un(this,void 0,void 0,(function*(){this.ensureSearchRequest();const r=`@${t}`,i=rn(HawkSearch.searchRequest);i.newRequest=!1,i.page=void 0,i.facets||(i.facets={}),this.clearExistingFacetValue(i,e,t),i.facets=Object.assign(Object.assign({},i.facets),{[e]:[...null!==(n=i.facets[e])&&void 0!==n?n:[],r]});const a=yield this.executeSearch(i,!1);return this.bindFacetsListComponent(a),this.bindPaginationComponent(a),this.bindSelectedFacetsComponent(a),this.bindTabsComponent(a),this.bindZoneComponent(a),a}))}clearExistingFacetValue(e,t,n){var r,i,a;const s=`@${n=n.replace(/^@/,"")}`;e.facets||(e.facets={}),e.facets=Object.assign(Object.assign({},e.facets),{[t]:[...null!==(i=null===(r=e.facets[t])||void 0===r?void 0:r.filter((e=>e!==n&&e!==s)))&&void 0!==i?i:[]]}),(null===(a=e.facets[t])||void 0===a?void 0:a.length)||delete e.facets[t]}setFacetValue(e,t){return un(this,void 0,void 0,(function*(){this.ensureSearchRequest();const n=rn(HawkSearch.searchRequest);n.newRequest=!1,n.page=void 0,n.facets||(n.facets={}),n.facets[e]=[t];const r=yield this.executeSearch(n,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}))}searchWithin(e){return un(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=rn(HawkSearch.searchRequest);t.newRequest=!1,t.page=void 0,t.searchWithin=e||void 0;const n=yield this.executeSearch(t,!1);return this.bindFacetsListComponent(n),this.bindPaginationComponent(n),this.bindSelectedFacetsComponent(n),this.bindTabsComponent(n),this.bindZoneComponent(n),n}))}selectTab(e){var t,n,r;return un(this,void 0,void 0,(function*(){this.ensureSearchRequest();const i=rn(HawkSearch.searchRequest);i.newRequest=!1,i.page=void 0,i.facets||(i.facets={});const a=null===(r=null===(n=null===(t=HawkSearch.searchResponse)||void 0===t?void 0:t.facets)||void 0===n?void 0:n.find((e=>"tabs"===e.type)))||void 0===r?void 0:r.field;a&&(e?i.facets[a]=[e]:delete i.facets[a]);const s=yield this.executeSearch(i,!1);return this.bindFacetsListComponent(s),this.bindPaginationComponent(s),this.bindSelectedFacetsComponent(s),this.bindTabsComponent(s),this.bindZoneComponent(s),s}))}paginate(e){return un(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=rn(HawkSearch.searchRequest);t.newRequest=!1,t.page=e;const n=yield this.executeSearch(t,!1);return this.bindPaginationComponent(n),n}))}setPageSize(e){return un(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=rn(HawkSearch.searchRequest);t.newRequest=!1,t.pageSize=e;const n=yield this.executeSearch(t,!1);return this.bindPageSizeComponent(n),this.bindPaginationComponent(n),n}))}sort(e){return un(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=rn(HawkSearch.searchRequest);t.newRequest=!1,t.page=1,t.sort=e;const n=yield this.executeSearch(t,!1);return this.bindPaginationComponent(n),this.bindSortingComponent(n),n}))}executeSearch(e,t,n=!0){HawkSearch.searchRequest=e;const r={ClientData:{UserAgent:window.navigator.userAgent,VisitorId:this.getVisitorId(),VisitId:this.getVisitId()},ClientGuid:HawkSearch.config.clientId,CustomURL:e.url,IgnoreSpellcheck:e.disableSpellcheck,IndexName:HawkSearch.config.index,Keyword:e.query,FacetSelections:e.facets,MaxPerPage:e.pageSize,PageNo:e.page,SearchWithin:e.searchWithin,SortBy:e.sort};return this.triggerEvent("hawksearch:before-search-executed",r),this.httpPost("/search",r).then((r=>{var i;this.triggerEvent("hawksearch:after-search-executed",r);const a=this.convertResponse(e,r);return HawkSearch.searchResponse=a,cn.trackSearch(e.query,t),this.setQueryString(),this.setSeoElements(a),this.triggerEvent("hawksearch:search-completed",a),n&&(this.bindModifiedQueryComponent(a),this.bindQuerySuggestionsComponent(a),this.bindSearchFieldComponent(a),this.bindSearchResultsListComponent(a)),t&&a.redirect&&window.open(a.redirect.url,null!==(i=a.redirect.target)&&void 0!==i?i:"_self"),a}))}ensureSearchRequest(){if(!HawkSearch.searchRequest)throw new Error("You cannot refine search results until an initial search has been executed")}convertResponse(e,t){var n,r,i,a,s,o;const l=e=>{if("tab"===e.FieldType)return"tabs";switch(e.FacetType.toLowerCase()){case"checkbox":case"nestedcheckbox":return"checkbox";case"color":return"color";case"link":return"link";case"openrange":if("datetime"===e.DataType)return"date-range";if(e.IsCurrency||e.IsNumeric)return"numeric-range";case"recentsearches":return"recent-searches";case"related":return"related-searches";case"search":return"search";case"size":return"size";case"slider":return"range-slider";case"swatch":return"color";default:return"unsupported"}},c=e=>{if("scrolling"===e.DisplayType)return{height:e.ScrollHeight||void 0,threshold:e.ScrollThreshold||0}},u=e=>{const t=l(e);if(["date-range","numeric-range","range-slider"].includes(t))return"datetime"===e.DataType?{type:"date",min:new Date(Date.parse(e.Values[0].RangeMin)),max:new Date(Date.parse(e.Values[0].RangeMax)),start:new Date(Date.parse(e.Values[0].RangeStart)),end:new Date(Date.parse(e.Values[0].RangeEnd))}:e.IsCurrency||e.IsNumeric?{type:"numeric",min:parseFloat(e.Values[0].RangeMin),max:parseFloat(e.Values[0].RangeMax),start:parseFloat(e.Values[0].RangeStart),end:parseFloat(e.Values[0].RangeEnd)}:void 0},h=(e,t)=>{var n,r;const i=null===(n=e.Ranges)||void 0===n?void 0:n.find((e=>e.Value.toLowerCase()===t.Value.toLowerCase()));if(null==i?void 0:i.AssetFullUrl)return this.getUrl(null===(r=HawkSearch.config.urlPrefixes)||void 0===r?void 0:r.assets,i.AssetFullUrl)},d=(e,t)=>{var n,r,i;let a=null===(n=e.SwatchData)||void 0===n?void 0:n.find((e=>e.Value.toLowerCase()===t.Value.toLowerCase()));if(a||(a=null===(r=e.SwatchData)||void 0===r?void 0:r.find((e=>e.IsDefault))),a)return{name:t.Label,hex:a.Color||a.Value,imageUrl:this.getUrl(null===(i=HawkSearch.config.urlPrefixes)||void 0===i?void 0:i.assets,a.AssetUrl||a.AssetName)}},p=(e,t,n)=>"recent-searches"===l(e)?this.getRecentQueries().map((e=>({title:e}))):null==t?void 0:t.map((t=>{var r;return{title:t.Label,imageUrl:h(e,t),value:t.Value,color:d(e,t),count:t.Count,level:t.Level,selected:t.Selected,excluded:null===(r=null==n?void 0:n.Items)||void 0===r?void 0:r.some((e=>e.Value===`@${t.Value}`)),children:p(e,t.Children,n)}})),v=e=>{var t;if("recent-searches"===l(e)){const t=p(e,void 0,void 0);return!!(null==t?void 0:t.length)}return null===(t=e.IsVisible)||void 0===t||t},f=e=>{if("truncating"===e.DisplayType)return{threshold:parseFloat(e.TruncateThreshold)||0}},m=e=>{var t,n,r,i,a,s,o,l,c,u;return{id:e.DocId,pinned:null!==(t=e.IsPin)&&void 0!==t&&t,visible:null===(n=e.IsVisible)||void 0===n||n,score:e.Score,type:(null!==(i=null===(r=HawkSearch.config.itemTypes)||void 0===r?void 0:r.productValues)&&void 0!==i?i:["item","product"]).map((e=>e.toLowerCase())).includes(null===(s=null===(a=_e(e.Document,this.fieldMappings.type))||void 0===a?void 0:a[0])||void 0===s?void 0:s.toLowerCase())?"product":null!==(l=null===(o=HawkSearch.config.itemTypes)||void 0===o?void 0:o.default)&&void 0!==l?l:"content",imageUrl:this.getUrl(null===(c=HawkSearch.config.urlPrefixes)||void 0===c?void 0:c.content,this.getString(_e(e.Document,this.fieldMappings.imageUrl))),title:this.getString(_e(e.Document,this.fieldMappings.title)),description:this.getString(_e(e.Document,this.fieldMappings.description)),url:this.getUrl(null===(u=HawkSearch.config.urlPrefixes)||void 0===u?void 0:u.content,this.getString(_e(e.Document,this.fieldMappings.url))),price:this.getNumber(_e(e.Document,this.fieldMappings.price)),salePrice:this.getNumber(_e(e.Document,this.fieldMappings.salePrice)),attributes:e.Document}},g=e=>{if(e.IsSearch)return{threshold:parseFloat(e.SearchThreshold)||0}},y=()=>{var n;const r="searchWithin",i=null===(n=t.Facets)||void 0===n?void 0:n.find((e=>e.Field===r));return e.searchWithin&&i?[{field:r,title:i.Name,currency:!1,values:[{title:e.searchWithin,value:e.searchWithin,excluded:!1}]}]:[]},k=(e,t,n)=>{var r,i,a;("Mobile"===t&&!e.IsMobile||"Tablet"===t&&!e.IsTablet)&&(t="");const s={id:e.BannerId,campaignId:e.CampaignId,type:e[t+"ContentType"],title:e.Title,zone:null!=n?n:e.Zone};switch(s.type){case"custom":s.content=e[t+"Output"];break;case"featured":{const t=s;t.type="featured-items",t.items=[...(null!==(r=e.Items)&&void 0!==r?r:[]).map(m),...(null!==(i=e.FeaturedItems)&&void 0!==i?i:[]).map(m)];break}case"image":{const n=s;n.image={url:this.getUrl(null===(a=HawkSearch.config.urlPrefixes)||void 0===a?void 0:a.assets,e[t+"ImageUrl"]),height:e[t+"Height"]||void 0,width:e[t+"Width"]||void 0,altText:e[t+"AltTag"],title:e[t+"AltTag"]},n.link=e[t+"ForwardUrl"]?{url:e[t+"ForwardUrl"],target:e[t+"Target"]||"_self"}:void 0;break}case"widget":switch(e[t+"WidgetType"]){case"PopularSearchesWidget":{const n=s;n.type="popular-queries";const r=Math.min(...e[t+"Output"].map((e=>e.count))),i=Math.max(...e[t+"Output"].map((e=>e.count)))-r,a=5,o=new Array(a).fill(0);o.forEach(((e,t)=>{o[t]=t===a-1?0:Math.floor(i/(t+1))+r})),n.items=e[t+"Output"]instanceof Array?e[t+"Output"].map((e=>({query:e.keyword,count:e.count,weight:a-o.findIndex((t=>e.count>=t))}))).sort(((e,t)=>e.query.localeCompare(t.query))):[];break}default:{const t=s;t.type="custom-widget",t.data=e.AltTag}}}return s};return{content:{breadcrumbs:t.Breadcrumb||void 0,customHtml:t.CustomHtml||void 0,heading:t.PageHeading||void 0},contentZones:(()=>{var e,n,r;const i={};return null===(e=t.FeaturedItems)||void 0===e||e.Items.forEach((e=>{var t,n;const r=null!==(t=i[e.Zone])&&void 0!==t?t:{name:e.Zone},a={mobile:k(e,""),tablet:k(e,""),desktop:k(e,"")};r.items=[...null!==(n=r.items)&&void 0!==n?n:[],a],i[e.Zone]=r})),null===(n=t.Merchandising)||void 0===n||n.Items.forEach((e=>{var t,n;const r=null!==(t=i[e.Zone])&&void 0!==t?t:{name:e.Zone},a={mobile:k(e,"Mobile"),tablet:k(e,"Tablet"),desktop:k(e,"")};r.items=[...null!==(n=r.items)&&void 0!==n?n:[],a],i[e.Zone]=r})),null===(r=t.PageContent)||void 0===r||r.forEach((e=>{var t;const n=null!==(t=i[e.ZoneName])&&void 0!==t?t:{name:e.ZoneName};e.Items.forEach((e=>{var t;const r={mobile:k(e,"Mobile",n.name),tablet:k(e,"Tablet",n.name),desktop:k(e,"",n.name)};n.items=[...null!==(t=n.items)&&void 0!==t?t:[],r]})),i[e.ZoneName]=n})),i})(),customLayout:t.PageLayoutHtml||void 0,facets:null===(n=t.Facets)||void 0===n?void 0:n.map((n=>{var r,i,a;return{id:n.FacetId,type:l(n),title:n.Name,field:n.ParamName||n.Field,collapsible:null!==(r=n.IsCollapsible)&&void 0!==r&&r,collapsed:n.IsCollapsedDefault,displayCount:n.ShowItemsCount,range:u(n),scrolling:c(n),search:g(n),searchWithin:e.searchWithin,tooltip:this.stripHtml(null!==(i=n.Tooltip)&&void 0!==i?i:"")||void 0,truncation:f(n),values:p(n,n.Values,null===(a=t.Selections)||void 0===a?void 0:a[n.ParamName||n.Field]),visible:v(n)}})).filter((e=>"unsupported"!==e.type)),modifiedQuery:t.AdjustedKeyword,pagination:t.Pagination?{page:t.Pagination.CurrentPage,pageSize:t.Pagination.MaxPerPage,totalPages:t.Pagination.NofPages,totalResults:t.Pagination.NofResults,maxPageLinks:t.Pagination.NumberOfPageLinks>0?t.Pagination.NumberOfPageLinks:void 0,displayFirstLink:t.Pagination.IsShowFirstLink,displayLastLink:t.Pagination.IsShowLastLink,options:null!==(r=t.Pagination.Items.map((e=>({title:e.Label,pageSize:e.PageSize,selected:e.Selected,default:e.Default}))))&&void 0!==r?r:[]}:void 0,query:t.Keyword,querySuggestions:t.DidYouMean,redirect:t.Redirect?{url:t.Redirect.Location,target:t.Redirect.Target}:void 0,results:null===(i=t.Results)||void 0===i?void 0:i.map(m),selectedFacets:(()=>{var e;return[...Object.keys(null!==(e=t.Selections)&&void 0!==e?e:[]).map((e=>{var n,r;const i=t.Selections[e],a=null===(n=t.Facets)||void 0===n?void 0:n.find((t=>(t.ParamName||t.Field)===e)),s=new RegExp("^@");return{field:e,currency:null!==(r=null==a?void 0:a.IsCurrency)&&void 0!==r&&r,title:i.Label,values:i.Items.map((e=>({title:e.Label.replace(s,""),value:e.Value,excluded:s.test(e.Value)})))}})),...y()]})(),seo:{canonicalUrl:t.RelCanonical,description:t.MetaDescription,keywords:t.MetaKeywords,robots:t.MetaRobots,title:t.HeaderTitle},success:t.Success,sorting:{value:null===(a=t.Sorting)||void 0===a?void 0:a.Value,options:null!==(o=null===(s=t.Sorting)||void 0===s?void 0:s.Items.map((e=>({title:e.Label,value:e.Value,selected:e.Selected,default:e.IsDefault}))))&&void 0!==o?o:[]},trackingId:t.TrackingId}}getString(e,t){var n;return null!==(n=null==e?void 0:e[0])&&void 0!==n?n:t}getNumber(e,t){const n=this.getString(e);let r=n?parseFloat(n):void 0;return void 0!==r&&isNaN(r)&&(r=void 0),null!=r?r:t}bindComponents(e){this.bindLandingPageComponent(e),this.bindSearchResultsComponent(e),setTimeout((()=>{this.bindFacetsListComponent(e),this.bindModifiedQueryComponent(e),this.bindPageSizeComponent(e),this.bindPaginationComponent(e),this.bindQuerySuggestionsComponent(e),this.bindSearchFieldComponent(e),this.bindSearchResultsListComponent(e),this.bindSelectedFacetsComponent(e),this.bindSortingComponent(e),this.bindTabsComponent(e),this.bindZoneComponent(e)}))}bindFacetsListComponent(e){this.triggerBindEvent("facets-list",null==e?void 0:e.facets)}bindLandingPageComponent(e){this.triggerBindEvent("landing-page",e)}bindModifiedQueryComponent(e){const t={display:!!(null==e?void 0:e.query)&&!!(null==e?void 0:e.modifiedQuery)&&HawkSearch.searchRequest.newRequest,query:null==e?void 0:e.query,modifiedQuery:null==e?void 0:e.modifiedQuery};this.triggerBindEvent("modified-query",t)}bindPageSizeComponent(e){var t;this.triggerBindEvent("page-size",null===(t=null==e?void 0:e.pagination)||void 0===t?void 0:t.options)}bindPaginationComponent(e){this.triggerBindEvent("pagination",null==e?void 0:e.pagination)}bindSearchFieldComponent(e){this.triggerBindEvent("search-field",e)}bindSearchResultsComponent(e){this.triggerBindEvent("search-results",e)}bindSearchResultsListComponent(e){this.triggerBindEvent("search-results-list",null==e?void 0:e.results)}bindQuerySuggestionsComponent(e){var t;const n={display:!!(null===(t=null==e?void 0:e.querySuggestions)||void 0===t?void 0:t.length)&&HawkSearch.searchRequest.newRequest,querySuggestions:null==e?void 0:e.querySuggestions};this.triggerBindEvent("query-suggestions",n)}bindSortingComponent(e){this.triggerBindEvent("sorting",null==e?void 0:e.sorting)}bindSelectedFacetsComponent(e){this.triggerBindEvent("selected-facets",null==e?void 0:e.selectedFacets)}bindTabsComponent(e){var t;this.triggerBindEvent("tabs",null===(t=null==e?void 0:e.facets)||void 0===t?void 0:t.find((e=>"tabs"===e.type)))}bindZoneComponent(e){this.triggerBindEvent("content-zone",e)}getRequestFromUrl(){const e=new URL(window.location.href),t={},n=new RegExp(`^${this.queryStringParams.facet}-`);for(const r of Array.from(e.searchParams.keys()).filter((e=>n.test(e))))t[r.replace(n,"")]=e.searchParams.getAll(r);return{disableSpellcheck:this.getBooleanParameter(e.searchParams.get(this.queryStringParams.disableSpellcheck)),facets:t,newRequest:!0,pageSize:this.getPositiveIntegerParameter(e.searchParams.get(this.queryStringParams.pageSize)),page:this.getPositiveIntegerParameter(e.searchParams.get(this.queryStringParams.page)),query:this.getStringParameter(e.searchParams.get(this.queryStringParams.query)),searchWithin:this.getStringParameter(e.searchParams.get(this.queryStringParams.searchWithin)),sort:this.getStringParameter(e.searchParams.get(this.queryStringParams.sort))}}setQueryString(){if(!HawkSearch.searchRequest)return;const e=this.getSearchUrl(HawkSearch.searchRequest),t={searchRequest:HawkSearch.searchRequest,searchResponse:HawkSearch.searchResponse};e.toString()===window.location.href?window.history.replaceState(t,""):window.history.pushState(t,"",e.toString())}getSearchUrl(e){const t=window.location.pathname===this.searchUrl||!!e.url,n=new URL(t?window.location.href:this.searchUrl,window.location.origin);n.searchParams.delete(this.queryStringParams.query),e.query&&n.searchParams.set(this.queryStringParams.query,e.query);for(const e of n.searchParams.keys())e.startsWith(`${this.queryStringParams.facet}-`)&&n.searchParams.delete(e);return e.disableSpellcheck&&n.searchParams.set(this.queryStringParams.disableSpellcheck,e.disableSpellcheck.toString()),e.facets&&Object.keys(e.facets).forEach((t=>{const r=e.facets[t];null==r||r.forEach((e=>n.searchParams.append(`${this.queryStringParams.facet}-${t}`,e)))})),n.searchParams.delete(this.queryStringParams.searchWithin),e.searchWithin&&n.searchParams.set(this.queryStringParams.searchWithin,e.searchWithin),n.searchParams.delete(this.queryStringParams.sort),e.sort&&n.searchParams.set(this.queryStringParams.sort,e.sort),n.searchParams.delete(this.queryStringParams.pageSize),e.pageSize&&n.searchParams.set(this.queryStringParams.pageSize,e.pageSize.toString()),n.searchParams.delete(this.queryStringParams.page),e.page&&n.searchParams.set(this.queryStringParams.page,e.page.toString()),n.toString()}getBooleanParameter(e){if(null!==e)return"true"===e}getPositiveIntegerParameter(e){if(!e)return;const t=parseInt(e);return t>0?t:void 0}getStringParameter(e){if(e&&e.trim())return e.trim()}getRecentQueries(){const e=sessionStorage.getItem("recent-queries");return e?JSON.parse(e):[]}saveRecentQueries(e){const t=JSON.stringify(e);sessionStorage.setItem("recent-queries",t)}setSeoElements(e){(null==e?void 0:e.seo)&&(this.setTitle(e.seo.title),this.setLinkTag("canonical",e.seo.canonicalUrl),this.setMetaTag("description",e.seo.description),this.setMetaTag("keywords",e.seo.keywords),this.setMetaTag("robots",e.seo.robots))}removeElement(e){const t=document.head.querySelector(e);t&&t.remove()}setLinkTag(e,t){if(!t)return;this.removeElement(`link[rel="${e}"]`);const n=document.createElement("link");n.rel=e,n.href=t,document.head.append(n)}setMetaTag(e,t){if(!t)return;this.removeElement(`meta[name="${e}"]`);const n=document.createElement("meta");n.name=e,n.content=t,document.head.append(n)}setTitle(e){e&&(document.title=e)}},dn=function(){return l.Date.now()};var pn=/\s/;var vn=/^\s+/;const fn=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&pn.test(e.charAt(t)););return t}(e)+1).replace(vn,""):e};var mn=/^[-+]0x[0-9a-f]+$/i,gn=/^0b[01]+$/i,yn=/^0o[0-7]+$/i,kn=parseInt;const wn=function(e){if("number"==typeof e)return e;if(k(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=fn(e);var n=gn.test(e);return n||yn.test(e)?kn(e.slice(2),n?2:8):mn.test(e)?NaN:+e};var bn=Math.max,_n=Math.min;const Sn=function(e,t,n){var r,i,a,s,o,l,c=0,u=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,a=i;return r=i=void 0,c=t,s=e.apply(a,n)}function v(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-c>=a}function f(){var e=dn();if(v(e))return m(e);o=setTimeout(f,function(e){var n=t-(e-l);return h?_n(n,a-(e-c)):n}(e))}function m(e){return o=void 0,d&&r?p(e):(r=i=void 0,s)}function g(){var e=dn(),n=v(e);if(r=arguments,i=this,l=e,n){if(void 0===o)return function(e){return c=e,o=setTimeout(f,t),u?p(e):s}(l);if(h)return clearTimeout(o),o=setTimeout(f,t),p(l)}return void 0===o&&(o=setTimeout(f,t)),s}return t=wn(t)||0,N(n)&&(u=!!n.leading,a=(h="maxWait"in n)?bn(wn(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),g.cancel=function(){void 0!==o&&clearTimeout(o),c=0,r=l=i=o=void 0},g.flush=function(){return void 0===o?s:m(dn())},g};function En(e,t){return e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e.getTime()===t.getTime()}function xn(e){var t;const n=(null===(t=HawkSearch.config.formatting)||void 0===t?void 0:t.cultureIsoCode)||"en-US";return e.toLocaleDateString(n,{month:"long"})}function Pn(){var e;const t=(null===(e=HawkSearch.config.formatting)||void 0===e?void 0:e.cultureIsoCode)||"en-US",n=(new Date).getFullYear(),r=[];for(let e=0;e<12;e++){const i=new Date(n,e,1).toLocaleDateString(t,{month:"long"});r.push(i)}return r}function Cn(e,t=2){var n,r,i;const a=(null===(n=HawkSearch.config.formatting)||void 0===n?void 0:n.cultureIsoCode)||"en-US",s=(null===(i=null===(r=HawkSearch.config.formatting)||void 0===r?void 0:r.currencyIsoCode)||void 0===i?void 0:i.toUpperCase())||"USD";return e.toLocaleString(a,{style:"currency",currency:s,minimumFractionDigits:t,maximumFractionDigits:t})}function In(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`}function Hn(e){var t;const n=(null===(t=HawkSearch.config.formatting)||void 0===t?void 0:t.cultureIsoCode)||"en-US";return e.toLocaleString(n,{year:"numeric",month:"short",day:"2-digit"})}function qn(e,t=2){var n;const r=(null===(n=HawkSearch.config.formatting)||void 0===n?void 0:n.cultureIsoCode)||"en-US";return e.toLocaleString(r,{style:"decimal",minimumFractionDigits:t,maximumFractionDigits:t})}class Ln extends r{constructor(){super(...arguments),this.bindFromEvent=!1}onRender(){super.onRender(),this.rootElement.querySelectorAll("input[hawksearch-facet-value]").forEach((e=>{e.addEventListener("change",(e=>{e.stopPropagation();const t=e.currentTarget,n=this.data.field,r=t.value;t.checked?hn.addFacetValue(n,r):hn.removeFacetValue(n,r)}))})),this.rootElement.querySelectorAll("[hawksearch-facet-value]:not(input)").forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault(),e.stopPropagation();const n=e.currentTarget.getAttribute("hawksearch-facet-value"),r=null===(t=this.data.values)||void 0===t?void 0:t.find((e=>e.value===n));r&&(r.selected?hn.removeFacetValue(this.data.field,n):hn.addFacetValue(this.data.field,n))}))})),this.rootElement.querySelectorAll("[hawksearch-facet-value-include]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget,n=this.data.field;let r=t.getAttribute("hawksearch-facet-value-include");r&&(r=`@${r}`,hn.removeFacetValue(n,r))}))})),this.rootElement.querySelectorAll("[hawksearch-facet-value-exclude]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget,n=this.data.field,r=t.getAttribute("hawksearch-facet-value-exclude");r&&hn.excludeFacetValue(n,r)}))})),this.rootElement.querySelectorAll("[hawksearch-facet-value-toggle]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget.getAttribute("hawksearch-facet-value-toggle");t&&(this.state.values[t].toggled=!this.state.values[t].toggled,this.render())}))})),this.rootElement.querySelectorAll("[hawksearch-facet-toggle]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),this.state.toggled=!this.state.toggled,this.render()}))}))}}HawkSearch||(HawkSearch={}),HawkSearch.handlebars=e.noConflict(),HawkSearch.handlebars.registerHelper("add",(function(e,t){return e+t})),HawkSearch.handlebars.registerHelper("and",(function(...e){return e.slice(0,-1).every((e=>!!e))})),HawkSearch.handlebars.registerHelper("attribute",(function(e,t){return new HawkSearch.handlebars.SafeString(t?e:"")})),HawkSearch.handlebars.registerHelper("concat",(function(...e){return e.length<2?"":e.slice(0,-1).join("")})),HawkSearch.handlebars.registerHelper("eq",(function(e,t){return e===t})),HawkSearch.handlebars.registerHelper("exclude",(function(e){return e.fn()})),HawkSearch.handlebars.registerHelper("html",(function(e){return new HawkSearch.handlebars.SafeString(e)})),HawkSearch.handlebars.registerHelper("currency",(function(e,t,n){var r;return"object"==typeof t&&(t=void 0),"object"==typeof n&&(n=void 0),e instanceof Array&&(e=e[0]),Cn(null!==(r=null!=e?e:n)&&void 0!==r?r:0,t)})),HawkSearch.handlebars.registerHelper("number",(function(e,t,n){var r;return"object"==typeof n&&(n=void 0),e instanceof Array&&(e=e[0]),qn(null!==(r=null!=e?e:n)&&void 0!==r?r:0,t)})),HawkSearch.handlebars.registerHelper("if-else",(function(e,t,n){return e?t:n})),HawkSearch.handlebars.registerHelper("lt",(function(e,t){return e<t})),HawkSearch.handlebars.registerHelper("lte",(function(e,t){return e<=t})),HawkSearch.handlebars.registerHelper("gt",(function(e,t){return e>t})),HawkSearch.handlebars.registerHelper("gte",(function(e,t){return e>=t})),HawkSearch.handlebars.registerHelper("or",(function(...e){return e.slice(0,-1).some((e=>!!e))})),HawkSearch.handlebars.registerHelper("string",(function(e,t){return"object"==typeof t&&(t=void 0),e instanceof Array&&(e=e[0]),null!=e?e:t})),HawkSearch.handlebars.registerHelper("subtract",(function(e,t){return e-t})),HawkSearch.services={autocomplete:D,recommendations:Se,search:hn,tracking:cn};const Mn={autocomplete:class extends r{constructor(){super(...arguments),this.bindFromEvent=!0,this.componentName="autocomplete",this.defaultHtml='<div class="autocomplete">\r\n <div class="row">\r\n {{#if products.results.length}}\r\n <div class="column column--12 column-md--8">\r\n <span class="autocomplete__title autocomplete__title--products">{{products.title}}</span>\r\n <div class="row autocomplete__products">\r\n {{#each products.results}}\r\n <div class="column column--12 column-sm--4">\r\n <div class="autocomplete__product">\r\n <a hawksearch-product="{{id}}" href="{{url}}" class="autocomplete__product__image">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n <span class="autocomplete__product__title">\r\n <a hawksearch-product="{{id}}" href="{{url}}">{{html title}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n {{/each}}\r\n </div>\r\n </div>\r\n {{/if}}\r\n {{#if (or categories.results.length content.results.length queries.results.length)}}\r\n <div class="column column--12 column-md--4">\r\n {{#if categories.results.length}}\r\n <span class="autocomplete__title autocomplete__title--categories">{{categories.title}}</span>\r\n <ul class="autocomplete__list">\r\n {{#each categories.results}}\r\n <li>\r\n <a hawksearch-category-field="{{field}}" hawksearch-category-value="{{value}}" href="{{url}}">{{html title}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n {{/if}}\r\n {{#if content.results.length}}\r\n <span class="autocomplete__title autocomplete__title--content">{{content.title}}</span>\r\n <ul class="autocomplete__list">\r\n {{#each content.results}}\r\n <li>\r\n <a hawksearch-content="{{id}}" href="{{url}}">{{html title}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n {{/if}}\r\n {{#if queries.results.length}}\r\n <span class="autocomplete__title autocomplete__title--queries">{{queries.title}}</span>\r\n <ul class="autocomplete__list">\r\n {{#each queries.results}}\r\n <li>\r\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n {{/if}}\r\n </div>\r\n {{/if}}\r\n </div>\r\n <div class="autocomplete__view-all">\r\n <a hawksearch-view-all>{{viewAllText}}</a>\r\n </div>\r\n</div>'}renderContent(){var e,t,n,r,i,a;return!(!this.data||!(null===(t=null===(e=this.data.categories)||void 0===e?void 0:e.results)||void 0===t?void 0:t.length)&&!(null===(r=null===(n=this.data.content)||void 0===n?void 0:n.results)||void 0===r?void 0:r.length)&&!(null===(a=null===(i=this.data.products)||void 0===i?void 0:i.results)||void 0===a?void 0:a.length))}getContentModel(){return Object.assign(Object.assign({},this.data),{AutocompleteItemType:an})}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||a}))})),this.rootElement.querySelectorAll("[hawksearch-category-field][hawksearch-category-value]").forEach((e=>{e.addEventListener("click",(e=>{var t,n;e.preventDefault();const r=e.currentTarget,i=r.getAttribute("hawksearch-category-field"),a=r.getAttribute("hawksearch-category-value"),s=null===(n=null===(t=this.data.categories)||void 0===t?void 0:t.results)||void 0===n?void 0:n.find((e=>e.field===i&&e.value===a));if(!s)return;cn.trackAutocompleteClick(this.data.query,an.Category,s.title,s.url);const o={[s.field]:[s.value]};hn.query(void 0,o),this.close()}))})),this.rootElement.querySelectorAll("[hawksearch-content]").forEach((e=>{e.addEventListener("click",(e=>{var t,n;const r=e.currentTarget.getAttribute("hawksearch-content"),i=null===(n=null===(t=this.data.content)||void 0===t?void 0:t.results)||void 0===n?void 0:n.find((e=>e.id===r));i&&cn.trackAutocompleteClick(this.data.query,an.Content,i.title,i.url)}))})),this.rootElement.querySelectorAll("[hawksearch-product]").forEach((e=>{e.addEventListener("click",(e=>{var t,n;const r=e.currentTarget.getAttribute("hawksearch-product"),i=null===(n=null===(t=this.data.products)||void 0===t?void 0:t.results)||void 0===n?void 0:n.find((e=>e.id===r));i&&cn.trackAutocompleteClick(this.data.query,an.Product,i.title,i.url)}))})),this.rootElement.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault();const n=e.currentTarget.getAttribute("hawksearch-query");if(!n)return;const r=null===(t=this.data.queries)||void 0===t?void 0:t.results.find((e=>e.query===n));r&&cn.trackAutocompleteClick(this.data.query,an.Search,r.query,r.url),hn.query(n)}))})),this.rootElement.querySelectorAll("[hawksearch-view-all]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),hn.query(this.data.query)}))}))}close(){const e=new Event("hawksearch:close-autocomplete");this.dispatchEvent(e)}},"checkbox-list-facet":class extends Ln{constructor(){super(...arguments),this.componentName="checkbox-list-facet",this.defaultHtml='<div class="checkbox-list-facet" {{attribute (concat \'style="max-height: \' maxHeight \'px;"\') maxHeight}}>\r\n {{> facet-checkbox-list values}}\r\n {{#if showToggle}}\r\n <span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\r\n {{/if}}\r\n</div>'}registerHelpers(){super.registerHelpers(),this.handlebars.registerPartial("facet-checkbox-list",'{{#if length}}\r\n <ul class="checkbox-list-facet__list">\r\n {{#each this}}\r\n {{#if visible}}\r\n <li\r\n class="checkbox-list-facet__list__item{{attribute \' checkbox-list-facet__list__item--excluded\' excluded}}{{attribute\r\n \' checkbox-list-facet__list__item--collapsible\'\r\n hasChildren\r\n }}"\r\n >\r\n <div class="checkbox-list-facet__list__item__content">\r\n {{#if selected}}\r\n <input id="{{@root.id}}-{{value}}" type="checkbox" checked hawksearch-facet-value value="{{value}}" />\r\n {{else}}\r\n <input id="{{@root.id}}-{{value}}" type="checkbox" hawksearch-facet-value value="{{value}}" />\r\n {{/if}}\r\n <label for="{{@root.id}}-{{value}}" class="facet__value">\r\n <span class="facet__value__title checkbox-list-facet__list__item__title">{{title}}</span>\r\n {{#if @root.displayCount}}\r\n <span class="facet__value__count checkbox-list-facet__list__item__count">({{count}})</span>\r\n {{/if}}\r\n </label>\r\n {{#if toggled}}\r\n {{> facet-checkbox-list children}}\r\n {{/if}}\r\n </div>\r\n {{#if (or @root.excludeEnabled hasChildren)}}\r\n <div class="checkbox-list-facet__list__item__actions">\r\n {{#if @root.excludeEnabled}}\r\n {{#if excluded}}\r\n <span hawksearch-facet-value-include="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{@root.strings.include}}">\r\n <hawksearch-icon name="plus" class="facet__heading__actions__item"></hawksearch-icon>\r\n </span>\r\n {{else}}\r\n <span hawksearch-facet-value-exclude="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{@root.strings.exclude}}">\r\n <hawksearch-icon name="minus" class="facet__heading__actions__item"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{/if}}\r\n {{#if hasChildren}}\r\n <span hawksearch-facet-value-toggle="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{if-else toggled @root.strings.collapse @root.strings.expand}}">\r\n <hawksearch-icon name="{{if-else toggled \'chevron-down\' \'chevron-right\'}}" class="facet__heading__toggle"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n </div>\r\n {{/if}}\r\n </li>\r\n {{/if}}\r\n {{/each}}\r\n </ul>\r\n{{/if}}')}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.values)||void 0===t?void 0:t.length)}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p,v,f,m,g,y,k,w,b,_,S,E,x;const P=this.state.filter?new RegExp(this.state.filter,"i"):void 0,C=e=>!!P&&P.test(e.title),I=e=>{var t;return(null===(t=e.children)||void 0===t?void 0:t.some((e=>C(e))))||!1},H=(e,t)=>null==e?void 0:e.map(((e,n)=>{var r,i,a,s,o;const l=Object.assign(Object.assign({},e),{visible:!t&&!P&&(this.state.toggled||!this.data.truncation||n<this.data.truncation.threshold)||C(e)||I(e)||!P&&!!(null==t?void 0:t.toggled),hasChildren:!!(null===(r=e.children)||void 0===r?void 0:r.length),children:void 0,toggled:!(!e.value||!(null===(i=e.children)||void 0===i?void 0:i.length))&&null!==(o=null===(s=null===(a=this.state.values)||void 0===a?void 0:a[e.value])||void 0===s?void 0:s.toggled)&&void 0!==o&&o||I(e)});return l.children=H(e.children,l),l}));return{displayCount:null===(e=this.data.displayCount)||void 0===e||e,expanded:null!==(t=this.state.toggled)&&void 0!==t&&t,maxHeight:this.data.scrolling&&this.data.values.length>=this.data.scrolling.threshold?null!==(n=this.data.scrolling.height)&&void 0!==n?n:200:void 0,showToggle:!!this.data.truncation&&(null!==(i=null===(r=this.data.values)||void 0===r?void 0:r.length)&&void 0!==i?i:0)>this.data.truncation.threshold&&!this.state.filter,values:null!==(a=H(this.data.values,void 0))&&void 0!==a?a:[],excludeEnabled:null!==(o=null===(s=this.configuration)||void 0===s?void 0:s.excludeEnabled)&&void 0!==o&&o,strings:{collapse:null!==(u=null===(c=null===(l=this.configuration)||void 0===l?void 0:l.strings)||void 0===c?void 0:c.collapse)&&void 0!==u?u:"Collapse",exclude:null!==(p=null===(d=null===(h=this.configuration)||void 0===h?void 0:h.strings)||void 0===d?void 0:d.exclude)&&void 0!==p?p:"Exclude",expand:null!==(m=null===(f=null===(v=this.configuration)||void 0===v?void 0:v.strings)||void 0===f?void 0:f.expand)&&void 0!==m?m:"Expand",include:null!==(k=null===(y=null===(g=this.configuration)||void 0===g?void 0:g.strings)||void 0===y?void 0:y.include)&&void 0!==k?k:"Include",toggle:this.state.toggled?null!==(_=null===(b=null===(w=this.configuration)||void 0===w?void 0:w.strings)||void 0===b?void 0:b.showFewer)&&void 0!==_?_:"Show fewer":null!==(x=null===(E=null===(S=this.configuration)||void 0===S?void 0:S.strings)||void 0===E?void 0:E.showMore)&&void 0!==x?x:"Show more"}}}},"color-facet":class extends Ln{constructor(){super(...arguments),this.componentName="color-facet",this.defaultHtml='<div class="color-facet">\r\n <div class="row row--tight color-facet__items">\r\n {{#each values}}\r\n {{#if visible}}\r\n <div hawksearch-facet-value="{{value}}" class="column column--2 color-facet__item{{attribute \' color-facet__item--selected\' selected}}">\r\n {{#if color.imageUrl}}\r\n <img src="{{color.imageUrl}}" class="color-facet__item__image" alt="{{color.name}}" title="{{color.name}}" />\r\n {{else}}\r\n <div class="color-facet__item__box" style="background: {{color.hex}};"></div>\r\n {{/if}}\r\n {{#if @root.excludeEnabled}}\r\n <span class="color-facet__item__actions">\r\n {{#if excluded}}\r\n <span hawksearch-facet-value-include="{{value}}" class="color-facet__item__actions__item" title="{{strings.include}}">\r\n <hawksearch-icon name="plus"></hawksearch-icon>\r\n </span>\r\n {{else}}\r\n <span hawksearch-facet-value-exclude="{{value}}" class="color-facet__item__actions__item" title="{{strings.exclude}}">\r\n <hawksearch-icon name="minus"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n </span>\r\n {{/if}}\r\n </div>\r\n {{/if}}\r\n {{/each}}\r\n </div>\r\n {{#if showToggle}}\r\n <span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\r\n {{/if}}\r\n</div>'}renderContent(){return!!this.data}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p,v,f,m,g,y;const k=this.state.filter?new RegExp(this.state.filter,"i"):void 0;return{values:null!==(t=null===(e=this.data.values)||void 0===e?void 0:e.filter((e=>e.color)).map(((e,t)=>{var n;return Object.assign(Object.assign({},e),{visible:!k&&(this.state.toggled||!this.data.truncation||t<this.data.truncation.threshold)||!!k&&k.test(null!==(n=e.title)&&void 0!==n?n:"")})})))&&void 0!==t?t:[],showToggle:!!this.data.truncation&&(null!==(r=null===(n=this.data.values)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>this.data.truncation.threshold&&!this.state.filter,expanded:null!==(i=this.state.toggled)&&void 0!==i&&i,excludeEnabled:null!==(s=null===(a=this.configuration)||void 0===a?void 0:a.excludeEnabled)&&void 0!==s&&s,strings:{exclude:null!==(c=null===(l=null===(o=this.configuration)||void 0===o?void 0:o.strings)||void 0===l?void 0:l.exclude)&&void 0!==c?c:"Exclude",include:null!==(d=null===(h=null===(u=this.configuration)||void 0===u?void 0:u.strings)||void 0===h?void 0:h.include)&&void 0!==d?d:"Include",toggle:this.state.toggled?null!==(f=null===(v=null===(p=this.configuration)||void 0===p?void 0:p.strings)||void 0===v?void 0:v.showFewer)&&void 0!==f?f:"Show fewer":null!==(y=null===(g=null===(m=this.configuration)||void 0===m?void 0:m.strings)||void 0===g?void 0:g.showMore)&&void 0!==y?y:"Show more"}}}},"content-zone":class extends r{constructor(){super(...arguments),this.componentName="content-zone",this.defaultHtml='<div class="content-zone">\r\n {{#each items}}\r\n {{#if (eq type "custom")}}\r\n <hawksearch-custom-content index="{{@index}}"></hawksearch-custom-content>\r\n {{/if}}\r\n {{#if (eq type "featured-items")}}\r\n <hawksearch-featured-items-content index="{{@index}}"></hawksearch-featured-items-content>\r\n {{/if}}\r\n {{#if (eq type "image")}}\r\n <hawksearch-image-content index="{{@index}}"></hawksearch-image-content>\r\n {{/if}}\r\n {{#if (eq type "popular-queries")}}\r\n <hawksearch-popular-queries-content index="{{@index}}"></hawksearch-popular-queries-content>\r\n {{/if}}\r\n {{/each}}\r\n</div>',this.bindFromEvent=!0}get name(){return this.getAttribute("name")||void 0}get zone(){var e,t;return this.name?null===(t=null===(e=this.data)||void 0===e?void 0:e.contentZones)||void 0===t?void 0:t[this.name]:void 0}get displayType(){var e,t,n,r;const i=window.innerWidth;return i>=(null!==(t=null===(e=HawkSearch.config.breakpoints)||void 0===e?void 0:e.desktop)&&void 0!==t?t:990)?"desktop":i>=(null!==(r=null===(n=HawkSearch.config.breakpoints)||void 0===n?void 0:n.tablet)&&void 0!==r?r:740)?"tablet":"mobile"}connectedCallback(){super.connectedCallback(),this.windowResizeEventHandler=Sn((e=>{this.displayType!==this.previousDisplayType&&this.render()}),100),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.windowResizeEventHandler)}renderContent(){var e,t;return!!(null===(t=null===(e=this.zone)||void 0===e?void 0:e.items)||void 0===t?void 0:t.length)}getContentModel(){var e,t;return this.previousDisplayType=this.displayType,Object.assign(Object.assign({},this.zone),{items:null!==(t=null===(e=this.zone)||void 0===e?void 0:e.items.map((e=>e[this.displayType])))&&void 0!==t?t:[]})}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("[index]").forEach((e=>{var t,n,r;const i=e,a=parseInt(i.getAttribute("index")||"-1");isNaN(a)||a<0||a>=((null===(t=this.zone)||void 0===t?void 0:t.items.length)||-1)||(i.data=null===(r=null===(n=this.zone)||void 0===n?void 0:n.items[a])||void 0===r?void 0:r[this.displayType])}))}},"custom-content":class extends i{constructor(){super(...arguments),this.componentName="custom-content",this.defaultHtml='<div class="custom-content">\r\n {{html content}}\r\n</div>'}renderContent(){return!!this.data}getContentModel(){return Object.assign({},this.data)}},"date-picker":class extends r{constructor(){super(...arguments),this.componentName="date-picker",this.defaultHtml='<div class="date-picker">\r\n <input type="text" value="{{value}}" hawksearch-input readonly class="date-picker__input" aria-label="{{strings.label}}" />\r\n {{#if modalVisible}}\r\n <div hawksearch-modal class="date-picker__modal">\r\n {{#if monthSelectorVisible}}\r\n <div class="date-picker__modal__header">\r\n <span class="date-picker__modal__header__month">{{strings.selectMonth}}</span>\r\n </div>\r\n <div class="row">\r\n <div class="column column--12">\r\n <select hawksearch-month>\r\n {{#each months}}\r\n {{#if (eq this @root.currentMonth)}}\r\n <option value="{{@index}}" selected>{{this}}</option>\r\n {{else}}\r\n <option value="{{@index}}">{{this}}</option>\r\n {{/if}}\r\n {{/each}}\r\n </select>\r\n </div>\r\n <div class="column column--12">\r\n <select hawksearch-year>\r\n {{#each years}}\r\n {{#if (eq this @root.currentYear)}}\r\n <option value="{{this}}" selected>{{this}}</option>\r\n {{else}}\r\n <option value="{{this}}">{{this}}</option>\r\n {{/if}}\r\n {{/each}}\r\n </select>\r\n </div>\r\n <div class="column column--12">\r\n <button hawksearch-select-month class="button button--full-width">{{strings.viewCalendar}}</button>\r\n </div>\r\n </div>\r\n {{else}}\r\n <div class="date-picker__modal__header">\r\n <a hawksearch-previous class="date-picker__modal__header__previous" title="{{strings.previous}}">\r\n <hawksearch-icon name="chevron-left"></hawksearch-icon>\r\n </a>\r\n <a hawksearch-month-selector class="date-picker__modal__header__month">{{strings.heading}}</a>\r\n <a hawksearch-next class="date-picker__modal__header__next" title="{{strings.next}}">\r\n <hawksearch-icon name="chevron-right"></hawksearch-icon>\r\n </a>\r\n </div>\r\n <table class="date-picker__calendar" cellspacing="0" cellpadding="0">\r\n <thead>\r\n <tr>\r\n <th scope="col">{{dayAbbreviation 0}}</th>\r\n <th scope="col">{{dayAbbreviation 1}}</th>\r\n <th scope="col">{{dayAbbreviation 2}}</th>\r\n <th scope="col">{{dayAbbreviation 3}}</th>\r\n <th scope="col">{{dayAbbreviation 4}}</th>\r\n <th scope="col">{{dayAbbreviation 5}}</th>\r\n <th scope="col">{{dayAbbreviation 6}}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n {{#each weeks}}\r\n <tr>\r\n {{#each this}}\r\n <td\r\n hawksearch-date="{{value}}"\r\n class="date-picker__calendar__day\r\n {{attribute \' date-picker__calendar__day--alternate\' (eq currentMonth false)}}\r\n {{attribute \' date-picker__calendar__day--selected\' selected}}\r\n {{attribute \' date-picker__calendar__day--disabled\' (eq enabled false)}}"\r\n >\r\n <span>{{dayOfMonth date}}</span>\r\n </td>\r\n {{/each}}\r\n </tr>\r\n {{/each}}\r\n </tbody>\r\n </table>\r\n {{/if}}\r\n </div>\r\n {{/if}}\r\n</div>',this.bindFromEvent=!1,this.modalVisible=!1,this.modalDate=new Date,this.monthSelectorVisible=!1}static get observedAttributes(){return["label","max","min","value"]}connectedCallback(){super.connectedCallback(),this.documentClickEventHandler=e=>{this.modalVisible&&!e.composedPath().includes(this)&&(this.modalVisible=!1,setTimeout((()=>this.render())))},document.addEventListener("click",this.documentClickEventHandler),this.windowResizeEventHandler=Sn((e=>{this.positionModal()}),100),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.documentClickEventHandler),window.addEventListener("resize",this.windowResizeEventHandler)}attributeChangedCallback(e,t,n){if("label"===e)this.label=n||void 0;else{const t=n?new Date(n):void 0;switch(t&&t.setHours(0,0,0,0),e){case"max":this.maxDate=t;break;case"min":this.minDate=t;break;case"value":this.selectedDate=t}}this.render()}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("dayAbbreviation",(e=>function(e){var t;const n=(null===(t=HawkSearch.config.formatting)||void 0===t?void 0:t.cultureIsoCode)||"en-US";return new Date(2023,0,e+1).toLocaleDateString(n,{weekday:"short"})}(e))),this.handlebars.registerHelper("dayOfMonth",(e=>e.getDate().toString().padStart(2,"0")))}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p,v,f;return{value:this.selectedDate?In(this.selectedDate):"",modalVisible:this.modalVisible,monthSelectorVisible:this.monthSelectorVisible,years:this.getYears(),months:Pn(),weeks:this.getWeeks(this.modalDate),currentYear:this.modalDate.getFullYear(),currentMonth:xn(this.modalDate),strings:{heading:`${xn(this.modalDate)} ${this.modalDate.getFullYear()}`,label:null!==(r=null!==(e=this.label)&&void 0!==e?e:null===(n=null===(t=this.configuration)||void 0===t?void 0:t.strings)||void 0===n?void 0:n.defaultLabel)&&void 0!==r?r:"Selected Date",next:null!==(s=null===(a=null===(i=this.configuration)||void 0===i?void 0:i.strings)||void 0===a?void 0:a.next)&&void 0!==s?s:"Next",previous:null!==(c=null===(l=null===(o=this.configuration)||void 0===o?void 0:o.strings)||void 0===l?void 0:l.previous)&&void 0!==c?c:"Previous",selectMonth:null!==(d=null===(h=null===(u=this.configuration)||void 0===u?void 0:u.strings)||void 0===h?void 0:h.selectMonth)&&void 0!==d?d:"Select Month",viewCalendar:null!==(f=null===(v=null===(p=this.configuration)||void 0===p?void 0:p.strings)||void 0===v?void 0:v.viewCalendar)&&void 0!==f?f:"View Calendar"}}}onRender(){super.onRender(),this.positionModal(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach((e=>{e.addEventListener("click",(e=>{this.modalVisible=!0,this.modalDate=this.selectedDate?new Date(this.selectedDate):new Date,this.render()}))})),this.rootElement.querySelectorAll("[hawksearch-previous]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.modalDate.setDate(1),this.modalDate.setMonth(this.modalDate.getMonth()-1),this.render()}))})),this.rootElement.querySelectorAll("[hawksearch-next]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.modalDate.setDate(1),this.modalDate.setMonth(this.modalDate.getMonth()+1),this.render()}))})),this.rootElement.querySelectorAll("[hawksearch-month-selector]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.monthSelectorVisible=!0,this.render()}))})),this.rootElement.querySelectorAll("[hawksearch-select-month]").forEach((e=>{e.addEventListener("click",(e=>{var t,n;e.preventDefault();const r=null===(t=this.rootElement.querySelector("[hawksearch-month]"))||void 0===t?void 0:t.value,i=null===(n=this.rootElement.querySelector("[hawksearch-year]"))||void 0===n?void 0:n.value;if(void 0===r)throw new Error("Unable to get month value");if(void 0===i)throw new Error("Unable to get year value");this.modalDate=new Date(parseInt(i),parseInt(r),1),this.monthSelectorVisible=!1,this.render()}))})),this.rootElement.querySelectorAll("[hawksearch-date]").forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();const n=e.getAttribute("hawksearch-date")||void 0;if(!n)return;const r=new Date(n);if(this.minDate&&!(r>=this.minDate)||this.maxDate&&!(r<=this.maxDate))return;this.selectedDate=r,this.modalVisible=!1,this.render();const i=new CustomEvent("hawksearch:date-picker-changed",{detail:r});this.dispatchEvent(i)}))}))}positionModal(){const e=this.rootElement.querySelector("[hawksearch-modal]");if(!e||!e.offsetWidth||!this.modalVisible)return;e.style.left="",e.style.right="";const t=window.innerWidth,n=e.getBoundingClientRect();e.offsetWidth+n.x>=t&&t>=e.offsetWidth&&(e.style.right="0")}getYears(){const e=[],t=this.modalDate.getFullYear(),n=t<1900?t:1900,r=(t>(new Date).getFullYear()?t:(new Date).getFullYear())+10;for(let t=n;t<=r;t++)e.push(t);return e}getWeeks(e){let t=new Date(e.getFullYear(),e.getMonth(),1);t.setDate(t.getDate()-t.getDay());const n=[];do{const e=this.getWeek(t);n.push(e),t=new Date(n[n.length-1][6].date.getTime()),t.setDate(t.getDate()+1)}while(n.length<6);return n}getWeek(e){const t=[];(new Date).setHours(0,0,0,0);for(let n=0;n<7;n++){const r=new Date(e.getTime());r.setDate(r.getDate()+n),r.setHours(0,0,0,0);const i={date:r,value:r.toISOString(),currentMonth:r.getMonth()===this.modalDate.getMonth(),enabled:(!this.minDate||r>=this.minDate)&&(!this.maxDate||r<=this.maxDate),selected:!!this.selectedDate&&En(r,this.selectedDate)};t.push(i)}return t}},"date-range-facet":class extends Ln{constructor(){super(...arguments),this.componentName="date-range-facet",this.defaultHtml='<div class="date-range-facet">\r\n <div class="row">\r\n <div class="column column--6">\r\n <hawksearch-date-picker\r\n hawksearch-start\r\n value="{{startValue}}"\r\n min="{{minValue}}"\r\n max="{{endValue}}"\r\n label="{{strings.startDate}}"\r\n ></hawksearch-date-picker>\r\n </div>\r\n <div class="column column--6">\r\n <hawksearch-date-picker\r\n hawksearch-end\r\n value="{{endValue}}"\r\n min="{{startValue}}"\r\n max="{{maxValue}}"\r\n label="{{strings.endDate}}"\r\n ></hawksearch-date-picker>\r\n </div>\r\n </div>\r\n</div>'}get range(){var e,t;if("date"===(null===(t=null===(e=this.data)||void 0===e?void 0:e.range)||void 0===t?void 0:t.type))return this.data.range}renderContent(){return!!this.range}getContentModel(){var e,t,n,r,i,a;return{startValue:this.range.start.toISOString(),endValue:this.range.end.toISOString(),minValue:this.range.min.toISOString(),maxValue:this.range.max.toISOString(),strings:{startDate:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.startDate)&&void 0!==n?n:"Start Date",endDate:null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.endDate)&&void 0!==a?a:"End Date"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-start]").forEach((e=>{e.addEventListener("hawksearch:date-picker-changed",(e=>{let t=e.detail;t||(t=this.range.min),this.setFacetValue(t,this.range.end)}))})),this.rootElement.querySelectorAll("[hawksearch-end]").forEach((e=>{e.addEventListener("hawksearch:date-picker-changed",(e=>{let t=e.detail;t||(t=this.range.max),this.setFacetValue(this.range.start,t)}))}))}updateInputElements(e,t){const n=this.rootElement.querySelector("[hawksearch-start]"),r=this.rootElement.querySelector("[hawksearch-end]");n&&(n.value=e?In(e):""),r&&(r.value=t?In(t):"")}setFacetValue(e,t){var n,r;if(e&&t&&e>t){const n=e;e=t,t=n}e||(e=this.range.start),t||(t=this.range.end),e.setHours(0,0,0,0),t.setHours(23,59,59,999),this.updateInputElements(e,t),En(e,this.range.start)&&En(t,this.range.end)||hn.setFacetValue(this.data.field,`${null!==(n=null==e?void 0:e.toISOString())&&void 0!==n?n:""},${null!==(r=null==t?void 0:t.toISOString())&&void 0!==r?r:""}`)}},"facet-wrapper":class extends r{constructor(){super(...arguments),this.componentName="facet-wrapper",this.defaultHtml='<div class="facet">\r\n <div hawksearch-facet-heading class="facet__heading{{attribute \' facet__heading--collapsible\' collapsible}}">\r\n {{title}}\r\n {{#if tooltip}}\r\n <hawksearch-tooltip text="{{tooltip}}"></hawksearch-tooltip>\r\n {{/if}}\r\n {{#if collapsible}}\r\n <hawksearch-icon name="{{if-else collapsed \'chevron-right\' \'chevron-down\'}}" size="1.5em" class="facet__heading__toggle"></hawksearch-icon>\r\n {{/if}}\r\n </div>\r\n {{#unless collapsed}}\r\n <div class="facet__content">\r\n {{#if searchable}}\r\n <input type="text" placeholder="Quick Lookup" hawksearch-facet-search value="{{filter}}" class="facet__search" />\r\n {{/if}}\r\n {{#if (eq type "checkbox")}}\r\n <hawksearch-checkbox-list-facet hawksearch-facet></hawksearch-checkbox-list-facet>\r\n {{/if}}\r\n {{#if (eq type "color")}}\r\n <hawksearch-color-facet hawksearch-facet></hawksearch-color-facet>\r\n {{/if}}\r\n {{#if (eq type "date-range")}}\r\n <hawksearch-date-range-facet hawksearch-facet></hawksearch-date-range-facet>\r\n {{/if}}\r\n {{#if (eq type "link")}}\r\n <hawksearch-link-list-facet hawksearch-facet></hawksearch-link-list-facet>\r\n {{/if}}\r\n {{#if (eq type "numeric-range")}}\r\n <hawksearch-numeric-range-facet hawksearch-facet></hawksearch-numeric-range-facet>\r\n {{/if}}\r\n {{#if (eq type "range-slider")}}\r\n <hawksearch-range-slider-facet hawksearch-facet></hawksearch-range-slider-facet>\r\n {{/if}}\r\n {{#if (eq type "recent-searches")}}\r\n <hawksearch-recent-searches-facet hawksearch-facet></hawksearch-recent-searches-facet>\r\n {{/if}}\r\n {{#if (eq type "related-searches")}}\r\n <hawksearch-related-searches-facet hawksearch-facet></hawksearch-related-searches-facet>\r\n {{/if}}\r\n {{#if (eq type "search")}}\r\n <hawksearch-search-within-facet hawksearch-facet></hawksearch-search-within-facet>\r\n {{/if}}\r\n {{#if (eq type "size")}}\r\n <hawksearch-size-facet hawksearch-facet></hawksearch-size-facet>\r\n {{/if}}\r\n </div>\r\n {{/unless}}\r\n</div>',this.bindFromEvent=!1}renderContent(){var e;return!!(null===(e=this.data)||void 0===e?void 0:e.visible)}getContentModel(){var e,t,n,r,i;return Object.assign(Object.assign({},this.data),{collapsed:null!==(t=null!==(e=this.state.collapsed)&&void 0!==e?e:this.data.collapsed)&&void 0!==t&&t,filter:null!==(n=this.state.filter)&&void 0!==n?n:"",searchable:!!this.data.search&&(null!==(i=null===(r=this.data.values)||void 0===r?void 0:r.length)&&void 0!==i?i:0)>this.data.search.threshold})}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("[hawksearch-facet]").forEach((e=>{e.data=this.data,e.state=this.state}))}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-facet-heading]").forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault(),(null===(t=this.data)||void 0===t?void 0:t.collapsible)&&(this.state.collapsed=!this.state.collapsed,this.render())}))})),this.rootElement.querySelectorAll("[hawksearch-facet-search]").forEach((e=>{e.addEventListener("keyup",(e=>{var t;const n=null===(t=e.currentTarget.value)||void 0===t?void 0:t.trim();this.state.filter=n||void 0,this.rebindChildElements()}))}))}rebindChildElements(){this.rootElement.querySelectorAll("[hawksearch-facet]").forEach((e=>{e.render()}))}},"facets-list":class extends r{constructor(){super(...arguments),this.componentName="facets-list",this.defaultHtml='<div class="facets{{attribute \' facets--expanded\' expanded}}">\r\n <div hawksearch-mobile-toggle class="facets__heading">\r\n {{strings.heading}}\r\n <hawksearch-icon name="{{if-else expanded \'chevron-down\' \'chevron-right\'}}" size="1.5rem" class="facets__heading__mobile-toggle"></hawksearch-icon>\r\n </div>\r\n <div class="facets__content">\r\n {{#each facets}}\r\n <hawksearch-facet-wrapper hawksearch-facet-id="{{id}}"></hawksearch-facet-wrapper>\r\n {{/each}}\r\n </div>\r\n</div>',this.bindFromEvent=!0,this.state={expanded:!1}}renderContent(){return!!this.data}getContentModel(){var e,t,n;const r=["checkbox","color","date-range","link","numeric-range","range-slider","recent-searches","related-searches","search","size"];return{facets:this.data.filter((e=>r.includes(e.type))),expanded:this.state.expanded,strings:{heading:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.heading)&&void 0!==n?n:"Narrow Results"}}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-facet-wrapper[hawksearch-facet-id]").forEach((e=>{var t,n;const r=parseInt(null!==(t=e.getAttribute("hawksearch-facet-id"))&&void 0!==t?t:""),i=null===(n=this.data)||void 0===n?void 0:n.find((e=>e.id===r));let a;if(null==i?void 0:i.values){a=[];const e=t=>{null==t||t.forEach((t=>{t.value&&a.push(t.value),e(t.children)}))};e(i.values)}let s=this.state[r];s||(s={id:r,toggled:!1,values:{}},this.state[r]=s),null==a||a.forEach((e=>{s.values[e]||(s.values[e]={toggled:!1})})),e.data=i,e.state=s}))}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-mobile-toggle]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.state.expanded=!this.state.expanded,this.render()}))}))}},"featured-items-content":class extends i{constructor(){super(...arguments),this.componentName="featured-items-content",this.defaultHtml='<div class="row featured-items-content">\r\n {{#each items}}\r\n {{#if (or (eq @root.zone "Top") (eq @root.zone "Top2") (eq @root.zone "Bottom") (eq @root.zone "Bottom2"))}}\r\n {{#if (eq type "content")}}\r\n <div class="column column--12">\r\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\r\n </div>\r\n {{else}}\r\n <div class="column column--12 column-sm--6 column-lg--4">\r\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\r\n </div>\r\n {{/if}}\r\n {{else}}\r\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\r\n {{/if}}\r\n {{/each}}\r\n</div>'}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.items)||void 0===t?void 0:t.length)}getContentModel(){return Object.assign({},this.data)}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-featured-items-content-item").forEach(((e,t)=>{var n,r;e.data=null===(r=null===(n=this.data)||void 0===n?void 0:n.items)||void 0===r?void 0:r[t]}))}},"featured-items-content-item":class extends r{constructor(){super(...arguments),this.componentName="featured-items-content-item",this.defaultHtml='<div class="featured-items-content__item featured-items-content__item--{{type}}">\r\n {{#if pinned}}\r\n <span class="featured-items-content__item__pin">\r\n <hawksearch-icon name="star"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{#if (eq type "product")}}\r\n {{#if (lt salePrice price)}}\r\n <span class="featured-items-content__item__sale-indicator">{{strings.sale}}</span>\r\n {{/if}}\r\n <a hawksearch-link href="{{url}}" class="featured-items-content__item__image" aria-label="{{title}}">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n <div class="featured-items-content__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#unless (eq salePrice undefined)}}\r\n <div class="featured-items-content__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\r\n {{#if (lt salePrice price)}}\r\n <span class="featured-items-content__item__price__original">{{currency price}}</span>\r\n <span class="featured-items-content__item__price__current" itemprop="price">{{currency salePrice}}</span>\r\n {{else}}\r\n <span class="featured-items-content__item__price-__current" itemprop="price">{{currency salePrice}}</span>\r\n {{/if}}\r\n </div>\r\n {{/unless}}\r\n {{else}}\r\n <div class="featured-items-content__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#if description}}\r\n <p>{{description}}</p>\r\n {{/if}}\r\n {{/if}}\r\n</div>',this.bindFromEvent=!1}renderContent(){return!!this.data}getContentModel(){var e,t,n;return Object.assign(Object.assign({},this.data),{strings:{sale:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.sale)&&void 0!==n?n:"Sale"}})}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||a}))})),this.rootElement.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{this.data&&cn.trackSearchResultClick(this.data.id,this.data.url,e)}))}))}},icon:class extends r{constructor(){super(...arguments),this.componentName="icon",this.defaultHtml='{{html svg}}\r\n<svg height="{{height}}" width="{{width}}" focusable="false" aria-hidden="true" class="icon">\r\n <use href="{{url}}"></use>\r\n</svg>',this.bindFromEvent=!1}get name(){var e;return null!==(e=this.getAttribute("name"))&&void 0!==e?e:void 0}get size(){const e=this.getAttribute("size");return e?isNaN(Number(e))?e:`${e}px`:"1em"}renderContent(){return!!this.name}getContentModel(){return{svg:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><symbol id="chevron-back" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.703 5.331a1 1 0 0 1 .014 1.414l-3.303 3.371 3.289 3.222a1 1 0 0 1-1.4 1.428L4.3 10.845a1 1 0 0 1-.014-1.414l4.003-4.085a1 1 0 0 1 1.414-.015Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.817 5.331a1 1 0 0 1 .015 1.414l-3.304 3.371 3.29 3.222a1 1 0 0 1-1.4 1.428l-4.004-3.921A1 1 0 0 1 9.4 9.43l4.003-4.085a1 1 0 0 1 1.414-.015Z"/></symbol><symbol id="chevron-down" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.838 10.111a1 1 0 0 1 1.415 0L12 14.858l4.747-4.747a1 1 0 1 1 1.415 1.414l-5.455 5.455a1 1 0 0 1-1.414 0l-5.455-5.455a1 1 0 0 1 0-1.414Z"/></symbol><symbol id="chevron-forward" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.46 14.766a1 1 0 0 1-.014-1.414l3.303-3.37L9.46 6.76a1 1 0 0 1 1.4-1.429l4.003 3.922a1 1 0 0 1 .014 1.414l-4.003 4.085a1 1 0 0 1-1.414.014Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.346 14.766a1 1 0 0 1-.015-1.414l3.304-3.37-3.29-3.222a1 1 0 1 1 1.4-1.429L9.75 9.253a1 1 0 0 1 .014 1.414L5.76 14.752a1 1 0 0 1-1.414.014Z"/></symbol><symbol id="chevron-left" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.69 18.224a1 1 0 0 1-1.414-.034l-5-5.25a1 1 0 0 1 0-1.38l5-5.25a1 1 0 1 1 1.448 1.38l-4.343 4.56 4.343 4.56a1 1 0 0 1-.034 1.414Z"/></symbol><symbol id="chevron-right" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.31 18.224a1 1 0 0 1-.034-1.414l4.343-4.56-4.343-4.56a1 1 0 0 1 1.448-1.38l5 5.25a1 1 0 0 1 0 1.38l-5 5.25a1 1 0 0 1-1.414.034Z"/></symbol><symbol id="chevron-up" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.156 16.531a1 1 0 0 1-1.414-.012L12 11.7l-4.742 4.82a1 1 0 1 1-1.425-1.402l5.454-5.546a1 1 0 0 1 1.426 0l5.455 5.546a1 1 0 0 1-.012 1.414Z"/></symbol><symbol id="cross" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="m17.29 3.922-1.178-1.178-6.077 6.078-6.078-6.078-1.179 1.178L8.856 10l-6.078 6.078 1.18 1.178 6.077-6.078 6.077 6.078 1.179-1.178L11.213 10l6.078-6.078Z"/></symbol><symbol id="help" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 18.333c-4.595 0-8.333-3.737-8.333-8.333 0-4.594 3.738-8.333 8.333-8.333 4.595 0 8.333 3.738 8.333 8.333 0 4.596-3.738 8.333-8.333 8.333Zm0-15A6.674 6.674 0 0 0 3.333 10 6.674 6.674 0 0 0 10 16.667 6.674 6.674 0 0 0 16.666 10 6.674 6.674 0 0 0 10 3.333Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.833 12.5H9.166V10H10a1.668 1.668 0 0 0 0-3.333c-.92 0-1.667.746-1.667 1.666H6.666A3.338 3.338 0 0 1 10 5a3.338 3.338 0 0 1 3.333 3.333 3.343 3.343 0 0 1-2.5 3.23v.937Zm-.097.93a1.042 1.042 0 1 1-1.473 1.473 1.042 1.042 0 0 1 1.473-1.473Z"/></symbol><symbol id="minus" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.833 10.833H4.167V9.167h11.666v1.666Z"/></symbol><symbol id="plus" viewBox="0 0 20 20"><g style="enable-background:new 0 0 20 20"><path d="M16 9h-5V4c0-.6-.4-1-1-1s-1 .4-1 1v5H4c-.6 0-1 .4-1 1s.4 1 1 1h5v5c0 .6.4 1 1 1s1-.4 1-1v-5h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></symbol><symbol id="star" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="m10 14.392 5.15 3.108-1.367-5.858 4.55-3.942-5.991-.508L10 1.667 7.658 7.192 1.666 7.7l4.55 3.942L4.85 17.5 10 14.392Z"/></symbol></svg>'.replace('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">','<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display: none;">'),url:`#${this.name}`,height:this.size,width:this.size}}},"image-content":class extends i{constructor(){super(...arguments),this.componentName="image-content",this.defaultHtml='<div class="image-content">\r\n {{#if link}}\r\n <a hawksearch-link href="{{link.url}}" target="{{link.target}}">\r\n <img\r\n src="{{image.url}}"\r\n class="image-content__image"\r\n height="{{image.height}}"\r\n width="{{image.width}}"\r\n alt="{{image.altText}}"\r\n title="{{image.title}}"\r\n />\r\n </a>\r\n {{else}}\r\n <img\r\n src="{{image.url}}"\r\n class="image-content__image"\r\n height="{{image.height}}"\r\n width="{{image.width}}"\r\n alt="{{image.altText}}"\r\n title="{{image.title}}"\r\n />\r\n {{/if}}\r\n</div>'}renderContent(){return!!this.data}getContentModel(){return Object.assign({},this.data)}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{cn.trackBannerClick(this.data.id,this.data.campaignId)}))})),cn.trackBannerImpression(this.data.id,this.data.campaignId)}},"landing-page":class extends r{get url(){var e;return null!==(e=this.getAttribute("url"))&&void 0!==e?e:window.location.pathname}constructor(){super(),this.componentName="landing-page",this.defaultHtml='{{#if customLayout}}\r\n {{html customLayout}}\r\n{{else}}\r\n <hawksearch-search-results mode="landing-page" url="{{url}}"></hawksearch-search-results>\r\n{{/if}}',this.bindFromEvent=!0,cn.trackPageLoad(on.Landing);const e=hn.getRequestFromUrl();e.url=this.url,hn.search(e)}renderContent(){return!!this.data}getContentModel(){return Object.assign(Object.assign({},this.data),{customLayout:this.processCustomLayout(this.data.customLayout),url:this.url})}processCustomLayout(e){var t,n,r,i,a,s,o;if(!e)return;let l=e;const c=Object.keys(null!==(t=this.data.contentZones)&&void 0!==t?t:{}),u=new RegExp(`{{(${c.join("|")})}}`,"g");return l=l.replace(u,'<hawksearch-content-zone name="$1"></hawksearch-content-zone>'),l=l.replace(/{{#breadcrumb#}}/g,null!==(r=null===(n=this.data.content)||void 0===n?void 0:n.breadcrumbs)&&void 0!==r?r:""),l=l.replace(/{{#pageheading#}}/g,null!==(a=null===(i=this.data.content)||void 0===i?void 0:i.heading)&&void 0!==a?a:""),l=l.replace(/{{#customhtml#}}/g,null!==(o=null===(s=this.data.content)||void 0===s?void 0:s.customHtml)&&void 0!==o?o:""),l}},"link-list-facet":class extends Ln{constructor(){super(...arguments),this.componentName="link-list-facet",this.defaultHtml='<div class="link-list-facet" {{attribute (concat \'style="max-height: \' maxHeight \'px;"\') maxHeight}}>\r\n <ul class="link-list-facet__list">\r\n {{#each values}}\r\n {{#if visible}}\r\n <li class="link-list-facet__list__item">\r\n <span hawksearch-facet-value="{{value}}" class="link facet__value" tabindex="-1">\r\n {{#if imageUrl}}\r\n <img src="{{imageUrl}}" alt="{{title}}" title="{{title}}" class="facet__value__image" />\r\n {{else}}\r\n <span class="facet__value__title">{{title}}</span>\r\n {{/if}}\r\n {{#if @root.displayCount}}\r\n <span class="facet__value__count">({{count}})</span>\r\n {{/if}}\r\n </span>\r\n </li>\r\n {{/if}}\r\n {{/each}}\r\n </ul>\r\n {{#if showToggle}}\r\n <span hawksearch-facet-toggle class="link facet__toggle" tabindex="-1">{{strings.toggle}}</span>\r\n {{/if}}\r\n</div>'}renderContent(){return!!this.data}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p;const v=this.state.filter?new RegExp(null!==(e=this.state.filter)&&void 0!==e?e:"","i"):void 0;return{displayCount:null===(t=this.data.displayCount)||void 0===t||t,expanded:null!==(n=this.state.toggled)&&void 0!==n&&n,maxHeight:this.data.scrolling&&this.data.values.length>=this.data.scrolling.threshold?null!==(r=this.data.scrolling.height)&&void 0!==r?r:200:void 0,showToggle:!!this.data.truncation&&(null!==(a=null===(i=this.data.values)||void 0===i?void 0:i.length)&&void 0!==a?a:0)>this.data.truncation.threshold&&!this.state.filter,values:null!==(o=null===(s=this.data.values)||void 0===s?void 0:s.map(((e,t)=>{var n;return Object.assign(Object.assign({},e),{visible:!v&&(this.state.toggled||!this.data.truncation||t<this.data.truncation.threshold)||!!v&&v.test(null!==(n=e.title)&&void 0!==n?n:"")})})))&&void 0!==o?o:[],strings:{toggle:this.state.toggled?null!==(u=null===(c=null===(l=this.configuration)||void 0===l?void 0:l.strings)||void 0===c?void 0:c.showFewer)&&void 0!==u?u:"Show fewer":null!==(p=null===(d=null===(h=this.configuration)||void 0===h?void 0:h.strings)||void 0===d?void 0:d.showMore)&&void 0!==p?p:"Show more"}}}},"modified-query":class extends r{constructor(){super(...arguments),this.componentName="modified-query",this.defaultHtml='<div class="modified-query">\r\n <p>\r\n {{strings.showingResultsFor}}\r\n <span class="modified-query__modified">{{modifiedQuery}}</span>.\r\n {{strings.searchInsteadFor}}\r\n <a class="modified-query__original" hawksearch-query="{{query}}">{{query}}</a>.\r\n </p>\r\n</div>',this.bindFromEvent=!0}renderContent(){var e,t,n;return!!(null===(e=this.data)||void 0===e?void 0:e.display)&&!!(null===(t=this.data)||void 0===t?void 0:t.query)&&!!(null===(n=this.data)||void 0===n?void 0:n.modifiedQuery)}getContentModel(){var e,t,n,r,i,a;return{query:this.data.query,modifiedQuery:this.data.modifiedQuery,strings:{showingResultsFor:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.showingResultsFor)&&void 0!==n?n:"Showing results for",searchInsteadFor:null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.searchInsteadFor)&&void 0!==a?a:"Search instead for"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&hn.query(t,void 0,!0)}))}))}},"numeric-range-facet":class extends Ln{constructor(){super(...arguments),this.componentName="numeric-range-facet",this.defaultHtml='<div class="numeric-range-facet">\r\n <div class="row">\r\n <div class="column column--6">\r\n <input type="number" hawksearch-start value="{{start}}" min="{{min}}" max="{{end}}" aria-label="{{strings.minimum}}" />\r\n </div>\r\n <div class="column column--6">\r\n <input type="number" hawksearch-end value="{{end}}" min="{{start}}" max="{{max}}" aria-label="{{strings.maximum}}" />\r\n </div>\r\n </div>\r\n</div>'}get range(){var e,t;if("numeric"===(null===(t=null===(e=this.data)||void 0===e?void 0:e.range)||void 0===t?void 0:t.type))return this.data.range}renderContent(){return!!this.range}getContentModel(){var e,t,n,r,i,a;return{start:Math.floor(this.range.start),end:Math.ceil(this.range.end),min:Math.floor(this.range.min),max:Math.floor(this.range.max),strings:{minimum:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.minimum)&&void 0!==n?n:"Minimum",maximum:null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.maximum)&&void 0!==a?a:"Maximum"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-start]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let n=parseFloat(t.value);isNaN(n)&&(n=Math.floor(this.range.min),t.value=n.toString()),this.setFacetValue(n,this.range.end)}))})),this.rootElement.querySelectorAll("[hawksearch-end]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let n=parseFloat(t.value);isNaN(n)&&(n=Math.ceil(this.range.max),t.value=n.toString()),this.setFacetValue(this.range.start,n)}))}))}setFacetValue(e,t){if(e>t){const n=e;e=t,t=n}e=Math.floor(e),t=Math.ceil(t),e===Math.floor(this.range.start)&&t===Math.ceil(this.range.end)||hn.setFacetValue(this.data.field,`${e},${t}`)}},"page-size":class extends r{constructor(){super(...arguments),this.componentName="page-size",this.defaultHtml='<div class="page-size">\r\n <select hawksearch-page-size>\r\n {{#each options}}\r\n {{#if selected}}\r\n <option value="{{pageSize}}" selected>{{title}}</option>\r\n {{else}}\r\n <option value="{{pageSize}}">{{title}}</option>\r\n {{/if}}\r\n {{/each}}\r\n </select>\r\n</div>',this.bindFromEvent=!0}renderContent(){var e;return!!(null===(e=this.data)||void 0===e?void 0:e.length)}getContentModel(){return{options:this.data}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-page-size]").forEach((e=>{e.addEventListener("change",(e=>{e.preventDefault();const t=e.currentTarget,n=parseInt(t.value);hn.setPageSize(n)}))}))}},pagination:class extends r{constructor(){super(...arguments),this.componentName="pagination",this.defaultHtml='<div class="pagination">\r\n {{#if strings.summary}}\r\n <div class="pagination__summary">{{strings.summary}}</div>\r\n {{/if}}\r\n <div class="pagination__pages">\r\n {{#if displayFirstLink}}\r\n <span hawksearch-page="1" class="link pagination__page pagination__page--first" title="{{strings.first}}">\r\n <hawksearch-icon name="chevron-back" size="1.2em"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{#if displayPreviousLink}}\r\n <a\r\n hawksearch-page="{{subtract page 1}}"\r\n rel="prev"\r\n href="{{pageUrl (subtract page 1)}}"\r\n class="pagination__page pagination__page--previous"\r\n title="{{strings.previous}}"\r\n >\r\n <hawksearch-icon name="chevron-left" size="1.2em"></hawksearch-icon>\r\n </a>\r\n {{/if}}\r\n {{#each pages}}\r\n {{#if (eq this @root.page)}}\r\n <span class="pagination__page pagination__page--selected">{{this}}</span>\r\n {{else}}\r\n <a hawksearch-page="{{this}}" href="{{pageUrl this}}" class="pagination__page">{{this}}</a>\r\n {{/if}}\r\n {{/each}}\r\n {{#if displayNextLink}}\r\n <a\r\n hawksearch-page="{{add page 1}}"\r\n rel="next"\r\n href="{{pageUrl (add page 1)}}"\r\n class="pagination__page pagination__page--next"\r\n title="{{strings.next}}"\r\n >\r\n <hawksearch-icon name="chevron-right" size="1.2em"></hawksearch-icon>\r\n </a>\r\n {{/if}}\r\n {{#if displayLastLink}}\r\n <span hawksearch-page="{{totalPages}}" class="link pagination__page pagination__page--last" title="{{strings.last}}">\r\n <hawksearch-icon name="chevron-forward" size="1.2em"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n </div>\r\n</div>',this.bindFromEvent=!0,this.defaultMaxPageLinks=9}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("pageUrl",(e=>{const t=new URLSearchParams;return 1===e?t.delete(hn.queryStringParams.page):t.set(hn.queryStringParams.page,e.toString()),`?${t}`}))}renderContent(){var e;return!!(null===(e=this.data)||void 0===e?void 0:e.totalResults)}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p,v,f,m,g;const y=(this.data.page-1)*this.data.pageSize+1;let k=y+this.data.pageSize-1;return k>this.data.totalResults&&(k=this.data.totalResults),{page:this.data.page,pages:this.getPages(),firstPage:1,lastPage:this.data.totalPages,firstRecord:y,lastRecord:k,totalRecords:null!==(e=this.data.totalResults)&&void 0!==e?e:0,totalPages:null!==(t=this.data.totalPages)&&void 0!==t?t:1,maxPageLinks:null!==(n=this.data.maxPageLinks)&&void 0!==n?n:this.defaultMaxPageLinks,displayFirstLink:this.data.displayFirstLink&&this.data.page>1,displayPreviousLink:this.data.page>1,displayNextLink:this.data.page<this.data.totalPages,displayLastLink:this.data.displayLastLink&&this.data.page<this.data.totalPages,strings:{first:null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.first)&&void 0!==a?a:"First",last:null!==(l=null===(o=null===(s=this.configuration)||void 0===s?void 0:s.strings)||void 0===o?void 0:o.last)&&void 0!==l?l:"Last",next:null!==(h=null===(u=null===(c=this.configuration)||void 0===c?void 0:c.strings)||void 0===u?void 0:u.next)&&void 0!==h?h:"Next",previous:null!==(v=null===(p=null===(d=this.configuration)||void 0===d?void 0:d.strings)||void 0===p?void 0:p.previous)&&void 0!==v?v:"Previous",summary:this.interpolate(null!==(g=null===(m=null===(f=this.configuration)||void 0===f?void 0:f.strings)||void 0===m?void 0:m.summary)&&void 0!==g?g:"Showing ${first}-${last} of ${total}",{first:qn(y,0),last:qn(k,0),total:qn(this.data.totalResults,0)})}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-page]").forEach((e=>{const t=e.getAttribute("hawksearch-page");if(t){const n=parseInt(t);e.addEventListener("click",(e=>{e.preventDefault(),this.setPage(n)}))}}))}setPage(e){return t=this,n=void 0,i=function*(){yield hn.paginate(e)},new((r=void 0)||(r=Promise))((function(e,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,o)}l((i=i.apply(t,n||[])).next())}));var t,n,r,i}getPages(){var e;const t=[];if(this.data&&this.data.totalPages>1){const n=null!==(e=this.data.maxPageLinks)&&void 0!==e?e:this.defaultMaxPageLinks;let r=this.data.page-Math.floor(n/2);r<1&&(r=1);let i=r+n-1;i>this.data.totalPages&&(i=this.data.totalPages);for(let e=r;e<=i;e++)t.push(e)}return t}},"popular-queries-content":class extends i{constructor(){super(...arguments),this.componentName="popular-queries-content",this.defaultHtml='<div class="popular-queries-content">\r\n {{#each items}}\r\n <a hawksearch-query="{{query}}" class="popular-queries-content__item popular-queries-content__item--{{weight}}">{{query}}</a>\r\n {{/each}}\r\n</div>'}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.items)||void 0===t?void 0:t.length)}getContentModel(){return Object.assign({},this.data)}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&hn.query(t)}))}))}},"query-suggestions":class extends r{constructor(){super(...arguments),this.componentName="query-suggestions",this.defaultHtml='<div class="query-suggestions">\r\n <p>{{query-suggestions querySuggestions}}</p>\r\n</div>',this.bindFromEvent=!0}registerHelpers(){var e,t,n,r,i,a;super.registerHelpers();const s=null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.orDelimeter)&&void 0!==n?n:"or",o=null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.prompt)&&void 0!==a?a:"Did you mean to search for ${suggestions}?";this.handlebars.registerHelper("query-suggestions",(function(e){function t(e){return`<a hawksearch-query="${encodeURIComponent(e)}" class="query-suggestions__link">${e}</a>`}const n=`, ${s} `;let r="";r=e.length<=2?e.map(t).join(` ${s} `):e.slice(0,e.length-1).map(t).join(", ")+n+t(e[e.length-1]);const i=o.replace("${suggestions}",r);return new HawkSearch.handlebars.SafeString(i)}))}renderContent(){var e;return!!this.data&&!!this.data.display&&!!(null===(e=this.data.querySuggestions)||void 0===e?void 0:e.length)}getContentModel(){var e;return{querySuggestions:null!==(e=this.data.querySuggestions)&&void 0!==e?e:[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&hn.query(t)}))}))}},"range-slider":class extends r{constructor(){super(...arguments),this.componentName="range-slider",this.defaultHtml='<div class="range-slider">\r\n <div class="range-slider__container">\r\n <div class="range-slider__bar">\r\n <div class="range-slider__bar__active" hawksearch-bar style="left: {{start}}%; right: {{subtract 100 end}}%;"></div>\r\n </div>\r\n <span class="range-slider__handle range-slider__handle--start" title="{{strings.start}}" hawksearch-handle="start" style="left: {{start}}%;"></span>\r\n <span class="range-slider__handle range-slider__handle--end" title="{{strings.end}}" hawksearch-handle="end" style="left: {{end}}%;"></span>\r\n </div>\r\n</div>',this.bindFromEvent=!1,this.dragging=!1,this.start=0,this.end=100}static get observedAttributes(){return["end","start"]}connectedCallback(){super.connectedCallback(),this.mouseUpEventHandler=this.onMouseUp.bind(this),this.mouseMoveEventHandler=this.onMouseMove.bind(this),["mouseup","touchend"].forEach((e=>document.addEventListener(e,this.mouseUpEventHandler))),["mousemove","touchmove"].forEach((e=>document.addEventListener(e,this.mouseMoveEventHandler)),{passive:!0})}attributeChangedCallback(e,t,n){switch(e){case"end":this.setEnd(n);break;case"start":this.setStart(n)}this.render()}disconnectedCallback(){super.disconnectedCallback(),["mouseup","touchend"].forEach((e=>document.removeEventListener(e,this.mouseUpEventHandler))),["mousemove","touchmove"].forEach((e=>document.removeEventListener(e,this.mouseMoveEventHandler)))}setStart(e){let t=parseInt(null!=e?e:"");(isNaN(t)||t<0)&&(t=0),this.start=t}setEnd(e){let t=parseInt(null!=e?e:"");(isNaN(t)||t>100)&&(t=100),this.end=t}getContentModel(){var e,t,n,r,i,a;return{start:this.start,end:this.end,strings:{start:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.start)&&void 0!==n?n:"Start",end:null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.end)&&void 0!==a?a:"End"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-handle]").forEach((e=>{["mousedown","touchstart"].forEach((t=>e.addEventListener(t,(t=>{var n;if(!e.getAttribute("hawksearch-handle"))return;const r=t.currentTarget;this.activeHandle=r,this.startOffsetPercentage=parseFloat(null!==(n=r.style.left)&&void 0!==n?n:0),this.startX=t instanceof MouseEvent?t.clientX:t.touches[0].clientX,this.dragging=!0,this.rootElement.querySelectorAll("[hawksearch-handle]").forEach((e=>e.style.zIndex="")),r.style.zIndex="1"}),{passive:!0})))}))}onMouseUp(e){if(!this.dragging)return;e.preventDefault(),this.dragging=!1;const t={start:this.start,end:this.end},n=new CustomEvent("hawksearch:range-slider-changed",{detail:t});this.dispatchEvent(n)}onMouseMove(e){var t,n;if(!this.dragging||!this.activeHandle||void 0===this.startX)return;const r=this.activeHandle.getAttribute("hawksearch-handle"),i=this.rootElement.querySelector('[hawksearch-handle="start"]'),a=this.rootElement.querySelector('[hawksearch-handle="end"]'),s=this.rootElement.querySelector("[hawksearch-bar]"),o=(e instanceof MouseEvent?e.clientX:e.touches[0].clientX)-this.startX,l=this.activeHandle.parentElement.offsetWidth;let c=Math.round(o/l*100)+this.startOffsetPercentage,u=0,h=100;"start"===r?h=parseFloat(null!==(t=a.style.left)&&void 0!==t?t:100):"end"===r&&(u=parseFloat(null!==(n=i.style.left)&&void 0!==n?n:0)),c<=u?c=u:c>=h&&(c=h),"start"===r?u=c:"end"===r&&(h=c),this.activeHandle.style.left=`${c}%`,s.style.left=`${u}%`,s.style.right=100-h+"%","start"===r?this.start=c:"end"===r&&(this.end=c);const d={start:this.start,end:this.end},p=new CustomEvent("hawksearch:range-slider-dragging",{detail:d});this.dispatchEvent(p)}},"range-slider-facet":class extends Ln{constructor(){super(...arguments),this.componentName="range-slider-facet",this.defaultHtml='<div class="range-slider-facet">\r\n <div class="row">\r\n <div class="column column--6">\r\n <input type="number" hawksearch-start value="{{start}}" min="{{min}}" max="{{end}}" aria-label="{{strings.minimum}}" />\r\n </div>\r\n <div class="column column--6">\r\n <input type="number" hawksearch-end value="{{end}}" min="{{start}}" max="{{max}}" aria-label="{{strings.maximum}}" />\r\n </div>\r\n </div>\r\n <hawksearch-range-slider start="{{sliderStart}}" end="{{sliderEnd}}"></hawksearch-range-slider>\r\n</div>'}get range(){var e,t;if("numeric"===(null===(t=null===(e=this.data)||void 0===e?void 0:e.range)||void 0===t?void 0:t.type))return this.data.range}renderContent(){return!!this.range}getContentModel(){var e,t,n,r,i,a;const s=Math.ceil(this.range.max)-Math.floor(this.range.min);return{start:Math.floor(this.range.start),end:Math.ceil(this.range.end),min:Math.floor(this.range.min),max:Math.ceil(this.range.max),sliderStart:Math.ceil((Math.floor(this.range.start)-Math.floor(this.range.min))/s*100),sliderEnd:Math.floor(Math.ceil(this.range.end)/s*100),strings:{minimum:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.minimum)&&void 0!==n?n:"Minimum",maximum:null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.maximum)&&void 0!==a?a:"Maximum"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-start]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let n=parseFloat(t.value);isNaN(n)&&(n=0),this.setFacetValue(n,this.range.end)}))})),this.rootElement.querySelectorAll("[hawksearch-end]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let n=parseFloat(t.value);isNaN(n)&&(n=0),this.setFacetValue(this.range.start,n)}))})),this.rootElement.querySelectorAll("hawksearch-range-slider").forEach((e=>{e.addEventListener("hawksearch:range-slider-dragging",(e=>{const t=e.detail,n=this.getRange(t.start,t.end);this.updateInputElements(n.start,n.end)})),e.addEventListener("hawksearch:range-slider-changed",(e=>{const t=e.detail,n=this.getRange(t.start,t.end);this.setFacetValue(n.start,n.end)}))}))}getRange(e,t){var n,r;const i=Math.floor(null!==(n=this.range.min)&&void 0!==n?n:0),a=Math.ceil(null!==(r=this.range.max)&&void 0!==r?r:0),s=a-i;return{start:Math.floor(s*e/100+i),end:Math.ceil(a*t/100)}}updateInputElements(e,t){const n=this.rootElement.querySelector("[hawksearch-start]"),r=this.rootElement.querySelector("[hawksearch-end]");n&&(n.value=e.toString()),r&&(r.value=t.toString())}setFacetValue(e,t){this.updateInputElements(e,t),e===Math.floor(this.range.start)&&t===Math.ceil(this.range.end)||hn.setFacetValue(this.data.field,`${e.toFixed(2)},${t.toFixed(2)}`)}},recommendations:class extends r{get widgetId(){return this.getAttribute("widget-id")||void 0}get carousel(){var e,t,n,r,i,a;return!1!==(null===(t=null===(e=this.configuration)||void 0===e?void 0:e.carousel)||void 0===t?void 0:t.enabled)&&!!(null===(n=this.data)||void 0===n?void 0:n.carousel)&&(null!==(a=null===(i=null===(r=this.data)||void 0===r?void 0:r.items)||void 0===i?void 0:i.length)&&void 0!==a?a:0)>this.itemsToDisplay}get carouselPosition(){return this.carousel?-1*this.selectedIndex*100/this.itemsToDisplay+"%":void 0}get displayType(){var e,t,n,r;const i=window.innerWidth;return i>=(null!==(t=null===(e=HawkSearch.config.breakpoints)||void 0===e?void 0:e.desktop)&&void 0!==t?t:990)?"desktop":i>=(null!==(r=null===(n=HawkSearch.config.breakpoints)||void 0===n?void 0:n.tablet)&&void 0!==r?r:740)?"tablet":"mobile"}get itemsToDisplay(){var e,t,n,r,i,a,s,o,l;switch(this.displayType){case"mobile":return null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.itemsToDisplay)||void 0===t?void 0:t.mobile)&&void 0!==n?n:1;case"tablet":return null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.itemsToDisplay)||void 0===i?void 0:i.tablet)&&void 0!==a?a:2;case"desktop":return null!==(l=null===(o=null===(s=this.configuration)||void 0===s?void 0:s.itemsToDisplay)||void 0===o?void 0:o.desktop)&&void 0!==l?l:3;default:return 1}}get itemWidth(){return 100/this.itemsToDisplay+"%"}constructor(){if(super(),this.componentName="recommendations",this.defaultHtml='<div class="recommendations">\r\n {{#if headingEnabled}}\r\n <h2 class="heading recommendations__heading">{{title}}</h2>\r\n {{/if}}\r\n <div class="recommendations__content">\r\n {{#if (and carousel buttonsEnabled)}}\r\n <a hawksearch-previous class="recommendations__button recommendations__button--previous" title="{{strings.previous}}">\r\n <hawksearch-icon name="chevron-left"></hawksearch-icon>\r\n </a>\r\n {{/if}}\r\n <div class="recommendations__carousel">\r\n <div hawksearch-carousel class="recommendations__list{{attribute \' recommendations__list--carousel\' carousel}}" style="left: {{carouselPosition}};">\r\n {{#each items}}\r\n <div class="recommendations__carousel__item" style="width: {{@root.itemWidth}};">\r\n <hawksearch-recommendations-item widget-id="{{@root.id}}" request-id="{{@root.requestId}}"></hawksearch-recommendations-item>\r\n </div>\r\n {{/each}}\r\n </div>\r\n {{#if (and carousel paginationEnabled)}}\r\n <div class="recommendations__pagination">\r\n {{#each paginationItems}}\r\n <span\r\n hawksearch-carousel-item="{{@index}}"\r\n class="recommendations__pagination__item{{attribute \' recommendations__pagination__item--selected\' selected}}"\r\n title="{{title}}"\r\n ></span>\r\n {{/each}}\r\n </div>\r\n {{/if}}\r\n </div>\r\n {{#if (and carousel buttonsEnabled)}}\r\n <a\r\n hawksearch-next\r\n class="recommendations__button recommendations__button--next{{attribute \' recommendations__button--disabled\' (eq nextEnabled false)}}"\r\n title="{{strings.next}}"\r\n >\r\n <hawksearch-icon name="chevron-right"></hawksearch-icon>\r\n </a>\r\n {{/if}}\r\n </div>\r\n</div>',this.bindFromEvent=!0,this.eventFilter=this.widgetId,this.selectedIndex=0,!this.widgetId)return;const e={widgetId:this.widgetId};Se.getItems(e)}connectedCallback(){super.connectedCallback(),this.touchMoveEventHandler=this.onTouchMove.bind(this),this.touchEndEventHandler=this.onTouchEnd.bind(this),this.windowResizeEventHandler=Sn((e=>this.onWindowResize(e)),100),document.addEventListener("touchmove",this.touchMoveEventHandler),document.addEventListener("touchend",this.touchEndEventHandler),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("touchmove",this.touchMoveEventHandler),document.removeEventListener("touchend",this.touchEndEventHandler),window.removeEventListener("resize",this.windowResizeEventHandler)}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.items)||void 0===t?void 0:t.length)}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p;return this.previousDisplayType=this.displayType,Object.assign(Object.assign({},this.data),{buttonsEnabled:null===(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.carousel)||void 0===t?void 0:t.buttonsEnabled)||void 0===n||n,carousel:this.carousel,carouselPosition:this.carouselPosition,headingEnabled:null===(i=null===(r=this.configuration)||void 0===r?void 0:r.headingEnabled)||void 0===i||i,itemWidth:this.itemWidth,paginationEnabled:null===(o=null===(s=null===(a=this.configuration)||void 0===a?void 0:a.carousel)||void 0===s?void 0:s.paginationEnabled)||void 0===o||o,paginationItems:this.data.items.map(((e,t)=>({selected:this.getSelected(t),title:e.title}))),strings:{next:null!==(u=null===(c=null===(l=this.configuration)||void 0===l?void 0:l.strings)||void 0===c?void 0:c.next)&&void 0!==u?u:"Next",previous:null!==(p=null===(d=null===(h=this.configuration)||void 0===h?void 0:h.strings)||void 0===d?void 0:d.previous)&&void 0!==p?p:"Previous"}})}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-recommendations-item").forEach(((e,t)=>{var n;e.data=null===(n=this.data.items)||void 0===n?void 0:n[t]}))}onRender(){super.onRender(),this.addEventListener("mouseover",(e=>{this.toggleAutorotation(!1)})),this.addEventListener("mouseleave",(e=>{this.toggleAutorotation(!0)})),this.rootElement.querySelectorAll("[hawksearch-previous]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.previous()}))})),this.rootElement.querySelectorAll("[hawksearch-next]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.next()}))})),this.rootElement.querySelectorAll("[hawksearch-carousel").forEach((e=>{e.addEventListener("touchstart",(e=>{this.dragElement=e.currentTarget,this.dragOffset=e.changedTouches[0].pageX,this.dragOrigin=this.dragElement.offsetLeft,this.dragElement.style.transition="none"}))})),this.rootElement.querySelectorAll("[hawksearch-carousel-item").forEach((e=>{e.addEventListener("click",(t=>{var n;t.preventDefault();const r=parseInt(null!==(n=e.getAttribute("hawksearch-carousel-item"))&&void 0!==n?n:"");isNaN(r)||this.displayItem(r)}))})),this.displayItem(this.selectedIndex),this.toggleAutorotation(!0)}toggleAutorotation(e){var t,n,r,i,a,s,o,l;this.autorotationTimer&&clearInterval(this.autorotationTimer),e&&(null===(t=this.contentModel)||void 0===t?void 0:t.carousel)&&!1!==(null===(i=null===(r=null===(n=this.configuration)||void 0===n?void 0:n.carousel)||void 0===r?void 0:r.autorotation)||void 0===i?void 0:i.enabled)&&(this.autorotationTimer=setInterval((()=>{this.next()}),null!==(l=null===(o=null===(s=null===(a=this.configuration)||void 0===a?void 0:a.carousel)||void 0===s?void 0:s.autorotation)||void 0===o?void 0:o.interval)&&void 0!==l?l:5e3))}previous(){const e=0===this.selectedIndex?this.data.items.length-this.itemsToDisplay:this.selectedIndex-this.itemsToDisplay;this.displayItem(e)}next(){const e=this.selectedIndex===this.data.items.length-this.itemsToDisplay?0:this.selectedIndex+this.itemsToDisplay;this.displayItem(e)}getSelected(e){return e>=this.selectedIndex&&e<this.selectedIndex+this.itemsToDisplay}displayItem(e){var t,n,r;const i=this.rootElement.querySelector("[hawksearch-carousel]");i&&(null===(n=null===(t=this.data)||void 0===t?void 0:t.items)||void 0===n?void 0:n.length)&&(e<0&&(e=0),e>=this.data.items.length-this.itemsToDisplay&&(e=this.data.items.length-this.itemsToDisplay),this.selectedIndex=e,i.style.left=null!==(r=this.carouselPosition)&&void 0!==r?r:"",this.rootElement.querySelectorAll("[hawksearch-carousel-item]").forEach(((e,t)=>{var n,r,i,a;const s=parseInt(null!==(n=e.getAttribute("hawksearch-carousel-item"))&&void 0!==n?n:""),o=!isNaN(s)&&this.getSelected(s),l=null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.carousel)||void 0===i?void 0:i.paginationSelectedCssClass)&&void 0!==a?a:"recommendations__pagination__item--selected";e.classList.toggle(l,o)})))}onWindowResize(e){this.displayType!==this.previousDisplayType&&this.render()}onTouchMove(e){var t,n;if(!this.dragElement||!this.carousel)return;const r=(null!==(t=this.dragOrigin)&&void 0!==t?t:0)+e.changedTouches[0].pageX-(null!==(n=this.dragOffset)&&void 0!==n?n:0);this.dragElement.style.left=`${r}px`}onTouchEnd(e){var t;if(!this.dragElement||!this.carousel)return;const n=this.dragElement.parentElement.offsetWidth/this.itemsToDisplay,r=this.dragElement.offsetLeft-(null!==(t=this.dragOrigin)&&void 0!==t?t:0),i=Math.round(r/n),a=this.selectedIndex-i;this.displayItem(a),this.dragElement.style.transition="",this.dragElement=void 0,this.dragOffset=void 0,this.dragOrigin=void 0}},"recommendations-item":class extends r{constructor(){super(...arguments),this.componentName="recommendations-item",this.defaultHtml='<div class="recommendations__item">\r\n {{#if pinned}}\r\n <span class="recommendations__item__pin">\r\n <hawksearch-icon name="star"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{#if (lt salePrice price)}}\r\n <span class="recommendations__item__sale-indicator">{{strings.sale}}</span>\r\n {{/if}}\r\n <a hawksearch-link href="{{url}}" class="recommendations__item__image" aria-label="{{title}}">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n <div class="recommendations__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#unless (eq salePrice undefined)}}\r\n <div class="recommendations__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\r\n {{#if (lt salePrice price)}}\r\n <span class="recommendations__item__price__original">{{currency price}}</span>\r\n <span class="recommendations__item__price__current" itemprop="price">{{currency salePrice}}</span>\r\n {{else}}\r\n <span class="recommendations__item__price-__current" itemprop="price">{{currency salePrice}}</span>\r\n {{/if}}\r\n </div>\r\n {{/unless}}\r\n</div>',this.bindFromEvent=!1}get widgetId(){return this.getAttribute("widget-id")||void 0}get requestId(){return this.getAttribute("request-id")||void 0}renderContent(){return!!this.data}getContentModel(){var e,t,n;return Object.assign(Object.assign({},this.data),{strings:{sale:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.sale)&&void 0!==n?n:"Sale"}})}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||a}))})),this.rootElement.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{this.data&&this.widgetId&&this.requestId&&cn.trackRecommendationClick(this.widgetId,this.requestId,this.data.id)}))}))}},"recent-searches-facet":class extends Ln{constructor(){super(...arguments),this.componentName="recent-searches-facet",this.defaultHtml='<div class="recent-searches-facet">\r\n <ul class="recent-searches-facet__list">\r\n {{#each values}}\r\n <li class="recent-searches-facet__list__item">\r\n <a hawksearch-query="{{this}}" class="facet__value">{{this}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n</div>'}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.values)||void 0===t?void 0:t.length)}getContentModel(){var e,t;return{values:null!==(t=null===(e=this.data.values)||void 0===e?void 0:e.map((e=>e.title)))&&void 0!==t?t:[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&hn.query(t)}))}))}},"related-searches-facet":class extends Ln{constructor(){super(...arguments),this.componentName="related-searches-facet",this.defaultHtml='<div class="related-searches-facet">\r\n <ul class="related-searches-facet__list">\r\n {{#each values}}\r\n <li class="related-searches-facet__list__item">\r\n <a hawksearch-query="{{this}}" class="facet__value">{{this}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n</div>'}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.values)||void 0===t?void 0:t.length)}getContentModel(){var e,t;return{values:null!==(t=null===(e=this.data.values)||void 0===e?void 0:e.map((e=>e.title)))&&void 0!==t?t:[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&hn.query(t)}))}))}},"search-field":class extends r{constructor(){super(...arguments),this.componentName="search-field",this.defaultHtml='<div class="search-field">\r\n <input type="text" hawksearch-input value="{{query}}" placeholder="{{strings.placeholder}}" />\r\n <hawksearch-autocomplete></hawksearch-autocomplete>\r\n</div>',this.bindFromEvent=!0}connectedCallback(){super.connectedCallback(),this.clickEventHandler=e=>{e.target.closest("hawksearch-search-field")||this.toggleAutocomplete(!1)},this.rootElement.ownerDocument.addEventListener("click",this.clickEventHandler)}disconnectedCallback(){super.disconnectedCallback(),this.rootElement.ownerDocument.removeEventListener("click",this.connectedCallback)}getContentModel(){var e,t,n,r;return{query:null===(e=this.data)||void 0===e?void 0:e.query,strings:{placeholder:null!==(r=null===(n=null===(t=this.configuration)||void 0===t?void 0:t.strings)||void 0===n?void 0:n.placeholder)&&void 0!==r?r:"Enter keywords"}}}onRender(){super.onRender();const e=["Enter","NumpadEnter"];this.rootElement.querySelectorAll("[hawksearch-input]").forEach((t=>{t.addEventListener("keyup",(t=>{if(!e.includes(t.code))return;const n=t.currentTarget.value.trim();this.toggleAutocomplete(!1),hn.query(n)})),t.addEventListener("keyup",Sn((n=>{if(e.includes(n.code))return;const r=t.value.trim();this.toggleAutocomplete(!!r),r&&D.query(r)}),250))})),this.rootElement.querySelectorAll("hawksearch-autocomplete").forEach((e=>{e.addEventListener("hawksearch:close-autocomplete",(e=>{this.toggleAutocomplete(!1)}))}))}toggleAutocomplete(e){this.rootElement.querySelectorAll("hawksearch-autocomplete").forEach((t=>{t.style.display=e?"block":"none"}))}},"search-results":class extends r{get mode(){return"landing-page"===this.getAttribute("mode")?"landing-page":"search-results"}get url(){var e;return null!==(e=this.getAttribute("url"))&&void 0!==e?e:window.location.pathname}constructor(){if(super(),this.componentName="search-results",this.defaultHtml='<hawksearch-modified-query></hawksearch-modified-query>\r\n<hawksearch-query-suggestions></hawksearch-query-suggestions>\r\n<div class="row">\r\n <div class="column column--12 column-md--4">\r\n <hawksearch-content-zone name="LeftTop"></hawksearch-content-zone>\r\n <hawksearch-facets-list></hawksearch-facets-list>\r\n <hawksearch-content-zone name="LeftBottom"></hawksearch-content-zone>\r\n </div>\r\n <div class="column column--12 column-md--8">\r\n <hawksearch-content-zone name="Top"></hawksearch-content-zone>\r\n <hawksearch-content-zone name="Top2"></hawksearch-content-zone>\r\n <hawksearch-tabs></hawksearch-tabs>\r\n <hawksearch-selected-facets></hawksearch-selected-facets>\r\n <div class="row">\r\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\r\n <hawksearch-pagination></hawksearch-pagination>\r\n </div>\r\n <div class="column column--12 column-md--6">\r\n <div class="row row--tight">\r\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\r\n <hawksearch-page-size></hawksearch-page-size>\r\n </div>\r\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\r\n <hawksearch-sorting></hawksearch-sorting>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <hawksearch-search-results-list></hawksearch-search-results-list>\r\n <hawksearch-content-zone name="Bottom"></hawksearch-content-zone>\r\n <hawksearch-content-zone name="Bottom2"></hawksearch-content-zone>\r\n </div>\r\n</div>',this.bindFromEvent=!0,"search-results"===this.mode){cn.trackPageLoad(on.Custom);const e=hn.getRequestFromUrl();hn.search(e)}}getContentModel(){return Object.assign({},this.data)}},"search-results-item":class extends r{constructor(){super(...arguments),this.componentName="search-results-item",this.defaultHtml='<div class="search-results-list__item search-results-list__item--{{type}}">\r\n {{#if pinned}}\r\n <span class="search-results-list__item__pin">\r\n <hawksearch-icon name="star"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{#if (eq type "product")}}\r\n {{#if (lt salePrice price)}}\r\n <span class="search-results-list__item__sale-indicator">{{strings.sale}}</span>\r\n {{/if}}\r\n <a hawksearch-link href="{{url}}" class="search-results-list__item__image" aria-label="{{title}}">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n <div class="search-results-list__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#unless (eq salePrice undefined)}}\r\n <div class="search-results-list__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\r\n {{#if (lt salePrice price)}}\r\n <span class="search-results-list__item__price__original">{{currency price}}</span>\r\n <span class="search-results-list__item__price__current" itemprop="price">{{currency salePrice}}</span>\r\n {{else}}\r\n <span class="search-results-list__item__price-__current" itemprop="price">{{currency salePrice}}</span>\r\n {{/if}}\r\n </div>\r\n {{/unless}}\r\n {{else}}\r\n <div class="search-results-list__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#if description}}\r\n <p>{{description}}</p>\r\n {{/if}}\r\n {{/if}}\r\n</div>',this.bindFromEvent=!1}renderContent(){return!!this.data}getContentModel(){var e,t,n;return Object.assign(Object.assign({},this.data),{strings:{sale:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.sale)&&void 0!==n?n:"Sale"}})}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||a}))})),this.rootElement.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{this.data&&cn.trackSearchResultClick(this.data.id,this.data.url,e)}))}))}},"search-results-list":class extends r{constructor(){super(...arguments),this.componentName="search-results-list",this.defaultHtml='<div class="row search-results-list">\r\n {{#each items}}\r\n {{#if (eq type "content")}}\r\n <div class="column column--12">\r\n <hawksearch-search-results-item></hawksearch-search-results-item>\r\n </div>\r\n {{else}}\r\n <div class="column column--12 column-sm--6 column-lg--4">\r\n <hawksearch-search-results-item></hawksearch-search-results-item>\r\n </div>\r\n {{/if}}\r\n {{/each}}\r\n</div>',this.bindFromEvent=!0}renderContent(){var e;return!!(null===(e=this.data)||void 0===e?void 0:e.length)}getContentModel(){return{items:this.data}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-search-results-item").forEach(((e,t)=>{var n;e.data=null===(n=this.data)||void 0===n?void 0:n[t]}))}},"search-within-facet":class extends Ln{constructor(){super(...arguments),this.componentName="search-within-facet",this.defaultHtml='<div class="search-within-facet">\r\n <input type="text" hawksearch-input value="{{value}}" class="search-within-facet__input" aria-label="{{strings.label}}" />\r\n</div>'}renderContent(){return!!this.data}getContentModel(){var e,t,n,r;return{value:null!==(e=this.data.searchWithin)&&void 0!==e?e:"",strings:{label:null!==(r=null===(n=null===(t=this.configuration)||void 0===t?void 0:t.strings)||void 0===n?void 0:n.label)&&void 0!==r?r:"Enter keywords"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach((e=>{e.addEventListener("change",(e=>{e.preventDefault();const t=e.currentTarget.value.trim();hn.searchWithin(t)}))}))}},"selected-facets":class extends r{constructor(){super(...arguments),this.componentName="selected-facets",this.defaultHtml='<div class="flex-gap flex-gap--xs selected-facets">\r\n {{#each selections}}\r\n <span class="selected-facets__item">\r\n <span class="selected-facets__item__field">{{title}}</span>\r\n <span class="selected-facets__item__value{{attribute \' selected-facets__item__value--excluded\' excluded}}">{{selectionTitle}}</span>\r\n <a\r\n hawksearch-facet-field="{{field}}"\r\n hawksearch-facet-value="{{selectionValue}}"\r\n class="selected-facets__item__remove"\r\n title="{{@root.strings.remove}}"\r\n >\r\n <hawksearch-icon name="cross" size="0.9em"></hawksearch-icon>\r\n </a>\r\n </span>\r\n {{/each}}\r\n</div>',this.bindFromEvent=!0}renderContent(){var e;return!!(null===(e=this.data)||void 0===e?void 0:e.length)}getContentModel(){var e,t,n;const r=[];return this.data.forEach((e=>{e.values.forEach((t=>{var n,i,a,s;let o=t.title;const l=/^(?<min>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)?,(?<max>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)?$/.exec(t.value),c=/^(?:(?<min>\d+(?:\.\d+)?))?,(?:(?<max>\d+(?:\.\d+)?))?$/.exec(t.value);if(l){const e=void 0!==(null===(n=l.groups)||void 0===n?void 0:n.min)?new Date(l.groups.min):void 0,t=void 0!==(null===(i=l.groups)||void 0===i?void 0:i.max)?new Date(l.groups.max):void 0;e&&t&&En(e,t)?o=Hn(e):e&&t?o=`${Hn(e)} - ${Hn(t)}`:e?o=`After ${Hn(e)}`:t&&(o=`Before ${Hn(t)}`)}if(c){const t=void 0!==(null===(a=c.groups)||void 0===a?void 0:a.min)?parseFloat(c.groups.min):void 0,n=void 0!==(null===(s=c.groups)||void 0===s?void 0:s.max)?parseFloat(c.groups.max):void 0,r=e.currency?Cn:qn;void 0!==t&&void 0!==n?o=t===n?r(t,0):`${r(t,0)} - ${r(n,0)}`:void 0!==t?o=`${r(t,0)} and up`:void 0!==n&&(o=`${r(n,0)} and below`)}r.push({field:e.field,title:e.title,selectionTitle:o,selectionValue:t.value,excluded:t.excluded})}))})),r.sort(((e,t)=>e.field==t.field?e.selectionTitle.localeCompare(t.selectionTitle):e.title.localeCompare(t.title))),{selections:r,strings:{remove:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.remove)&&void 0!==n?n:"Remove"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-facet-field][hawksearch-facet-value]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget,n=t.getAttribute("hawksearch-facet-field"),r=t.getAttribute("hawksearch-facet-value");n&&r&&hn.removeFacetValue(n,r)}))}))}},"size-facet":class extends Ln{constructor(){super(...arguments),this.componentName="size-facet",this.defaultHtml='<div class="size-facet">\r\n <div class="row row--tight size-facet__items">\r\n {{#each values}}\r\n {{#if visible}}\r\n <div class="column column--3 size-facet__item{{attribute \' size-facet__item--selected\' selected}}">\r\n <div hawksearch-facet-value="{{value}}" class="size-facet__item__outer">\r\n <div hawksearch-facet-value="{{value}}" class="size-facet__item__inner">\r\n {{title}}\r\n </div>\r\n </div>\r\n {{#if @root.excludeEnabled}}\r\n <span class="size-facet__item__actions">\r\n {{#if excluded}}\r\n <span hawksearch-facet-value-include="{{value}}" class="size-facet__item__actions__item" title="{{@root.strings.include}}">\r\n <hawksearch-icon name="plus"></hawksearch-icon>\r\n </span>\r\n {{else}}\r\n <span hawksearch-facet-value-exclude="{{value}}" class="size-facet__item__actions__item" title="{{@root.strings.exclude}}">\r\n <hawksearch-icon name="minus"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n </span>\r\n {{/if}}\r\n </div>\r\n {{/if}}\r\n {{/each}}\r\n </div>\r\n {{#if showToggle}}\r\n <span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\r\n {{/if}}\r\n</div>'}renderContent(){return!!this.data}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p,v,f,m,g,y;const k=this.state.filter?new RegExp(this.state.filter,"i"):void 0;return{values:null!==(t=null===(e=this.data.values)||void 0===e?void 0:e.map(((e,t)=>{var n;return Object.assign(Object.assign({},e),{visible:!k&&(this.state.toggled||!this.data.truncation||t<this.data.truncation.threshold)||!!k&&k.test(null!==(n=e.title)&&void 0!==n?n:"")})})))&&void 0!==t?t:[],showToggle:!!this.data.truncation&&(null!==(r=null===(n=this.data.values)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>this.data.truncation.threshold&&!this.state.filter,expanded:null!==(i=this.state.toggled)&&void 0!==i&&i,excludeEnabled:null!==(s=null===(a=this.configuration)||void 0===a?void 0:a.excludeEnabled)&&void 0!==s&&s,strings:{exclude:null!==(c=null===(l=null===(o=this.configuration)||void 0===o?void 0:o.strings)||void 0===l?void 0:l.exclude)&&void 0!==c?c:"Exclude",include:null!==(d=null===(h=null===(u=this.configuration)||void 0===u?void 0:u.strings)||void 0===h?void 0:h.include)&&void 0!==d?d:"Include",toggle:this.state.toggled?null!==(f=null===(v=null===(p=this.configuration)||void 0===p?void 0:p.strings)||void 0===v?void 0:v.showFewer)&&void 0!==f?f:"Show fewer":null!==(y=null===(g=null===(m=this.configuration)||void 0===m?void 0:m.strings)||void 0===g?void 0:g.showMore)&&void 0!==y?y:"Show more"}}}},sorting:class extends r{constructor(){super(...arguments),this.componentName="sorting",this.defaultHtml='<div class="sorting">\r\n <select hawksearch-sort>\r\n {{#each options}}\r\n {{#if selected}}\r\n <option value="{{value}}" selected>{{title}}</option>\r\n {{else}}\r\n <option value="{{value}}">{{title}}</option>\r\n {{/if}}\r\n {{/each}}\r\n </select>\r\n</div>',this.bindFromEvent=!0}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.options)||void 0===t?void 0:t.length)}getContentModel(){return{options:this.data.options}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-sort]").forEach((e=>{e.addEventListener("change",(e=>{e.preventDefault();const t=e.currentTarget.value;hn.sort(t)}))}))}},tabs:class extends r{constructor(){super(...arguments),this.componentName="tabs",this.defaultHtml='<ul class="tabs{{attribute \' tabs--list\' (gt tabs.length 4)}}">\r\n {{#each tabs}}\r\n <li class="tabs__item{{attribute \' tabs__item--selected\' selected}}" hawksearch-tab-value="{{value}}">\r\n {{title}}\r\n {{#if @root.displayCount}}({{count}}){{/if}}\r\n </li>\r\n {{/each}}\r\n</ul>',this.bindFromEvent=!0}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.values)||void 0===t?void 0:t.length)}getContentModel(){var e,t;return{displayCount:null===(e=this.data.displayCount)||void 0===e||e,tabs:null!==(t=this.data.values)&&void 0!==t?t:[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-tab-value]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-tab-value");hn.selectTab(null!=t?t:void 0)}))}))}},tooltip:class extends r{constructor(){super(...arguments),this.componentName="tooltip",this.defaultHtml='<span class="tooltip" hawksearch-tooltip>\r\n <span class="tooltip__icon">\r\n <hawksearch-icon name="help" class="facet__heading__tooltip"></hawksearch-icon>\r\n </span>\r\n <span class="tooltip__content" hawksearch-tooltip-content>{{text}}</span>\r\n</span>',this.bindFromEvent=!1}get text(){var e;return null!==(e=this.getAttribute("text"))&&void 0!==e?e:void 0}renderContent(){return!!this.text}getContentModel(){return{text:this.text}}onRender(){var e;super.onRender(),null===(e=this.rootElement.querySelector("[hawksearch-tooltip]"))||void 0===e||e.addEventListener("mouseover",(e=>{const t=e.currentTarget,n=this.rootElement.querySelector("[hawksearch-tooltip-content]");if(!n)return;n.style.removeProperty("top"),n.style.removeProperty("right");const r=window.innerWidth,i=t.getBoundingClientRect(),a=i.x+i.width;n.style.top=`${i.top}px`,r-a<370&&(n.style.right="20px")}))}}};Object.entries(Mn).forEach((([e,t])=>{customElements.define(`hawksearch-${e}`,t)})),window.addEventListener("popstate",(e=>{const t=e.state;HawkSearch.searchRequest=t.searchRequest,HawkSearch.searchResponse=t.searchResponse,hn.bindComponents(t.searchResponse)})),window.dispatchEvent(new CustomEvent("hawksearch:initialized"))})()})();
2
+ (()=>{var e={675:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0;var i=r(n(2)),a=r(n(45)),s=n(46),o=n(51),l=r(n(52)),c=r(n(49)),u=r(n(44)),h=i.default.create;function d(){var e=h();return e.compile=function(t,n){return o.compile(t,n,e)},e.precompile=function(t,n){return o.precompile(t,n,e)},e.AST=a.default,e.Compiler=o.Compiler,e.JavaScriptCompiler=l.default,e.Parser=s.parser,e.parse=s.parse,e.parseWithoutProcessing=s.parseWithoutProcessing,e}var p=d();p.create=d,u.default(p),p.Visitor=c.default,p.default=p,t.default=p,e.exports=t.default},function(e,t){"use strict";t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,n){"use strict";var r=n(3).default,i=n(1).default;t.__esModule=!0;var a=r(n(4)),s=i(n(37)),o=i(n(6)),l=r(n(5)),c=r(n(38)),u=i(n(44));function h(){var e=new a.HandlebarsEnvironment;return l.extend(e,a),e.SafeString=s.default,e.Exception=o.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var d=h();d.create=h,u.default(d),d.default=d,t.default=d,e.exports=t.default},function(e,t){"use strict";t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__esModule=!0},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0,t.HandlebarsEnvironment=h;var i=n(5),a=r(n(6)),s=n(10),o=n(30),l=r(n(32)),c=n(33);t.VERSION="4.7.7",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var u="[object Object]";function h(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},s.registerDefaultHelpers(this),o.registerDefaultDecorators(this)}h.prototype={constructor:h,logger:l.default,log:l.default.log,registerHelper:function(e,t){if(i.toString.call(e)===u){if(t)throw new a.default("Arg not supported with multiple helpers");i.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(i.toString.call(e)===u)i.extend(this.partials,e);else{if(void 0===t)throw new a.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(i.toString.call(e)===u){if(t)throw new a.default("Arg not supported with multiple decorators");i.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var d=l.default.log;t.log=d,t.createFrame=i.createFrame,t.logger=l.default},function(e,t){"use strict";t.__esModule=!0,t.extend=s,t.indexOf=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return i.test(e)?e.replace(r,a):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=s({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,i=/[&<>"'`=]/;function a(e){return n[e]}function s(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var o=Object.prototype.toString;t.toString=o;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===o.call(e)};t.isArray=c},function(e,t,n){"use strict";var r=n(7).default;t.__esModule=!0;var i=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function a(e,t){var n=t&&t.loc,s=void 0,o=void 0,l=void 0,c=void 0;n&&(s=n.start.line,o=n.end.line,l=n.start.column,c=n.end.column,e+=" - "+s+":"+l);for(var u=Error.prototype.constructor.call(this,e),h=0;h<i.length;h++)this[i[h]]=u[i[h]];Error.captureStackTrace&&Error.captureStackTrace(this,a);try{n&&(this.lineNumber=s,this.endLineNumber=o,r?(Object.defineProperty(this,"column",{value:l,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=l,this.endColumn=c))}catch(e){}}a.prototype=new Error,t.default=a,e.exports=t.default},function(e,t,n){e.exports={default:n(8),__esModule:!0}},function(e,t,n){var r=n(9);e.exports=function(e,t,n){return r.setDesc(e,t,n)}},function(e,t){var n=Object;e.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){i.default(e),a.default(e),s.default(e),o.default(e),l.default(e),c.default(e),u.default(e)},t.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])};var i=r(n(11)),a=r(n(12)),s=r(n(25)),o=r(n(26)),l=r(n(27)),c=r(n(28)),u=r(n(29))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var i=n.inverse,a=n.fn;if(!0===t)return a(this);if(!1===t||null==t)return i(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var s=r.createFrame(n.data);s.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:s}}return a(t,n)}))},e.exports=t.default},function(e,t,n){(function(r){"use strict";var i=n(13).default,a=n(1).default;t.__esModule=!0;var s=n(5),o=a(n(6));t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new o.default("Must pass iterator to #each");var n,a=t.fn,l=t.inverse,c=0,u="",h=void 0,d=void 0;function p(t,n,r){h&&(h.key=t,h.index=n,h.first=0===n,h.last=!!r,d&&(h.contextPath=d+t)),u+=a(e[t],{data:h,blockParams:s.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=s.appendContextPath(t.data.contextPath,t.ids[0])+"."),s.isFunction(e)&&(e=e.call(this)),t.data&&(h=s.createFrame(t.data)),e&&"object"==typeof e)if(s.isArray(e))for(var v=e.length;c<v;c++)c in e&&p(c,c,c===e.length-1);else if(r.Symbol&&e[r.Symbol.iterator]){for(var f=[],m=e[r.Symbol.iterator](),g=m.next();!g.done;g=m.next())f.push(g.value);for(v=(e=f).length;c<v;c++)p(c,c,c===e.length-1)}else n=void 0,i(e).forEach((function(e){void 0!==n&&p(n,c-1),n=e,c++})),void 0!==n&&p(n,c-1,!0);return 0===c&&(u=l(this)),u}))},e.exports=t.default}).call(t,function(){return this}())},function(e,t,n){e.exports={default:n(14),__esModule:!0}},function(e,t,n){n(15),e.exports=n(21).Object.keys},function(e,t,n){var r=n(16);n(18)("keys",(function(e){return function(t){return e(r(t))}}))},function(e,t,n){var r=n(17);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(19),i=n(21),a=n(24);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],s={};s[e]=t(n),r(r.S+r.F*a((function(){n(1)})),"Object",s)}},function(e,t,n){var r=n(20),i=n(21),a=n(22),s="prototype",o=function(e,t,n){var l,c,u,h=e&o.F,d=e&o.G,p=e&o.S,v=e&o.P,f=e&o.B,m=e&o.W,g=d?i:i[t]||(i[t]={}),y=d?r:p?r[t]:(r[t]||{})[s];for(l in d&&(n=t),n)(c=!h&&y&&l in y)&&l in g||(u=c?y[l]:n[l],g[l]=d&&"function"!=typeof y[l]?n[l]:f&&c?a(u,r):m&&y[l]==u?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[s]=e[s],t}(u):v&&"function"==typeof u?a(Function.call,u):u,v&&((g[s]||(g[s]={}))[l]=u))};o.F=1,o.G=2,o.S=4,o.P=8,o.B=16,o.W=32,e.exports=o},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(23);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0;var i=r(n(6));t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0;var i=n(5),a=r(n(6));t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new a.default("#if requires exactly one argument");return i.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||i.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,n){if(2!=arguments.length)throw new a.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),t[0]=i,e.log.apply(e,t)}))},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",(function(e,t,n){return e?n.lookupProperty(e,t):e}))},e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0;var i=n(5),a=r(n(6));t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new a.default("#with requires exactly one argument");i.isFunction(e)&&(e=e.call(this));var n=t.fn;if(i.isEmpty(e))return t.inverse(this);var r=t.data;return t.data&&t.ids&&((r=i.createFrame(t.data)).contextPath=i.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:r,blockParams:i.blockParams([e],[r&&r.contextPath])})}))},e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){i.default(e)};var i=r(n(31))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5);t.default=function(e){e.registerDecorator("inline",(function(e,t,n,i){var a=e;return t.partials||(t.partials={},a=function(i,a){var s=n.partials;n.partials=r.extend({},s,t.partials);var o=e(i,a);return n.partials=s,o}),t.partials[i.args[0]]=i.fn,a}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(i.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];console[t].apply(console,r)}}};t.default=i,e.exports=t.default},function(e,t,n){"use strict";var r=n(34).default,i=n(13).default,a=n(3).default;t.__esModule=!0,t.createProtoAccessControl=function(e){var t=r(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var n=r(null);return n.__proto__=!1,{properties:{whitelist:s.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:s.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,n){return function(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==l[e]&&(l[e]=!0,o.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}("function"==typeof e?t.methods:t.properties,n)},t.resetLoggedProperties=function(){i(l).forEach((function(e){delete l[e]}))};var s=n(36),o=a(n(32)),l=r(null)},function(e,t,n){e.exports={default:n(35),__esModule:!0}},function(e,t,n){var r=n(9);e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){"use strict";var r=n(34).default;t.__esModule=!0,t.createNewLookupObject=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.extend.apply(void 0,[r(null)].concat(t))};var i=n(5)},function(e,t){"use strict";function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default},function(e,t,n){"use strict";var r=n(39).default,i=n(13).default,a=n(3).default,s=n(1).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,n=c.COMPILER_REVISION;if(!(t>=c.LAST_COMPATIBLE_COMPILER_REVISION&&t<=c.COMPILER_REVISION)){if(t<c.LAST_COMPATIBLE_COMPILER_REVISION){var r=c.REVISION_CHANGES[n],i=c.REVISION_CHANGES[t];throw new l.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new l.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(e,t){if(!t)throw new l.default("No environment passed to template");if(!e||!e.main)throw new l.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&7===e.compiler[0],a={strict:function(e,t,n){if(!e||!(t in e))throw new l.default('"'+t+'" not defined in '+e,{loc:n});return a.lookupProperty(e,t)},lookupProperty:function(e,t){var n=e[t];return null==n||Object.prototype.hasOwnProperty.call(e,t)||d.resultIsAllowed(n,a.protoAccessControl,t)?n:void 0},lookup:function(e,t){for(var n=e.length,r=0;r<n;r++)if(null!=(e[r]&&a.lookupProperty(e[r],t)))return e[r][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:o.escapeExpression,invokePartial:function(n,r,i){i.hash&&(r=o.extend({},r,i.hash),i.ids&&(i.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,i);var a=o.extend({},i,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),s=t.VM.invokePartial.call(this,n,r,a);if(null==s&&t.compile&&(i.partials[i.name]=t.compile(n,e.compilerOptions,t),s=i.partials[i.name](r,a)),null!=s){if(i.indent){for(var c=s.split("\n"),u=0,h=c.length;u<h&&(c[u]||u+1!==h);u++)c[u]=i.indent+c[u];s=c.join("\n")}return s}throw new l.default("The partial "+i.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,r,i){var a=this.programs[e],s=this.fn(e);return t||i||r||n?a=p(this,e,s,t,n,r,i):a||(a=this.programs[e]=p(this,e,s)),a},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=o.extend({},t,e)),n},nullContext:r({}),noop:t.VM.noop,compilerInfo:e.compiler};function s(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=n.data;s._setup(n),!n.partial&&e.useData&&(r=f(t,r));var i=void 0,o=e.useBlockParams?[]:void 0;function l(t){return""+e.main(a,t,a.helpers,a.partials,r,o,i)}return e.useDepths&&(i=n.depths?t!=n.depths[0]?[t].concat(n.depths):n.depths:[t]),(l=m(e.main,l,a,n.depths||[],r,o))(t,n)}return s.isTop=!0,s._setup=function(r){if(r.partial)a.protoAccessControl=r.protoAccessControl,a.helpers=r.helpers,a.partials=r.partials,a.decorators=r.decorators,a.hooks=r.hooks;else{var s=o.extend({},t.helpers,r.helpers);!function(e,t){i(e).forEach((function(n){var r=e[n];e[n]=function(e,t){var n=t.lookupProperty;return h.wrapHelper(e,(function(e){return o.extend({lookupProperty:n},e)}))}(r,t)}))}(s,a),a.helpers=s,e.usePartial&&(a.partials=a.mergeIfNeeded(r.partials,t.partials)),(e.usePartial||e.useDecorators)&&(a.decorators=o.extend({},t.decorators,r.decorators)),a.hooks={},a.protoAccessControl=d.createProtoAccessControl(r);var l=r.allowCallsToHelperMissing||n;u.moveHelperToHooks(a,"helperMissing",l),u.moveHelperToHooks(a,"blockHelperMissing",l)}},s._child=function(t,n,r,i){if(e.useBlockParams&&!r)throw new l.default("must pass block params");if(e.useDepths&&!i)throw new l.default("must pass parent depths");return p(a,t,e[t],n,0,r,i)},s},t.wrapProgram=p,t.resolvePartial=function(e,t,n){return e?e.call||n.name||(n.name=e,e=n.partials[e]):e="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name],e},t.invokePartial=function(e,t,n){var r=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var i=void 0;if(n.fn&&n.fn!==v&&function(){n.data=c.createFrame(n.data);var e=n.fn;i=n.data["partial-block"]=function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=c.createFrame(n.data),n.data["partial-block"]=r,e(t,n)},e.partials&&(n.partials=o.extend({},n.partials,e.partials))}(),void 0===e&&i&&(e=i),void 0===e)throw new l.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},t.noop=v;var o=a(n(5)),l=s(n(6)),c=n(4),u=n(10),h=n(43),d=n(33);function p(e,t,n,r,i,a,s){function o(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=s;return!s||t==s[0]||t===e.nullContext&&null===s[0]||(o=[t].concat(s)),n(e,t,e.helpers,e.partials,i.data||r,a&&[i.blockParams].concat(a),o)}return(o=m(n,o,e,s,r,a)).program=t,o.depth=s?s.length:0,o.blockParams=i||0,o}function v(){return""}function f(e,t){return t&&"root"in t||((t=t?c.createFrame(t):{}).root=e),t}function m(e,t,n,r,i,a){if(e.decorator){var s={};t=e.decorator(t,s,n,r&&r[0],i,a,r),o.extend(t,s)}return t}},function(e,t,n){e.exports={default:n(40),__esModule:!0}},function(e,t,n){n(41),e.exports=n(21).Object.seal},function(e,t,n){var r=n(42);n(18)("seal",(function(e){return function(t){return e&&r(t)?e(t):t}}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){return"function"!=typeof e?e:function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=t(n),e.apply(this,arguments)}}},function(e,t){(function(n){"use strict";t.__esModule=!0,t.default=function(e){var t=void 0!==n?n:window,r=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=r),e}},e.exports=t.default}).call(t,function(){return this}())},function(e,t){"use strict";t.__esModule=!0;var n={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!n.helpers.scopedId(e)&&!e.depth}}};t.default=n,e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default,i=n(3).default;t.__esModule=!0,t.parseWithoutProcessing=u,t.parse=function(e,t){var n=u(e,t);return new s.default(t).accept(n)};var a=r(n(47)),s=r(n(48)),o=i(n(50)),l=n(5);t.parser=a.default;var c={};function u(e,t){return"Program"===e.type?e:(a.default.yy=c,c.locInfo=function(e){return new c.SourceLocation(t&&t.srcName,e)},a.default.parse(e))}l.extend(c,o)},function(e,t){"use strict";t.__esModule=!0;var n=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,n,r,i,a,s){var o=a.length-1;switch(i){case 1:return a[o-1];case 2:this.$=r.prepareProgram(a[o]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=a[o];break;case 9:this.$={type:"CommentStatement",value:r.stripComment(a[o]),strip:r.stripFlags(a[o],a[o]),loc:r.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:a[o],value:a[o],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(a[o-2],a[o-1],a[o],this._$);break;case 12:this.$={path:a[o-3],params:a[o-2],hash:a[o-1]};break;case 13:this.$=r.prepareBlock(a[o-3],a[o-2],a[o-1],a[o],!1,this._$);break;case 14:this.$=r.prepareBlock(a[o-3],a[o-2],a[o-1],a[o],!0,this._$);break;case 15:this.$={open:a[o-5],path:a[o-4],params:a[o-3],hash:a[o-2],blockParams:a[o-1],strip:r.stripFlags(a[o-5],a[o])};break;case 16:case 17:this.$={path:a[o-4],params:a[o-3],hash:a[o-2],blockParams:a[o-1],strip:r.stripFlags(a[o-5],a[o])};break;case 18:this.$={strip:r.stripFlags(a[o-1],a[o-1]),program:a[o]};break;case 19:var l=r.prepareBlock(a[o-2],a[o-1],a[o],a[o],!1,this._$),c=r.prepareProgram([l],a[o-1].loc);c.chained=!0,this.$={strip:a[o-2].strip,program:c,chain:!0};break;case 21:this.$={path:a[o-1],strip:r.stripFlags(a[o-2],a[o])};break;case 22:case 23:this.$=r.prepareMustache(a[o-3],a[o-2],a[o-1],a[o-4],r.stripFlags(a[o-4],a[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:a[o-3],params:a[o-2],hash:a[o-1],indent:"",strip:r.stripFlags(a[o-4],a[o]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(a[o-2],a[o-1],a[o],this._$);break;case 26:this.$={path:a[o-3],params:a[o-2],hash:a[o-1],strip:r.stripFlags(a[o-4],a[o])};break;case 29:this.$={type:"SubExpression",path:a[o-3],params:a[o-2],hash:a[o-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:a[o],loc:r.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:r.id(a[o-2]),value:a[o],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(a[o-1]);break;case 35:this.$={type:"StringLiteral",value:a[o],original:a[o],loc:r.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(a[o]),original:Number(a[o]),loc:r.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===a[o],original:"true"===a[o],loc:r.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:r.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:r.locInfo(this._$)};break;case 42:this.$=r.preparePath(!0,a[o],this._$);break;case 43:this.$=r.preparePath(!1,a[o],this._$);break;case 44:a[o-2].push({part:r.id(a[o]),original:a[o],separator:a[o-1]}),this.$=a[o-2];break;case 45:this.$=[{part:r.id(a[o]),original:a[o]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:a[o-1].push(a[o]);break;case 98:case 100:this.$=[a[o]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=[0],n=[null],r=[],i=this.table,a="",s=0,o=0,l=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var c=this.lexer.yylloc;r.push(c);var u=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var h,d,p,v,f,m,g,y,k,w,b={};;){if(p=t[t.length-1],this.defaultActions[p]?v=this.defaultActions[p]:(null==h&&(w=void 0,"number"!=typeof(w=this.lexer.lex()||1)&&(w=this.symbols_[w]||w),h=w),v=i[p]&&i[p][h]),void 0===v||!v.length||!v[0]){var _="";if(!l){for(m in k=[],i[p])this.terminals_[m]&&m>2&&k.push("'"+this.terminals_[m]+"'");_=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[h]||h)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(_,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,loc:c,expected:k})}}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+p+", token: "+h);switch(v[0]){case 1:t.push(h),n.push(this.lexer.yytext),r.push(this.lexer.yylloc),t.push(v[1]),h=null,d?(h=d,d=null):(o=this.lexer.yyleng,a=this.lexer.yytext,s=this.lexer.yylineno,c=this.lexer.yylloc,l>0&&l--);break;case 2:if(g=this.productions_[v[1]][1],b.$=n[n.length-g],b._$={first_line:r[r.length-(g||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(g||1)].first_column,last_column:r[r.length-1].last_column},u&&(b._$.range=[r[r.length-(g||1)].range[0],r[r.length-1].range[1]]),void 0!==(f=this.performAction.call(b,a,o,s,this.yy,v[1],n,r)))return f;g&&(t=t.slice(0,-1*g*2),n=n.slice(0,-1*g),r=r.slice(0,-1*g)),t.push(this.productions_[v[1]][0]),n.push(b.$),r.push(b._$),y=i[t[t.length-2]][t[t.length-1]],t.push(y);break;case 3:return!0}}return!0}},t={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,n,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;s<a.length&&(!(n=this._input.match(this.rules[a[s]]))||t&&!(n[0].length>t[0].length)||(t=n,r=s,this.options.flex));s++);return t?((i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,a[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,n,r){function i(e,n){return t.yytext=t.yytext.substring(e,t.yyleng-n+e)}switch(n){case 0:if("\\\\"===t.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(i(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};function n(){this.yy={}}return e.lexer=t,n.prototype=e,e.Parser=n,new n}();t.default=n,e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0;var i=r(n(49));function a(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function s(e,t,n){void 0===t&&(t=e.length);var r=e[t-1],i=e[t-2];return r?"ContentStatement"===r.type?(i||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:n}function o(e,t,n){void 0===t&&(t=-1);var r=e[t+1],i=e[t+2];return r?"ContentStatement"===r.type?(i||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:n}function l(e,t,n){var r=e[null==t?0:t+1];if(r&&"ContentStatement"===r.type&&(n||!r.rightStripped)){var i=r.value;r.value=r.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==i}}function c(e,t,n){var r=e[null==t?e.length-1:t-1];if(r&&"ContentStatement"===r.type&&(n||!r.leftStripped)){var i=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==i,r.leftStripped}}a.prototype=new i.default,a.prototype.Program=function(e){var t=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=e.body,i=0,a=r.length;i<a;i++){var u=r[i],h=this.accept(u);if(h){var d=s(r,i,n),p=o(r,i,n),v=h.openStandalone&&d,f=h.closeStandalone&&p,m=h.inlineStandalone&&d&&p;h.close&&l(r,i,!0),h.open&&c(r,i,!0),t&&m&&(l(r,i),c(r,i)&&"PartialStatement"===u.type&&(u.indent=/([ \t]+$)/.exec(r[i-1].original)[1])),t&&v&&(l((u.program||u.inverse).body),c(r,i)),t&&f&&(l(r,i),c((u.inverse||u.program).body))}}return e},a.prototype.BlockStatement=a.prototype.DecoratorBlock=a.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,n=e.program&&e.inverse,r=n,i=n;if(n&&n.chained)for(r=n.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var a={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:o(t.body),closeStandalone:s((r||t).body)};if(e.openStrip.close&&l(t.body,null,!0),n){var u=e.inverseStrip;u.open&&c(t.body,null,!0),u.close&&l(r.body,null,!0),e.closeStrip.open&&c(i.body,null,!0),!this.options.ignoreStandalone&&s(t.body)&&o(r.body)&&(c(t.body),l(r.body))}else e.closeStrip.open&&c(t.body,null,!0);return a},a.prototype.Decorator=a.prototype.MustacheStatement=function(e){return e.strip},a.prototype.PartialStatement=a.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t.default=a,e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0;var i=r(n(6));function a(){this.parents=[]}function s(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function o(e){s.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function l(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}a.prototype={constructor:a,mutating:!1,acceptKey:function(e,t){var n=this.accept(e[t]);if(this.mutating){if(n&&!a.prototype[n.type])throw new i.default('Unexpected node type "'+n.type+'" found when accepting '+t+" on "+e.type);e[t]=n}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new i.default(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,n=e.length;t<n;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,n--)},accept:function(e){if(e){if(!this[e.type])throw new i.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:!1!==t?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:s,Decorator:s,BlockStatement:o,DecoratorBlock:o,PartialStatement:l,PartialBlockStatement:function(e){l.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:s,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t.default=a,e.exports=t.default},function(e,t,n){"use strict";var r=n(1).default;t.__esModule=!0,t.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},t.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},t.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},t.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},t.preparePath=function(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",a=[],s=0,o=0,l=t.length;o<l;o++){var c=t[o].part,u=t[o].original!==c;if(r+=(t[o].separator||"")+c,u||".."!==c&&"."!==c&&"this"!==c)a.push(c);else{if(a.length>0)throw new i.default("Invalid path: "+r,{loc:n});".."===c&&s++}}return{type:"PathExpression",data:e,depth:s,parts:a,original:r,loc:n}},t.prepareMustache=function(e,t,n,r,i,a){var s=r.charAt(3)||r.charAt(2),o="{"!==s&&"&"!==s;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:o,strip:i,loc:this.locInfo(a)}},t.prepareRawBlock=function(e,t,n,r){a(e,n);var i={type:"Program",body:t,strip:{},loc:r=this.locInfo(r)};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},t.prepareBlock=function(e,t,n,r,s,o){r&&r.path&&a(e,r);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(n){if(l)throw new i.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),u=n.strip,c=n.program}return s&&(s=c,c=t,t=s),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:r&&r.strip,loc:this.locInfo(o)}},t.prepareProgram=function(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},t.preparePartialBlock=function(e,t,n,r){return a(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}};var i=r(n(6));function a(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new i.default(e.path.original+" doesn't match "+t,n)}}},function(e,t,n){"use strict";var r=n(34).default,i=n(1).default;t.__esModule=!0,t.Compiler=c,t.precompile=function(e,t,n){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new a.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);"data"in(t=t||{})||(t.data=!0),t.compat&&(t.useDepths=!0);var r=n.parse(e,t),i=(new n.Compiler).compile(r,t);return(new n.JavaScriptCompiler).compile(i,t)},t.compile=function(e,t,n){if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new a.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(t=s.extend({},t))||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function i(){var r=n.parse(e,t),i=(new n.Compiler).compile(r,t),a=(new n.JavaScriptCompiler).compile(i,t,void 0,!0);return n.template(a)}function o(e,t){return r||(r=i()),r.call(this,e,t)}return o._setup=function(e){return r||(r=i()),r._setup(e)},o._child=function(e,t,n,a){return r||(r=i()),r._child(e,t,n,a)},o};var a=i(n(6)),s=n(5),o=i(n(45)),l=[].slice;function c(){}function u(e,t){if(e===t)return!0;if(s.isArray(e)&&s.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!u(e[n],t[n]))return!1;return!0}}function h(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}c.prototype={compiler:c,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var n=0;n<t;n++){var r=this.opcodes[n],i=e.opcodes[n];if(r.opcode!==i.opcode||!u(r.args,i.args))return!1}for(t=this.children.length,n=0;n<t;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},guid:0,compile:function(e,t){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[],t.knownHelpers=s.extend(r(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},t.knownHelpers),this.accept(e)},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),n=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[n]=t,this.useDepths=this.useDepths||t.useDepths,n},accept:function(e){if(!this[e.type])throw new a.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,n=t.length,r=0;r<n;r++)this.accept(t[r]);return this.options.blockParams.shift(),this.isSimple=1===n,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){h(e);var t=e.program,n=e.inverse;t=t&&this.compileProgram(t),n=n&&this.compileProgram(n);var r=this.classifySexpr(e);"helper"===r?this.helperSexpr(e,t,n):"simple"===r?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,n),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),n=this.setupFullMustacheParams(e,t,void 0),r=e.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,r.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var n=e.params;if(n.length>1)throw new a.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var r=e.name.original,i="SubExpression"===e.name.type;i&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var s=e.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",i,r,s),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){h(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,n){var r=e.path,i=r.parts[0],a=null!=t||null!=n;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",n),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,a)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,n){var r=this.setupFullMustacheParams(e,t,n),i=e.path,s=i.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",r.length,s);else{if(this.options.knownHelpersOnly)throw new a.default("You specified knownHelpersOnly, but used the unknown helper "+s,e);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,o.default.helpers.simpleId(i))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],n=o.default.helpers.scopedId(e),r=!e.depth&&!n&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,n=0,r=t.length;for(this.opcode("pushHash");n<r;n++)this.pushParam(t[n].value);for(;n--;)this.opcode("assignToHash",t[n].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:l.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=o.default.helpers.simpleId(e.path),n=t&&!!this.blockParamIndex(e.path.parts[0]),r=!n&&o.default.helpers.helperExpression(e),i=!n&&(r||t);if(i&&!r){var a=e.path.parts[0],s=this.options;s.knownHelpers[a]?r=!0:s.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(e){for(var t=0,n=e.length;t<n;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var n=void 0;if(!e.parts||o.default.helpers.scopedId(e)||e.depth||(n=this.blockParamIndex(e.parts[0])),n){var r=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,r)}else(t=e.original||t).replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,n,r){var i=e.params;return this.pushParams(i),this.opcode("pushProgram",t),this.opcode("pushProgram",n),e.hash?this.accept(e.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(e){for(var t=0,n=this.options.blockParams.length;t<n;t++){var r=this.options.blockParams[t],i=r&&s.indexOf(r,e);if(r&&i>=0)return[t,i]}}}},function(e,t,n){"use strict";var r=n(13).default,i=n(1).default;t.__esModule=!0;var a=n(4),s=i(n(6)),o=n(5),l=i(n(53));function c(e){this.value=e}function u(){}u.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=a.COMPILER_REVISION;return[e,a.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,n){return o.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,n,r){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,o=void 0,l=void 0,c=void 0;for(l=0,c=i.length;l<c;l++)a=i[l],this.source.currentLocation=a.loc,o=o||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new s.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),r?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(r);if(this.isChild)return u;var h={compiler:this.compilerInfo(),main:u};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var d=this.context,p=d.programs,v=d.decorators;for(l=0,c=p.length;l<c;l++)p[l]&&(h[l]=p[l],v[l]&&(h[l+"_d"]=v[l],h.useDecorators=!0));return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),r?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),t.srcName?(h=h.toStringWithSourceMap({file:t.destName})).map=h.map&&h.map.toString():h=h.toString()),h},preamble:function(){this.lastContext=0,this.source=new l.default(this.options.srcName),this.decorators=new l.default(this.options.srcName)},createFunctionContext:function(e){var t=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var a=0;r(this.aliases).forEach((function(e){var r=t.aliases[e];r.children&&r.referenceCount>1&&(n+=", alias"+ ++a+"="+e,r.children[0]="alias"+a)})),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var o=this.mergeSource(n);return e?(s.push(o),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),") {\n ",o,"}"])},mergeSource:function(e){var t=this.environment.isSimple,n=!this.forceBuffer,r=void 0,i=void 0,a=void 0,s=void 0;return this.source.each((function(e){e.appendToBuffer?(a?e.prepend(" + "):a=e,s=e):(a&&(i?a.prepend("buffer += "):r=!0,s.add(";"),a=s=void 0),i=!0,t||(n=!1))})),n?a?(a.prepend("return "),s.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),s.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(t,"call",n))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var n=this.topStack();t.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,n,r){var i=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[i++])),this.resolvePath("context",e,i,t,n)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,n)},resolvePath:function(e,t,n,r,i){var a=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,n,r){var i=t.popStack(),a=0,s=n.length;for(e&&s--;a<s;a++)i=t.nameLookup(i,n[a],r);return e?[t.aliasable("container.strict"),"(",i,", ",t.quotedString(n[a]),", ",JSON.stringify(t.source.currentLocation)," )"]:i}(this.options.strict&&i,this,t,e));else for(var s=t.length;n<s;n++)this.replaceStack((function(i){var s=a.nameLookup(i,t[n],e);return r?[" && ",s]:[" != null ? ",s," : ",i]}))},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var n=this.nameLookup("decorators",t,"decorator"),r=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",r])," || fn;"])},invokeHelper:function(e,t,n){var r=this.popStack(),i=this.setupHelper(e,t),a=[];n&&a.push(i.name),a.push(r),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var s=["(",this.itemsSeparatedBy(a,"||"),")"],o=this.source.functionCall(s,"call",i.callParams);this.push(o)},itemsSeparatedBy:function(e,t){var n=[];n.push(e[0]);for(var r=1;r<e.length;r++)n.push(t,e[r]);return n},invokeKnownHelper:function(e,t){var n=this.setupHelper(e,t);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var n=this.popStack();this.emptyHash();var r=this.setupHelper(0,e,t),i=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",e,"helper")," || ",n,")"];this.options.strict||(i[0]="(helper = ",i.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",i,r.paramsInit?["),(",r.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",r.callParams)," : helper))"])},invokePartial:function(e,t,n){var r=[],i=this.setupParams(t,1,r);e&&(t=this.popStack(),delete i.name),n&&(i.indent=JSON.stringify(n)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",e?r.unshift(t):r.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),r.push(i),this.push(this.source.functionCall("container.invokePartial","",r))},assignToHash:function(e){var t=this.popStack(),n=void 0,r=void 0,i=void 0;this.trackIds&&(i=this.popStack()),this.stringParams&&(r=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[e]=n),r&&(a.types[e]=r),i&&(a.ids[e]=i),a.values[e]=t},pushId:function(e,t,n){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(e,t){for(var n=e.children,r=void 0,i=void 0,a=0,s=n.length;a<s;a++){r=n[a],i=new this.compiler;var o=this.matchExistingProgram(r);if(null==o){this.context.programs.push("");var l=this.context.programs.length;r.index=l,r.name="program"+l,this.context.programs[l]=i.compile(r,t,this.context,!this.precompile),this.context.decorators[l]=i.decorators,this.context.environments[l]=r,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams,r.useDepths=this.useDepths,r.useBlockParams=this.useBlockParams}else r.index=o.index,r.name="program"+o.index,this.useDepths=this.useDepths||o.useDepths,this.useBlockParams=this.useBlockParams||o.useBlockParams}},matchExistingProgram:function(e){for(var t=0,n=this.context.environments.length;t<n;t++){var r=this.context.environments[t];if(r&&r.equals(e))return r}},programExpression:function(e){var t=this.environment.children[e],n=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof c||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new c(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],n=void 0,r=void 0,i=void 0;if(!this.isInline())throw new s.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof c)t=["(",n=[a.value]],i=!0;else{r=!0;var o=this.incrStack();t=["((",this.push(o)," = ",a,")"],n=this.topStack()}var l=e.call(this,n);i||this.popStack(),r&&this.stackSlot--,this.push(t.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r instanceof c)this.compileStack.push(r);else{var i=this.incrStack();this.pushSource([i," = ",r,";"]),this.compileStack.push(i)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),n=(t?this.inlineStack:this.compileStack).pop();if(!e&&n instanceof c)return n.value;if(!t){if(!this.stackSlot)throw new s.default("Invalid stack pop");this.stackSlot--}return n},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof c?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):((t=this.aliases[e]=this.source.wrap(e)).aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,n){var r=[];return{params:r,paramsInit:this.setupHelperArgs(t,e,r,n),name:this.nameLookup("helpers",t,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(r)}},setupParams:function(e,t,n){var r={},i=[],a=[],s=[],o=!n,l=void 0;o&&(n=[]),r.name=this.quotedString(e),r.hash=this.popStack(),this.trackIds&&(r.hashIds=this.popStack()),this.stringParams&&(r.hashTypes=this.popStack(),r.hashContexts=this.popStack());var c=this.popStack(),u=this.popStack();(u||c)&&(r.fn=u||"container.noop",r.inverse=c||"container.noop");for(var h=t;h--;)l=this.popStack(),n[h]=l,this.trackIds&&(s[h]=this.popStack()),this.stringParams&&(a[h]=this.popStack(),i[h]=this.popStack());return o&&(r.args=this.source.generateArray(n)),this.trackIds&&(r.ids=this.source.generateArray(s)),this.stringParams&&(r.types=this.source.generateArray(a),r.contexts=this.source.generateArray(i)),this.options.data&&(r.data="data"),this.useBlockParams&&(r.blockParams="blockParams"),r},setupHelperArgs:function(e,t,n,r){var i=this.setupParams(e,t,n);return i.loc=JSON.stringify(this.source.currentLocation),i=this.objectLiteral(i),r?(this.useRegister("options"),n.push("options"),["options=",i]):n?(n.push(i),""):i}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=u.RESERVED_WORDS={},n=0,r=e.length;n<r;n++)t[e[n]]=!0}(),u.isValidJavaScriptVariableName=function(e){return!u.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t.default=u,e.exports=t.default},function(e,t,n){"use strict";var r=n(13).default;t.__esModule=!0;var i=n(5),a=void 0;function s(e,t,n){if(i.isArray(e)){for(var r=[],a=0,s=e.length;a<s;a++)r.push(t.wrap(e[a],n));return r}return"boolean"==typeof e||"number"==typeof e?e+"":e}function o(e){this.srcFile=e,this.source=[]}a||((a=function(e,t,n,r){this.src="",r&&this.add(r)}).prototype={add:function(e){i.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){i.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),o.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each((function(t){e.add([" ",t,"\n"])})),e},each:function(e){for(var t=0,n=this.source.length;t<n;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new a(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof a?e:(e=s(e,this,t),new a(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,n){return n=this.generateList(n),this.wrap([e,t?"."+t+"(":"(",n,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=this,n=[];r(e).forEach((function(r){var i=s(e[r],t);"undefined"!==i&&n.push([t.quotedString(r),":",i])}));var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},generateList:function(e){for(var t=this.empty(),n=0,r=e.length;n<r;n++)n&&t.add(","),t.add(s(e[n],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t.default=o,e.exports=t.default}])},e.exports=t()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{"use strict";var e=n(675);const t=n.p+"styles.deb5d9247e589cc159f67dd3a83d6112.css";class r extends HTMLElement{constructor(){super(...arguments),this.handlebars=HawkSearch.handlebars}get configuration(){var e;return null===(e=HawkSearch.config.components)||void 0===e?void 0:e[this.componentName]}get shadowDom(){var e,t;return void 0!==(null===(e=this.configuration)||void 0===e?void 0:e.shadowDom)?this.configuration.shadowDom:null===(t=HawkSearch.config.shadowDom)||void 0===t||t}get rootElement(){var e;return null!==(e=this.shadowRoot)&&void 0!==e?e:this}get hasContentTemplateOverride(){return!!this.innerHTML.trim().length}get eventName(){if(!this.bindFromEvent)return;let e=`hawksearch:bind-${this.componentName}`;return this.eventFilter&&(e=`${e}:${this.eventFilter}`),e}connectedCallback(){this.shadowDom&&this.attachShadow({mode:"open"}),this.registerHelpers();const e=this.getCustomTemplateHtml(),t=/\[\[((?!\[).+?)\]\]/g;let n=null!=e?e:this.defaultHtml;for(;t.test(n);)n=n.replace(t,"{{$1}}");this.template=this.handlebars.compile(n),setTimeout((()=>{this.render()})),this.eventName&&(this.bindEventHandler=e=>{this.data=e.detail,this.render()},window.addEventListener(this.eventName,this.bindEventHandler))}disconnectedCallback(){this.eventName&&this.bindEventHandler&&window.removeEventListener(this.eventName,this.bindEventHandler)}registerHelpers(){}render(){var e,n;if(!this.template||!this.renderContent())return this.rootElement.replaceChildren(),void(this.style.display="none");const r=this.getContentModel(),i=new CustomEvent(`hawksearch:before-${this.componentName}-rendered`,{detail:{component:this,contentModel:r}});dispatchEvent(i);const a=[];let s=[];if(!1!==(null===(e=HawkSearch.config.css)||void 0===e?void 0:e.defaultStyles)&&s.push(t),null===(n=HawkSearch.config.css)||void 0===n?void 0:n.customStyles){const e="string"==typeof HawkSearch.config.css.customStyles?[HawkSearch.config.css.customStyles]:HawkSearch.config.css.customStyles;s=s.concat(e)}s.forEach(((e,t)=>{const n=`hawksearch-handlebars-ui-css-${t}`;if(!this.shadowDom&&document.head.querySelector(`[id="${n}"]`))return;let r;if(/^.*?.css$/.test(e)){const t=document.createElement("link");t.id=n,t.type="text/css",t.rel="stylesheet",t.href=e,r=t}else{const t=document.getElementById(e);if(t instanceof HTMLTemplateElement){const e=t.content.cloneNode(!0).querySelector("style");e&&(e.id=n,r=e)}else{const t=document.createElement("style");t.id=n,t.innerHTML=e,r=t}}r&&(this.shadowDom?a.push(r):document.head.append(r))}));const o=document.createElement("template"),l=this.template(r);o.innerHTML=l;const c=o.content.cloneNode(!0);a.push(c),this.rootElement.replaceChildren(...a),this.style.display=o.innerHTML?"":"none",this.contentModel=r,this.bindChildElements(),this.onRender();const u=new CustomEvent(`hawksearch:after-${this.componentName}-rendered`,{detail:{component:this,contentModel:r}});dispatchEvent(u)}renderContent(){return!0}bindChildElements(){}onRender(){}getCustomTemplateHtml(){var e;let t;if(this.hasContentTemplateOverride)t=this.innerHTML;else if(t=null===(e=this.configuration)||void 0===e?void 0:e.template,t){const e=document.getElementById(t);e instanceof HTMLTemplateElement&&(t=e.innerHTML);const n={"{{&gt;":"{{>"};Object.entries(n).forEach((([e,n])=>{const r=new RegExp(e,"g");t=t.replace(r,n)}))}return t}interpolate(e,t){let n=e;return Object.entries(t).forEach((([e,t])=>{n=n.replace("${"+e+"}",t)})),n}}class i extends r{constructor(){super(...arguments),this.bindFromEvent=!1}}const a=n.p+"placeholder.c99b7374b9bf579d0fd0.png",s="object"==typeof global&&global&&global.Object===Object&&global;var o="object"==typeof self&&self&&self.Object===Object&&self;const l=s||o||Function("return this")(),c=l.Symbol,u=Array.isArray;var h=Object.prototype,d=h.hasOwnProperty,p=h.toString,v=c?c.toStringTag:void 0;var f=Object.prototype.toString;var m=c?c.toStringTag:void 0;const g=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":m&&m in Object(e)?function(e){var t=d.call(e,v),n=e[v];try{e[v]=void 0;var r=!0}catch(e){}var i=p.call(e);return r&&(t?e[v]=n:delete e[v]),i}(e):function(e){return f.call(e)}(e)},y=function(e){return null!=e&&"object"==typeof e},k=function(e){return"symbol"==typeof e||y(e)&&"[object Symbol]"==g(e)};var w=c?c.prototype:void 0,b=w?w.toString:void 0;const _=function e(t){if("string"==typeof t)return t;if(u(t))return function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,e)+"";if(k(t))return b?b.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},S=function(e){return null==e?"":_(e)},E=(x={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},function(e){return null==x?void 0:x[e]});var x,P=/&(?:amp|lt|gt|quot|#39);/g,C=RegExp(P.source);const I={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let H;const q=new Uint8Array(16);function L(){if(!H&&(H="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!H))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return H(q)}const M=[];for(let e=0;e<256;++e)M.push((e+256).toString(16).slice(1));const A=function(e,t,n){if(I.randomUUID&&!t&&!e)return I.randomUUID();const r=(e=e||{}).random||(e.rng||L)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(M[e[t+0]]+M[e[t+1]]+M[e[t+2]]+M[e[t+3]]+"-"+M[e[t+4]]+M[e[t+5]]+"-"+M[e[t+6]]+M[e[t+7]]+"-"+M[e[t+8]]+M[e[t+9]]+"-"+M[e[t+10]]+M[e[t+11]]+M[e[t+12]]+M[e[t+13]]+M[e[t+14]]+M[e[t+15]]).toLowerCase()}(r)};class R{constructor(){var e,t,n,r,i,a,s,o;this.queryStringParams={disableSpellcheck:(null===(e=HawkSearch.config.queryStringMappings)||void 0===e?void 0:e.disableSpellcheck)||"disableSpellcheck",facet:(null===(t=HawkSearch.config.queryStringMappings)||void 0===t?void 0:t.facet)||"facet",page:(null===(n=HawkSearch.config.queryStringMappings)||void 0===n?void 0:n.page)||"page",pageSize:(null===(r=HawkSearch.config.queryStringMappings)||void 0===r?void 0:r.pageSize)||"pageSize",query:(null===(i=HawkSearch.config.queryStringMappings)||void 0===i?void 0:i.query)||"query",searchWithin:(null===(a=HawkSearch.config.queryStringMappings)||void 0===a?void 0:a.searchWithin)||"searchWithin",sort:(null===(s=HawkSearch.config.queryStringMappings)||void 0===s?void 0:s.sort)||"sort"},this.searchUrl=null!==(o=HawkSearch.config.searchUrl)&&void 0!==o?o:"/search"}httpPost(e,t){return n=this,r=void 0,a=function*(){const n=this.baseUrl+e,r=this.getHeaders(),i=yield fetch(n,{method:"POST",headers:r,body:JSON.stringify(t)}),a=i.headers.get("content-type");return(null==a?void 0:a.startsWith("application/json"))?i.json():void 0},new((i=void 0)||(i=Promise))((function(e,t){function s(e){try{l(a.next(e))}catch(e){t(e)}}function o(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,o)}l((a=a.apply(n,r||[])).next())}));var n,r,i,a}stripHtml(e){let t=e.replace(/<[^>]+>/g,"");return t=(n=S(n=t))&&C.test(n)?n.replace(P,E):n,t=decodeURIComponent(t),t;var n}getHeaders(){const e=new Headers;return e.set("Content-Type","application/json"),e.set("X-Requested-With","XMLHttpRequest"),e}getVisitorId(){const e="VisitorId";let t=localStorage.getItem(e);return t||(t=this.generateGuid(),localStorage.setItem(e,t)),t}getVisitId(){const e="VisitId";let t=sessionStorage.getItem(e);return t||(t=this.generateGuid(),sessionStorage.setItem(e,t)),t}generateGuid(){return A()}getUrl(e,t){if(t)return e&&!/^https?:\/\//.test(t)?`${e}/${t.replace(/^\/+/,"")}`:t}triggerBindEvent(e,t,n){let r=`hawksearch:bind-${e}`;n&&(r=`${r}:${n}`),this.triggerEvent(r,t)}triggerEvent(e,t){const n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)}}const D=new class extends R{constructor(){var e;super(...arguments),this.baseUrl=(null===(e=HawkSearch.config.endpoints)||void 0===e?void 0:e.search)||"https://searchapi-dev.hawksearch.net/api/v2"}query(e){return t=this,n=void 0,i=function*(){const t={query:e};return yield this.executeAutocomplete(t)},new((r=void 0)||(r=Promise))((function(e,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,o)}l((i=i.apply(t,n||[])).next())}));var t,n,r,i}executeAutocomplete(e){const t={ClientGuid:HawkSearch.config.clientId,IndexName:HawkSearch.config.index,Keyword:e.query,DisplayFullResponse:!0};return this.triggerEvent("hawksearch:before-autocomplete-executed",t),this.httpPost("/autocomplete",t).then((t=>{this.triggerEvent("hawksearch:after-autocomplete-executed",t);const n=this.convertResponse(e.query,t);return this.triggerEvent("hawksearch:autocomplete-completed",n),this.bindComponent(n),n}))}convertResponse(e,t){return{query:e,categories:{title:t.CategoryHeading,results:t.Categories.map((e=>({title:this.stripHtml(e.Value),field:e.FieldQSName,value:e.FieldQSValue,url:`${this.searchUrl}?${this.queryStringParams.facet}-${e.FieldQSName}=${encodeURIComponent(e.FieldQSValue)}`})))},content:{title:t.ContentHeading,results:t.Content.map((e=>({id:e.Results.DocId,pinned:e.Results.IsPin,score:e.Results.Score,attributes:e.Results.Document,title:this.stripHtml(e.Value),url:e.Url}))),totalRecords:t.ContentCount},queries:{title:t.PopularHeading,results:t.Popular.map((e=>({query:this.stripHtml(e.RawValue),url:`${this.searchUrl}?${this.queryStringParams.query}=${encodeURIComponent(this.stripHtml(e.RawValue))}`})))},products:{title:t.ProductHeading,results:t.Products.map((e=>{var t;return{id:e.Results.DocId,pinned:e.Results.IsPin,score:e.Results.Score,attributes:e.Results.Document,title:this.stripHtml(e.ProductName),sku:e.Sku||void 0,imageUrl:null===(t=e.Thumb)||void 0===t?void 0:t.Url,url:e.Url}})),totalRecords:t.ProductCount},totalRecords:t.Count,viewAllText:t.ViewAllButtonLabel}}bindComponent(e){this.triggerBindEvent("autocomplete",e)}};var O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/;const N=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},F=function(e){if(!N(e))return!1;var t=g(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},j=l["__core-js_shared__"];var B,V=(B=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"";var $=Function.prototype.toString;const U=function(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var z=/^\[object .+?Constructor\]$/,W=Function.prototype,Q=Object.prototype,Z=W.toString,K=Q.hasOwnProperty,Y=RegExp("^"+Z.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const G=function(e){return!(!N(e)||(t=e,V&&V in t))&&(F(e)?Y:z).test(U(e));var t},X=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return G(n)?n:void 0},J=X(Object,"create");var ee=Object.prototype.hasOwnProperty;var te=Object.prototype.hasOwnProperty;function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ne.prototype.clear=function(){this.__data__=J?J(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if(J){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ee.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return J?void 0!==t[e]:te.call(t,e)},ne.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=J&&void 0===t?"__lodash_hash_undefined__":t,this};const re=ne,ie=function(e,t){return e===t||e!=e&&t!=t},ae=function(e,t){for(var n=e.length;n--;)if(ie(e[n][0],t))return n;return-1};var se=Array.prototype.splice;function oe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oe.prototype.clear=function(){this.__data__=[],this.size=0},oe.prototype.delete=function(e){var t=this.__data__,n=ae(t,e);return!(n<0||(n==t.length-1?t.pop():se.call(t,n,1),--this.size,0))},oe.prototype.get=function(e){var t=this.__data__,n=ae(t,e);return n<0?void 0:t[n][1]},oe.prototype.has=function(e){return ae(this.__data__,e)>-1},oe.prototype.set=function(e,t){var n=this.__data__,r=ae(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const le=oe,ce=X(l,"Map"),ue=function(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}he.prototype.clear=function(){this.size=0,this.__data__={hash:new re,map:new(ce||le),string:new re}},he.prototype.delete=function(e){var t=ue(this,e).delete(e);return this.size-=t?1:0,t},he.prototype.get=function(e){return ue(this,e).get(e)},he.prototype.has=function(e){return ue(this,e).has(e)},he.prototype.set=function(e,t){var n=ue(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const de=he;function pe(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var s=e.apply(this,r);return n.cache=a.set(i,s)||a,s};return n.cache=new(pe.Cache||de),n}pe.Cache=de;var ve,fe,me=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/\\(\\)?/g;const ye=(ve=pe((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(me,(function(e,n,r,i){t.push(r?i.replace(ge,"$1"):n||e)})),t}),(function(e){return 500===fe.size&&fe.clear(),e})),fe=ve.cache,ve),ke=function(e,t){return u(e)?e:function(e,t){if(u(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!k(e))||T.test(e)||!O.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:ye(S(e))},we=function(e){if("string"==typeof e||k(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},be=function(e,t,n){var r=null==e?void 0:function(e,t){for(var n=0,r=(t=ke(t,e)).length;null!=e&&n<r;)e=e[we(t[n++])];return n&&n==r?e:void 0}(e,t);return void 0===r?n:r},_e=new class extends R{constructor(){var e,t,n,r,i,a,s;super(...arguments),this.baseUrl=(null===(e=HawkSearch.config.endpoints)||void 0===e?void 0:e.recommendations)||"https://recs-dev.hawksearch.net/api/recommendation/v2",this.fieldMappings={imageUrl:(null===(t=HawkSearch.config.recommendationsFieldMappings)||void 0===t?void 0:t.imageUrl)||"imageUrl",price:(null===(n=HawkSearch.config.recommendationsFieldMappings)||void 0===n?void 0:n.price)||"price",salePrice:(null===(r=HawkSearch.config.recommendationsFieldMappings)||void 0===r?void 0:r.salePrice)||"salePrice",title:(null===(i=HawkSearch.config.recommendationsFieldMappings)||void 0===i?void 0:i.title)||"itemName",description:(null===(a=HawkSearch.config.recommendationsFieldMappings)||void 0===a?void 0:a.description)||"shortDescription",url:(null===(s=HawkSearch.config.recommendationsFieldMappings)||void 0===s?void 0:s.url)||"url"}}getItems(e){return this.executeRecommendations(e)}executeRecommendations(e){const t={clientGuid:HawkSearch.config.clientId,indexName:HawkSearch.config.index,landingPageUrl:e.url,renderHTML:!1,visitId:this.getVisitId(),visitorId:this.getVisitorId(),widgetUids:[{widgetGuid:e.widgetId,uniqueid:e.itemId}]};return this.triggerEvent("hawksearch:before-recommendations-executed",t),this.httpPost("/getwidgetitems",t).then((e=>{this.triggerEvent("hawksearch:after-recommendations-executed",e);const t=this.convertResponse(e);return this.triggerEvent("hawksearch:recommendations-completed",t),this.bindComponents(t),t}))}convertResponse(e){var t,n,r;return window.test=null===(n=null===(t=null==e?void 0:e.widgetItems)||void 0===t?void 0:t[0])||void 0===n?void 0:n.recommendationItems,{requestId:e.requestId,widgets:null===(r=null==e?void 0:e.widgetItems)||void 0===r?void 0:r.map((t=>{var n;return{id:t.widgetGuid,requestId:e.requestId,title:t.widgetName,carousel:t.isCarousel,items:null===(n=t.recommendationItems)||void 0===n?void 0:n.map((e=>{var t,n;return{id:e.id,imageUrl:this.getUrl(null===(t=HawkSearch.config.urlPrefixes)||void 0===t?void 0:t.content,be(e,this.fieldMappings.imageUrl)),title:be(e,this.fieldMappings.title),description:be(e,this.fieldMappings.description),url:this.getUrl(null===(n=HawkSearch.config.urlPrefixes)||void 0===n?void 0:n.content,be(e,this.fieldMappings.url)),price:parseFloat(be(e,this.fieldMappings.price))||void 0,salePrice:parseFloat(be(e,this.fieldMappings.salePrice))||void 0,attributes:e}}))}}))}}bindComponents(e){var t;null===(t=e.widgets)||void 0===t||t.forEach((e=>{this.triggerBindEvent("recommendations",e,e.id)}))}};function Se(e){var t=this.__data__=new le(e);this.size=t.size}Se.prototype.clear=function(){this.__data__=new le,this.size=0},Se.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,t){var n=this.__data__;if(n instanceof le){var r=n.__data__;if(!ce||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new de(r)}return n.set(e,t),this.size=n.size,this};const Ee=Se,xe=function(){try{var e=X(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pe=function(e,t,n){"__proto__"==t&&xe?xe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Ce=Object.prototype.hasOwnProperty;const Ie=function(e,t,n){var r=e[t];Ce.call(e,t)&&ie(r,n)&&(void 0!==n||t in e)||Pe(e,t,n)},He=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],l=r?r(n[o],e[o],o,n,e):void 0;void 0===l&&(l=e[o]),i?Pe(n,o,l):Ie(n,o,l)}return n},qe=function(e){return y(e)&&"[object Arguments]"==g(e)};var Le=Object.prototype,Me=Le.hasOwnProperty,Ae=Le.propertyIsEnumerable;const Re=qe(function(){return arguments}())?qe:function(e){return y(e)&&Me.call(e,"callee")&&!Ae.call(e,"callee")};var De="object"==typeof exports&&exports&&!exports.nodeType&&exports,Oe=De&&"object"==typeof module&&module&&!module.nodeType&&module,Te=Oe&&Oe.exports===De?l.Buffer:void 0;const Ne=(Te?Te.isBuffer:void 0)||function(){return!1};var Fe=/^(?:0|[1-9]\d*)$/;const je=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Fe.test(e))&&e>-1&&e%1==0&&e<t},Be=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ve={};Ve["[object Float32Array]"]=Ve["[object Float64Array]"]=Ve["[object Int8Array]"]=Ve["[object Int16Array]"]=Ve["[object Int32Array]"]=Ve["[object Uint8Array]"]=Ve["[object Uint8ClampedArray]"]=Ve["[object Uint16Array]"]=Ve["[object Uint32Array]"]=!0,Ve["[object Arguments]"]=Ve["[object Array]"]=Ve["[object ArrayBuffer]"]=Ve["[object Boolean]"]=Ve["[object DataView]"]=Ve["[object Date]"]=Ve["[object Error]"]=Ve["[object Function]"]=Ve["[object Map]"]=Ve["[object Number]"]=Ve["[object Object]"]=Ve["[object RegExp]"]=Ve["[object Set]"]=Ve["[object String]"]=Ve["[object WeakMap]"]=!1;const $e=function(e){return function(t){return e(t)}};var Ue="object"==typeof exports&&exports&&!exports.nodeType&&exports,ze=Ue&&"object"==typeof module&&module&&!module.nodeType&&module,We=ze&&ze.exports===Ue&&s.process;const Qe=function(){try{return ze&&ze.require&&ze.require("util").types||We&&We.binding&&We.binding("util")}catch(e){}}();var Ze=Qe&&Qe.isTypedArray;const Ke=Ze?$e(Ze):function(e){return y(e)&&Be(e.length)&&!!Ve[g(e)]};var Ye=Object.prototype.hasOwnProperty;const Ge=function(e,t){var n=u(e),r=!n&&Re(e),i=!n&&!r&&Ne(e),a=!n&&!r&&!i&&Ke(e),s=n||r||i||a,o=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=o.length;for(var c in e)!t&&!Ye.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||je(c,l))||o.push(c);return o};var Xe=Object.prototype;const Je=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Xe)},et=function(e,t){return function(n){return e(t(n))}},tt=et(Object.keys,Object);var nt=Object.prototype.hasOwnProperty;const rt=function(e){return null!=e&&Be(e.length)&&!F(e)},it=function(e){return rt(e)?Ge(e):function(e){if(!Je(e))return tt(e);var t=[];for(var n in Object(e))nt.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)};var at=Object.prototype.hasOwnProperty;const st=function(e){if(!N(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Je(e),n=[];for(var r in e)("constructor"!=r||!t&&at.call(e,r))&&n.push(r);return n},ot=function(e){return rt(e)?Ge(e,!0):st(e)};var lt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ct=lt&&"object"==typeof module&&module&&!module.nodeType&&module,ut=ct&&ct.exports===lt?l.Buffer:void 0,ht=ut?ut.allocUnsafe:void 0;const dt=function(){return[]};var pt=Object.prototype.propertyIsEnumerable,vt=Object.getOwnPropertySymbols;const ft=vt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a}(vt(e),(function(t){return pt.call(e,t)})))}:dt,mt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},gt=et(Object.getPrototypeOf,Object),yt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)mt(t,ft(e)),e=gt(e);return t}:dt,kt=function(e,t,n){var r=t(e);return u(e)?r:mt(r,n(e))},wt=function(e){return kt(e,it,ft)},bt=function(e){return kt(e,ot,yt)},_t=X(l,"DataView"),St=X(l,"Promise"),Et=X(l,"Set"),xt=X(l,"WeakMap");var Pt="[object Map]",Ct="[object Promise]",It="[object Set]",Ht="[object WeakMap]",qt="[object DataView]",Lt=U(_t),Mt=U(ce),At=U(St),Rt=U(Et),Dt=U(xt),Ot=g;(_t&&Ot(new _t(new ArrayBuffer(1)))!=qt||ce&&Ot(new ce)!=Pt||St&&Ot(St.resolve())!=Ct||Et&&Ot(new Et)!=It||xt&&Ot(new xt)!=Ht)&&(Ot=function(e){var t=g(e),n="[object Object]"==t?e.constructor:void 0,r=n?U(n):"";if(r)switch(r){case Lt:return qt;case Mt:return Pt;case At:return Ct;case Rt:return It;case Dt:return Ht}return t});const Tt=Ot;var Nt=Object.prototype.hasOwnProperty;const Ft=l.Uint8Array,jt=function(e){var t=new e.constructor(e.byteLength);return new Ft(t).set(new Ft(e)),t};var Bt=/\w*$/;var Vt=c?c.prototype:void 0,$t=Vt?Vt.valueOf:void 0;const Ut=function(e,t,n){var r,i=e.constructor;switch(t){case"[object ArrayBuffer]":return jt(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?jt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?jt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,Bt.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,$t?Object($t.call(r)):{}}};var zt=Object.create;const Wt=function(){function e(){}return function(t){if(!N(t))return{};if(zt)return zt(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Qt=Qe&&Qe.isMap;const Zt=Qt?$e(Qt):function(e){return y(e)&&"[object Map]"==Tt(e)};var Kt=Qe&&Qe.isSet;const Yt=Kt?$e(Kt):function(e){return y(e)&&"[object Set]"==Tt(e)};var Gt="[object Arguments]",Xt="[object Function]",Jt="[object Object]",en={};en[Gt]=en["[object Array]"]=en["[object ArrayBuffer]"]=en["[object DataView]"]=en["[object Boolean]"]=en["[object Date]"]=en["[object Float32Array]"]=en["[object Float64Array]"]=en["[object Int8Array]"]=en["[object Int16Array]"]=en["[object Int32Array]"]=en["[object Map]"]=en["[object Number]"]=en[Jt]=en["[object RegExp]"]=en["[object Set]"]=en["[object String]"]=en["[object Symbol]"]=en["[object Uint8Array]"]=en["[object Uint8ClampedArray]"]=en["[object Uint16Array]"]=en["[object Uint32Array]"]=!0,en["[object Error]"]=en[Xt]=en["[object WeakMap]"]=!1;const tn=function e(t,n,r,i,a,s){var o,l=1&n,c=2&n,h=4&n;if(r&&(o=a?r(t,i,a,s):r(t)),void 0!==o)return o;if(!N(t))return t;var d=u(t);if(d){if(o=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Nt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(t,o)}else{var p=Tt(t),v=p==Xt||"[object GeneratorFunction]"==p;if(Ne(t))return function(e,t){if(t)return e.slice();var n=e.length,r=ht?ht(n):new e.constructor(n);return e.copy(r),r}(t,l);if(p==Jt||p==Gt||v&&!a){if(o=c||v?{}:function(e){return"function"!=typeof e.constructor||Je(e)?{}:Wt(gt(e))}(t),!l)return c?function(e,t){return He(e,yt(e),t)}(t,function(e,t){return e&&He(t,ot(t),e)}(o,t)):function(e,t){return He(e,ft(e),t)}(t,function(e,t){return e&&He(t,it(t),e)}(o,t))}else{if(!en[p])return a?t:{};o=Ut(t,p,l)}}s||(s=new Ee);var f=s.get(t);if(f)return f;s.set(t,o),Yt(t)?t.forEach((function(i){o.add(e(i,n,r,i,t,s))})):Zt(t)&&t.forEach((function(i,a){o.set(a,e(i,n,r,a,t,s))}));var m=d?void 0:(h?c?bt:wt:c?ot:it)(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(m||t,(function(i,a){m&&(i=t[a=i]),Ie(o,a,e(i,n,r,a,t,s))})),o},nn=function(e){return tn(e,5)};var rn,an,sn,on;!function(e){e[e.Search=1]="Search",e[e.Category=2]="Category",e[e.Product=3]="Product",e[e.Content=4]="Content"}(rn||(rn={})),function(e){e[e.PageLoad=1]="PageLoad",e[e.Search=2]="Search",e[e.Click=3]="Click",e[e.AddToCart=4]="AddToCart",e[e.Rate=5]="Rate",e[e.Sale=6]="Sale",e[e.BannerClick=7]="BannerClick",e[e.BannerImpression=8]="BannerImpression",e[e.RecommendationClick=10]="RecommendationClick",e[e.AutocompleteClick=11]="AutocompleteClick",e[e.AddToCartMultiple=14]="AddToCartMultiple"}(an||(an={})),function(e){e[e.Item=1]="Item",e[e.Landing=2]="Landing",e[e.Cart=3]="Cart",e[e.Order=4]="Order",e[e.Custom=5]="Custom"}(sn||(sn={})),function(e){e[e.Initial=1]="Initial",e[e.Refinement=2]="Refinement"}(on||(on={}));const ln=new class extends R{constructor(){var e;super(...arguments),this.baseUrl=(null===(e=HawkSearch.config.endpoints)||void 0===e?void 0:e.tracking)||"https://tracking-dev.hawksearch.net/api"}trackAddToCart(e,t,n,r){const i={UniqueId:e,Quantity:t,Price:n,Currency:r};return this.trackEvent(an.AddToCart,i)}trackAddToCartMultiple(e){const t={ItemsList:e.map((e=>({UniqueId:e.productId,Quantity:e.quantity,Price:e.price,Currency:e.currencyIsoCode})))};return this.trackEvent(an.AddToCartMultiple,t)}trackAutocompleteClick(e,t,n,r){const i={Keyword:e,Name:n,SuggestType:t,Url:r};return this.trackEvent(an.AutocompleteClick,i)}trackBannerClick(e,t){var n;if(!(null===(n=HawkSearch.searchResponse)||void 0===n?void 0:n.trackingId))return Promise.resolve();const r={BannerId:e,CampaignId:t,TrackingId:HawkSearch.searchResponse.trackingId};return this.trackEvent(an.BannerClick,r)}trackBannerImpression(e,t){var n;if(!(null===(n=HawkSearch.searchResponse)||void 0===n?void 0:n.trackingId)||!e||!t)return Promise.resolve();const r={BannerId:e,CampaignId:t,TrackingId:HawkSearch.searchResponse.trackingId};return this.trackEvent(an.BannerImpression,r)}trackOrder(e,t,n,r,i,a){const s={OrderNo:e,ItemList:t.map((e=>({UniqueId:e.productId,Quantity:e.quantity,Price:e.price}))),SubTotal:n,Tax:r,Total:i,Currency:a};return this.trackEvent(an.Sale,s)}trackPageLoad(e,t){if(e===sn.Item&&!t)throw new Error("productId is required for tracking product detail page requests");const n={PageTypeId:e,RequestPath:window.location.pathname,Qs:window.location.search,UniqueId:t,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth};return this.trackEvent(an.PageLoad,n)}trackRating(e,t){const n={UniqueId:e,Value:t};return this.trackEvent(an.Rate,n)}trackRecommendationClick(e,t,n){const r={WidgetGuid:e,RequestId:t,UniqueId:n};return this.trackEvent(an.RecommendationClick,r)}trackSearchResultClick(e,t,n){var r;if(!(null===(r=HawkSearch.searchResponse)||void 0===r?void 0:r.trackingId))return Promise.resolve();const i={UniqueId:e,Url:t,TrackingId:HawkSearch.searchResponse.trackingId,RequestPath:window.location.pathname,Qs:window.location.search,ScrollX:window.scrollX,ScrollY:window.scrollY,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth,MouseX:null==n?void 0:n.pageX,MouseY:null==n?void 0:n.pageY};return this.trackEvent(an.Click,i)}trackSearch(e,t){var n;if(!(null===(n=HawkSearch.searchResponse)||void 0===n?void 0:n.trackingId))return Promise.resolve();const r={QueryId:t?this.setNewQueryId():this.getQueryId(),TrackingId:HawkSearch.searchResponse.trackingId,TypeId:t?on.Initial:on.Refinement,ViewportHeight:document.documentElement.clientHeight,ViewportWidth:document.documentElement.clientWidth,keyword:e};return this.trackEvent(an.Search,r)}trackEvent(e,t){if(!1===HawkSearch.config.trackingEnabled)return Promise.resolve();const n={ClientGuid:HawkSearch.config.clientId,EventType:e,EventData:btoa(JSON.stringify(t)),VisitorId:this.getVisitorId(),VisitId:this.getVisitId()};return this.httpPost("/trackevent",n)}getQueryId(){let e=localStorage.getItem("QueryId");return e||(e=this.setNewQueryId()),e}setNewQueryId(){const e=this.generateGuid();return localStorage.setItem("QueryId",e),e}};var cn=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(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,o)}l((r=r.apply(e,t||[])).next())}))};const un=new class extends R{constructor(){var e,t,n,r,i,a,s,o;super(...arguments),this.baseUrl=(null===(e=HawkSearch.config.endpoints)||void 0===e?void 0:e.search)||"https://searchapi-dev.hawksearch.net/api/v2",this.fieldMappings={imageUrl:(null===(t=HawkSearch.config.searchResultsFieldMappings)||void 0===t?void 0:t.imageUrl)||"image",price:(null===(n=HawkSearch.config.searchResultsFieldMappings)||void 0===n?void 0:n.price)||"price",salePrice:(null===(r=HawkSearch.config.searchResultsFieldMappings)||void 0===r?void 0:r.salePrice)||"saleprice",title:(null===(i=HawkSearch.config.searchResultsFieldMappings)||void 0===i?void 0:i.title)||"itemname",description:(null===(a=HawkSearch.config.searchResultsFieldMappings)||void 0===a?void 0:a.description)||"longdescription",type:(null===(s=HawkSearch.config.searchResultsFieldMappings)||void 0===s?void 0:s.type)||"type",url:(null===(o=HawkSearch.config.searchResultsFieldMappings)||void 0===o?void 0:o.url)||"url"}}search(e){return cn(this,void 0,void 0,(function*(){const t=yield this.executeSearch(e,!0,!1);return this.bindComponents(t),t}))}query(e,t,n=!1){return cn(this,void 0,void 0,(function*(){if(window.location.pathname!==this.searchUrl){const r={newRequest:!0,query:e,facets:t,disableSpellcheck:n},i=this.getSearchUrl(r);return window.location.assign(i),Promise.resolve()}if(e){const t=this.getRecentQueries(),n=5;t.includes(e)||(t.length>=n&&t.splice(n-1),t.unshift(e),this.saveRecentQueries(t))}const r={disableSpellcheck:!!n||void 0,query:e,newRequest:!0},i=yield this.executeSearch(r,!0,!1);return this.bindComponents(i),i}))}addFacetValue(e,t){var n,r;return cn(this,void 0,void 0,(function*(){this.ensureSearchRequest();const i=nn(HawkSearch.searchRequest);i.newRequest=!1,i.page=void 0,i.facets||(i.facets={}),this.clearExistingFacetValue(i,e,t),i.facets[e]=[...null!==(r=null===(n=i.facets[e])||void 0===n?void 0:n.filter((e=>e!==t)))&&void 0!==r?r:[],t];const a=yield this.executeSearch(i,!1);return this.bindFacetsListComponent(a),this.bindPaginationComponent(a),this.bindSelectedFacetsComponent(a),this.bindTabsComponent(a),this.bindZoneComponent(a),a}))}removeFacetValue(e,t){return cn(this,void 0,void 0,(function*(){if(this.ensureSearchRequest(),"searchWithin"===e)return yield this.searchWithin("");const n=nn(HawkSearch.searchRequest);n.newRequest=!1,n.page=void 0,this.clearExistingFacetValue(n,e,t);const r=yield this.executeSearch(n,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}))}includeFacetValue(e,t){const n=`@${t}`;return this.removeFacetValue(e,n)}excludeFacetValue(e,t){var n;return cn(this,void 0,void 0,(function*(){this.ensureSearchRequest();const r=`@${t}`,i=nn(HawkSearch.searchRequest);i.newRequest=!1,i.page=void 0,i.facets||(i.facets={}),this.clearExistingFacetValue(i,e,t),i.facets=Object.assign(Object.assign({},i.facets),{[e]:[...null!==(n=i.facets[e])&&void 0!==n?n:[],r]});const a=yield this.executeSearch(i,!1);return this.bindFacetsListComponent(a),this.bindPaginationComponent(a),this.bindSelectedFacetsComponent(a),this.bindTabsComponent(a),this.bindZoneComponent(a),a}))}clearExistingFacetValue(e,t,n){var r,i,a;const s=`@${n=n.replace(/^@/,"")}`;e.facets||(e.facets={}),e.facets=Object.assign(Object.assign({},e.facets),{[t]:[...null!==(i=null===(r=e.facets[t])||void 0===r?void 0:r.filter((e=>e!==n&&e!==s)))&&void 0!==i?i:[]]}),(null===(a=e.facets[t])||void 0===a?void 0:a.length)||delete e.facets[t]}setFacetValue(e,t){return cn(this,void 0,void 0,(function*(){this.ensureSearchRequest();const n=nn(HawkSearch.searchRequest);n.newRequest=!1,n.page=void 0,n.facets||(n.facets={}),n.facets[e]=[t];const r=yield this.executeSearch(n,!1);return this.bindFacetsListComponent(r),this.bindPaginationComponent(r),this.bindSelectedFacetsComponent(r),this.bindTabsComponent(r),this.bindZoneComponent(r),r}))}searchWithin(e){return cn(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=nn(HawkSearch.searchRequest);t.newRequest=!1,t.page=void 0,t.searchWithin=e||void 0;const n=yield this.executeSearch(t,!1);return this.bindFacetsListComponent(n),this.bindPaginationComponent(n),this.bindSelectedFacetsComponent(n),this.bindTabsComponent(n),this.bindZoneComponent(n),n}))}selectTab(e){var t,n,r;return cn(this,void 0,void 0,(function*(){this.ensureSearchRequest();const i=nn(HawkSearch.searchRequest);i.newRequest=!1,i.page=void 0,i.facets||(i.facets={});const a=null===(r=null===(n=null===(t=HawkSearch.searchResponse)||void 0===t?void 0:t.facets)||void 0===n?void 0:n.find((e=>"tabs"===e.type)))||void 0===r?void 0:r.field;a&&(e?i.facets[a]=[e]:delete i.facets[a]);const s=yield this.executeSearch(i,!1);return this.bindFacetsListComponent(s),this.bindPaginationComponent(s),this.bindSelectedFacetsComponent(s),this.bindTabsComponent(s),this.bindZoneComponent(s),s}))}paginate(e){return cn(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=nn(HawkSearch.searchRequest);t.newRequest=!1,t.page=e;const n=yield this.executeSearch(t,!1);return this.bindPaginationComponent(n),n}))}setPageSize(e){return cn(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=nn(HawkSearch.searchRequest);t.newRequest=!1,t.pageSize=e;const n=yield this.executeSearch(t,!1);return this.bindPageSizeComponent(n),this.bindPaginationComponent(n),n}))}sort(e){return cn(this,void 0,void 0,(function*(){this.ensureSearchRequest();const t=nn(HawkSearch.searchRequest);t.newRequest=!1,t.page=1,t.sort=e;const n=yield this.executeSearch(t,!1);return this.bindPaginationComponent(n),this.bindSortingComponent(n),n}))}executeSearch(e,t,n=!0){HawkSearch.searchRequest=e;const r={ClientData:{UserAgent:window.navigator.userAgent,VisitorId:this.getVisitorId(),VisitId:this.getVisitId()},ClientGuid:HawkSearch.config.clientId,CustomURL:e.url,IgnoreSpellcheck:e.disableSpellcheck,IndexName:HawkSearch.config.index,Keyword:e.query,FacetSelections:e.facets,MaxPerPage:e.pageSize,PageNo:e.page,SearchWithin:e.searchWithin,SortBy:e.sort};return this.triggerEvent("hawksearch:before-search-executed",r),this.httpPost("/search",r).then((r=>{var i;this.triggerEvent("hawksearch:after-search-executed",r);const a=this.convertResponse(e,r);return HawkSearch.searchResponse=a,ln.trackSearch(e.query,t),this.setQueryString(),this.setSeoElements(a),this.triggerEvent("hawksearch:search-completed",a),n&&(this.bindModifiedQueryComponent(a),this.bindQuerySuggestionsComponent(a),this.bindSearchFieldComponent(a),this.bindSearchResultsListComponent(a)),t&&a.redirect&&window.open(a.redirect.url,null!==(i=a.redirect.target)&&void 0!==i?i:"_self"),a}))}ensureSearchRequest(){if(!HawkSearch.searchRequest)throw new Error("You cannot refine search results until an initial search has been executed")}convertResponse(e,t){var n,r,i,a,s,o;const l=e=>{if("tab"===e.FieldType)return"tabs";switch(e.FacetType.toLowerCase()){case"checkbox":case"nestedcheckbox":return"checkbox";case"color":return"color";case"link":return"link";case"openrange":if("datetime"===e.DataType)return"date-range";if(e.IsCurrency||e.IsNumeric)return"numeric-range";case"recentsearches":return"recent-searches";case"related":return"related-searches";case"search":return"search";case"size":return"size";case"slider":return"range-slider";case"swatch":return"color";default:return"unsupported"}},c=e=>{if("scrolling"===e.DisplayType)return{height:e.ScrollHeight||void 0,threshold:e.ScrollThreshold||0}},u=e=>{const t=l(e);if(["date-range","numeric-range","range-slider"].includes(t))return"datetime"===e.DataType?{type:"date",min:new Date(Date.parse(e.Values[0].RangeMin)),max:new Date(Date.parse(e.Values[0].RangeMax)),start:new Date(Date.parse(e.Values[0].RangeStart)),end:new Date(Date.parse(e.Values[0].RangeEnd))}:e.IsCurrency||e.IsNumeric?{type:"numeric",min:parseFloat(e.Values[0].RangeMin),max:parseFloat(e.Values[0].RangeMax),start:parseFloat(e.Values[0].RangeStart),end:parseFloat(e.Values[0].RangeEnd)}:void 0},h=(e,t)=>{var n,r;const i=null===(n=e.Ranges)||void 0===n?void 0:n.find((e=>e.Value.toLowerCase()===t.Value.toLowerCase()));if(null==i?void 0:i.AssetFullUrl)return this.getUrl(null===(r=HawkSearch.config.urlPrefixes)||void 0===r?void 0:r.assets,i.AssetFullUrl)},d=(e,t)=>{var n,r,i;let a=null===(n=e.SwatchData)||void 0===n?void 0:n.find((e=>e.Value.toLowerCase()===t.Value.toLowerCase()));if(a||(a=null===(r=e.SwatchData)||void 0===r?void 0:r.find((e=>e.IsDefault))),a)return{name:t.Label,hex:a.Color||a.Value,imageUrl:this.getUrl(null===(i=HawkSearch.config.urlPrefixes)||void 0===i?void 0:i.assets,a.AssetUrl||a.AssetName)}},p=(e,t,n)=>"recent-searches"===l(e)?this.getRecentQueries().map((e=>({title:e}))):null==t?void 0:t.map((t=>{var r;return{title:t.Label,imageUrl:h(e,t),value:t.Value,color:d(e,t),count:t.Count,level:t.Level,selected:t.Selected,excluded:null===(r=null==n?void 0:n.Items)||void 0===r?void 0:r.some((e=>e.Value===`@${t.Value}`)),children:p(e,t.Children,n)}})),v=e=>{var t;if("recent-searches"===l(e)){const t=p(e,void 0,void 0);return!!(null==t?void 0:t.length)}return null===(t=e.IsVisible)||void 0===t||t},f=e=>{if("truncating"===e.DisplayType)return{threshold:parseFloat(e.TruncateThreshold)||0}},m=e=>{var t,n,r,i,a,s,o,l,c,u;return{id:e.DocId,pinned:null!==(t=e.IsPin)&&void 0!==t&&t,visible:null===(n=e.IsVisible)||void 0===n||n,score:e.Score,type:(null!==(i=null===(r=HawkSearch.config.itemTypes)||void 0===r?void 0:r.productValues)&&void 0!==i?i:["item","product"]).map((e=>e.toLowerCase())).includes(null===(s=null===(a=be(e.Document,this.fieldMappings.type))||void 0===a?void 0:a[0])||void 0===s?void 0:s.toLowerCase())?"product":null!==(l=null===(o=HawkSearch.config.itemTypes)||void 0===o?void 0:o.default)&&void 0!==l?l:"content",imageUrl:this.getUrl(null===(c=HawkSearch.config.urlPrefixes)||void 0===c?void 0:c.content,this.getString(be(e.Document,this.fieldMappings.imageUrl))),title:this.getString(be(e.Document,this.fieldMappings.title)),description:this.getString(be(e.Document,this.fieldMappings.description)),url:this.getUrl(null===(u=HawkSearch.config.urlPrefixes)||void 0===u?void 0:u.content,this.getString(be(e.Document,this.fieldMappings.url))),price:this.getNumber(be(e.Document,this.fieldMappings.price)),salePrice:this.getNumber(be(e.Document,this.fieldMappings.salePrice)),attributes:e.Document}},g=e=>{if(e.IsSearch)return{threshold:parseFloat(e.SearchThreshold)||0}},y=()=>{var n;const r="searchWithin",i=null===(n=t.Facets)||void 0===n?void 0:n.find((e=>e.Field===r));return e.searchWithin&&i?[{field:r,title:i.Name,currency:!1,values:[{title:e.searchWithin,value:e.searchWithin,excluded:!1}]}]:[]},k=(e,t,n)=>{var r,i,a;("Mobile"===t&&!e.IsMobile||"Tablet"===t&&!e.IsTablet)&&(t="");const s={id:e.BannerId,campaignId:e.CampaignId,type:e[t+"ContentType"],title:e.Title,zone:null!=n?n:e.Zone};switch(s.type){case"custom":s.content=e[t+"Output"];break;case"featured":{const t=s;t.type="featured-items",t.items=[...(null!==(r=e.Items)&&void 0!==r?r:[]).map(m),...(null!==(i=e.FeaturedItems)&&void 0!==i?i:[]).map(m)];break}case"image":{const n=s;n.image={url:this.getUrl(null===(a=HawkSearch.config.urlPrefixes)||void 0===a?void 0:a.assets,e[t+"ImageUrl"]),height:e[t+"Height"]||void 0,width:e[t+"Width"]||void 0,altText:e[t+"AltTag"],title:e[t+"AltTag"]},n.link=e[t+"ForwardUrl"]?{url:e[t+"ForwardUrl"],target:e[t+"Target"]||"_self"}:void 0;break}case"widget":switch(e[t+"WidgetType"]){case"PopularSearchesWidget":{const n=s;n.type="popular-queries";const r=Math.min(...e[t+"Output"].map((e=>e.count))),i=Math.max(...e[t+"Output"].map((e=>e.count)))-r,a=5,o=new Array(a).fill(0);o.forEach(((e,t)=>{o[t]=t===a-1?0:Math.floor(i/(t+1))+r})),n.items=e[t+"Output"]instanceof Array?e[t+"Output"].map((e=>({query:e.keyword,count:e.count,weight:a-o.findIndex((t=>e.count>=t))}))).sort(((e,t)=>e.query.localeCompare(t.query))):[];break}default:{const t=s;t.type="custom-widget",t.data=e.AltTag}}}return s};return{content:{breadcrumbs:t.Breadcrumb||void 0,customHtml:t.CustomHtml||void 0,heading:t.PageHeading||void 0},contentZones:(()=>{var e,n,r;const i={};return null===(e=t.FeaturedItems)||void 0===e||e.Items.forEach((e=>{var t,n;const r=null!==(t=i[e.Zone])&&void 0!==t?t:{name:e.Zone},a={mobile:k(e,""),tablet:k(e,""),desktop:k(e,"")};r.items=[...null!==(n=r.items)&&void 0!==n?n:[],a],i[e.Zone]=r})),null===(n=t.Merchandising)||void 0===n||n.Items.forEach((e=>{var t,n;const r=null!==(t=i[e.Zone])&&void 0!==t?t:{name:e.Zone},a={mobile:k(e,"Mobile"),tablet:k(e,"Tablet"),desktop:k(e,"")};r.items=[...null!==(n=r.items)&&void 0!==n?n:[],a],i[e.Zone]=r})),null===(r=t.PageContent)||void 0===r||r.forEach((e=>{var t;const n=null!==(t=i[e.ZoneName])&&void 0!==t?t:{name:e.ZoneName};e.Items.forEach((e=>{var t;const r={mobile:k(e,"Mobile",n.name),tablet:k(e,"Tablet",n.name),desktop:k(e,"",n.name)};n.items=[...null!==(t=n.items)&&void 0!==t?t:[],r]})),i[e.ZoneName]=n})),i})(),customLayout:t.PageLayoutHtml||void 0,facets:null===(n=t.Facets)||void 0===n?void 0:n.map((n=>{var r,i,a;return{id:n.FacetId,type:l(n),title:n.Name,field:n.ParamName||n.Field,collapsible:null!==(r=n.IsCollapsible)&&void 0!==r&&r,collapsed:n.IsCollapsedDefault,displayCount:n.ShowItemsCount,range:u(n),scrolling:c(n),search:g(n),searchWithin:e.searchWithin,tooltip:this.stripHtml(null!==(i=n.Tooltip)&&void 0!==i?i:"")||void 0,truncation:f(n),values:p(n,n.Values,null===(a=t.Selections)||void 0===a?void 0:a[n.ParamName||n.Field]),visible:v(n)}})).filter((e=>"unsupported"!==e.type)),modifiedQuery:t.AdjustedKeyword,pagination:t.Pagination?{page:t.Pagination.CurrentPage,pageSize:t.Pagination.MaxPerPage,totalPages:t.Pagination.NofPages,totalResults:t.Pagination.NofResults,maxPageLinks:t.Pagination.NumberOfPageLinks>0?t.Pagination.NumberOfPageLinks:void 0,displayFirstLink:t.Pagination.IsShowFirstLink,displayLastLink:t.Pagination.IsShowLastLink,options:null!==(r=t.Pagination.Items.map((e=>({title:e.Label,pageSize:e.PageSize,selected:e.Selected,default:e.Default}))))&&void 0!==r?r:[]}:void 0,query:t.Keyword,querySuggestions:t.DidYouMean,redirect:t.Redirect?{url:t.Redirect.Location,target:t.Redirect.Target}:void 0,results:null===(i=t.Results)||void 0===i?void 0:i.map(m),selectedFacets:(()=>{var e;return[...Object.keys(null!==(e=t.Selections)&&void 0!==e?e:[]).map((e=>{var n,r;const i=t.Selections[e],a=null===(n=t.Facets)||void 0===n?void 0:n.find((t=>(t.ParamName||t.Field)===e)),s=new RegExp("^@");return{field:e,currency:null!==(r=null==a?void 0:a.IsCurrency)&&void 0!==r&&r,title:i.Label,values:i.Items.map((e=>({title:e.Label.replace(s,""),value:e.Value,excluded:s.test(e.Value)})))}})),...y()]})(),seo:{canonicalUrl:t.RelCanonical,description:t.MetaDescription,keywords:t.MetaKeywords,robots:t.MetaRobots,title:t.HeaderTitle},success:t.Success,sorting:{value:null===(a=t.Sorting)||void 0===a?void 0:a.Value,options:null!==(o=null===(s=t.Sorting)||void 0===s?void 0:s.Items.map((e=>({title:e.Label,value:e.Value,selected:e.Selected,default:e.IsDefault}))))&&void 0!==o?o:[]},trackingId:t.TrackingId}}getString(e,t){var n;return null!==(n=null==e?void 0:e[0])&&void 0!==n?n:t}getNumber(e,t){const n=this.getString(e);let r=n?parseFloat(n):void 0;return void 0!==r&&isNaN(r)&&(r=void 0),null!=r?r:t}bindComponents(e){this.bindLandingPageComponent(e),this.bindSearchResultsComponent(e),setTimeout((()=>{this.bindFacetsListComponent(e),this.bindModifiedQueryComponent(e),this.bindPageSizeComponent(e),this.bindPaginationComponent(e),this.bindQuerySuggestionsComponent(e),this.bindSearchFieldComponent(e),this.bindSearchResultsListComponent(e),this.bindSelectedFacetsComponent(e),this.bindSortingComponent(e),this.bindTabsComponent(e),this.bindZoneComponent(e)}))}bindFacetsListComponent(e){this.triggerBindEvent("facets-list",null==e?void 0:e.facets)}bindLandingPageComponent(e){this.triggerBindEvent("landing-page",e)}bindModifiedQueryComponent(e){const t={display:!!(null==e?void 0:e.query)&&!!(null==e?void 0:e.modifiedQuery)&&HawkSearch.searchRequest.newRequest,query:null==e?void 0:e.query,modifiedQuery:null==e?void 0:e.modifiedQuery};this.triggerBindEvent("modified-query",t)}bindPageSizeComponent(e){var t;this.triggerBindEvent("page-size",null===(t=null==e?void 0:e.pagination)||void 0===t?void 0:t.options)}bindPaginationComponent(e){this.triggerBindEvent("pagination",null==e?void 0:e.pagination)}bindSearchFieldComponent(e){this.triggerBindEvent("search-field",e)}bindSearchResultsComponent(e){this.triggerBindEvent("search-results",e)}bindSearchResultsListComponent(e){this.triggerBindEvent("search-results-list",null==e?void 0:e.results)}bindQuerySuggestionsComponent(e){var t;const n={display:!!(null===(t=null==e?void 0:e.querySuggestions)||void 0===t?void 0:t.length)&&HawkSearch.searchRequest.newRequest,querySuggestions:null==e?void 0:e.querySuggestions};this.triggerBindEvent("query-suggestions",n)}bindSortingComponent(e){this.triggerBindEvent("sorting",null==e?void 0:e.sorting)}bindSelectedFacetsComponent(e){this.triggerBindEvent("selected-facets",null==e?void 0:e.selectedFacets)}bindTabsComponent(e){var t;this.triggerBindEvent("tabs",null===(t=null==e?void 0:e.facets)||void 0===t?void 0:t.find((e=>"tabs"===e.type)))}bindZoneComponent(e){this.triggerBindEvent("content-zone",e)}getRequestFromUrl(){const e=new URL(window.location.href),t={},n=new RegExp(`^${this.queryStringParams.facet}-`);for(const r of Array.from(e.searchParams.keys()).filter((e=>n.test(e))))t[r.replace(n,"")]=e.searchParams.getAll(r);return{disableSpellcheck:this.getBooleanParameter(e.searchParams.get(this.queryStringParams.disableSpellcheck)),facets:t,newRequest:!0,pageSize:this.getPositiveIntegerParameter(e.searchParams.get(this.queryStringParams.pageSize)),page:this.getPositiveIntegerParameter(e.searchParams.get(this.queryStringParams.page)),query:this.getStringParameter(e.searchParams.get(this.queryStringParams.query)),searchWithin:this.getStringParameter(e.searchParams.get(this.queryStringParams.searchWithin)),sort:this.getStringParameter(e.searchParams.get(this.queryStringParams.sort))}}setQueryString(){if(!HawkSearch.searchRequest)return;const e=this.getSearchUrl(HawkSearch.searchRequest),t={searchRequest:HawkSearch.searchRequest,searchResponse:HawkSearch.searchResponse};e.toString()===window.location.href?window.history.replaceState(t,""):window.history.pushState(t,"",e.toString())}getSearchUrl(e){const t=window.location.pathname===this.searchUrl||!!e.url,n=new URL(t?window.location.href:this.searchUrl,window.location.origin);n.searchParams.delete(this.queryStringParams.query),e.query&&n.searchParams.set(this.queryStringParams.query,e.query);for(const e of n.searchParams.keys())e.startsWith(`${this.queryStringParams.facet}-`)&&n.searchParams.delete(e);return e.disableSpellcheck&&n.searchParams.set(this.queryStringParams.disableSpellcheck,e.disableSpellcheck.toString()),e.facets&&Object.keys(e.facets).forEach((t=>{const r=e.facets[t];null==r||r.forEach((e=>n.searchParams.append(`${this.queryStringParams.facet}-${t}`,e)))})),n.searchParams.delete(this.queryStringParams.searchWithin),e.searchWithin&&n.searchParams.set(this.queryStringParams.searchWithin,e.searchWithin),n.searchParams.delete(this.queryStringParams.sort),e.sort&&n.searchParams.set(this.queryStringParams.sort,e.sort),n.searchParams.delete(this.queryStringParams.pageSize),e.pageSize&&n.searchParams.set(this.queryStringParams.pageSize,e.pageSize.toString()),n.searchParams.delete(this.queryStringParams.page),e.page&&n.searchParams.set(this.queryStringParams.page,e.page.toString()),n.toString()}getBooleanParameter(e){if(null!==e)return"true"===e}getPositiveIntegerParameter(e){if(!e)return;const t=parseInt(e);return t>0?t:void 0}getStringParameter(e){if(e&&e.trim())return e.trim()}getRecentQueries(){const e=sessionStorage.getItem("recent-queries");return e?JSON.parse(e):[]}saveRecentQueries(e){const t=JSON.stringify(e);sessionStorage.setItem("recent-queries",t)}setSeoElements(e){(null==e?void 0:e.seo)&&(this.setTitle(e.seo.title),this.setLinkTag("canonical",e.seo.canonicalUrl),this.setMetaTag("description",e.seo.description),this.setMetaTag("keywords",e.seo.keywords),this.setMetaTag("robots",e.seo.robots))}removeElement(e){const t=document.head.querySelector(e);t&&t.remove()}setLinkTag(e,t){if(!t)return;this.removeElement(`link[rel="${e}"]`);const n=document.createElement("link");n.rel=e,n.href=t,document.head.append(n)}setMetaTag(e,t){if(!t)return;this.removeElement(`meta[name="${e}"]`);const n=document.createElement("meta");n.name=e,n.content=t,document.head.append(n)}setTitle(e){e&&(document.title=e)}},hn=function(){return l.Date.now()};var dn=/\s/;var pn=/^\s+/;const vn=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&dn.test(e.charAt(t)););return t}(e)+1).replace(pn,""):e};var fn=/^[-+]0x[0-9a-f]+$/i,mn=/^0b[01]+$/i,gn=/^0o[0-7]+$/i,yn=parseInt;const kn=function(e){if("number"==typeof e)return e;if(k(e))return NaN;if(N(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=N(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=vn(e);var n=mn.test(e);return n||gn.test(e)?yn(e.slice(2),n?2:8):fn.test(e)?NaN:+e};var wn=Math.max,bn=Math.min;const _n=function(e,t,n){var r,i,a,s,o,l,c=0,u=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,a=i;return r=i=void 0,c=t,s=e.apply(a,n)}function v(e){return c=e,o=setTimeout(m,t),u?p(e):s}function f(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-c>=a}function m(){var e=hn();if(f(e))return g(e);o=setTimeout(m,function(e){var n=t-(e-l);return h?bn(n,a-(e-c)):n}(e))}function g(e){return o=void 0,d&&r?p(e):(r=i=void 0,s)}function y(){var e=hn(),n=f(e);if(r=arguments,i=this,l=e,n){if(void 0===o)return v(l);if(h)return clearTimeout(o),o=setTimeout(m,t),p(l)}return void 0===o&&(o=setTimeout(m,t)),s}return t=kn(t)||0,N(n)&&(u=!!n.leading,a=(h="maxWait"in n)?wn(kn(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==o&&clearTimeout(o),c=0,r=l=i=o=void 0},y.flush=function(){return void 0===o?s:g(hn())},y};function Sn(e,t){return e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e.getTime()===t.getTime()}function En(e){var t;const n=(null===(t=HawkSearch.config.formatting)||void 0===t?void 0:t.cultureIsoCode)||"en-US";return e.toLocaleDateString(n,{month:"long"})}function xn(){var e;const t=(null===(e=HawkSearch.config.formatting)||void 0===e?void 0:e.cultureIsoCode)||"en-US",n=(new Date).getFullYear(),r=[];for(let e=0;e<12;e++){const i=new Date(n,e,1).toLocaleDateString(t,{month:"long"});r.push(i)}return r}function Pn(e,t=2){var n,r,i;const a=(null===(n=HawkSearch.config.formatting)||void 0===n?void 0:n.cultureIsoCode)||"en-US",s=(null===(i=null===(r=HawkSearch.config.formatting)||void 0===r?void 0:r.currencyIsoCode)||void 0===i?void 0:i.toUpperCase())||"USD";return e.toLocaleString(a,{style:"currency",currency:s,minimumFractionDigits:t,maximumFractionDigits:t})}function Cn(e){return`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`}function In(e){var t;const n=(null===(t=HawkSearch.config.formatting)||void 0===t?void 0:t.cultureIsoCode)||"en-US";return e.toLocaleString(n,{year:"numeric",month:"short",day:"2-digit"})}function Hn(e,t=2){var n;const r=(null===(n=HawkSearch.config.formatting)||void 0===n?void 0:n.cultureIsoCode)||"en-US";return e.toLocaleString(r,{style:"decimal",minimumFractionDigits:t,maximumFractionDigits:t})}class qn extends r{constructor(){super(...arguments),this.bindFromEvent=!1}onRender(){super.onRender(),this.rootElement.querySelectorAll("input[hawksearch-facet-value]").forEach((e=>{e.addEventListener("change",(e=>{e.stopPropagation();const t=e.currentTarget,n=this.data.field,r=t.value;t.checked?un.addFacetValue(n,r):un.removeFacetValue(n,r)}))})),this.rootElement.querySelectorAll("[hawksearch-facet-value]:not(input)").forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault(),e.stopPropagation();const n=e.currentTarget.getAttribute("hawksearch-facet-value"),r=null===(t=this.data.values)||void 0===t?void 0:t.find((e=>e.value===n));r&&(r.selected?un.removeFacetValue(this.data.field,n):un.addFacetValue(this.data.field,n))}))})),this.rootElement.querySelectorAll("[hawksearch-facet-value-include]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget,n=this.data.field;let r=t.getAttribute("hawksearch-facet-value-include");r&&(r=`@${r}`,un.removeFacetValue(n,r))}))})),this.rootElement.querySelectorAll("[hawksearch-facet-value-exclude]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget,n=this.data.field,r=t.getAttribute("hawksearch-facet-value-exclude");r&&un.excludeFacetValue(n,r)}))})),this.rootElement.querySelectorAll("[hawksearch-facet-value-toggle]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation();const t=e.currentTarget.getAttribute("hawksearch-facet-value-toggle");t&&(this.state.values[t].toggled=!this.state.values[t].toggled,this.render())}))})),this.rootElement.querySelectorAll("[hawksearch-facet-toggle]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),this.state.toggled=!this.state.toggled,this.render()}))}))}}HawkSearch||(HawkSearch={}),HawkSearch.handlebars=e.noConflict(),HawkSearch.handlebars.registerHelper("add",(function(e,t){return e+t})),HawkSearch.handlebars.registerHelper("and",(function(...e){return e.slice(0,-1).every((e=>!!e))})),HawkSearch.handlebars.registerHelper("attribute",(function(e,t){return new HawkSearch.handlebars.SafeString(t?e:"")})),HawkSearch.handlebars.registerHelper("concat",(function(...e){return e.length<2?"":e.slice(0,-1).join("")})),HawkSearch.handlebars.registerHelper("eq",(function(e,t){return e===t})),HawkSearch.handlebars.registerHelper("exclude",(function(e){return e.fn()})),HawkSearch.handlebars.registerHelper("html",(function(e){return new HawkSearch.handlebars.SafeString(e)})),HawkSearch.handlebars.registerHelper("currency",(function(e,t,n){var r;return"object"==typeof t&&(t=void 0),"object"==typeof n&&(n=void 0),e instanceof Array&&(e=e[0]),Pn(null!==(r=null!=e?e:n)&&void 0!==r?r:0,t)})),HawkSearch.handlebars.registerHelper("number",(function(e,t,n){var r;return"object"==typeof n&&(n=void 0),e instanceof Array&&(e=e[0]),Hn(null!==(r=null!=e?e:n)&&void 0!==r?r:0,t)})),HawkSearch.handlebars.registerHelper("if-else",(function(e,t,n){return e?t:n})),HawkSearch.handlebars.registerHelper("lt",(function(e,t){return e<t})),HawkSearch.handlebars.registerHelper("lte",(function(e,t){return e<=t})),HawkSearch.handlebars.registerHelper("gt",(function(e,t){return e>t})),HawkSearch.handlebars.registerHelper("gte",(function(e,t){return e>=t})),HawkSearch.handlebars.registerHelper("or",(function(...e){return e.slice(0,-1).some((e=>!!e))})),HawkSearch.handlebars.registerHelper("string",(function(e,t){return"object"==typeof t&&(t=void 0),e instanceof Array&&(e=e[0]),null!=e?e:t})),HawkSearch.handlebars.registerHelper("subtract",(function(e,t){return e-t})),HawkSearch.services={autocomplete:D,recommendations:_e,search:un,tracking:ln};const Ln={autocomplete:class extends r{constructor(){super(...arguments),this.bindFromEvent=!0,this.componentName="autocomplete",this.defaultHtml='<div class="autocomplete">\r\n <div class="row">\r\n {{#if products.results.length}}\r\n <div class="column column--12 column-md--8">\r\n <span class="autocomplete__title autocomplete__title--products">{{products.title}}</span>\r\n <div class="row autocomplete__products">\r\n {{#each products.results}}\r\n <div class="column column--12 column-sm--4">\r\n <div class="autocomplete__product">\r\n <a hawksearch-product="{{id}}" href="{{url}}" class="autocomplete__product__image">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n <span class="autocomplete__product__title">\r\n <a hawksearch-product="{{id}}" href="{{url}}">{{html title}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n {{/each}}\r\n </div>\r\n </div>\r\n {{/if}}\r\n {{#if (or categories.results.length content.results.length queries.results.length)}}\r\n <div class="column column--12 column-md--4">\r\n {{#if categories.results.length}}\r\n <span class="autocomplete__title autocomplete__title--categories">{{categories.title}}</span>\r\n <ul class="autocomplete__list">\r\n {{#each categories.results}}\r\n <li>\r\n <a hawksearch-category-field="{{field}}" hawksearch-category-value="{{value}}" href="{{url}}">{{html title}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n {{/if}}\r\n {{#if content.results.length}}\r\n <span class="autocomplete__title autocomplete__title--content">{{content.title}}</span>\r\n <ul class="autocomplete__list">\r\n {{#each content.results}}\r\n <li>\r\n <a hawksearch-content="{{id}}" href="{{url}}">{{html title}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n {{/if}}\r\n {{#if queries.results.length}}\r\n <span class="autocomplete__title autocomplete__title--queries">{{queries.title}}</span>\r\n <ul class="autocomplete__list">\r\n {{#each queries.results}}\r\n <li>\r\n <a hawksearch-query="{{query}}" href="{{url}}">{{query}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n {{/if}}\r\n </div>\r\n {{/if}}\r\n </div>\r\n <div class="autocomplete__view-all">\r\n <a hawksearch-view-all>{{viewAllText}}</a>\r\n </div>\r\n</div>'}renderContent(){var e,t,n,r,i,a;return!(!this.data||!(null===(t=null===(e=this.data.categories)||void 0===e?void 0:e.results)||void 0===t?void 0:t.length)&&!(null===(r=null===(n=this.data.content)||void 0===n?void 0:n.results)||void 0===r?void 0:r.length)&&!(null===(a=null===(i=this.data.products)||void 0===i?void 0:i.results)||void 0===a?void 0:a.length))}getContentModel(){return Object.assign(Object.assign({},this.data),{AutocompleteItemType:rn})}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||a}))})),this.rootElement.querySelectorAll("[hawksearch-category-field][hawksearch-category-value]").forEach((e=>{e.addEventListener("click",(e=>{var t,n;e.preventDefault();const r=e.currentTarget,i=r.getAttribute("hawksearch-category-field"),a=r.getAttribute("hawksearch-category-value"),s=null===(n=null===(t=this.data.categories)||void 0===t?void 0:t.results)||void 0===n?void 0:n.find((e=>e.field===i&&e.value===a));if(!s)return;ln.trackAutocompleteClick(this.data.query,rn.Category,s.title,s.url);const o={[s.field]:[s.value]};un.query(void 0,o),this.close()}))})),this.rootElement.querySelectorAll("[hawksearch-content]").forEach((e=>{e.addEventListener("click",(e=>{var t,n;const r=e.currentTarget.getAttribute("hawksearch-content"),i=null===(n=null===(t=this.data.content)||void 0===t?void 0:t.results)||void 0===n?void 0:n.find((e=>e.id===r));i&&ln.trackAutocompleteClick(this.data.query,rn.Content,i.title,i.url)}))})),this.rootElement.querySelectorAll("[hawksearch-product]").forEach((e=>{e.addEventListener("click",(e=>{var t,n;const r=e.currentTarget.getAttribute("hawksearch-product"),i=null===(n=null===(t=this.data.products)||void 0===t?void 0:t.results)||void 0===n?void 0:n.find((e=>e.id===r));i&&ln.trackAutocompleteClick(this.data.query,rn.Product,i.title,i.url)}))})),this.rootElement.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault();const n=e.currentTarget.getAttribute("hawksearch-query");if(!n)return;const r=null===(t=this.data.queries)||void 0===t?void 0:t.results.find((e=>e.query===n));r&&ln.trackAutocompleteClick(this.data.query,rn.Search,r.query,r.url),un.query(n)}))})),this.rootElement.querySelectorAll("[hawksearch-view-all]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),un.query(this.data.query)}))}))}close(){const e=new Event("hawksearch:close-autocomplete");this.dispatchEvent(e)}},"checkbox-list-facet":class extends qn{constructor(){super(...arguments),this.componentName="checkbox-list-facet",this.defaultHtml='<div class="checkbox-list-facet" {{attribute (concat \'style="max-height: \' maxHeight \'px;"\') maxHeight}}>\r\n {{> facet-checkbox-list values}}\r\n {{#if showToggle}}\r\n <span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\r\n {{/if}}\r\n</div>'}registerHelpers(){super.registerHelpers(),this.handlebars.registerPartial("facet-checkbox-list",'{{#if length}}\r\n <ul class="checkbox-list-facet__list">\r\n {{#each this}}\r\n {{#if visible}}\r\n <li\r\n class="checkbox-list-facet__list__item{{attribute \' checkbox-list-facet__list__item--excluded\' excluded}}{{attribute\r\n \' checkbox-list-facet__list__item--collapsible\'\r\n hasChildren\r\n }}"\r\n >\r\n <div class="checkbox-list-facet__list__item__content">\r\n {{#if selected}}\r\n <input id="{{@root.id}}-{{value}}" type="checkbox" checked hawksearch-facet-value value="{{value}}" />\r\n {{else}}\r\n <input id="{{@root.id}}-{{value}}" type="checkbox" hawksearch-facet-value value="{{value}}" />\r\n {{/if}}\r\n <label for="{{@root.id}}-{{value}}" class="facet__value">\r\n <span class="facet__value__title checkbox-list-facet__list__item__title">{{title}}</span>\r\n {{#if @root.displayCount}}\r\n <span class="facet__value__count checkbox-list-facet__list__item__count">({{count}})</span>\r\n {{/if}}\r\n </label>\r\n {{#if toggled}}\r\n {{> facet-checkbox-list children}}\r\n {{/if}}\r\n </div>\r\n {{#if (or @root.excludeEnabled hasChildren)}}\r\n <div class="checkbox-list-facet__list__item__actions">\r\n {{#if @root.excludeEnabled}}\r\n {{#if excluded}}\r\n <span hawksearch-facet-value-include="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{@root.strings.include}}">\r\n <hawksearch-icon name="plus" class="facet__heading__actions__item"></hawksearch-icon>\r\n </span>\r\n {{else}}\r\n <span hawksearch-facet-value-exclude="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{@root.strings.exclude}}">\r\n <hawksearch-icon name="minus" class="facet__heading__actions__item"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{/if}}\r\n {{#if hasChildren}}\r\n <span hawksearch-facet-value-toggle="{{value}}" class="checkbox-list-facet__list__item__actions__item" title="{{if-else toggled @root.strings.collapse @root.strings.expand}}">\r\n <hawksearch-icon name="{{if-else toggled \'chevron-down\' \'chevron-right\'}}" class="facet__heading__toggle"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n </div>\r\n {{/if}}\r\n </li>\r\n {{/if}}\r\n {{/each}}\r\n </ul>\r\n{{/if}}')}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.values)||void 0===t?void 0:t.length)}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p,v,f,m,g,y,k,w,b,_,S,E,x;const P=this.state.filter?new RegExp(this.state.filter,"i"):void 0,C=e=>!!P&&P.test(e.title),I=e=>{var t;return(null===(t=e.children)||void 0===t?void 0:t.some((e=>C(e))))||!1},H=(e,t)=>null==e?void 0:e.map(((e,n)=>{var r,i,a,s,o;const l=Object.assign(Object.assign({},e),{visible:!t&&!P&&(this.state.toggled||!this.data.truncation||n<this.data.truncation.threshold)||C(e)||I(e)||!P&&!!(null==t?void 0:t.toggled),hasChildren:!!(null===(r=e.children)||void 0===r?void 0:r.length),children:void 0,toggled:!(!e.value||!(null===(i=e.children)||void 0===i?void 0:i.length))&&null!==(o=null===(s=null===(a=this.state.values)||void 0===a?void 0:a[e.value])||void 0===s?void 0:s.toggled)&&void 0!==o&&o||I(e)});return l.children=H(e.children,l),l}));return{displayCount:null===(e=this.data.displayCount)||void 0===e||e,expanded:null!==(t=this.state.toggled)&&void 0!==t&&t,maxHeight:this.data.scrolling&&this.data.values.length>=this.data.scrolling.threshold?null!==(n=this.data.scrolling.height)&&void 0!==n?n:200:void 0,showToggle:!!this.data.truncation&&(null!==(i=null===(r=this.data.values)||void 0===r?void 0:r.length)&&void 0!==i?i:0)>this.data.truncation.threshold&&!this.state.filter,values:null!==(a=H(this.data.values,void 0))&&void 0!==a?a:[],excludeEnabled:null!==(o=null===(s=this.configuration)||void 0===s?void 0:s.excludeEnabled)&&void 0!==o&&o,strings:{collapse:null!==(u=null===(c=null===(l=this.configuration)||void 0===l?void 0:l.strings)||void 0===c?void 0:c.collapse)&&void 0!==u?u:"Collapse",exclude:null!==(p=null===(d=null===(h=this.configuration)||void 0===h?void 0:h.strings)||void 0===d?void 0:d.exclude)&&void 0!==p?p:"Exclude",expand:null!==(m=null===(f=null===(v=this.configuration)||void 0===v?void 0:v.strings)||void 0===f?void 0:f.expand)&&void 0!==m?m:"Expand",include:null!==(k=null===(y=null===(g=this.configuration)||void 0===g?void 0:g.strings)||void 0===y?void 0:y.include)&&void 0!==k?k:"Include",toggle:this.state.toggled?null!==(_=null===(b=null===(w=this.configuration)||void 0===w?void 0:w.strings)||void 0===b?void 0:b.showFewer)&&void 0!==_?_:"Show fewer":null!==(x=null===(E=null===(S=this.configuration)||void 0===S?void 0:S.strings)||void 0===E?void 0:E.showMore)&&void 0!==x?x:"Show more"}}}},"color-facet":class extends qn{constructor(){super(...arguments),this.componentName="color-facet",this.defaultHtml='<div class="color-facet">\r\n <div class="row row--tight color-facet__items">\r\n {{#each values}}\r\n {{#if visible}}\r\n <div hawksearch-facet-value="{{value}}" class="column column--2 color-facet__item{{attribute \' color-facet__item--selected\' selected}}">\r\n {{#if color.imageUrl}}\r\n <img src="{{color.imageUrl}}" class="color-facet__item__image" alt="{{color.name}}" title="{{color.name}}" />\r\n {{else}}\r\n <div class="color-facet__item__box" style="background: {{color.hex}};"></div>\r\n {{/if}}\r\n {{#if @root.excludeEnabled}}\r\n <span class="color-facet__item__actions">\r\n {{#if excluded}}\r\n <span hawksearch-facet-value-include="{{value}}" class="color-facet__item__actions__item" title="{{strings.include}}">\r\n <hawksearch-icon name="plus"></hawksearch-icon>\r\n </span>\r\n {{else}}\r\n <span hawksearch-facet-value-exclude="{{value}}" class="color-facet__item__actions__item" title="{{strings.exclude}}">\r\n <hawksearch-icon name="minus"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n </span>\r\n {{/if}}\r\n </div>\r\n {{/if}}\r\n {{/each}}\r\n </div>\r\n {{#if showToggle}}\r\n <span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\r\n {{/if}}\r\n</div>'}renderContent(){return!!this.data}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p,v,f,m,g,y;const k=this.state.filter?new RegExp(this.state.filter,"i"):void 0;return{values:null!==(t=null===(e=this.data.values)||void 0===e?void 0:e.filter((e=>e.color)).map(((e,t)=>{var n;return Object.assign(Object.assign({},e),{visible:!k&&(this.state.toggled||!this.data.truncation||t<this.data.truncation.threshold)||!!k&&k.test(null!==(n=e.title)&&void 0!==n?n:"")})})))&&void 0!==t?t:[],showToggle:!!this.data.truncation&&(null!==(r=null===(n=this.data.values)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>this.data.truncation.threshold&&!this.state.filter,expanded:null!==(i=this.state.toggled)&&void 0!==i&&i,excludeEnabled:null!==(s=null===(a=this.configuration)||void 0===a?void 0:a.excludeEnabled)&&void 0!==s&&s,strings:{exclude:null!==(c=null===(l=null===(o=this.configuration)||void 0===o?void 0:o.strings)||void 0===l?void 0:l.exclude)&&void 0!==c?c:"Exclude",include:null!==(d=null===(h=null===(u=this.configuration)||void 0===u?void 0:u.strings)||void 0===h?void 0:h.include)&&void 0!==d?d:"Include",toggle:this.state.toggled?null!==(f=null===(v=null===(p=this.configuration)||void 0===p?void 0:p.strings)||void 0===v?void 0:v.showFewer)&&void 0!==f?f:"Show fewer":null!==(y=null===(g=null===(m=this.configuration)||void 0===m?void 0:m.strings)||void 0===g?void 0:g.showMore)&&void 0!==y?y:"Show more"}}}},"content-zone":class extends r{constructor(){super(...arguments),this.componentName="content-zone",this.defaultHtml='<div class="content-zone">\r\n {{#each items}}\r\n {{#if (eq type "custom")}}\r\n <hawksearch-custom-content index="{{@index}}"></hawksearch-custom-content>\r\n {{/if}}\r\n {{#if (eq type "featured-items")}}\r\n <hawksearch-featured-items-content index="{{@index}}"></hawksearch-featured-items-content>\r\n {{/if}}\r\n {{#if (eq type "image")}}\r\n <hawksearch-image-content index="{{@index}}"></hawksearch-image-content>\r\n {{/if}}\r\n {{#if (eq type "popular-queries")}}\r\n <hawksearch-popular-queries-content index="{{@index}}"></hawksearch-popular-queries-content>\r\n {{/if}}\r\n {{/each}}\r\n</div>',this.bindFromEvent=!0}get name(){return this.getAttribute("name")||void 0}get zone(){var e,t;return this.name?null===(t=null===(e=this.data)||void 0===e?void 0:e.contentZones)||void 0===t?void 0:t[this.name]:void 0}get displayType(){var e,t,n,r;const i=window.innerWidth;return i>=(null!==(t=null===(e=HawkSearch.config.breakpoints)||void 0===e?void 0:e.desktop)&&void 0!==t?t:990)?"desktop":i>=(null!==(r=null===(n=HawkSearch.config.breakpoints)||void 0===n?void 0:n.tablet)&&void 0!==r?r:740)?"tablet":"mobile"}connectedCallback(){super.connectedCallback(),this.windowResizeEventHandler=_n((e=>{this.displayType!==this.previousDisplayType&&this.render()}),100),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.windowResizeEventHandler)}renderContent(){var e,t;return!!(null===(t=null===(e=this.zone)||void 0===e?void 0:e.items)||void 0===t?void 0:t.length)}getContentModel(){var e,t;return this.previousDisplayType=this.displayType,Object.assign(Object.assign({},this.zone),{items:null!==(t=null===(e=this.zone)||void 0===e?void 0:e.items.map((e=>e[this.displayType])))&&void 0!==t?t:[]})}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("[index]").forEach((e=>{var t,n,r;const i=e,a=parseInt(i.getAttribute("index")||"-1");isNaN(a)||a<0||a>=((null===(t=this.zone)||void 0===t?void 0:t.items.length)||-1)||(i.data=null===(r=null===(n=this.zone)||void 0===n?void 0:n.items[a])||void 0===r?void 0:r[this.displayType])}))}},"custom-content":class extends i{constructor(){super(...arguments),this.componentName="custom-content",this.defaultHtml='<div class="custom-content">\r\n {{html content}}\r\n</div>'}renderContent(){return!!this.data}getContentModel(){return Object.assign({},this.data)}},"date-picker":class extends r{constructor(){super(...arguments),this.componentName="date-picker",this.defaultHtml='<div class="date-picker">\r\n <input type="text" value="{{value}}" hawksearch-input readonly class="date-picker__input" aria-label="{{strings.label}}" />\r\n {{#if modalVisible}}\r\n <div hawksearch-modal class="date-picker__modal">\r\n {{#if monthSelectorVisible}}\r\n <div class="date-picker__modal__header">\r\n <span class="date-picker__modal__header__month">{{strings.selectMonth}}</span>\r\n </div>\r\n <div class="row">\r\n <div class="column column--12">\r\n <select hawksearch-month>\r\n {{#each months}}\r\n {{#if (eq this @root.currentMonth)}}\r\n <option value="{{@index}}" selected>{{this}}</option>\r\n {{else}}\r\n <option value="{{@index}}">{{this}}</option>\r\n {{/if}}\r\n {{/each}}\r\n </select>\r\n </div>\r\n <div class="column column--12">\r\n <select hawksearch-year>\r\n {{#each years}}\r\n {{#if (eq this @root.currentYear)}}\r\n <option value="{{this}}" selected>{{this}}</option>\r\n {{else}}\r\n <option value="{{this}}">{{this}}</option>\r\n {{/if}}\r\n {{/each}}\r\n </select>\r\n </div>\r\n <div class="column column--12">\r\n <button hawksearch-select-month class="button button--full-width">{{strings.viewCalendar}}</button>\r\n </div>\r\n </div>\r\n {{else}}\r\n <div class="date-picker__modal__header">\r\n <a hawksearch-previous class="date-picker__modal__header__previous" title="{{strings.previous}}">\r\n <hawksearch-icon name="chevron-left"></hawksearch-icon>\r\n </a>\r\n <a hawksearch-month-selector class="date-picker__modal__header__month">{{strings.heading}}</a>\r\n <a hawksearch-next class="date-picker__modal__header__next" title="{{strings.next}}">\r\n <hawksearch-icon name="chevron-right"></hawksearch-icon>\r\n </a>\r\n </div>\r\n <table class="date-picker__calendar" cellspacing="0" cellpadding="0">\r\n <thead>\r\n <tr>\r\n <th scope="col">{{dayAbbreviation 0}}</th>\r\n <th scope="col">{{dayAbbreviation 1}}</th>\r\n <th scope="col">{{dayAbbreviation 2}}</th>\r\n <th scope="col">{{dayAbbreviation 3}}</th>\r\n <th scope="col">{{dayAbbreviation 4}}</th>\r\n <th scope="col">{{dayAbbreviation 5}}</th>\r\n <th scope="col">{{dayAbbreviation 6}}</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n {{#each weeks}}\r\n <tr>\r\n {{#each this}}\r\n <td\r\n hawksearch-date="{{value}}"\r\n class="date-picker__calendar__day\r\n {{attribute \' date-picker__calendar__day--alternate\' (eq currentMonth false)}}\r\n {{attribute \' date-picker__calendar__day--selected\' selected}}\r\n {{attribute \' date-picker__calendar__day--disabled\' (eq enabled false)}}"\r\n >\r\n <span>{{dayOfMonth date}}</span>\r\n </td>\r\n {{/each}}\r\n </tr>\r\n {{/each}}\r\n </tbody>\r\n </table>\r\n {{/if}}\r\n </div>\r\n {{/if}}\r\n</div>',this.bindFromEvent=!1,this.modalVisible=!1,this.modalDate=new Date,this.monthSelectorVisible=!1}static get observedAttributes(){return["label","max","min","value"]}connectedCallback(){super.connectedCallback(),this.documentClickEventHandler=e=>{this.modalVisible&&!e.composedPath().includes(this)&&(this.modalVisible=!1,setTimeout((()=>this.render())))},document.addEventListener("click",this.documentClickEventHandler),this.windowResizeEventHandler=_n((e=>{this.positionModal()}),100),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.documentClickEventHandler),window.addEventListener("resize",this.windowResizeEventHandler)}attributeChangedCallback(e,t,n){if("label"===e)this.label=n||void 0;else{const t=n?new Date(n):void 0;switch(t&&t.setHours(0,0,0,0),e){case"max":this.maxDate=t;break;case"min":this.minDate=t;break;case"value":this.selectedDate=t}}this.render()}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("dayAbbreviation",(e=>function(e){var t;const n=(null===(t=HawkSearch.config.formatting)||void 0===t?void 0:t.cultureIsoCode)||"en-US";return new Date(2023,0,e+1).toLocaleDateString(n,{weekday:"short"})}(e))),this.handlebars.registerHelper("dayOfMonth",(e=>e.getDate().toString().padStart(2,"0")))}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p,v,f;return{value:this.selectedDate?Cn(this.selectedDate):"",modalVisible:this.modalVisible,monthSelectorVisible:this.monthSelectorVisible,years:this.getYears(),months:xn(),weeks:this.getWeeks(this.modalDate),currentYear:this.modalDate.getFullYear(),currentMonth:En(this.modalDate),strings:{heading:`${En(this.modalDate)} ${this.modalDate.getFullYear()}`,label:null!==(r=null!==(e=this.label)&&void 0!==e?e:null===(n=null===(t=this.configuration)||void 0===t?void 0:t.strings)||void 0===n?void 0:n.defaultLabel)&&void 0!==r?r:"Selected Date",next:null!==(s=null===(a=null===(i=this.configuration)||void 0===i?void 0:i.strings)||void 0===a?void 0:a.next)&&void 0!==s?s:"Next",previous:null!==(c=null===(l=null===(o=this.configuration)||void 0===o?void 0:o.strings)||void 0===l?void 0:l.previous)&&void 0!==c?c:"Previous",selectMonth:null!==(d=null===(h=null===(u=this.configuration)||void 0===u?void 0:u.strings)||void 0===h?void 0:h.selectMonth)&&void 0!==d?d:"Select Month",viewCalendar:null!==(f=null===(v=null===(p=this.configuration)||void 0===p?void 0:p.strings)||void 0===v?void 0:v.viewCalendar)&&void 0!==f?f:"View Calendar"}}}onRender(){super.onRender(),this.positionModal(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach((e=>{e.addEventListener("click",(e=>{this.modalVisible=!0,this.modalDate=this.selectedDate?new Date(this.selectedDate):new Date,this.render()}))})),this.rootElement.querySelectorAll("[hawksearch-previous]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.modalDate.setDate(1),this.modalDate.setMonth(this.modalDate.getMonth()-1),this.render()}))})),this.rootElement.querySelectorAll("[hawksearch-next]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.modalDate.setDate(1),this.modalDate.setMonth(this.modalDate.getMonth()+1),this.render()}))})),this.rootElement.querySelectorAll("[hawksearch-month-selector]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.monthSelectorVisible=!0,this.render()}))})),this.rootElement.querySelectorAll("[hawksearch-select-month]").forEach((e=>{e.addEventListener("click",(e=>{var t,n;e.preventDefault();const r=null===(t=this.rootElement.querySelector("[hawksearch-month]"))||void 0===t?void 0:t.value,i=null===(n=this.rootElement.querySelector("[hawksearch-year]"))||void 0===n?void 0:n.value;if(void 0===r)throw new Error("Unable to get month value");if(void 0===i)throw new Error("Unable to get year value");this.modalDate=new Date(parseInt(i),parseInt(r),1),this.monthSelectorVisible=!1,this.render()}))})),this.rootElement.querySelectorAll("[hawksearch-date]").forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault();const n=e.getAttribute("hawksearch-date")||void 0;if(!n)return;const r=new Date(n);if(this.minDate&&!(r>=this.minDate)||this.maxDate&&!(r<=this.maxDate))return;this.selectedDate=r,this.modalVisible=!1,this.render();const i=new CustomEvent("hawksearch:date-picker-changed",{detail:r});this.dispatchEvent(i)}))}))}positionModal(){const e=this.rootElement.querySelector("[hawksearch-modal]");if(!e||!e.offsetWidth||!this.modalVisible)return;e.style.left="",e.style.right="";const t=window.innerWidth,n=e.getBoundingClientRect();e.offsetWidth+n.x>=t&&t>=e.offsetWidth&&(e.style.right="0")}getYears(){const e=[],t=this.modalDate.getFullYear(),n=t<1900?t:1900,r=(t>(new Date).getFullYear()?t:(new Date).getFullYear())+10;for(let t=n;t<=r;t++)e.push(t);return e}getWeeks(e){let t=new Date(e.getFullYear(),e.getMonth(),1);t.setDate(t.getDate()-t.getDay());const n=[];do{const e=this.getWeek(t);n.push(e),t=new Date(n[n.length-1][6].date.getTime()),t.setDate(t.getDate()+1)}while(n.length<6);return n}getWeek(e){const t=[];(new Date).setHours(0,0,0,0);for(let n=0;n<7;n++){const r=new Date(e.getTime());r.setDate(r.getDate()+n),r.setHours(0,0,0,0);const i={date:r,value:r.toISOString(),currentMonth:r.getMonth()===this.modalDate.getMonth(),enabled:(!this.minDate||r>=this.minDate)&&(!this.maxDate||r<=this.maxDate),selected:!!this.selectedDate&&Sn(r,this.selectedDate)};t.push(i)}return t}},"date-range-facet":class extends qn{constructor(){super(...arguments),this.componentName="date-range-facet",this.defaultHtml='<div class="date-range-facet">\r\n <div class="row">\r\n <div class="column column--6">\r\n <hawksearch-date-picker\r\n hawksearch-start\r\n value="{{startValue}}"\r\n min="{{minValue}}"\r\n max="{{endValue}}"\r\n label="{{strings.startDate}}"\r\n ></hawksearch-date-picker>\r\n </div>\r\n <div class="column column--6">\r\n <hawksearch-date-picker\r\n hawksearch-end\r\n value="{{endValue}}"\r\n min="{{startValue}}"\r\n max="{{maxValue}}"\r\n label="{{strings.endDate}}"\r\n ></hawksearch-date-picker>\r\n </div>\r\n </div>\r\n</div>'}get range(){var e,t;if("date"===(null===(t=null===(e=this.data)||void 0===e?void 0:e.range)||void 0===t?void 0:t.type))return this.data.range}renderContent(){return!!this.range}getContentModel(){var e,t,n,r,i,a;return{startValue:this.range.start.toISOString(),endValue:this.range.end.toISOString(),minValue:this.range.min.toISOString(),maxValue:this.range.max.toISOString(),strings:{startDate:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.startDate)&&void 0!==n?n:"Start Date",endDate:null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.endDate)&&void 0!==a?a:"End Date"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-start]").forEach((e=>{e.addEventListener("hawksearch:date-picker-changed",(e=>{let t=e.detail;t||(t=this.range.min),this.setFacetValue(t,this.range.end)}))})),this.rootElement.querySelectorAll("[hawksearch-end]").forEach((e=>{e.addEventListener("hawksearch:date-picker-changed",(e=>{let t=e.detail;t||(t=this.range.max),this.setFacetValue(this.range.start,t)}))}))}updateInputElements(e,t){const n=this.rootElement.querySelector("[hawksearch-start]"),r=this.rootElement.querySelector("[hawksearch-end]");n&&(n.value=e?Cn(e):""),r&&(r.value=t?Cn(t):"")}setFacetValue(e,t){var n,r;if(e&&t&&e>t){const n=e;e=t,t=n}e||(e=this.range.start),t||(t=this.range.end),e.setHours(0,0,0,0),t.setHours(23,59,59,999),this.updateInputElements(e,t),Sn(e,this.range.start)&&Sn(t,this.range.end)||un.setFacetValue(this.data.field,`${null!==(n=null==e?void 0:e.toISOString())&&void 0!==n?n:""},${null!==(r=null==t?void 0:t.toISOString())&&void 0!==r?r:""}`)}},"facet-wrapper":class extends r{constructor(){super(...arguments),this.componentName="facet-wrapper",this.defaultHtml='<div class="facet">\r\n <div hawksearch-facet-heading class="facet__heading{{attribute \' facet__heading--collapsible\' collapsible}}">\r\n {{title}}\r\n {{#if tooltip}}\r\n <hawksearch-tooltip text="{{tooltip}}"></hawksearch-tooltip>\r\n {{/if}}\r\n {{#if collapsible}}\r\n <hawksearch-icon name="{{if-else collapsed \'chevron-right\' \'chevron-down\'}}" size="1.5em" class="facet__heading__toggle"></hawksearch-icon>\r\n {{/if}}\r\n </div>\r\n {{#unless collapsed}}\r\n <div class="facet__content">\r\n {{#if searchable}}\r\n <input type="text" placeholder="Quick Lookup" hawksearch-facet-search value="{{filter}}" class="facet__search" />\r\n {{/if}}\r\n {{#if (eq type "checkbox")}}\r\n <hawksearch-checkbox-list-facet hawksearch-facet></hawksearch-checkbox-list-facet>\r\n {{/if}}\r\n {{#if (eq type "color")}}\r\n <hawksearch-color-facet hawksearch-facet></hawksearch-color-facet>\r\n {{/if}}\r\n {{#if (eq type "date-range")}}\r\n <hawksearch-date-range-facet hawksearch-facet></hawksearch-date-range-facet>\r\n {{/if}}\r\n {{#if (eq type "link")}}\r\n <hawksearch-link-list-facet hawksearch-facet></hawksearch-link-list-facet>\r\n {{/if}}\r\n {{#if (eq type "numeric-range")}}\r\n <hawksearch-numeric-range-facet hawksearch-facet></hawksearch-numeric-range-facet>\r\n {{/if}}\r\n {{#if (eq type "range-slider")}}\r\n <hawksearch-range-slider-facet hawksearch-facet></hawksearch-range-slider-facet>\r\n {{/if}}\r\n {{#if (eq type "recent-searches")}}\r\n <hawksearch-recent-searches-facet hawksearch-facet></hawksearch-recent-searches-facet>\r\n {{/if}}\r\n {{#if (eq type "related-searches")}}\r\n <hawksearch-related-searches-facet hawksearch-facet></hawksearch-related-searches-facet>\r\n {{/if}}\r\n {{#if (eq type "search")}}\r\n <hawksearch-search-within-facet hawksearch-facet></hawksearch-search-within-facet>\r\n {{/if}}\r\n {{#if (eq type "size")}}\r\n <hawksearch-size-facet hawksearch-facet></hawksearch-size-facet>\r\n {{/if}}\r\n </div>\r\n {{/unless}}\r\n</div>',this.bindFromEvent=!1}renderContent(){var e;return!!(null===(e=this.data)||void 0===e?void 0:e.visible)}getContentModel(){var e,t,n,r,i;return Object.assign(Object.assign({},this.data),{collapsed:null!==(t=null!==(e=this.state.collapsed)&&void 0!==e?e:this.data.collapsed)&&void 0!==t&&t,filter:null!==(n=this.state.filter)&&void 0!==n?n:"",searchable:!!this.data.search&&(null!==(i=null===(r=this.data.values)||void 0===r?void 0:r.length)&&void 0!==i?i:0)>this.data.search.threshold})}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("[hawksearch-facet]").forEach((e=>{e.data=this.data,e.state=this.state}))}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-facet-heading]").forEach((e=>{e.addEventListener("click",(e=>{var t;e.preventDefault(),(null===(t=this.data)||void 0===t?void 0:t.collapsible)&&(this.state.collapsed=!this.state.collapsed,this.render())}))})),this.rootElement.querySelectorAll("[hawksearch-facet-search]").forEach((e=>{e.addEventListener("keyup",(e=>{var t;const n=null===(t=e.currentTarget.value)||void 0===t?void 0:t.trim();this.state.filter=n||void 0,this.rebindChildElements()}))}))}rebindChildElements(){this.rootElement.querySelectorAll("[hawksearch-facet]").forEach((e=>{e.render()}))}},"facets-list":class extends r{constructor(){super(...arguments),this.componentName="facets-list",this.defaultHtml='<div class="facets{{attribute \' facets--expanded\' expanded}}">\r\n <div hawksearch-mobile-toggle class="facets__heading">\r\n {{strings.heading}}\r\n <hawksearch-icon name="{{if-else expanded \'chevron-down\' \'chevron-right\'}}" size="1.5rem" class="facets__heading__mobile-toggle"></hawksearch-icon>\r\n </div>\r\n <div class="facets__content">\r\n {{#each facets}}\r\n <hawksearch-facet-wrapper hawksearch-facet-id="{{id}}"></hawksearch-facet-wrapper>\r\n {{/each}}\r\n </div>\r\n</div>',this.bindFromEvent=!0,this.state={expanded:!1}}renderContent(){return!!this.data}getContentModel(){var e,t,n;const r=["checkbox","color","date-range","link","numeric-range","range-slider","recent-searches","related-searches","search","size"];return{facets:this.data.filter((e=>r.includes(e.type))),expanded:this.state.expanded,strings:{heading:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.heading)&&void 0!==n?n:"Narrow Results"}}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-facet-wrapper[hawksearch-facet-id]").forEach((e=>{var t,n;const r=parseInt(null!==(t=e.getAttribute("hawksearch-facet-id"))&&void 0!==t?t:""),i=null===(n=this.data)||void 0===n?void 0:n.find((e=>e.id===r));let a;if(null==i?void 0:i.values){a=[];const e=t=>{null==t||t.forEach((t=>{t.value&&a.push(t.value),e(t.children)}))};e(i.values)}let s=this.state[r];s||(s={id:r,toggled:!1,values:{}},this.state[r]=s),null==a||a.forEach((e=>{s.values[e]||(s.values[e]={toggled:!1})})),e.data=i,e.state=s}))}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-mobile-toggle]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.state.expanded=!this.state.expanded,this.render()}))}))}},"featured-items-content":class extends i{constructor(){super(...arguments),this.componentName="featured-items-content",this.defaultHtml='<div class="row featured-items-content">\r\n {{#each items}}\r\n {{#if (or (eq @root.zone "Top") (eq @root.zone "Top2") (eq @root.zone "Bottom") (eq @root.zone "Bottom2"))}}\r\n {{#if (eq type "content")}}\r\n <div class="column column--12">\r\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\r\n </div>\r\n {{else}}\r\n <div class="column column--12 column-sm--6 column-lg--4">\r\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\r\n </div>\r\n {{/if}}\r\n {{else}}\r\n <hawksearch-featured-items-content-item></hawksearch-featured-items-content-item>\r\n {{/if}}\r\n {{/each}}\r\n</div>'}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.items)||void 0===t?void 0:t.length)}getContentModel(){return Object.assign({},this.data)}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-featured-items-content-item").forEach(((e,t)=>{var n,r;e.data=null===(r=null===(n=this.data)||void 0===n?void 0:n.items)||void 0===r?void 0:r[t]}))}},"featured-items-content-item":class extends r{constructor(){super(...arguments),this.componentName="featured-items-content-item",this.defaultHtml='<div class="featured-items-content__item featured-items-content__item--{{type}}">\r\n {{#if pinned}}\r\n <span class="featured-items-content__item__pin">\r\n <hawksearch-icon name="star"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{#if (eq type "product")}}\r\n {{#if (lt salePrice price)}}\r\n <span class="featured-items-content__item__sale-indicator">{{strings.sale}}</span>\r\n {{/if}}\r\n <a hawksearch-link href="{{url}}" class="featured-items-content__item__image" aria-label="{{title}}">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n <div class="featured-items-content__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#unless (eq salePrice undefined)}}\r\n <div class="featured-items-content__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\r\n {{#if (lt salePrice price)}}\r\n <span class="featured-items-content__item__price__original">{{currency price}}</span>\r\n <span class="featured-items-content__item__price__current" itemprop="price">{{currency salePrice}}</span>\r\n {{else}}\r\n <span class="featured-items-content__item__price-__current" itemprop="price">{{currency salePrice}}</span>\r\n {{/if}}\r\n </div>\r\n {{/unless}}\r\n {{else}}\r\n <div class="featured-items-content__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#if description}}\r\n <p>{{description}}</p>\r\n {{/if}}\r\n {{/if}}\r\n</div>',this.bindFromEvent=!1}renderContent(){return!!this.data}getContentModel(){var e,t,n;return Object.assign(Object.assign({},this.data),{strings:{sale:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.sale)&&void 0!==n?n:"Sale"}})}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||a}))})),this.rootElement.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{this.data&&ln.trackSearchResultClick(this.data.id,this.data.url,e)}))}))}},icon:class extends r{constructor(){super(...arguments),this.componentName="icon",this.defaultHtml='{{html svg}}\r\n<svg height="{{height}}" width="{{width}}" focusable="false" aria-hidden="true" class="icon">\r\n <use href="{{url}}"></use>\r\n</svg>',this.bindFromEvent=!1}get name(){var e;return null!==(e=this.getAttribute("name"))&&void 0!==e?e:void 0}get size(){const e=this.getAttribute("size");return e?isNaN(Number(e))?e:`${e}px`:"1em"}renderContent(){return!!this.name}getContentModel(){return{svg:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><symbol id="chevron-back" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.703 5.331a1 1 0 0 1 .014 1.414l-3.303 3.371 3.289 3.222a1 1 0 0 1-1.4 1.428L4.3 10.845a1 1 0 0 1-.014-1.414l4.003-4.085a1 1 0 0 1 1.414-.015Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.817 5.331a1 1 0 0 1 .015 1.414l-3.304 3.371 3.29 3.222a1 1 0 0 1-1.4 1.428l-4.004-3.921A1 1 0 0 1 9.4 9.43l4.003-4.085a1 1 0 0 1 1.414-.015Z"/></symbol><symbol id="chevron-down" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.838 10.111a1 1 0 0 1 1.415 0L12 14.858l4.747-4.747a1 1 0 1 1 1.415 1.414l-5.455 5.455a1 1 0 0 1-1.414 0l-5.455-5.455a1 1 0 0 1 0-1.414Z"/></symbol><symbol id="chevron-forward" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.46 14.766a1 1 0 0 1-.014-1.414l3.303-3.37L9.46 6.76a1 1 0 0 1 1.4-1.429l4.003 3.922a1 1 0 0 1 .014 1.414l-4.003 4.085a1 1 0 0 1-1.414.014Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.346 14.766a1 1 0 0 1-.015-1.414l3.304-3.37-3.29-3.222a1 1 0 1 1 1.4-1.429L9.75 9.253a1 1 0 0 1 .014 1.414L5.76 14.752a1 1 0 0 1-1.414.014Z"/></symbol><symbol id="chevron-left" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.69 18.224a1 1 0 0 1-1.414-.034l-5-5.25a1 1 0 0 1 0-1.38l5-5.25a1 1 0 1 1 1.448 1.38l-4.343 4.56 4.343 4.56a1 1 0 0 1-.034 1.414Z"/></symbol><symbol id="chevron-right" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.31 18.224a1 1 0 0 1-.034-1.414l4.343-4.56-4.343-4.56a1 1 0 0 1 1.448-1.38l5 5.25a1 1 0 0 1 0 1.38l-5 5.25a1 1 0 0 1-1.414.034Z"/></symbol><symbol id="chevron-up" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M18.156 16.531a1 1 0 0 1-1.414-.012L12 11.7l-4.742 4.82a1 1 0 1 1-1.425-1.402l5.454-5.546a1 1 0 0 1 1.426 0l5.455 5.546a1 1 0 0 1-.012 1.414Z"/></symbol><symbol id="cross" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="m17.29 3.922-1.178-1.178-6.077 6.078-6.078-6.078-1.179 1.178L8.856 10l-6.078 6.078 1.18 1.178 6.077-6.078 6.077 6.078 1.179-1.178L11.213 10l6.078-6.078Z"/></symbol><symbol id="help" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 18.333c-4.595 0-8.333-3.737-8.333-8.333 0-4.594 3.738-8.333 8.333-8.333 4.595 0 8.333 3.738 8.333 8.333 0 4.596-3.738 8.333-8.333 8.333Zm0-15A6.674 6.674 0 0 0 3.333 10 6.674 6.674 0 0 0 10 16.667 6.674 6.674 0 0 0 16.666 10 6.674 6.674 0 0 0 10 3.333Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.833 12.5H9.166V10H10a1.668 1.668 0 0 0 0-3.333c-.92 0-1.667.746-1.667 1.666H6.666A3.338 3.338 0 0 1 10 5a3.338 3.338 0 0 1 3.333 3.333 3.343 3.343 0 0 1-2.5 3.23v.937Zm-.097.93a1.042 1.042 0 1 1-1.473 1.473 1.042 1.042 0 0 1 1.473-1.473Z"/></symbol><symbol id="minus" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.833 10.833H4.167V9.167h11.666v1.666Z"/></symbol><symbol id="plus" viewBox="0 0 20 20"><g style="enable-background:new 0 0 20 20"><path d="M16 9h-5V4c0-.6-.4-1-1-1s-1 .4-1 1v5H4c-.6 0-1 .4-1 1s.4 1 1 1h5v5c0 .6.4 1 1 1s1-.4 1-1v-5h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></symbol><symbol id="star" viewBox="0 0 20 20"><path fill-rule="evenodd" clip-rule="evenodd" d="m10 14.392 5.15 3.108-1.367-5.858 4.55-3.942-5.991-.508L10 1.667 7.658 7.192 1.666 7.7l4.55 3.942L4.85 17.5 10 14.392Z"/></symbol></svg>'.replace('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">','<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display: none;">'),url:`#${this.name}`,height:this.size,width:this.size}}},"image-content":class extends i{constructor(){super(...arguments),this.componentName="image-content",this.defaultHtml='<div class="image-content">\r\n {{#if link}}\r\n <a hawksearch-link href="{{link.url}}" target="{{link.target}}">\r\n <img\r\n src="{{image.url}}"\r\n class="image-content__image"\r\n height="{{image.height}}"\r\n width="{{image.width}}"\r\n alt="{{image.altText}}"\r\n title="{{image.title}}"\r\n />\r\n </a>\r\n {{else}}\r\n <img\r\n src="{{image.url}}"\r\n class="image-content__image"\r\n height="{{image.height}}"\r\n width="{{image.width}}"\r\n alt="{{image.altText}}"\r\n title="{{image.title}}"\r\n />\r\n {{/if}}\r\n</div>'}renderContent(){return!!this.data}getContentModel(){return Object.assign({},this.data)}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{ln.trackBannerClick(this.data.id,this.data.campaignId)}))})),ln.trackBannerImpression(this.data.id,this.data.campaignId)}},"landing-page":class extends r{get url(){var e;return null!==(e=this.getAttribute("url"))&&void 0!==e?e:window.location.pathname}constructor(){super(),this.componentName="landing-page",this.defaultHtml='{{#if customLayout}}\r\n {{html customLayout}}\r\n{{else}}\r\n <hawksearch-search-results mode="landing-page" url="{{url}}"></hawksearch-search-results>\r\n{{/if}}',this.bindFromEvent=!0,ln.trackPageLoad(sn.Landing);const e=un.getRequestFromUrl();e.url=this.url,un.search(e)}renderContent(){return!!this.data}getContentModel(){return Object.assign(Object.assign({},this.data),{customLayout:this.processCustomLayout(this.data.customLayout),url:this.url})}processCustomLayout(e){var t,n,r,i,a,s,o;if(!e)return;let l=e;const c=Object.keys(null!==(t=this.data.contentZones)&&void 0!==t?t:{}),u=new RegExp(`{{(${c.join("|")})}}`,"g");return l=l.replace(u,'<hawksearch-content-zone name="$1"></hawksearch-content-zone>'),l=l.replace(/{{#breadcrumb#}}/g,null!==(r=null===(n=this.data.content)||void 0===n?void 0:n.breadcrumbs)&&void 0!==r?r:""),l=l.replace(/{{#pageheading#}}/g,null!==(a=null===(i=this.data.content)||void 0===i?void 0:i.heading)&&void 0!==a?a:""),l=l.replace(/{{#customhtml#}}/g,null!==(o=null===(s=this.data.content)||void 0===s?void 0:s.customHtml)&&void 0!==o?o:""),l}},"link-list-facet":class extends qn{constructor(){super(...arguments),this.componentName="link-list-facet",this.defaultHtml='<div class="link-list-facet" {{attribute (concat \'style="max-height: \' maxHeight \'px;"\') maxHeight}}>\r\n <ul class="link-list-facet__list">\r\n {{#each values}}\r\n {{#if visible}}\r\n <li class="link-list-facet__list__item">\r\n <span hawksearch-facet-value="{{value}}" class="link facet__value" tabindex="-1">\r\n {{#if imageUrl}}\r\n <img src="{{imageUrl}}" alt="{{title}}" title="{{title}}" class="facet__value__image" />\r\n {{else}}\r\n <span class="facet__value__title">{{title}}</span>\r\n {{/if}}\r\n {{#if @root.displayCount}}\r\n <span class="facet__value__count">({{count}})</span>\r\n {{/if}}\r\n </span>\r\n </li>\r\n {{/if}}\r\n {{/each}}\r\n </ul>\r\n {{#if showToggle}}\r\n <span hawksearch-facet-toggle class="link facet__toggle" tabindex="-1">{{strings.toggle}}</span>\r\n {{/if}}\r\n</div>'}renderContent(){return!!this.data}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p;const v=this.state.filter?new RegExp(null!==(e=this.state.filter)&&void 0!==e?e:"","i"):void 0;return{displayCount:null===(t=this.data.displayCount)||void 0===t||t,expanded:null!==(n=this.state.toggled)&&void 0!==n&&n,maxHeight:this.data.scrolling&&this.data.values.length>=this.data.scrolling.threshold?null!==(r=this.data.scrolling.height)&&void 0!==r?r:200:void 0,showToggle:!!this.data.truncation&&(null!==(a=null===(i=this.data.values)||void 0===i?void 0:i.length)&&void 0!==a?a:0)>this.data.truncation.threshold&&!this.state.filter,values:null!==(o=null===(s=this.data.values)||void 0===s?void 0:s.map(((e,t)=>{var n;return Object.assign(Object.assign({},e),{visible:!v&&(this.state.toggled||!this.data.truncation||t<this.data.truncation.threshold)||!!v&&v.test(null!==(n=e.title)&&void 0!==n?n:"")})})))&&void 0!==o?o:[],strings:{toggle:this.state.toggled?null!==(u=null===(c=null===(l=this.configuration)||void 0===l?void 0:l.strings)||void 0===c?void 0:c.showFewer)&&void 0!==u?u:"Show fewer":null!==(p=null===(d=null===(h=this.configuration)||void 0===h?void 0:h.strings)||void 0===d?void 0:d.showMore)&&void 0!==p?p:"Show more"}}}},"modified-query":class extends r{constructor(){super(...arguments),this.componentName="modified-query",this.defaultHtml='<div class="modified-query">\r\n <p>\r\n {{strings.showingResultsFor}}\r\n <span class="modified-query__modified">{{modifiedQuery}}</span>.\r\n {{strings.searchInsteadFor}}\r\n <a class="modified-query__original" hawksearch-query="{{query}}">{{query}}</a>.\r\n </p>\r\n</div>',this.bindFromEvent=!0}renderContent(){var e,t,n;return!!(null===(e=this.data)||void 0===e?void 0:e.display)&&!!(null===(t=this.data)||void 0===t?void 0:t.query)&&!!(null===(n=this.data)||void 0===n?void 0:n.modifiedQuery)}getContentModel(){var e,t,n,r,i,a;return{query:this.data.query,modifiedQuery:this.data.modifiedQuery,strings:{showingResultsFor:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.showingResultsFor)&&void 0!==n?n:"Showing results for",searchInsteadFor:null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.searchInsteadFor)&&void 0!==a?a:"Search instead for"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&un.query(t,void 0,!0)}))}))}},"numeric-range-facet":class extends qn{constructor(){super(...arguments),this.componentName="numeric-range-facet",this.defaultHtml='<div class="numeric-range-facet">\r\n <div class="row">\r\n <div class="column column--6">\r\n <input type="number" hawksearch-start value="{{start}}" min="{{min}}" max="{{end}}" aria-label="{{strings.minimum}}" />\r\n </div>\r\n <div class="column column--6">\r\n <input type="number" hawksearch-end value="{{end}}" min="{{start}}" max="{{max}}" aria-label="{{strings.maximum}}" />\r\n </div>\r\n </div>\r\n</div>'}get range(){var e,t;if("numeric"===(null===(t=null===(e=this.data)||void 0===e?void 0:e.range)||void 0===t?void 0:t.type))return this.data.range}renderContent(){return!!this.range}getContentModel(){var e,t,n,r,i,a;return{start:Math.floor(this.range.start),end:Math.ceil(this.range.end),min:Math.floor(this.range.min),max:Math.floor(this.range.max),strings:{minimum:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.minimum)&&void 0!==n?n:"Minimum",maximum:null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.maximum)&&void 0!==a?a:"Maximum"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-start]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let n=parseFloat(t.value);isNaN(n)&&(n=Math.floor(this.range.min),t.value=n.toString()),this.setFacetValue(n,this.range.end)}))})),this.rootElement.querySelectorAll("[hawksearch-end]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let n=parseFloat(t.value);isNaN(n)&&(n=Math.ceil(this.range.max),t.value=n.toString()),this.setFacetValue(this.range.start,n)}))}))}setFacetValue(e,t){if(e>t){const n=e;e=t,t=n}e=Math.floor(e),t=Math.ceil(t),e===Math.floor(this.range.start)&&t===Math.ceil(this.range.end)||un.setFacetValue(this.data.field,`${e},${t}`)}},"page-size":class extends r{constructor(){super(...arguments),this.componentName="page-size",this.defaultHtml='<div class="page-size">\r\n <select hawksearch-page-size>\r\n {{#each options}}\r\n {{#if selected}}\r\n <option value="{{pageSize}}" selected>{{title}}</option>\r\n {{else}}\r\n <option value="{{pageSize}}">{{title}}</option>\r\n {{/if}}\r\n {{/each}}\r\n </select>\r\n</div>',this.bindFromEvent=!0}renderContent(){var e;return!!(null===(e=this.data)||void 0===e?void 0:e.length)}getContentModel(){return{options:this.data}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-page-size]").forEach((e=>{e.addEventListener("change",(e=>{e.preventDefault();const t=e.currentTarget,n=parseInt(t.value);un.setPageSize(n)}))}))}},pagination:class extends r{constructor(){super(...arguments),this.componentName="pagination",this.defaultHtml='<div class="pagination">\r\n {{#if strings.summary}}\r\n <div class="pagination__summary">{{strings.summary}}</div>\r\n {{/if}}\r\n <div class="pagination__pages">\r\n {{#if displayFirstLink}}\r\n <span hawksearch-page="1" class="link pagination__page pagination__page--first" title="{{strings.first}}">\r\n <hawksearch-icon name="chevron-back" size="1.2em"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{#if displayPreviousLink}}\r\n <a\r\n hawksearch-page="{{subtract page 1}}"\r\n rel="prev"\r\n href="{{pageUrl (subtract page 1)}}"\r\n class="pagination__page pagination__page--previous"\r\n title="{{strings.previous}}"\r\n >\r\n <hawksearch-icon name="chevron-left" size="1.2em"></hawksearch-icon>\r\n </a>\r\n {{/if}}\r\n {{#each pages}}\r\n {{#if (eq this @root.page)}}\r\n <span class="pagination__page pagination__page--selected">{{this}}</span>\r\n {{else}}\r\n <a hawksearch-page="{{this}}" href="{{pageUrl this}}" class="pagination__page">{{this}}</a>\r\n {{/if}}\r\n {{/each}}\r\n {{#if displayNextLink}}\r\n <a\r\n hawksearch-page="{{add page 1}}"\r\n rel="next"\r\n href="{{pageUrl (add page 1)}}"\r\n class="pagination__page pagination__page--next"\r\n title="{{strings.next}}"\r\n >\r\n <hawksearch-icon name="chevron-right" size="1.2em"></hawksearch-icon>\r\n </a>\r\n {{/if}}\r\n {{#if displayLastLink}}\r\n <span hawksearch-page="{{totalPages}}" class="link pagination__page pagination__page--last" title="{{strings.last}}">\r\n <hawksearch-icon name="chevron-forward" size="1.2em"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n </div>\r\n</div>',this.bindFromEvent=!0,this.defaultMaxPageLinks=9}registerHelpers(){super.registerHelpers(),this.handlebars.registerHelper("pageUrl",(e=>{const t=new URLSearchParams;return 1===e?t.delete(un.queryStringParams.page):t.set(un.queryStringParams.page,e.toString()),`?${t}`}))}renderContent(){var e;return!!(null===(e=this.data)||void 0===e?void 0:e.totalResults)}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p,v,f,m,g;const y=(this.data.page-1)*this.data.pageSize+1;let k=y+this.data.pageSize-1;return k>this.data.totalResults&&(k=this.data.totalResults),{page:this.data.page,pages:this.getPages(),firstPage:1,lastPage:this.data.totalPages,firstRecord:y,lastRecord:k,totalRecords:null!==(e=this.data.totalResults)&&void 0!==e?e:0,totalPages:null!==(t=this.data.totalPages)&&void 0!==t?t:1,maxPageLinks:null!==(n=this.data.maxPageLinks)&&void 0!==n?n:this.defaultMaxPageLinks,displayFirstLink:this.data.displayFirstLink&&this.data.page>1,displayPreviousLink:this.data.page>1,displayNextLink:this.data.page<this.data.totalPages,displayLastLink:this.data.displayLastLink&&this.data.page<this.data.totalPages,strings:{first:null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.first)&&void 0!==a?a:"First",last:null!==(l=null===(o=null===(s=this.configuration)||void 0===s?void 0:s.strings)||void 0===o?void 0:o.last)&&void 0!==l?l:"Last",next:null!==(h=null===(u=null===(c=this.configuration)||void 0===c?void 0:c.strings)||void 0===u?void 0:u.next)&&void 0!==h?h:"Next",previous:null!==(v=null===(p=null===(d=this.configuration)||void 0===d?void 0:d.strings)||void 0===p?void 0:p.previous)&&void 0!==v?v:"Previous",summary:this.interpolate(null!==(g=null===(m=null===(f=this.configuration)||void 0===f?void 0:f.strings)||void 0===m?void 0:m.summary)&&void 0!==g?g:"Showing ${first}-${last} of ${total}",{first:Hn(y,0),last:Hn(k,0),total:Hn(this.data.totalResults,0)})}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-page]").forEach((e=>{const t=e.getAttribute("hawksearch-page");if(t){const n=parseInt(t);e.addEventListener("click",(e=>{e.preventDefault(),this.setPage(n)}))}}))}setPage(e){return t=this,n=void 0,i=function*(){yield un.paginate(e)},new((r=void 0)||(r=Promise))((function(e,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(s,o)}l((i=i.apply(t,n||[])).next())}));var t,n,r,i}getPages(){var e;const t=[];if(this.data&&this.data.totalPages>1){const n=null!==(e=this.data.maxPageLinks)&&void 0!==e?e:this.defaultMaxPageLinks;let r=this.data.page-Math.floor(n/2);r<1&&(r=1);let i=r+n-1;i>this.data.totalPages&&(i=this.data.totalPages);for(let e=r;e<=i;e++)t.push(e)}return t}},"popular-queries-content":class extends i{constructor(){super(...arguments),this.componentName="popular-queries-content",this.defaultHtml='<div class="popular-queries-content">\r\n {{#each items}}\r\n <a hawksearch-query="{{query}}" class="popular-queries-content__item popular-queries-content__item--{{weight}}">{{query}}</a>\r\n {{/each}}\r\n</div>'}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.items)||void 0===t?void 0:t.length)}getContentModel(){return Object.assign({},this.data)}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&un.query(t)}))}))}},"query-suggestions":class extends r{constructor(){super(...arguments),this.componentName="query-suggestions",this.defaultHtml='<div class="query-suggestions">\r\n <p>{{query-suggestions querySuggestions}}</p>\r\n</div>',this.bindFromEvent=!0}registerHelpers(){var e,t,n,r,i,a;super.registerHelpers();const s=null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.orDelimeter)&&void 0!==n?n:"or",o=null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.prompt)&&void 0!==a?a:"Did you mean to search for ${suggestions}?";this.handlebars.registerHelper("query-suggestions",(function(e){function t(e){return`<a hawksearch-query="${encodeURIComponent(e)}" class="query-suggestions__link">${e}</a>`}const n=`, ${s} `;let r="";r=e.length<=2?e.map(t).join(` ${s} `):e.slice(0,e.length-1).map(t).join(", ")+n+t(e[e.length-1]);const i=o.replace("${suggestions}",r);return new HawkSearch.handlebars.SafeString(i)}))}renderContent(){var e;return!!this.data&&!!this.data.display&&!!(null===(e=this.data.querySuggestions)||void 0===e?void 0:e.length)}getContentModel(){var e;return{querySuggestions:null!==(e=this.data.querySuggestions)&&void 0!==e?e:[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&un.query(t)}))}))}},"range-slider":class extends r{constructor(){super(...arguments),this.componentName="range-slider",this.defaultHtml='<div class="range-slider">\r\n <div class="range-slider__container">\r\n <div class="range-slider__bar">\r\n <div class="range-slider__bar__active" hawksearch-bar style="left: {{start}}%; right: {{subtract 100 end}}%;"></div>\r\n </div>\r\n <span class="range-slider__handle range-slider__handle--start" title="{{strings.start}}" hawksearch-handle="start" style="left: {{start}}%;"></span>\r\n <span class="range-slider__handle range-slider__handle--end" title="{{strings.end}}" hawksearch-handle="end" style="left: {{end}}%;"></span>\r\n </div>\r\n</div>',this.bindFromEvent=!1,this.dragging=!1,this.start=0,this.end=100}static get observedAttributes(){return["end","start"]}connectedCallback(){super.connectedCallback(),this.mouseUpEventHandler=this.onMouseUp.bind(this),this.mouseMoveEventHandler=this.onMouseMove.bind(this),["mouseup","touchend"].forEach((e=>document.addEventListener(e,this.mouseUpEventHandler))),["mousemove","touchmove"].forEach((e=>document.addEventListener(e,this.mouseMoveEventHandler)),{passive:!0})}attributeChangedCallback(e,t,n){switch(e){case"end":this.setEnd(n);break;case"start":this.setStart(n)}this.render()}disconnectedCallback(){super.disconnectedCallback(),["mouseup","touchend"].forEach((e=>document.removeEventListener(e,this.mouseUpEventHandler))),["mousemove","touchmove"].forEach((e=>document.removeEventListener(e,this.mouseMoveEventHandler)))}setStart(e){let t=parseInt(null!=e?e:"");(isNaN(t)||t<0)&&(t=0),this.start=t}setEnd(e){let t=parseInt(null!=e?e:"");(isNaN(t)||t>100)&&(t=100),this.end=t}getContentModel(){var e,t,n,r,i,a;return{start:this.start,end:this.end,strings:{start:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.start)&&void 0!==n?n:"Start",end:null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.end)&&void 0!==a?a:"End"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-handle]").forEach((e=>{["mousedown","touchstart"].forEach((t=>e.addEventListener(t,(t=>{var n;if(!e.getAttribute("hawksearch-handle"))return;const r=t.currentTarget;this.activeHandle=r,this.startOffsetPercentage=parseFloat(null!==(n=r.style.left)&&void 0!==n?n:0),this.startX=t instanceof MouseEvent?t.clientX:t.touches[0].clientX,this.dragging=!0,this.rootElement.querySelectorAll("[hawksearch-handle]").forEach((e=>e.style.zIndex="")),r.style.zIndex="1"}),{passive:!0})))}))}onMouseUp(e){if(!this.dragging)return;e.preventDefault(),this.dragging=!1;const t={start:this.start,end:this.end},n=new CustomEvent("hawksearch:range-slider-changed",{detail:t});this.dispatchEvent(n)}onMouseMove(e){var t,n;if(!this.dragging||!this.activeHandle||void 0===this.startX)return;const r=this.activeHandle.getAttribute("hawksearch-handle"),i=this.rootElement.querySelector('[hawksearch-handle="start"]'),a=this.rootElement.querySelector('[hawksearch-handle="end"]'),s=this.rootElement.querySelector("[hawksearch-bar]"),o=(e instanceof MouseEvent?e.clientX:e.touches[0].clientX)-this.startX,l=this.activeHandle.parentElement.offsetWidth;let c=Math.round(o/l*100)+this.startOffsetPercentage,u=0,h=100;"start"===r?h=parseFloat(null!==(t=a.style.left)&&void 0!==t?t:100):"end"===r&&(u=parseFloat(null!==(n=i.style.left)&&void 0!==n?n:0)),c<=u?c=u:c>=h&&(c=h),"start"===r?u=c:"end"===r&&(h=c),this.activeHandle.style.left=`${c}%`,s.style.left=`${u}%`,s.style.right=100-h+"%","start"===r?this.start=c:"end"===r&&(this.end=c);const d={start:this.start,end:this.end},p=new CustomEvent("hawksearch:range-slider-dragging",{detail:d});this.dispatchEvent(p)}},"range-slider-facet":class extends qn{constructor(){super(...arguments),this.componentName="range-slider-facet",this.defaultHtml='<div class="range-slider-facet">\r\n <div class="row">\r\n <div class="column column--6">\r\n <input type="number" hawksearch-start value="{{start}}" min="{{min}}" max="{{end}}" aria-label="{{strings.minimum}}" />\r\n </div>\r\n <div class="column column--6">\r\n <input type="number" hawksearch-end value="{{end}}" min="{{start}}" max="{{max}}" aria-label="{{strings.maximum}}" />\r\n </div>\r\n </div>\r\n <hawksearch-range-slider start="{{sliderStart}}" end="{{sliderEnd}}"></hawksearch-range-slider>\r\n</div>'}get range(){var e,t;if("numeric"===(null===(t=null===(e=this.data)||void 0===e?void 0:e.range)||void 0===t?void 0:t.type))return this.data.range}renderContent(){return!!this.range}getContentModel(){var e,t,n,r,i,a;const s=Math.ceil(this.range.max)-Math.floor(this.range.min);return{start:Math.floor(this.range.start),end:Math.ceil(this.range.end),min:Math.floor(this.range.min),max:Math.ceil(this.range.max),sliderStart:Math.ceil((Math.floor(this.range.start)-Math.floor(this.range.min))/s*100),sliderEnd:Math.floor(Math.ceil(this.range.end)/s*100),strings:{minimum:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.minimum)&&void 0!==n?n:"Minimum",maximum:null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.strings)||void 0===i?void 0:i.maximum)&&void 0!==a?a:"Maximum"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-start]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let n=parseFloat(t.value);isNaN(n)&&(n=0),this.setFacetValue(n,this.range.end)}))})),this.rootElement.querySelectorAll("[hawksearch-end]").forEach((e=>{e.addEventListener("blur",(e=>{const t=e.currentTarget;let n=parseFloat(t.value);isNaN(n)&&(n=0),this.setFacetValue(this.range.start,n)}))})),this.rootElement.querySelectorAll("hawksearch-range-slider").forEach((e=>{e.addEventListener("hawksearch:range-slider-dragging",(e=>{const t=e.detail,n=this.getRange(t.start,t.end);this.updateInputElements(n.start,n.end)})),e.addEventListener("hawksearch:range-slider-changed",(e=>{const t=e.detail,n=this.getRange(t.start,t.end);this.setFacetValue(n.start,n.end)}))}))}getRange(e,t){var n,r;const i=Math.floor(null!==(n=this.range.min)&&void 0!==n?n:0),a=Math.ceil(null!==(r=this.range.max)&&void 0!==r?r:0),s=a-i;return{start:Math.floor(s*e/100+i),end:Math.ceil(a*t/100)}}updateInputElements(e,t){const n=this.rootElement.querySelector("[hawksearch-start]"),r=this.rootElement.querySelector("[hawksearch-end]");n&&(n.value=e.toString()),r&&(r.value=t.toString())}setFacetValue(e,t){this.updateInputElements(e,t),e===Math.floor(this.range.start)&&t===Math.ceil(this.range.end)||un.setFacetValue(this.data.field,`${e.toFixed(2)},${t.toFixed(2)}`)}},recommendations:class extends r{get widgetId(){return this.getAttribute("widget-id")||void 0}get carousel(){var e,t,n,r,i,a;return!1!==(null===(t=null===(e=this.configuration)||void 0===e?void 0:e.carousel)||void 0===t?void 0:t.enabled)&&!!(null===(n=this.data)||void 0===n?void 0:n.carousel)&&(null!==(a=null===(i=null===(r=this.data)||void 0===r?void 0:r.items)||void 0===i?void 0:i.length)&&void 0!==a?a:0)>this.itemsToDisplay}get carouselPosition(){return this.carousel?-1*this.selectedIndex*100/this.itemsToDisplay+"%":void 0}get displayType(){var e,t,n,r;const i=window.innerWidth;return i>=(null!==(t=null===(e=HawkSearch.config.breakpoints)||void 0===e?void 0:e.desktop)&&void 0!==t?t:990)?"desktop":i>=(null!==(r=null===(n=HawkSearch.config.breakpoints)||void 0===n?void 0:n.tablet)&&void 0!==r?r:740)?"tablet":"mobile"}get itemsToDisplay(){var e,t,n,r,i,a,s,o,l;switch(this.displayType){case"mobile":return null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.itemsToDisplay)||void 0===t?void 0:t.mobile)&&void 0!==n?n:1;case"tablet":return null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.itemsToDisplay)||void 0===i?void 0:i.tablet)&&void 0!==a?a:2;case"desktop":return null!==(l=null===(o=null===(s=this.configuration)||void 0===s?void 0:s.itemsToDisplay)||void 0===o?void 0:o.desktop)&&void 0!==l?l:3;default:return 1}}get itemWidth(){return 100/this.itemsToDisplay+"%"}constructor(){if(super(),this.componentName="recommendations",this.defaultHtml='<div class="recommendations">\r\n {{#if headingEnabled}}\r\n <h2 class="heading recommendations__heading">{{title}}</h2>\r\n {{/if}}\r\n <div class="recommendations__content">\r\n {{#if (and carousel buttonsEnabled)}}\r\n <a hawksearch-previous class="recommendations__button recommendations__button--previous" title="{{strings.previous}}">\r\n <hawksearch-icon name="chevron-left"></hawksearch-icon>\r\n </a>\r\n {{/if}}\r\n <div class="recommendations__carousel">\r\n <div hawksearch-carousel class="recommendations__list{{attribute \' recommendations__list--carousel\' carousel}}" style="left: {{carouselPosition}};">\r\n {{#each items}}\r\n <div class="recommendations__carousel__item" style="width: {{@root.itemWidth}};">\r\n <hawksearch-recommendations-item widget-id="{{@root.id}}" request-id="{{@root.requestId}}"></hawksearch-recommendations-item>\r\n </div>\r\n {{/each}}\r\n </div>\r\n {{#if (and carousel paginationEnabled)}}\r\n <div class="recommendations__pagination">\r\n {{#each paginationItems}}\r\n <span\r\n hawksearch-carousel-item="{{@index}}"\r\n class="recommendations__pagination__item{{attribute \' recommendations__pagination__item--selected\' selected}}"\r\n title="{{title}}"\r\n ></span>\r\n {{/each}}\r\n </div>\r\n {{/if}}\r\n </div>\r\n {{#if (and carousel buttonsEnabled)}}\r\n <a\r\n hawksearch-next\r\n class="recommendations__button recommendations__button--next{{attribute \' recommendations__button--disabled\' (eq nextEnabled false)}}"\r\n title="{{strings.next}}"\r\n >\r\n <hawksearch-icon name="chevron-right"></hawksearch-icon>\r\n </a>\r\n {{/if}}\r\n </div>\r\n</div>',this.bindFromEvent=!0,this.eventFilter=this.widgetId,this.selectedIndex=0,!this.widgetId)return;const e={widgetId:this.widgetId};_e.getItems(e)}connectedCallback(){super.connectedCallback(),this.touchMoveEventHandler=this.onTouchMove.bind(this),this.touchEndEventHandler=this.onTouchEnd.bind(this),this.windowResizeEventHandler=_n((e=>this.onWindowResize(e)),100),document.addEventListener("touchmove",this.touchMoveEventHandler),document.addEventListener("touchend",this.touchEndEventHandler),window.addEventListener("resize",this.windowResizeEventHandler)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("touchmove",this.touchMoveEventHandler),document.removeEventListener("touchend",this.touchEndEventHandler),window.removeEventListener("resize",this.windowResizeEventHandler)}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.items)||void 0===t?void 0:t.length)}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p;return this.previousDisplayType=this.displayType,Object.assign(Object.assign({},this.data),{buttonsEnabled:null===(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.carousel)||void 0===t?void 0:t.buttonsEnabled)||void 0===n||n,carousel:this.carousel,carouselPosition:this.carouselPosition,headingEnabled:null===(i=null===(r=this.configuration)||void 0===r?void 0:r.headingEnabled)||void 0===i||i,itemWidth:this.itemWidth,paginationEnabled:null===(o=null===(s=null===(a=this.configuration)||void 0===a?void 0:a.carousel)||void 0===s?void 0:s.paginationEnabled)||void 0===o||o,paginationItems:this.data.items.map(((e,t)=>({selected:this.getSelected(t),title:e.title}))),strings:{next:null!==(u=null===(c=null===(l=this.configuration)||void 0===l?void 0:l.strings)||void 0===c?void 0:c.next)&&void 0!==u?u:"Next",previous:null!==(p=null===(d=null===(h=this.configuration)||void 0===h?void 0:h.strings)||void 0===d?void 0:d.previous)&&void 0!==p?p:"Previous"}})}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-recommendations-item").forEach(((e,t)=>{var n;e.data=null===(n=this.data.items)||void 0===n?void 0:n[t]}))}onRender(){super.onRender(),this.addEventListener("mouseover",(e=>{this.toggleAutorotation(!1)})),this.addEventListener("mouseleave",(e=>{this.toggleAutorotation(!0)})),this.rootElement.querySelectorAll("[hawksearch-previous]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.previous()}))})),this.rootElement.querySelectorAll("[hawksearch-next]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),this.next()}))})),this.rootElement.querySelectorAll("[hawksearch-carousel").forEach((e=>{e.addEventListener("touchstart",(e=>{this.dragElement=e.currentTarget,this.dragOffset=e.changedTouches[0].pageX,this.dragOrigin=this.dragElement.offsetLeft,this.dragElement.style.transition="none"}))})),this.rootElement.querySelectorAll("[hawksearch-carousel-item").forEach((e=>{e.addEventListener("click",(t=>{var n;t.preventDefault();const r=parseInt(null!==(n=e.getAttribute("hawksearch-carousel-item"))&&void 0!==n?n:"");isNaN(r)||this.displayItem(r)}))})),this.displayItem(this.selectedIndex),this.toggleAutorotation(!0)}toggleAutorotation(e){var t,n,r,i,a,s,o,l;this.autorotationTimer&&clearInterval(this.autorotationTimer),e&&(null===(t=this.contentModel)||void 0===t?void 0:t.carousel)&&!1!==(null===(i=null===(r=null===(n=this.configuration)||void 0===n?void 0:n.carousel)||void 0===r?void 0:r.autorotation)||void 0===i?void 0:i.enabled)&&(this.autorotationTimer=setInterval((()=>{this.next()}),null!==(l=null===(o=null===(s=null===(a=this.configuration)||void 0===a?void 0:a.carousel)||void 0===s?void 0:s.autorotation)||void 0===o?void 0:o.interval)&&void 0!==l?l:5e3))}previous(){const e=0===this.selectedIndex?this.data.items.length-this.itemsToDisplay:this.selectedIndex-this.itemsToDisplay;this.displayItem(e)}next(){const e=this.selectedIndex===this.data.items.length-this.itemsToDisplay?0:this.selectedIndex+this.itemsToDisplay;this.displayItem(e)}getSelected(e){return e>=this.selectedIndex&&e<this.selectedIndex+this.itemsToDisplay}displayItem(e){var t,n,r;const i=this.rootElement.querySelector("[hawksearch-carousel]");i&&(null===(n=null===(t=this.data)||void 0===t?void 0:t.items)||void 0===n?void 0:n.length)&&(e<0&&(e=0),e>=this.data.items.length-this.itemsToDisplay&&(e=this.data.items.length-this.itemsToDisplay),this.selectedIndex=e,i.style.left=null!==(r=this.carouselPosition)&&void 0!==r?r:"",this.rootElement.querySelectorAll("[hawksearch-carousel-item]").forEach(((e,t)=>{var n,r,i,a;const s=parseInt(null!==(n=e.getAttribute("hawksearch-carousel-item"))&&void 0!==n?n:""),o=!isNaN(s)&&this.getSelected(s),l=null!==(a=null===(i=null===(r=this.configuration)||void 0===r?void 0:r.carousel)||void 0===i?void 0:i.paginationSelectedCssClass)&&void 0!==a?a:"recommendations__pagination__item--selected";e.classList.toggle(l,o)})))}onWindowResize(e){this.displayType!==this.previousDisplayType&&this.render()}onTouchMove(e){var t,n;if(!this.dragElement||!this.carousel)return;const r=(null!==(t=this.dragOrigin)&&void 0!==t?t:0)+e.changedTouches[0].pageX-(null!==(n=this.dragOffset)&&void 0!==n?n:0);this.dragElement.style.left=`${r}px`}onTouchEnd(e){var t;if(!this.dragElement||!this.carousel)return;const n=this.dragElement.parentElement.offsetWidth/this.itemsToDisplay,r=this.dragElement.offsetLeft-(null!==(t=this.dragOrigin)&&void 0!==t?t:0),i=Math.round(r/n),a=this.selectedIndex-i;this.displayItem(a),this.dragElement.style.transition="",this.dragElement=void 0,this.dragOffset=void 0,this.dragOrigin=void 0}},"recommendations-item":class extends r{constructor(){super(...arguments),this.componentName="recommendations-item",this.defaultHtml='<div class="recommendations__item">\r\n {{#if pinned}}\r\n <span class="recommendations__item__pin">\r\n <hawksearch-icon name="star"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{#if (lt salePrice price)}}\r\n <span class="recommendations__item__sale-indicator">{{strings.sale}}</span>\r\n {{/if}}\r\n <a hawksearch-link href="{{url}}" class="recommendations__item__image" aria-label="{{title}}">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n <div class="recommendations__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#unless (eq salePrice undefined)}}\r\n <div class="recommendations__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\r\n {{#if (lt salePrice price)}}\r\n <span class="recommendations__item__price__original">{{currency price}}</span>\r\n <span class="recommendations__item__price__current" itemprop="price">{{currency salePrice}}</span>\r\n {{else}}\r\n <span class="recommendations__item__price-__current" itemprop="price">{{currency salePrice}}</span>\r\n {{/if}}\r\n </div>\r\n {{/unless}}\r\n</div>',this.bindFromEvent=!1}get widgetId(){return this.getAttribute("widget-id")||void 0}get requestId(){return this.getAttribute("request-id")||void 0}renderContent(){return!!this.data}getContentModel(){var e,t,n;return Object.assign(Object.assign({},this.data),{strings:{sale:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.sale)&&void 0!==n?n:"Sale"}})}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||a}))})),this.rootElement.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{this.data&&this.widgetId&&this.requestId&&ln.trackRecommendationClick(this.widgetId,this.requestId,this.data.id)}))}))}},"recent-searches-facet":class extends qn{constructor(){super(...arguments),this.componentName="recent-searches-facet",this.defaultHtml='<div class="recent-searches-facet">\r\n <ul class="recent-searches-facet__list">\r\n {{#each values}}\r\n <li class="recent-searches-facet__list__item">\r\n <a hawksearch-query="{{this}}" class="facet__value">{{this}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n</div>'}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.values)||void 0===t?void 0:t.length)}getContentModel(){var e,t;return{values:null!==(t=null===(e=this.data.values)||void 0===e?void 0:e.map((e=>e.title)))&&void 0!==t?t:[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&un.query(t)}))}))}},"related-searches-facet":class extends qn{constructor(){super(...arguments),this.componentName="related-searches-facet",this.defaultHtml='<div class="related-searches-facet">\r\n <ul class="related-searches-facet__list">\r\n {{#each values}}\r\n <li class="related-searches-facet__list__item">\r\n <a hawksearch-query="{{this}}" class="facet__value">{{this}}</a>\r\n </li>\r\n {{/each}}\r\n </ul>\r\n</div>'}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.values)||void 0===t?void 0:t.length)}getContentModel(){var e,t;return{values:null!==(t=null===(e=this.data.values)||void 0===e?void 0:e.map((e=>e.title)))&&void 0!==t?t:[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-query]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-query");t&&un.query(t)}))}))}},"search-field":class extends r{constructor(){super(...arguments),this.componentName="search-field",this.defaultHtml='<div class="search-field">\r\n <input type="text" hawksearch-input value="{{query}}" placeholder="{{strings.placeholder}}" />\r\n <hawksearch-autocomplete></hawksearch-autocomplete>\r\n</div>',this.bindFromEvent=!0}connectedCallback(){super.connectedCallback(),this.clickEventHandler=e=>{e.target.closest("hawksearch-search-field")||this.toggleAutocomplete(!1)},this.rootElement.ownerDocument.addEventListener("click",this.clickEventHandler)}disconnectedCallback(){super.disconnectedCallback(),this.rootElement.ownerDocument.removeEventListener("click",this.connectedCallback)}getContentModel(){var e,t,n,r;return{query:null===(e=this.data)||void 0===e?void 0:e.query,strings:{placeholder:null!==(r=null===(n=null===(t=this.configuration)||void 0===t?void 0:t.strings)||void 0===n?void 0:n.placeholder)&&void 0!==r?r:"Enter keywords"}}}onRender(){super.onRender();const e=["Enter","NumpadEnter"];this.rootElement.querySelectorAll("[hawksearch-input]").forEach((t=>{t.addEventListener("keyup",(t=>{if(!e.includes(t.code))return;const n=t.currentTarget.value.trim();this.toggleAutocomplete(!1),un.query(n)})),t.addEventListener("keyup",_n((n=>{if(e.includes(n.code))return;const r=t.value.trim();this.toggleAutocomplete(!!r),r&&D.query(r)}),250))})),this.rootElement.querySelectorAll("hawksearch-autocomplete").forEach((e=>{e.addEventListener("hawksearch:close-autocomplete",(e=>{this.toggleAutocomplete(!1)}))}))}toggleAutocomplete(e){this.rootElement.querySelectorAll("hawksearch-autocomplete").forEach((t=>{t.style.display=e?"block":"none"}))}},"search-results":class extends r{get mode(){return"landing-page"===this.getAttribute("mode")?"landing-page":"search-results"}get url(){var e;return null!==(e=this.getAttribute("url"))&&void 0!==e?e:window.location.pathname}constructor(){if(super(),this.componentName="search-results",this.defaultHtml='<hawksearch-modified-query></hawksearch-modified-query>\r\n<hawksearch-query-suggestions></hawksearch-query-suggestions>\r\n<div class="row">\r\n <div class="column column--12 column-md--4">\r\n <hawksearch-content-zone name="LeftTop"></hawksearch-content-zone>\r\n <hawksearch-facets-list></hawksearch-facets-list>\r\n <hawksearch-content-zone name="LeftBottom"></hawksearch-content-zone>\r\n </div>\r\n <div class="column column--12 column-md--8">\r\n <hawksearch-content-zone name="Top"></hawksearch-content-zone>\r\n <hawksearch-content-zone name="Top2"></hawksearch-content-zone>\r\n <hawksearch-tabs></hawksearch-tabs>\r\n <hawksearch-selected-facets></hawksearch-selected-facets>\r\n <div class="row">\r\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\r\n <hawksearch-pagination></hawksearch-pagination>\r\n </div>\r\n <div class="column column--12 column-md--6">\r\n <div class="row row--tight">\r\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\r\n <hawksearch-page-size></hawksearch-page-size>\r\n </div>\r\n <div class="column column--12 column-sm--6 flex-vertical-sm-center">\r\n <hawksearch-sorting></hawksearch-sorting>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <hawksearch-search-results-list></hawksearch-search-results-list>\r\n <hawksearch-content-zone name="Bottom"></hawksearch-content-zone>\r\n <hawksearch-content-zone name="Bottom2"></hawksearch-content-zone>\r\n </div>\r\n</div>',this.bindFromEvent=!0,"search-results"===this.mode){ln.trackPageLoad(sn.Custom);const e=un.getRequestFromUrl();un.search(e)}}getContentModel(){return Object.assign({},this.data)}},"search-results-item":class extends r{constructor(){super(...arguments),this.componentName="search-results-item",this.defaultHtml='<div class="search-results-list__item search-results-list__item--{{type}}">\r\n {{#if pinned}}\r\n <span class="search-results-list__item__pin">\r\n <hawksearch-icon name="star"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n {{#if (eq type "product")}}\r\n {{#if (lt salePrice price)}}\r\n <span class="search-results-list__item__sale-indicator">{{strings.sale}}</span>\r\n {{/if}}\r\n <a hawksearch-link href="{{url}}" class="search-results-list__item__image" aria-label="{{title}}">\r\n <img hawksearch-image src="{{imageUrl}}" alt="" />\r\n </a>\r\n <div class="search-results-list__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#unless (eq salePrice undefined)}}\r\n <div class="search-results-list__item__price" itemprop="offers" itemtype="http://schema.org/Offer" itemscope>\r\n {{#if (lt salePrice price)}}\r\n <span class="search-results-list__item__price__original">{{currency price}}</span>\r\n <span class="search-results-list__item__price__current" itemprop="price">{{currency salePrice}}</span>\r\n {{else}}\r\n <span class="search-results-list__item__price-__current" itemprop="price">{{currency salePrice}}</span>\r\n {{/if}}\r\n </div>\r\n {{/unless}}\r\n {{else}}\r\n <div class="search-results-list__item__title">\r\n <a hawksearch-link href="{{url}}">{{title}}</a>\r\n </div>\r\n {{#if description}}\r\n <p>{{description}}</p>\r\n {{/if}}\r\n {{/if}}\r\n</div>',this.bindFromEvent=!1}renderContent(){return!!this.data}getContentModel(){var e,t,n;return Object.assign(Object.assign({},this.data),{strings:{sale:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.sale)&&void 0!==n?n:"Sale"}})}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-image]").forEach((e=>{e.addEventListener("error",(e=>{e.currentTarget.src=HawkSearch.config.placeholderImageUrl||a}))})),this.rootElement.querySelectorAll("[hawksearch-link]").forEach((e=>{e.addEventListener("click",(e=>{this.data&&ln.trackSearchResultClick(this.data.id,this.data.url,e)}))}))}},"search-results-list":class extends r{constructor(){super(...arguments),this.componentName="search-results-list",this.defaultHtml='<div class="row search-results-list">\r\n {{#each items}}\r\n {{#if (eq type "content")}}\r\n <div class="column column--12">\r\n <hawksearch-search-results-item></hawksearch-search-results-item>\r\n </div>\r\n {{else}}\r\n <div class="column column--12 column-sm--6 column-lg--4">\r\n <hawksearch-search-results-item></hawksearch-search-results-item>\r\n </div>\r\n {{/if}}\r\n {{/each}}\r\n</div>',this.bindFromEvent=!0}renderContent(){var e;return!!(null===(e=this.data)||void 0===e?void 0:e.length)}getContentModel(){return{items:this.data}}bindChildElements(){super.bindChildElements(),this.rootElement.querySelectorAll("hawksearch-search-results-item").forEach(((e,t)=>{var n;e.data=null===(n=this.data)||void 0===n?void 0:n[t]}))}},"search-within-facet":class extends qn{constructor(){super(...arguments),this.componentName="search-within-facet",this.defaultHtml='<div class="search-within-facet">\r\n <input type="text" hawksearch-input value="{{value}}" class="search-within-facet__input" aria-label="{{strings.label}}" />\r\n</div>'}renderContent(){return!!this.data}getContentModel(){var e,t,n,r;return{value:null!==(e=this.data.searchWithin)&&void 0!==e?e:"",strings:{label:null!==(r=null===(n=null===(t=this.configuration)||void 0===t?void 0:t.strings)||void 0===n?void 0:n.label)&&void 0!==r?r:"Enter keywords"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-input]").forEach((e=>{e.addEventListener("change",(e=>{e.preventDefault();const t=e.currentTarget.value.trim();un.searchWithin(t)}))}))}},"selected-facets":class extends r{constructor(){super(...arguments),this.componentName="selected-facets",this.defaultHtml='<div class="flex-gap flex-gap--xs selected-facets">\r\n {{#each selections}}\r\n <span class="selected-facets__item">\r\n <span class="selected-facets__item__field">{{title}}</span>\r\n <span class="selected-facets__item__value{{attribute \' selected-facets__item__value--excluded\' excluded}}">{{selectionTitle}}</span>\r\n <a\r\n hawksearch-facet-field="{{field}}"\r\n hawksearch-facet-value="{{selectionValue}}"\r\n class="selected-facets__item__remove"\r\n title="{{@root.strings.remove}}"\r\n >\r\n <hawksearch-icon name="cross" size="0.9em"></hawksearch-icon>\r\n </a>\r\n </span>\r\n {{/each}}\r\n</div>',this.bindFromEvent=!0}renderContent(){var e;return!!(null===(e=this.data)||void 0===e?void 0:e.length)}getContentModel(){var e,t,n;const r=[];return this.data.forEach((e=>{e.values.forEach((t=>{var n,i,a,s;let o=t.title;const l=/^(?<min>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)?,(?<max>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z)?$/.exec(t.value),c=/^(?:(?<min>\d+(?:\.\d+)?))?,(?:(?<max>\d+(?:\.\d+)?))?$/.exec(t.value);if(l){const e=void 0!==(null===(n=l.groups)||void 0===n?void 0:n.min)?new Date(l.groups.min):void 0,t=void 0!==(null===(i=l.groups)||void 0===i?void 0:i.max)?new Date(l.groups.max):void 0;e&&t&&Sn(e,t)?o=In(e):e&&t?o=`${In(e)} - ${In(t)}`:e?o=`After ${In(e)}`:t&&(o=`Before ${In(t)}`)}if(c){const t=void 0!==(null===(a=c.groups)||void 0===a?void 0:a.min)?parseFloat(c.groups.min):void 0,n=void 0!==(null===(s=c.groups)||void 0===s?void 0:s.max)?parseFloat(c.groups.max):void 0,r=e.currency?Pn:Hn;void 0!==t&&void 0!==n?o=t===n?r(t,0):`${r(t,0)} - ${r(n,0)}`:void 0!==t?o=`${r(t,0)} and up`:void 0!==n&&(o=`${r(n,0)} and below`)}r.push({field:e.field,title:e.title,selectionTitle:o,selectionValue:t.value,excluded:t.excluded})}))})),r.sort(((e,t)=>e.field==t.field?e.selectionTitle.localeCompare(t.selectionTitle):e.title.localeCompare(t.title))),{selections:r,strings:{remove:null!==(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.strings)||void 0===t?void 0:t.remove)&&void 0!==n?n:"Remove"}}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-facet-field][hawksearch-facet-value]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget,n=t.getAttribute("hawksearch-facet-field"),r=t.getAttribute("hawksearch-facet-value");n&&r&&un.removeFacetValue(n,r)}))}))}},"size-facet":class extends qn{constructor(){super(...arguments),this.componentName="size-facet",this.defaultHtml='<div class="size-facet">\r\n <div class="row row--tight size-facet__items">\r\n {{#each values}}\r\n {{#if visible}}\r\n <div class="column column--3 size-facet__item{{attribute \' size-facet__item--selected\' selected}}">\r\n <div hawksearch-facet-value="{{value}}" class="size-facet__item__outer">\r\n <div hawksearch-facet-value="{{value}}" class="size-facet__item__inner">\r\n {{title}}\r\n </div>\r\n </div>\r\n {{#if @root.excludeEnabled}}\r\n <span class="size-facet__item__actions">\r\n {{#if excluded}}\r\n <span hawksearch-facet-value-include="{{value}}" class="size-facet__item__actions__item" title="{{@root.strings.include}}">\r\n <hawksearch-icon name="plus"></hawksearch-icon>\r\n </span>\r\n {{else}}\r\n <span hawksearch-facet-value-exclude="{{value}}" class="size-facet__item__actions__item" title="{{@root.strings.exclude}}">\r\n <hawksearch-icon name="minus"></hawksearch-icon>\r\n </span>\r\n {{/if}}\r\n </span>\r\n {{/if}}\r\n </div>\r\n {{/if}}\r\n {{/each}}\r\n </div>\r\n {{#if showToggle}}\r\n <span hawksearch-facet-toggle class="link facet__toggle">{{strings.toggle}}</span>\r\n {{/if}}\r\n</div>'}renderContent(){return!!this.data}getContentModel(){var e,t,n,r,i,a,s,o,l,c,u,h,d,p,v,f,m,g,y;const k=this.state.filter?new RegExp(this.state.filter,"i"):void 0;return{values:null!==(t=null===(e=this.data.values)||void 0===e?void 0:e.map(((e,t)=>{var n;return Object.assign(Object.assign({},e),{visible:!k&&(this.state.toggled||!this.data.truncation||t<this.data.truncation.threshold)||!!k&&k.test(null!==(n=e.title)&&void 0!==n?n:"")})})))&&void 0!==t?t:[],showToggle:!!this.data.truncation&&(null!==(r=null===(n=this.data.values)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>this.data.truncation.threshold&&!this.state.filter,expanded:null!==(i=this.state.toggled)&&void 0!==i&&i,excludeEnabled:null!==(s=null===(a=this.configuration)||void 0===a?void 0:a.excludeEnabled)&&void 0!==s&&s,strings:{exclude:null!==(c=null===(l=null===(o=this.configuration)||void 0===o?void 0:o.strings)||void 0===l?void 0:l.exclude)&&void 0!==c?c:"Exclude",include:null!==(d=null===(h=null===(u=this.configuration)||void 0===u?void 0:u.strings)||void 0===h?void 0:h.include)&&void 0!==d?d:"Include",toggle:this.state.toggled?null!==(f=null===(v=null===(p=this.configuration)||void 0===p?void 0:p.strings)||void 0===v?void 0:v.showFewer)&&void 0!==f?f:"Show fewer":null!==(y=null===(g=null===(m=this.configuration)||void 0===m?void 0:m.strings)||void 0===g?void 0:g.showMore)&&void 0!==y?y:"Show more"}}}},sorting:class extends r{constructor(){super(...arguments),this.componentName="sorting",this.defaultHtml='<div class="sorting">\r\n <select hawksearch-sort>\r\n {{#each options}}\r\n {{#if selected}}\r\n <option value="{{value}}" selected>{{title}}</option>\r\n {{else}}\r\n <option value="{{value}}">{{title}}</option>\r\n {{/if}}\r\n {{/each}}\r\n </select>\r\n</div>',this.bindFromEvent=!0}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.options)||void 0===t?void 0:t.length)}getContentModel(){return{options:this.data.options}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-sort]").forEach((e=>{e.addEventListener("change",(e=>{e.preventDefault();const t=e.currentTarget.value;un.sort(t)}))}))}},tabs:class extends r{constructor(){super(...arguments),this.componentName="tabs",this.defaultHtml='<ul class="tabs{{attribute \' tabs--list\' (gt tabs.length 4)}}">\r\n {{#each tabs}}\r\n <li class="tabs__item{{attribute \' tabs__item--selected\' selected}}" hawksearch-tab-value="{{value}}">\r\n {{title}}\r\n {{#if @root.displayCount}}({{count}}){{/if}}\r\n </li>\r\n {{/each}}\r\n</ul>',this.bindFromEvent=!0}renderContent(){var e,t;return!!(null===(t=null===(e=this.data)||void 0===e?void 0:e.values)||void 0===t?void 0:t.length)}getContentModel(){var e,t;return{displayCount:null===(e=this.data.displayCount)||void 0===e||e,tabs:null!==(t=this.data.values)&&void 0!==t?t:[]}}onRender(){super.onRender(),this.rootElement.querySelectorAll("[hawksearch-tab-value]").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=e.currentTarget.getAttribute("hawksearch-tab-value");un.selectTab(null!=t?t:void 0)}))}))}},tooltip:class extends r{constructor(){super(...arguments),this.componentName="tooltip",this.defaultHtml='<span class="tooltip" hawksearch-tooltip>\r\n <span class="tooltip__icon">\r\n <hawksearch-icon name="help" class="facet__heading__tooltip"></hawksearch-icon>\r\n </span>\r\n <span class="tooltip__content" hawksearch-tooltip-content>{{text}}</span>\r\n</span>',this.bindFromEvent=!1}get text(){var e;return null!==(e=this.getAttribute("text"))&&void 0!==e?e:void 0}renderContent(){return!!this.text}getContentModel(){return{text:this.text}}onRender(){var e;super.onRender(),null===(e=this.rootElement.querySelector("[hawksearch-tooltip]"))||void 0===e||e.addEventListener("mouseover",(e=>{const t=e.currentTarget,n=this.rootElement.querySelector("[hawksearch-tooltip-content]");if(!n)return;n.style.removeProperty("top"),n.style.removeProperty("right");const r=window.innerWidth,i=t.getBoundingClientRect(),a=i.x+i.width;n.style.top=`${i.top}px`,r-a<370&&(n.style.right="20px")}))}}};Object.entries(Ln).forEach((([e,t])=>{customElements.define(`hawksearch-${e}`,t)})),window.addEventListener("popstate",(e=>{const t=e.state;HawkSearch.searchRequest=t.searchRequest,HawkSearch.searchResponse=t.searchResponse,un.bindComponents(t.searchResponse)})),window.dispatchEvent(new CustomEvent("hawksearch:initialized"))})()})();
3
3
  //# sourceMappingURL=index.js.map