@appbaseio/reactivesearch-vue 2.0.0-alpha.4 → 3.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +17538 -25422
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +6 -15
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/Button-ad042719.js +59 -0
  6. package/dist/cjs/Card-f5ab024a.js +27 -0
  7. package/dist/cjs/{ComponentWrapper-ad3dad02.js → ComponentWrapper-75f88599.js} +42 -56
  8. package/dist/cjs/Container-29f049b2.js +12 -0
  9. package/dist/cjs/DropDown-6cf84c47.js +698 -0
  10. package/dist/cjs/DynamicRangeSlider.js +103 -155
  11. package/dist/cjs/Flex-d5675ea6.js +48 -0
  12. package/dist/cjs/FormControlList-fadd792f.js +42 -0
  13. package/dist/cjs/Input-4b434436.js +74 -0
  14. package/dist/cjs/ListItem-d57d648d.js +42 -0
  15. package/dist/cjs/MultiDropdownList.js +124 -240
  16. package/dist/cjs/MultiList.js +123 -261
  17. package/dist/cjs/MultiRange.js +87 -133
  18. package/dist/cjs/{Pagination-71e85fa9.js → Pagination-b5ddc906.js} +70 -83
  19. package/dist/cjs/PreferencesConsumer-eb265924.js +75 -0
  20. package/dist/cjs/RangeInput.js +163 -171
  21. package/dist/cjs/RangeSlider.js +81 -109
  22. package/dist/cjs/ReactiveBase.js +139 -157
  23. package/dist/cjs/ReactiveComponent-eb8db4c1.js +2189 -0
  24. package/dist/cjs/ReactiveComponent.js +46 -340
  25. package/dist/cjs/ReactiveGoogleMap.js +445 -655
  26. package/dist/cjs/ReactiveList.js +179 -304
  27. package/dist/cjs/ResultCard.js +36 -36
  28. package/dist/cjs/ResultList.js +48 -56
  29. package/dist/cjs/SelectedFilters.js +62 -69
  30. package/dist/cjs/SingleDropdownList.js +117 -177
  31. package/dist/cjs/SingleList.js +121 -205
  32. package/dist/cjs/SingleRange.js +78 -105
  33. package/dist/cjs/StateProvider.js +35 -38
  34. package/dist/cjs/Title-8802a218.js +12 -0
  35. package/dist/cjs/ToggleButton.js +72 -119
  36. package/dist/cjs/{_rollupPluginBabelHelpers-c705cbe6.js → _rollupPluginBabelHelpers-f8b843f8.js} +0 -15
  37. package/dist/cjs/{index-6a167fe0.js → index-d8d8f291.js} +38 -108
  38. package/dist/cjs/index.js +44 -41
  39. package/dist/cjs/initReactivesearch.js +63 -150
  40. package/dist/cjs/install.js +47 -43
  41. package/dist/cjs/ssr-6907ada3.js +66 -0
  42. package/dist/cjs/{utils-d6a52588.js → utils-83fd01e9.js} +7 -16
  43. package/dist/cjs/version.js +1 -1
  44. package/dist/cjs/{vueTypes-727b7c63.js → vueTypes-1bf00978.js} +8 -19
  45. package/dist/es/Button-474510e3.js +53 -0
  46. package/dist/es/{Card-450683f1.js → Card-38cbe652.js} +3 -3
  47. package/dist/es/{ComponentWrapper-424e86fd.js → ComponentWrapper-5166c76a.js} +42 -56
  48. package/dist/es/{Container-ba826e96.js → Container-d00219f7.js} +2 -2
  49. package/dist/es/DropDown-8764360c.js +688 -0
  50. package/dist/es/DynamicRangeSlider.js +103 -155
  51. package/dist/es/Flex-a08e22d7.js +46 -0
  52. package/dist/es/FormControlList-fe6eaee4.js +38 -0
  53. package/dist/es/Input-4a8ef1f3.js +69 -0
  54. package/dist/es/{ListItem-cad14c5e.js → ListItem-16756c02.js} +7 -8
  55. package/dist/es/MultiDropdownList.js +124 -240
  56. package/dist/es/MultiList.js +123 -261
  57. package/dist/es/MultiRange.js +87 -133
  58. package/dist/es/{Pagination-784bf143.js → Pagination-72bd1d9e.js} +70 -83
  59. package/dist/es/PreferencesConsumer-c276709c.js +73 -0
  60. package/dist/es/RangeInput.js +163 -170
  61. package/dist/es/RangeSlider.js +81 -109
  62. package/dist/es/ReactiveBase.js +138 -155
  63. package/dist/es/ReactiveComponent-f9fa5780.js +2183 -0
  64. package/dist/es/ReactiveComponent.js +42 -337
  65. package/dist/es/ReactiveGoogleMap.js +440 -649
  66. package/dist/es/ReactiveList.js +177 -301
  67. package/dist/es/ResultCard.js +36 -36
  68. package/dist/es/ResultList.js +48 -56
  69. package/dist/es/SelectedFilters.js +62 -69
  70. package/dist/es/SingleDropdownList.js +117 -177
  71. package/dist/es/SingleList.js +121 -205
  72. package/dist/es/SingleRange.js +78 -105
  73. package/dist/es/StateProvider.js +36 -39
  74. package/dist/es/{Title-3342664a.js → Title-863dfa42.js} +2 -2
  75. package/dist/es/ToggleButton.js +72 -119
  76. package/dist/es/{_rollupPluginBabelHelpers-76660dab.js → _rollupPluginBabelHelpers-ded08042.js} +0 -15
  77. package/dist/es/{index-7788a843.js → index-4520a598.js} +39 -107
  78. package/dist/es/index.js +30 -32
  79. package/dist/es/initReactivesearch.js +63 -150
  80. package/dist/es/install.js +49 -41
  81. package/dist/es/{ssr-b2c0b401.js → ssr-af398f0c.js} +36 -7
  82. package/dist/es/{utils-9e68acee.js → utils-9e5a16a1.js} +7 -16
  83. package/dist/es/version.js +1 -1
  84. package/dist/es/{vueTypes-b8146772.js → vueTypes-f1923c72.js} +8 -19
  85. package/package.json +10 -9
  86. package/dist/cjs/Button-446f819e.js +0 -68
  87. package/dist/cjs/CancelSvg-9f258f4f.js +0 -449
  88. package/dist/cjs/Card-642547a8.js +0 -30
  89. package/dist/cjs/Container-daf30918.js +0 -15
  90. package/dist/cjs/DataSearch-aa04dc6e.js +0 -2352
  91. package/dist/cjs/DataSearch.js +0 -30
  92. package/dist/cjs/DropDown-c479bbb0.js +0 -328
  93. package/dist/cjs/Flex-aa517a13.js +0 -52
  94. package/dist/cjs/FormControlList-c195a592.js +0 -47
  95. package/dist/cjs/Input-e6603a7e.js +0 -79
  96. package/dist/cjs/ListItem-8c9e0d68.js +0 -46
  97. package/dist/cjs/Title-1de7d0f4.js +0 -15
  98. package/dist/cjs/install-b97dbac4.js +0 -1409
  99. package/dist/cjs/ssr-3027b848.js +0 -39
  100. package/dist/es/Button-d8bc15ea.js +0 -59
  101. package/dist/es/CancelSvg-4cfae5fd.js +0 -440
  102. package/dist/es/DataSearch-b86a6675.js +0 -2337
  103. package/dist/es/DataSearch.js +0 -22
  104. package/dist/es/DropDown-05a644a5.js +0 -322
  105. package/dist/es/Flex-1f0795c3.js +0 -47
  106. package/dist/es/FormControlList-c22d64f6.js +0 -40
  107. package/dist/es/Input-7a2a9fac.js +0 -71
  108. package/dist/es/install-ac8a1edb.js +0 -1402
@@ -1,31 +1,22 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=e||self).ReactiveSearchVue={},e.Vue)}(this,(function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var l="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function d(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function h(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(u(1));return n(h)(e,t)}if("function"!=typeof e)throw new Error(u(2));var o=e,i=t,a=[],s=a,c=!1;function f(){s===a&&(s=a.slice())}function g(){if(c)throw new Error(u(3));return i}function m(e){if("function"!=typeof e)throw new Error(u(4));if(c)throw new Error(u(5));var t=!0;return f(),s.push(e),function(){if(t){if(c)throw new Error(u(6));t=!1,f();var n=s.indexOf(e);s.splice(n,1),a=null}}}function y(e){if(!d(e))throw new Error(u(7));if(void 0===e.type)throw new Error(u(8));if(c)throw new Error(u(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error(u(10));o=e,y({type:p.REPLACE})}function b(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(u(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[l]=function(){return this},e}return y({type:p.INIT}),(r={dispatch:y,subscribe:m,getState:g,replaceReducer:v})[l]=b,r}var f=h;function g(e,t){return function(){return t(e.apply(this,arguments))}}function m(e,t){if("function"==typeof e)return g(e,t);if("object"!=typeof e||null===e)throw new Error(u(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=g(o,t))}return n}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var v=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:p,applyMiddleware:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(u(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=y.apply(void 0,i)(n.dispatch),s(s({},n),{},{dispatch:r})}}},bindActionCreators:m,combineReducers:function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:p.INIT}))throw new Error(u(12));if(void 0===n(void 0,{type:p.PROBE_UNKNOWN_ACTION()}))throw new Error(u(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],p=e[l],d=c(p,t);if(void 0===d){t&&t.type;throw new Error(u(14))}o[l]=d,r=r||d!==p}return(r=r||a.length!==Object.keys(e).length)?o:e}},compose:y,createStore:h,legacy_createStore:f});function b(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var O=b();O.withExtraArgument=b;var C=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.ADD_COMPONENT="ADD_COMPONENT",t.REMOVE_COMPONENT="REMOVE_COMPONENT",t.WATCH_COMPONENT="WATCH_COMPONENT",t.SET_QUERY="SET_QUERY",t.SET_APPBASE_QUERY="SET_APPBASE_QUERY",t.SET_QUERY_OPTIONS="SET_QUERY_OPTIONS",t.EXECUTE_QUERY="EXECUTE_QUERY",t.UPDATE_HITS="UPDATE_HITS",t.UPDATE_AGGS="UPDATE_AGGS",t.UPDATE_COMPOSITE_AGGS="UPDATE_COMPOSITE_AGGS",t.ADD_CONFIG="ADD_CONFIG",t.UPDATE_CONFIG="UPDATE_CONFIG",t.ADD_APPBASE_REF="ADD_APPBASE_REF",t.LOG_QUERY="LOG_QUERY",t.LOG_COMBINED_QUERY="LOG_COMBINED_QUERY",t.SET_INTERNAL_VALUE="SET_INTERNAL_VALUE",t.PATCH_VALUE="PATCH_VALUE",t.CLEAR_VALUES="CLEAR_VALUES",t.SET_LOADING="SET_LOADING",t.SET_ERROR="SET_ERROR",t.SET_TIMESTAMP="SET_TIMESTAMP",t.SET_HEADERS="SET_HEADERS",t.SET_MAP_DATA="SET_MAP_DATA",t.SET_MAP_RESULTS="SET_MAP_RESULTS",t.SET_QUERY_LISTENER="SET_QUERY_LISTENER",t.STORE_KEY="__REACTIVESEARCH__",t.SET_SEARCH_ID="SET_SEARCH_ID",t.SET_PROMOTED_RESULTS="SET_PROMOTED_RESULTS",t.SET_DEFAULT_QUERY="SET_DEFAULT_QUERY",t.SET_CUSTOM_QUERY="SET_CUSTOM_QUERY",t.SET_CUSTOM_HIGHLIGHT_OPTIONS="SET_CUSTOM_HIGHLIGHT_OPTIONS",t.SET_CUSTOM_DATA="SET_CUSTOM_DATA",t.SET_APPLIED_SETTINGS="SET_APPLIED_SETTINGS",t.SET_PROPS="SET_PROPS",t.UPDATE_PROPS="UPDATE_PROPS",t.REMOVE_PROPS="REMOVE_PROPS",t.SET_SUGGESTIONS_SEARCH_VALUE="SET_SUGGESTIONS_SEARCH_VALUE",t.CLEAR_SUGGESTIONS_SEARCH_VALUE="CLEAR_SUGGESTIONS_SEARCH_VALUE",t.SET_SUGGESTIONS_SEARCH_ID="SET_SUGGESTIONS_SEARCH_ID",t.UPDATE_ANALYTICS_CONFIG="UPDATE_ANALYTICS_CONFIG",t.SET_RAW_DATA="SET_RAW_DATA",t.SET_POPULAR_SUGGESTIONS="SET_POPULAR_SUGGESTIONS",t.SET_DEFAULT_POPULAR_SUGGESTIONS="SET_DEFAULT_POPULAR_SUGGESTIONS",t.SET_QUERY_TO_HITS="SET_QUERY_TO_HITS",t.RECENT_SEARCHES_SUCCESS="RECENT_SEARCHES_SUCCESS",t.RECENT_SEARCHES_ERROR="RECENT_SEARCHES_ERROR",t.SET_VALUE="SET_VALUE",t.SET_VALUES="SET_VALUES",t.RESET_TO_DEFAULT="RESET_TO_DEFAULT",t.SET_GOOGLE_MAP_SCRIPT_LOADING="SET_GOOGLE_MAP_SCRIPT_LOADING",t.SET_GOOGLE_MAP_SCRIPT_LOADED="SET_GOOGLE_MAP_SCRIPT_LOADED",t.SET_GOOGLE_MAP_SCRIPT_ERROR="SET_GOOGLE_MAP_SCRIPT_ERROR"}));r(C);C.ADD_COMPONENT,C.REMOVE_COMPONENT,C.WATCH_COMPONENT,C.SET_QUERY,C.SET_APPBASE_QUERY,C.SET_QUERY_OPTIONS,C.EXECUTE_QUERY,C.UPDATE_HITS,C.UPDATE_AGGS;var w=C.UPDATE_COMPOSITE_AGGS,S=(C.ADD_CONFIG,C.UPDATE_CONFIG,C.ADD_APPBASE_REF,C.LOG_QUERY,C.LOG_COMBINED_QUERY,C.SET_INTERNAL_VALUE,C.PATCH_VALUE,C.CLEAR_VALUES,C.SET_LOADING,C.SET_ERROR,C.SET_TIMESTAMP,C.SET_HEADERS,C.SET_MAP_DATA,C.SET_MAP_RESULTS,C.SET_QUERY_LISTENER,C.STORE_KEY,C.SET_SEARCH_ID,C.SET_PROMOTED_RESULTS,C.SET_DEFAULT_QUERY,C.SET_CUSTOM_QUERY,C.SET_CUSTOM_HIGHLIGHT_OPTIONS,C.SET_CUSTOM_DATA,C.SET_APPLIED_SETTINGS,C.SET_PROPS,C.UPDATE_PROPS,C.REMOVE_PROPS,C.SET_SUGGESTIONS_SEARCH_VALUE,C.CLEAR_SUGGESTIONS_SEARCH_VALUE,C.SET_SUGGESTIONS_SEARCH_ID,C.UPDATE_ANALYTICS_CONFIG,C.SET_RAW_DATA,C.SET_POPULAR_SUGGESTIONS,C.SET_DEFAULT_POPULAR_SUGGESTIONS,C.SET_QUERY_TO_HITS,C.RECENT_SEARCHES_SUCCESS,C.RECENT_SEARCHES_ERROR,C.SET_VALUE,C.SET_VALUES,C.RESET_TO_DEFAULT,C.SET_GOOGLE_MAP_SCRIPT_LOADING,C.SET_GOOGLE_MAP_SCRIPT_LOADED,C.SET_GOOGLE_MAP_SCRIPT_ERROR,o((function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(t.type===C.ADD_COMPONENT)return[].concat(n(e),[t.component]);if(t.type===C.REMOVE_COMPONENT)return e.filter((function(e){return e!==t.component}));return e}})));r(S);var $=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=Object.values(e),n=[];return t.forEach((function(e){"string"==typeof e?n.push(e):Array.isArray(e)?e.forEach((function(e){"string"==typeof e?n.push(e):n.push.apply(n,r(o(e)))})):"object"==typeof e&&null!==e&&n.push.apply(n,r(o(e)))})),n.filter((function(e,t,n){return n.indexOf(e)===t}))}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.WATCH_COMPONENT){var i=o(t.react),a=n({},e);return Object.keys(a).forEach((function(e){a[e]=a[e].filter((function(e){return e!==t.component}))})),i.forEach((function(e){Array.isArray(a[e])?a[e]=[].concat(r(a[e]),[t.component]):a[e]=[t.component]})),a}return e}}));r($);var _=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.WATCH_COMPONENT)return n({},e,o({},t.component,t.react));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),k=r(_),P=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),E=r(P),T=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_APPBASE_QUERY)return n({},e,t.query);return e}}));r(T);var I=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_OPTIONS)return n({},e,o({},t.component,t.options));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),A=r(I),R=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",searchBox:"SEARCHBOX",singleList:"SINGLELIST",multiList:"MULTILIST",singleDataList:"SINGLEDATALIST",tabDataList:"TABDATALIST",singleDropdownList:"SINGLEDROPDOWNLIST",multiDataList:"MULTIDATALIST",multiDropdownList:"MULTIDROPDOWNLIST",singleDropdownRange:"SINGLEDROPDOWNRANGE",treeList:"TREELIST",numberBox:"NUMBERBOX",tagCloud:"TAGCLOUD",toggleButton:"TOGGLEBUTTON",reactiveComponent:"REACTIVECOMPONENT",datePicker:"DATEPICKER",dateRange:"DATERANGE",dynamicRangeSlider:"DYNAMICRANGESLIDER",multiDropdownRange:"MULTIDROPDOWNRANGE",singleRange:"SINGLERANGE",multiRange:"MULTIRANGE",rangeSlider:"RANGESLIDER",ratingsFilter:"RATINGSFILTER",rangeInput:"RANGEINPUT",geoDistanceDropdown:"GEO_DISTANCE_DROPDOWN",geoDistanceSlider:"GEO_DISTANCE_SLIDER",reactiveMap:"REACTIVE_MAP",reactiveChart:"REACTIVE_CHART"},t.queryTypes={search:"search",term:"term",range:"range",geo:"geo",suggestion:"suggestion"},t.validProps=["type","componentType","aggregationField","aggregationSize","distinctField","distinctFieldConfig","index","aggregations","dataField","includeFields","excludeFields","size","from","sortBy","sortOptions","pagination","autoFocus","autosuggest","debounce","defaultValue","defaultSuggestions","fieldWeights","filterLabel","fuzziness","highlight","highlightField","nestedField","placeholder","queryFormat","searchOperators","enableSynonyms","enableQuerySuggestions","enablePopularSuggestions","queryString","categoryField","strictSelection","selectAllLabel","showCheckbox","showFilter","showSearch","showCount","showLoadMore","loadMoreLabel","showMissing","missingLabel","data","showRadio","multiSelect","includeNullValues","interval","showHistogram","snap","stepValue","range","showSlider","parseDate","calendarInterval","unit","enablePopularSuggestions","enableRecentSuggestions","popularSuggestionsConfig","recentSuggestionsConfig","indexSuggestionsConfig","featuredSuggestionsConfig","enablePredictiveSuggestions","applyStopwords","customStopwords","enableIndexSuggestions","enableFeaturedSuggestions","searchboxId","endpoint"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"},t.SEARCH_COMPONENTS_MODES={SELECT:"select",TAG:"tag"}}));r(R);var x=R.componentTypes,L=(R.queryTypes,R.validProps),j=(R.CLEAR_ALL,R.SEARCH_COMPONENTS_MODES),M=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomEvents=t.parseRangeObject=t.parseFilterValue=t.rangeObjectComponents=t.rangeComponents=t.filterComponents=t.defaultAnalyticsConfig=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=[R.componentTypes.numberBox,R.componentTypes.tagCloud,R.componentTypes.toggleButton,R.componentTypes.datePicker,R.componentTypes.dateRange,R.componentTypes.multiDataList,R.componentTypes.multiDropdownList,R.componentTypes.multiList,R.componentTypes.singleDataList,R.componentTypes.singleDropdownList,R.componentTypes.singleList,R.componentTypes.dynamicRangeSlider,R.componentTypes.multiDropdownRange,R.componentTypes.multiRange,R.componentTypes.rangeSlider,R.componentTypes.ratingsFilter,R.componentTypes.singleDropdownRange,R.componentTypes.singleRange,R.componentTypes.treeList],o=[R.componentTypes.dateRange,R.componentTypes.dynamicRangeSlider,R.componentTypes.rangeSlider,R.componentTypes.rangeInput,R.componentTypes.ratingsFilter],i=[R.componentTypes.singleRange,R.componentTypes.singleDropdownRange,R.componentTypes.multiRange,R.componentTypes.multiDropdownRange];function a(e,t){return e+"="+t.start+"~"+t.end}function s(e,t){var n=t.label,r=t.value,s=t.componentType,u=n||e;return o.includes(s)?u+"="+r[0]+"~"+r[1]:i.includes(s)?Array.isArray(r)?r.map((function(e){return a(u,e)})).join():a(u,r):Array.isArray(r)?"object"==typeof r[0]&&null!==r[0]?r.map((function(e){return u+"="+e.value})).join():r.map((function(e){return u+"="+e})).join():u+"="+r}t.defaultAnalyticsConfig={emptyQuery:!0,suggestionAnalytics:!0,userId:null,customEvents:null,enableQueryRules:!0};t.filterComponents=r,t.rangeComponents=o,t.rangeObjectComponents=i,t.parseFilterValue=s,t.parseRangeObject=a,t.parseCustomEvents=function(e){var t="";return Object.keys(e).forEach((function(n,r){t+=n+"="+e[n],r<Object.keys(e).length-1&&(t+=",")})),t},t.default=function(e){return e&&Object.keys(e).length?Object.entries(e).filter((function(e){var t=n(e,2)[1];return r.includes(t.componentType)&&(t.value&&t.value.length||t.value&&t.value.start||t.value&&t.value.end)})).map((function(e){var t=n(e,2);return s(t[0],t[1])})).join():null}}));r(M);M.parseCustomEvents,M.parseRangeObject,M.parseFilterValue,M.rangeObjectComponents,M.rangeComponents,M.filterComponents,M.defaultAnalyticsConfig;var Q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{analyticsConfig:M.defaultAnalyticsConfig,lock:!1},t=arguments[1];if(t.type===C.ADD_CONFIG)return n({},e,{analyticsConfig:n({},M.defaultAnalyticsConfig,t.analyticsConfig)});if(t.type===C.UPDATE_ANALYTICS_CONFIG)return n({},e,{analyticsConfig:n({},e.analyticsConfig,t.analyticsConfig)});if(t.type===C.UPDATE_CONFIG)return n({},e,t.config);return e}}));r(Q);var V=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.ADD_APPBASE_REF)return t.appbaseRef;return e}}));r(V);var D=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_HITS)return t.append?n({},e,o({},t.component,{hits:[].concat(i(e[t.component].hits),i(t.hits)),total:t.total,time:t.time,hidden:t.hidden||0})):n({},e,o({},t.component,{hits:t.hits,total:t.total,time:t.time,hidden:t.hidden||0}));if(t.type===C.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));r(D);var F=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.LOG_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(F);var N=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.LOG_COMBINED_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(N);var U=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_VALUE:var i={};return Object.keys(t.componentsToReset||{}).forEach((function(r){i[r]=n({},e[r],{value:t.componentsToReset[r]})})),n({},e,i,o({},t.component,{value:t.value,label:t.label||t.component,showFilter:t.showFilter,URLParams:t.URLParams,componentType:t.componentType,category:t.category,meta:t.meta,reference:t.reference}));case C.SET_VALUES:var a=t.componentsValues?Object.keys(t.componentsValues):[];if(a.length){var s={};return a.forEach((function(r){s[r]=n({},e[r],{value:t.componentsValues[r]})})),n({},e,s)}return e;case C.PATCH_VALUE:return n({},e,o({},t.component,n({},e[t.component],t.payload)));case C.CLEAR_VALUES:var u={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){u[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(u[n]=e[n])})),u;case C.REMOVE_COMPONENT:e[t.component];var l=r(e,[t.component]);return l;case C.RESET_TO_DEFAULT:return n({},e,t.defaultValues);default:return e}}})),q=r(U),B=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_INTERNAL_VALUE:return n({},e,o({},t.component,{value:t.value,componentType:t.componentType,category:t.category,meta:t.meta}));case C.CLEAR_VALUES:var i={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){i[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(i[n]=e[n])})),i;case C.RESET_TO_DEFAULT:return n({},e,t.defaultValues);case C.REMOVE_COMPONENT:e[t.component];var a=r(e,[t.component]);return a;default:return e}}}));r(B);var z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_LOADING){var i,a=e[t.component+"_active"]||0;return t.isLoading?a+=1:a&&(a-=1),n({},e,(o(i={},t.component,t.isLoading),o(i,t.component+"_active",a),i),t.isLoading?o({},t.component+"_timestamp",(new Date).getTime()):null)}if(t.type===C.REMOVE_COMPONENT){e[t.component],e[t.component+"_active"];var s=r(e,[t.component,t.component+"_active"]);return s}return e}}));r(z);var H=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_ERROR)return n({},e,o({},t.component,t.error));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(H);var G=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(G);var W=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_HEADERS)return t.headers;return e}}));r(W);var Z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_MAP_DATA)return n({},e,o({},t.componentId,{query:t.query,persistMapQuery:t.persistMapQuery}));if(t.type===C.SET_MAP_RESULTS)return n({},e,o({},t.componentId,n({},e[t.componentId],t.payload)));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(Z);var K=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_LISTENER)return n({},e,o({},t.component,{onQueryChange:t.onQueryChange,onError:t.onError}));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(K);var Y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case C.SET_VALUE:return o.includes(t.componentType)?{searchValue:t.value,searchId:null}:e;case C.SET_SEARCH_ID:return n({},e,{searchId:t.searchId});case C.SET_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:t.value,suggestionsSearchId:null});case C.SET_SUGGESTIONS_SEARCH_ID:return n({},e,{suggestionsSearchId:t.searchId});case C.CLEAR_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:null,suggestionsSearchId:null});default:return e}};var r={searchValue:null,searchId:null,suggestionsSearchId:null,suggestionsSearchValue:null},o=[R.componentTypes.dataSearch,R.componentTypes.categorySearch]}));r(Y);var X=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_PROMOTED_RESULTS)return n({},e,o({},t.component,t.results.map((function(e){return n({},e,{_promoted:!0})}))));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(X);var J=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_DATA)return n({},e,o({},t.component,t.data));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(J);var ee=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_DEFAULT_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(ee);var te=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(te);var ne=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_PROPS:return n({},e,o({},t.component,t.options));case C.UPDATE_PROPS:return n({},e,o({},t.component,n({},e[t.component],t.options)));case C.REMOVE_PROPS:case C.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default:return e}}}));r(ne);var re=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_AGGS){if(t.append){var a=Object.keys(e[t.component])[0],s=t.aggregations[a],u=s.buckets,l=i(s,["buckets"]);return n({},e,r({},t.component,r({},a,n({buckets:[].concat(o(e[t.component][a].buckets),o(u))},l))))}return n({},e,r({},t.component,t.aggregations))}if(t.type===C.REMOVE_COMPONENT){e[t.component];var c=i(e,[t.component]);return c}return e}}));r(re);var oe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_COMPOSITE_AGGS){var a=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],s=Object.keys(t.aggregations)[0];if(!a)return e;var u=[];a.buckets&&Array.isArray(a.buckets)&&(u=a.buckets);var l=u.map((function(e){var t=e.doc_count,r=e.key,o=e[s],a={},u={};if(o&&o.hits){var l=o.hits.hits[0];u=l._source,a=i(l,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[s],top_hits:o},a,u)}));return n({},e,r({},t.component,t.append?[].concat(o(e[t.component]),o(l)):l))}return e}})),ie=r(oe),ae=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_APPLIED_SETTINGS)return n({},e,r({},t.component,t.data));return e}}));r(ae);var se=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_HIGHLIGHT_OPTIONS)return n({},e,o({},t.component,t.data));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(se);var ue=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_RAW_DATA)return n({},e,o({},t.component,t.response));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(ue);var le=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(le);var ce=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_DEFAULT_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(ce);var pe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_TO_HITS)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(pe);var de=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.RECENT_SEARCHES_SUCCESS)return{error:null,data:t.data};if(t.type===C.RECENT_SEARCHES_ERROR)return{error:t.error};return e}}));r(de);var he=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1],o=t.type,i=t.loading,a=t.loaded,s=t.error;if(o===C.SET_GOOGLE_MAP_SCRIPT_LOADING)return n({},r,{loading:i});if(o===C.SET_GOOGLE_MAP_SCRIPT_LOADED)return n({},r,{loaded:a});if(o===C.SET_GOOGLE_MAP_SCRIPT_ERROR)return n({},r,{error:s});return e};var r={loading:!1,loaded:!1,error:null}}));r(he);var fe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=be(S),r=be($),o=be(_),i=be(P),a=be(T),s=be(I),u=be(Q),l=be(V),c=be(D),p=be(F),d=be(N),h=be(U),f=be(B),g=be(z),m=be(H),y=be(G),b=be(W),O=be(Z),C=be(K),w=be(Y),k=be(X),E=be(J),A=be(ee),R=be(te),x=be(ne),L=be(re),j=be(oe),M=be(ae),q=be(se),ie=be(ue),fe=be(le),ge=be(ce),me=be(pe),ye=be(de),ve=be(he);function be(e){return e&&e.__esModule?e:{default:e}}t.default=(0,v.combineReducers)({components:n.default,customQueries:R.default,defaultQueries:A.default,customHighlightOptions:q.default,settings:M.default,watchMan:r.default,queryList:i.default,queryOptions:s.default,dependencyTree:o.default,appbaseRef:l.default,config:u.default,hits:c.default,promotedResults:k.default,customData:E.default,aggregations:L.default,compositeAggregations:j.default,queryLog:p.default,combinedLog:d.default,selectedValues:h.default,internalValues:f.default,isLoading:g.default,error:m.default,timestamp:y.default,headers:b.default,mapData:O.default,queryListener:C.default,analytics:w.default,props:x.default,rawData:ie.default,querySuggestions:fe.default,defaultPopularSuggestions:ge.default,queryToHits:me.default,recentSearches:ye.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},googleMapScriptStatus:ve.default,lastUsedAppbaseQuery:a.default})}));r(fe);var ge=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={date:"yyyy-MM-dd",basic_date:"yyyyMMdd",basic_date_time:"yyyyMMdd'T'HHmmss.fffzzz",basic_date_time_no_millis:"yyyyMMdd'T'HHmmsszzz",date_time_no_millis:"yyyy-MM-dd'T'HH:mm:sszzz",basic_time:"HHmmss.fffzzz",basic_time_no_millis:"HHmmsszzz",epoch_millis:"epoch_millis",epoch_second:"epoch_second"}}));r(ge);var me=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={"«":'"',"²":"2","³":"3","¹":"1","»":'"',"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"q","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƀ":"b","Ɓ":"B","Ƃ":"B","ƃ":"b","Ɔ":"O","Ƈ":"C","ƈ":"c","Ɖ":"D","Ɗ":"D","Ƌ":"D","ƌ":"d","Ǝ":"E","Ə":"A","Ɛ":"E","Ƒ":"F","ƒ":"f","Ɠ":"G","ƕ":"hv","Ɩ":"I","Ɨ":"I","Ƙ":"K","ƙ":"k","ƚ":"l","Ɯ":"M","Ɲ":"N","ƞ":"n","Ɵ":"O","Ơ":"O","ơ":"o","Ƥ":"P","ƥ":"p","ƫ":"t","Ƭ":"T","ƭ":"t","Ʈ":"T","Ư":"U","ư":"u","Ʋ":"V","Ƴ":"Y","ƴ":"y","Ƶ":"Z","ƶ":"z","ƿ":"w","DŽ":"DZ","Dž":"Dz","dž":"dz","LJ":"LJ","Lj":"Lj","lj":"lj","NJ":"NJ","Nj":"Nj","nj":"nj","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","ǝ":"e","Ǟ":"A","ǟ":"a","Ǡ":"A","ǡ":"a","Ǣ":"AE","ǣ":"ae","Ǥ":"G","ǥ":"G","Ǧ":"G","ǧ":"G","Ǩ":"K","ǩ":"k","Ǫ":"O","ǫ":"o","Ǭ":"O","ǭ":"o","ǰ":"j","DZ":"DZ","Dz":"Dz","dz":"dz","Ǵ":"G","ǵ":"g","Ƕ":"HV","Ƿ":"W","Ǹ":"N","ǹ":"n","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Ȁ":"A","ȁ":"a","Ȃ":"A","ȃ":"a","Ȅ":"E","ȅ":"e","Ȇ":"E","ȇ":"e","Ȉ":"I","ȉ":"i","Ȋ":"I","ȋ":"i","Ȍ":"O","ȍ":"o","Ȏ":"O","ȏ":"o","Ȑ":"R","ȑ":"r","Ȓ":"R","ȓ":"r","Ȕ":"U","ȕ":"u","Ȗ":"U","ȗ":"u","Ș":"S","ș":"s","Ț":"T","ț":"t","Ȝ":"Z","ȝ":"z","Ȟ":"H","ȟ":"h","Ƞ":"N","ȡ":"d","Ȣ":"OU","ȣ":"ou","Ȥ":"Z","ȥ":"z","Ȧ":"A","ȧ":"a","Ȩ":"E","ȩ":"e","Ȫ":"O","ȫ":"o","Ȭ":"O","ȭ":"o","Ȯ":"O","ȯ":"o","Ȱ":"O","ȱ":"o","Ȳ":"Y","ȳ":"y","ȴ":"l","ȵ":"n","ȶ":"t","ȷ":"j","ȸ":"db","ȹ":"qp","Ⱥ":"A","Ȼ":"C","ȼ":"c","Ƚ":"L","Ⱦ":"T","ȿ":"s","ɀ":"z","Ƀ":"B","Ʉ":"U","Ʌ":"V","Ɇ":"E","ɇ":"e","Ɉ":"J","ɉ":"j","Ɋ":"Q","ɋ":"q","Ɍ":"R","ɍ":"r","Ɏ":"Y","ɏ":"y","ɐ":"a","ɓ":"b","ɔ":"o","ɕ":"c","ɖ":"d","ɗ":"d","ɘ":"e","ə":"a","ɚ":"a","ɛ":"e","ɜ":"e","ɝ":"e","ɞ":"e","ɟ":"j","ɠ":"g","ɡ":"g","ɢ":"G","ɥ":"h","ɦ":"h","ɨ":"i","ɪ":"I","ɫ":"l","ɬ":"l","ɭ":"l","ɯ":"m","ɰ":"m","ɱ":"m","ɲ":"n","ɳ":"n","ɴ":"N","ɵ":"o","ɶ":"OE","ɼ":"r","ɽ":"r","ɾ":"r","ɿ":"r","ʀ":"R","ʁ":"R","ʂ":"s","ʄ":"j","ʇ":"t","ʈ":"t","ʉ":"u","ʋ":"v","ʌ":"v","ʍ":"w","ʎ":"y","ʏ":"Y","ʐ":"z","ʑ":"z","ʗ":"C","ʙ":"B","ʚ":"e","ʛ":"G","ʜ":"H","ʝ":"j","ʞ":"k","ʟ":"L","ʠ":"q","ʣ":"dz","ʥ":"dz","ʦ":"ts","ʨ":"tc","ʪ":"ls","ʫ":"lz","ʮ":"h","ʯ":"h","ᴀ":"A","ᴁ":"AE","ᴂ":"ae","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴆ":"D","ᴇ":"E","ᴈ":"e","ᴉ":"i","ᴊ":"J","ᴋ":"K","ᴌ":"L","ᴍ":"M","ᴎ":"N","ᴏ":"O","ᴐ":"O","ᴔ":"oe","ᴕ":"OU","ᴖ":"o","ᴗ":"o","ᴘ":"P","ᴙ":"R","ᴚ":"R","ᴛ":"T","ᴜ":"U","ᴠ":"V","ᴡ":"W","ᴢ":"Z","ᵢ":"i","ᵣ":"r","ᵤ":"u","ᵥ":"v","ᵫ":"ue","ᵬ":"b","ᵭ":"d","ᵮ":"f","ᵯ":"m","ᵰ":"n","ᵱ":"p","ᵲ":"r","ᵳ":"r","ᵴ":"s","ᵵ":"t","ᵶ":"z","ᵷ":"g","ᵹ":"g","ᵺ":"th","ᵻ":"I","ᵼ":"i","ᵽ":"p","ᵾ":"U","ᶀ":"b","ᶁ":"d","ᶂ":"f","ᶃ":"g","ᶄ":"k","ᶅ":"l","ᶆ":"m","ᶇ":"n","ᶈ":"p","ᶉ":"r","ᶊ":"s","ᶌ":"v","ᶍ":"x","ᶎ":"z","ᶏ":"a","ᶑ":"d","ᶒ":"e","ᶓ":"e","ᶔ":"e","ᶕ":"a","ᶖ":"i","ᶗ":"o","ᶙ":"u","Ḁ":"A","ḁ":"a","Ḃ":"B","ḃ":"b","Ḅ":"B","ḅ":"b","Ḇ":"B","ḇ":"b","Ḉ":"C","ḉ":"c","Ḋ":"D","ḋ":"d","Ḍ":"D","ḍ":"d","Ḏ":"D","ḏ":"d","Ḑ":"D","ḑ":"d","Ḓ":"D","ḓ":"d","Ḕ":"E","ḕ":"e","Ḗ":"E","ḗ":"e","Ḙ":"E","ḙ":"e","Ḛ":"E","ḛ":"e","Ḝ":"E","ḝ":"e","Ḟ":"F","ḟ":"f","Ḡ":"G","ḡ":"g","Ḣ":"H","ḣ":"h","Ḥ":"H","ḥ":"h","Ḧ":"H","ḧ":"h","Ḩ":"H","ḩ":"h","Ḫ":"H","ḫ":"h","Ḭ":"I","ḭ":"i","Ḯ":"I","ḯ":"i","Ḱ":"K","ḱ":"k","Ḳ":"K","ḳ":"k","Ḵ":"K","ḵ":"k","Ḷ":"L","ḷ":"l","Ḹ":"L","ḹ":"l","Ḻ":"L","ḻ":"l","Ḽ":"L","ḽ":"l","Ḿ":"M","ḿ":"m","Ṁ":"M","ṁ":"m","Ṃ":"M","ṃ":"m","Ṅ":"N","ṅ":"n","Ṇ":"N","ṇ":"n","Ṉ":"N","ṉ":"n","Ṋ":"N","ṋ":"n","Ṍ":"O","ṍ":"o","Ṏ":"O","ṏ":"o","Ṑ":"O","ṑ":"o","Ṓ":"O","ṓ":"o","Ṕ":"P","ṕ":"p","Ṗ":"P","ṗ":"p","Ṙ":"R","ṙ":"r","Ṛ":"R","ṛ":"r","Ṝ":"R","ṝ":"r","Ṟ":"R","ṟ":"r","Ṡ":"S","ṡ":"s","Ṣ":"S","ṣ":"s","Ṥ":"S","ṥ":"s","Ṧ":"S","ṧ":"s","Ṩ":"S","ṩ":"s","Ṫ":"T","ṫ":"t","Ṭ":"T","ṭ":"t","Ṯ":"T","ṯ":"t","Ṱ":"T","ṱ":"t","Ṳ":"U","ṳ":"u","Ṵ":"U","ṵ":"u","Ṷ":"U","ṷ":"u","Ṹ":"U","ṹ":"u","Ṻ":"U","ṻ":"u","Ṽ":"V","ṽ":"v","Ṿ":"V","ṿ":"v","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","Ẇ":"W","ẇ":"w","Ẉ":"W","ẉ":"w","Ẋ":"X","ẋ":"x","Ẍ":"X","ẍ":"x","Ẏ":"Y","ẏ":"y","Ẑ":"Z","ẑ":"z","Ẓ":"Z","ẓ":"z","Ẕ":"Z","ẕ":"z","ẖ":"h","ẗ":"t","ẘ":"w","ẙ":"y","ẚ":"a","ẛ":"f","ẜ":"s","ẝ":"s","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","Ỻ":"LL","ỻ":"ll","Ỽ":"V","Ỿ":"Y","ỿ":"y","‐":"-","‑":"-","‒":"-","–":"-","—":"-","‘":'"',"’":'"',"‚":'"',"‛":'"',"“":'"',"”":'"',"„":'"',"′":'"',"″":'"',"‵":'"',"‶":'"',"‸":"^","‹":'"',"›":'"',"‼":"!!","⁄":"/","⁅":"[","⁆":"]","⁇":"??","⁈":"?!","⁉":"!?","⁎":"*","⁏":";","⁒":"%","⁓":"~","⁰":"0","ⁱ":"i","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","ⁿ":"n","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","₊":"+","₋":"-","₌":"=","₍":"(","₎":")","ₐ":"a","ₑ":"e","ₒ":"o","ₓ":"x","ₔ":"a","ↄ":"c","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"19","⑳":"20","⑴":"(1)","⑵":"(2)","⑶":"(3)","⑷":"(4)","⑸":"(5)","⑹":"(6)","⑺":"(7)","⑻":"(8)","⑼":"(9)","⑽":"(10)","⑾":"(11)","⑿":"(12)","⒀":"(13)","⒁":"(14)","⒂":"(15)","⒃":"(16)","⒄":"(17)","⒅":"(18)","⒆":"(19)","⒇":"(20)","⒈":"1.","⒉":"2.","⒊":"3.","⒋":"4.","⒌":"5.","⒍":"6.","⒎":"7.","⒏":"8.","⒐":"9.","⒑":"10.","⒒":"11.","⒓":"12.","⒔":"13.","⒕":"14.","⒖":"15.","⒗":"16.","⒘":"17.","⒙":"18.","⒚":"19.","⒛":"20.","⒜":"(a)","⒝":"(b)","⒞":"(c)","⒟":"(d)","⒠":"(e)","⒡":"(f)","⒢":"(g)","⒣":"(h)","⒤":"(i)","⒥":"(j)","⒦":"(k)","⒧":"(l)","⒨":"(m)","⒩":"(n)","⒪":"(o)","⒫":"(p)","⒬":"(q)","⒭":"(r)","⒮":"(s)","⒯":"(t)","⒰":"(u)","⒱":"(v)","⒲":"(w)","⒳":"(x)","⒴":"(y)","⒵":"(z)","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓥ":"v","ⓦ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","⓪":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","❛":'"',"❜":'"',"❝":'"',"❞":'"',"❨":"(","❩":")","❪":"(","❫":")","❬":"<","❭":">","❮":'"',"❯":'"',"❰":"<","❱":">","❲":"[","❳":"]","❴":"{","❵":"}","❶":"1","❷":"2","❸":"3","❹":"4","❺":"5","❻":"6","❼":"7","❽":"8","❾":"9","❿":"10","➀":"1","➁":"2","➂":"3","➃":"4","➄":"5","➅":"6","➆":"7","➇":"8","➈":"9","➉":"10","➊":"1","➋":"2","➌":"3","➍":"4","➎":"5","➏":"6","➐":"7","➑":"8","➒":"9","➓":"10","Ⱡ":"L","ⱡ":"l","Ɫ":"L","Ᵽ":"P","Ɽ":"R","ⱥ":"a","ⱦ":"t","Ⱨ":"H","ⱨ":"h","Ⱪ":"K","ⱪ":"k","Ⱬ":"Z","ⱬ":"z","Ɱ":"M","Ɐ":"a","ⱱ":"v","Ⱳ":"W","ⱳ":"w","ⱴ":"v","Ⱶ":"H","ⱶ":"h","ⱸ":"e","ⱺ":"o","ⱻ":"E","ⱼ":"j","⸨":"((","⸩":"))","Ꜩ":"TZ","ꜩ":"tz","ꜰ":"F","ꜱ":"S","Ꜳ":"AA","ꜳ":"aa","Ꜵ":"AO","ꜵ":"ao","Ꜷ":"AU","ꜷ":"au","Ꜹ":"AV","ꜹ":"av","Ꜻ":"AV","ꜻ":"av","Ꜽ":"AY","ꜽ":"ay","Ꜿ":"c","ꜿ":"c","Ꝁ":"K","ꝁ":"k","Ꝃ":"K","ꝃ":"k","Ꝅ":"K","ꝅ":"k","Ꝇ":"L","ꝇ":"l","Ꝉ":"L","ꝉ":"l","Ꝋ":"O","ꝋ":"o","Ꝍ":"O","ꝍ":"o","Ꝏ":"OO","ꝏ":"oo","Ꝑ":"P","ꝑ":"p","Ꝓ":"P","ꝓ":"p","Ꝕ":"P","ꝕ":"p","Ꝗ":"Q","ꝗ":"q","Ꝙ":"Q","ꝙ":"q","Ꝛ":"R","ꝛ":"r","Ꝟ":"V","ꝟ":"v","Ꝡ":"VY","ꝡ":"vy","Ꝣ":"Z","ꝣ":"z","Ꝧ":"TH","ꝧ":"th","Ꝩ":"V","Ꝺ":"D","ꝺ":"d","Ꝼ":"F","ꝼ":"f","Ᵹ":"G","Ꝿ":"G","ꝿ":"g","Ꞁ":"L","ꞁ":"l","Ꞃ":"R","ꞃ":"r","Ꞅ":"s","ꞅ":"S","Ꞇ":"T","ꟻ":"F","ꟼ":"p","ꟽ":"M","ꟾ":"I","ꟿ":"M","ff":"ff","fi":"fi","fl":"fl","ffi":"ffi","ffl":"ffl","st":"st","!":"!",""":'"',"#":"#","$":"$","%":"%","&":"&","'":'"',"(":"(",")":")","*":"*","+":"+",",":",","-":"-",".":".","/":"/","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9",":":":",";":";","<":"<","=":"=",">":">","?":"?","@":"@","A":"A","B":"B","C":"C","D":"D","E":"E","F":"F","G":"G","H":"H","I":"I","J":"J","K":"K","L":"L","M":"M","N":"N","O":"O","P":"P","Q":"Q","R":"R","S":"S","T":"T","U":"U","V":"V","W":"W","X":"X","Y":"Y","Z":"Z","[":"[","\":"\\","]":"]","^":"^","_":"_","a":"a","b":"b","c":"c","d":"d","e":"e","f":"f","g":"g","h":"h","i":"i","j":"j","k":"k","l":"l","m":"m","n":"n","o":"o","p":"p","q":"q","r":"r","s":"s","t":"t","u":"u","v":"v","w":"w","x":"x","y":"y","z":"z","{":"{","}":"}","~":"~"}}));r(me);var ye=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.replaceDiacritics=s;var r,o=(r=me)&&r.__esModule?r:{default:r};function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=function(e){switch(typeof e){case"string":return e;case"object":return Array.isArray(e)?function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])}(e):null;default:return e}};function s(e){for(var t=e?String(e):"",n=0;n<t.length;n++){var r=t.charAt(n);o.default[r]&&(t=t.replaceAll(r,o.default[r]))}return t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var l=function(e){var t=e.suggestions,r=e.currentValue,o=e.wordsToShowAfterHighlight,a={};if(r){var s=r.trim();return t.reduce((function(e,t){var r=t.label,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["label"]),c=(new DOMParser).parseFromString(r,"text/html").documentElement.textContent,p="^("+u(s)+")\\w+",d=new RegExp(p,"i"),h=d.exec(c);if(h||(p="^("+u(s)+")",h=(d=new RegExp(p,"i")).exec(c)),h){var f=c.slice(h.index,c.length).slice(s.length).split(" ").slice(0,o+1).join(" "),g=s+'<mark class="highlight">'+f+"</mark>",m=""+s+f;return a[g]?e:(a[g]=1,[].concat(i(e),[n({},l,{label:g,value:m,isPredictiveSuggestion:!0})]))}return e}),[])}return[]};t.default=function(e){var t=e.fields,r=e.suggestions,o=e.currentValue,u=e.suggestionProperties,c=void 0===u?[]:u,p=e.showDistinctSuggestions,d=void 0!==p&&p,h=e.enablePredictiveSuggestions,f=void 0!==h&&h,g=e.wordsToShowAfterHighlight,m=void 0===g?2:g,y=e.enableSynonyms,v=[],b=[],O=!1,C=function(e,t,r){if((O||o.trim().split(" ").some((function(t){return s(e).toLowerCase().includes(s(t))})))&&!b.includes(e)||r._promoted){var a={label:e,value:e,source:r},u={};Array.isArray(c)&&c.length>0&&c.forEach((function(e){t.hasOwnProperty(e)&&(u=n({},u,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t[e])))}));var l=n({},a,u);if(b=[].concat(i(b),[e]),v=[].concat(i(v),[l]),d)return!0}return!1},w=function(){r.forEach((function(e){t.forEach((function(t){!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if("object"==typeof t){var i=n.split("."),s=t[i[0]];if(t[n]){var u=t[n],l=a(u);if(l&&"string"==typeof l)return C(l,t,r)}if(Array.isArray(s)&&(s.length>1&&(s=s.filter((function(e){return e&&e.toString().toLowerCase().includes(o.toString().toLowerCase())}))),s=s[0]),s)if(i.length>1){var c=n.substring(i[0].length+1);e(s,c,r)}else{var p=a(s);if(p)return C(p,t,r)}}return!1}(e,t)}))}))};if(w(),v.length<r.length&&!O&&y&&(O=!0,w()),f){var S=l({suggestions:v,currentValue:o,wordsToShowAfterHighlight:m});v=S}if(d){var $={},_=[];return v.forEach((function(e){e.source&&e.source._id&&($[e.source._id]||(_.push(e),$[e.source._id]=!0))})),_}return v}}));r(ye);var ve=ye.replaceDiacritics,be=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.transformRequestUsingEndpoint=t.flatten=t.saveDataAsFile=t.transformTreeListLocalStateIntoQueryComptaibleFormat=t.transformRawTreeListData=t.recLookup=t.hasCustomRenderer=t.getComponent=t.isFunction=t.getCalendarIntervalErrorMessage=t.queryFormatMillisecondsMap=t.featuredSuggestionsActionTypes=t.suggestionTypes=t.getTopSuggestions=t.withClickIds=t.getCompositeAggsQuery=t.getAggsQuery=t.extractQueryFromDefaultQuery=t.updateInternalQuery=t.getSearchState=t.extractQueryFromCustomQuery=t.getOptionsForCustomQuery=t.getOptionsFromQuery=t.parseHits=t.handleA11yAction=t.getInnerKey=t.getClassName=t.checkSomePropChange=t.checkPropChange=t.updateDefaultQuery=t.updateCustomQuery=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isEqual=c,t.compareQueries=function(e,t){try{return c(JSON.parse(JSON.stringify(e)),JSON.parse(JSON.stringify(t)))}catch(e){return!1}},t.debounce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(!t)return e;var r=null,o=null,i=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(i,t)}},t.getQueryOptions=function(e){var t={};void 0!==e.size&&(t.size=e.size);if(e.includeFields||e.excludeFields){var n={};e.includeFields&&(n.includes=e.includeFields),e.excludeFields&&(n.excludes=e.excludeFields),t._source=n}return t},t.buildQuery=function(e,t,r,o){var i=null,a=null;e in t&&(i=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var i=d(p(o),t[o].map((function(t){return"string"!=typeof t?e(t,n):t in n&&n[t]&&Object.keys(n[t]).length?n[t]:null})).filter((function(e){return!!e})));i&&Object.keys(i).length&&(r=[].concat(s(r),[i]))}else if("string"==typeof t[o]){var a=d(p(o),n[t[o]]);a&&Object.keys(a).length&&(r=[].concat(s(r),[a]))}else if("object"==typeof t[o]&&null!==t[o]){var u=e(t[o],n);u&&Object.keys(u).length&&(r=[].concat(s(r),[u]))}})),Array.isArray(r)&&r.length)return{bool:{must:r}};if(r&&Object.keys(r).length)return r;return null}(t[e],r),a=function e(t,r,o){var i={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){r[e]&&(i=n({},i,r[e]))})):"string"==typeof t[o]?r[t[o]]&&(i=n({},i,r[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(i=n({},i,e(t[o],r)))})),r[o]&&(i=n({},i,r[o]));return i}(t[e],o,e));return{queryObj:i,options:a}},t.pushToAndClause=function e(t,r){var o=n({},t);if(o.and)return Array.isArray(o.and)?(o.and=[].concat(s(o.and),[r]),o):"string"==typeof o.and?(o.and=[o.and,r],o):(o.and=e(o.and,r),o);return n({},o,{and:r})},t.checkValueChange=function(e,t,n,r){var o=t;Array.isArray(t)&&!t.length&&(o=null);var i=function(t){console.warn(e+" - beforeValueChange rejected the promise with ",t)};if(n)try{var a=n(o);a instanceof Promise?a.then(r).catch(i):r()}catch(e){i(e)}else r()},t.getAggsOrder=h,t.formatDate=function(e,t){if(t.parseDate)return t.parseDate(e,t);switch(t.queryFormat){case"epoch_millis":return e.getTime();case"epoch_second":return Math.floor(e.getTime()/1e3);default:return r.default[t.queryFormat]?e.toString(r.default[t.queryFormat]):e.getTime()}},t.getResultStats=function(e){var t=e.total,r=e.size,o=e.time,i=e.hidden,a=e.promotedResults;return n({numberOfResults:t},r>0?{numberOfPages:Math.ceil(t/r)}:null,{time:o||0,hidden:i,promoted:a?a.length:0})},t.extractFieldsFromSource=C,t.normalizeDataField=w,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,i=n.promotedResults,a=n.enablePredictiveSuggestions,u=[];n.dataField?u=w(n.dataField).map((function(e){return e.field})):e&&Array.isArray(e)&&e.length>0&&e[0]&&e[0]._source&&(u=C(e[0]._source));var l=m(e,!1),c=m(i,!1);if(c&&c.length){var p=c.map((function(e){return e._id})).filter(Boolean);p&&(l=l.filter((function(e){return!p.includes(e._id)}))),l=[].concat(s(c),s(l))}var d=(0,o.default)({fields:u,suggestions:l,currentValue:t.toLowerCase(),showDistinctSuggestions:n.showDistinctSuggestions,enablePredictiveSuggestions:a,enableSynonyms:n.enableSynonyms});if(r)return d.map((function(e){return r(e)}));return d},t.isValidDateRangeQueryFormat=function(e){return Object.keys(r.default).includes(e)},t.setDeep=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.reduce((function(e,o,i){return r&&"object"!=typeof e[o]&&i!==t.length-1?(e[o]={},e[o]):i===t.length-1?(e[o]=n,n):"object"==typeof e[o]?e[o]:{}}),e)};var r=i(ge),o=i(ye);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.updateCustomQuery=function(e,t,n){t.customQuery&&"function"==typeof t.customQuery&&t.setCustomQuery(e,t.customQuery(n,t))};var l=t.updateDefaultQuery=function(e,t,n){t.defaultQuery&&"function"==typeof t.defaultQuery&&t.setDefaultQuery(e,t.defaultQuery(n,t))};function c(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;if(e.constructor!==t.constructor)return!1;for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))return!1;if(e[n]!==t[n]){if("object"!=typeof e[n])return!1;if(!c(e[n],t[n]))return!1}}for(var r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}function p(e){return"and"===e?"must":"or"===e?"should":"must_not"}function d(e,t){var r=null;return(Array.isArray(t)&&t.length||!Array.isArray(t)&&t)&&(r={bool:u({},e,t)}),"should"===e&&r&&(r={bool:n({},r.bool,{minimum_should_match:1})}),r}function h(e){return"count"===e?{_count:"desc"}:{_key:e}}var f=t.checkPropChange=function(e,t,n){return!c(e,t)&&(n(),!0)},g=(t.checkSomePropChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];n.some((function(n){return f(e[n],t[n],r)}))},t.getClassName=function(e,t){return e&&e[t]||""},t.getInnerKey=function(e,t){return e&&e[t]||{}},t.handleA11yAction=function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())},function(e){var t=n({},e);return t.highlight&&Object.keys(t.highlight).forEach((function(e){var r=t.highlight[e][0];t._source=n({},t._source,u({},e,r))})),t}),m=t.parseHits=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null;return e&&(r=[].concat(s(e)).map((function(e){var r=n({},e);return t&&(r=g(e)),Object.keys(r).filter((function(e){return"_source"!==e})).reduce((function(e,t){return e[t]=r[t],e}),n({highlight:r.highlight||{}},r._source))}))),r};var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query;var t=a(e,["query"]);return Object.keys(t).length?t:null}return null};t.getOptionsFromQuery=y;t.getOptionsForCustomQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query,e.id,e.params;var t=a(e,["query","id","params"]);return Object.keys(t).length?t:null}return null};t.extractQueryFromCustomQuery=function(e){return e?e.id?{id:e.id,params:e.params}:e.query:null};function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],r=arguments[2];Object.keys(e).forEach((function(o){var i=e[o]||{},a=i.hidden,s=i.total,u=i.time;t[o]=n({},t[o],{resultStats:n({},t[o].resultStats,{numberOfResults:s,time:u,promoted:r[o]&&r[o].length,hidden:a||0})})}))}t.getSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.selectedValues,o=e.queryLog,i=e.dependencyTree,a=e.props,s=e.hits,l=e.aggregations,c=e.isLoading,p=e.error,d=e.promotedResults,h=e.settings,f=e.customData,g=e.rawData,m={},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return Object.keys(e).forEach((function(r){m[r]=n({},m[r],t?u({},t,e[r]):e[r])}))};return y(a),Object.keys(r||{}).forEach((function(e){var t=m[e],o=r[e];o&&(m[e]=n({},t,n({title:o.label,componentType:o.componentType,value:o.value},o.category&&{category:o.category},{URLParams:o.URLParams})))})),t||(y(o),y(s,"hits"),y(l,"aggregations"),y(c,"isLoading"),y(p,"error"),y(d,"promotedData"),y(h,"settings"),y(f,"customData"),y(g,"rawData"),v(s,m,d)),y(i,"react"),m},t.updateInternalQuery=function(e,t,r,o,i,a){var s=o.defaultQuery,u=void 0,c=i;if(s){var p=s(r,o);c=(p||{}).query,u=y(p),l(e,o,r)}c?(o.setQueryOptions(e,n({},u,t||i)),o.updateQuery(n({componentId:e,query:c,value:r},a))):o.setQueryOptions(e,n({},u,t||i))};var b=function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var i=a(o,["query"]);i&&(n=i)}}return n};t.extractQueryFromDefaultQuery=b;t.getAggsQuery=function(e,t,r){var o=t,i=r.dataField,a=r.size,s=r.sortBy,l=r.showMissing,c=r.missingLabel;return o.size=0,o.aggs=u({},i,{terms:n({field:i,size:a,order:h(s||"count")},l?{missing:c}:{})}),r.nestedField&&(o.aggs={reactivesearch_nested:{nested:{path:r.nestedField},aggs:o.aggs}}),n({},o,b(r,e))},t.getCompositeAggsQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,r=void 0===t?{}:t,o=e.props,i=e.after,a=void 0===i?null:i,s=e.showTopHits,l=void 0!==s&&s,c=e.value,p=r,d=o.dataField,h=o.size,f=o.sortBy,g=o.showMissing,m=o.aggregationField,y=m||d,v="count"===f?{}:{order:f};return p.aggs=u({},y,n({composite:n({sources:[u({},y,{terms:n({field:y},v,g?{missing_bucket:!0}:{})})],size:h},a)},l?{aggs:u({},y,{top_hits:{size:1}})}:{})),p.size=0,o.nestedField&&(p.aggs={reactivesearch_nested:{nested:{path:o.nestedField},aggs:p.aggs}}),n({},p,b(o,c))};var O=t.withClickIds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e,t){return n({},e,{_click_id:t})}))};function C(e){var t=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1],a=r?r+"."+i:i;return Number.isNaN(parseInt(i,10))||(a=r||i),t[i]&&"object"==typeof t[i]?n({},o,e(t[i],a)):n({},o,u({},a,!0))}),[])}(e);return Object.keys(t)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"string"==typeof e?[{field:e,weight:t.length?t[0]:void 0}]:Array.isArray(e)?e.map((function(e,n){var r={};return"string"==typeof e?(r.field=e,t.length>n&&(r.weight=t[n])):"object"==typeof e&&e&&e.field&&(r.field=e.field,r.weight=e.weight),r})):"object"==typeof e&&e?[{field:e.field,weight:e.weight}]:[]}t.getTopSuggestions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],r=m(e,!1),i=(0,o.default)({fields:["key","key.autosuggest","key.search"],suggestions:r||[],currentValue:t.toLowerCase(),showDistinctSuggestions:n});return O(i)};t.suggestionTypes={Popular:"popular",Index:"index",Recent:"recent",Promoted:"promoted",Featured:"featured"},t.featuredSuggestionsActionTypes={NAVIGATE:"navigate",FUNCTION:"function"};var S=t.queryFormatMillisecondsMap={minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629746e3,quarter:7889238e3,year:31556952e3},$=(t.getCalendarIntervalErrorMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"minute",n=Object.keys(S),r=n.indexOf(t);if(-1===r&&console.error("Invalid calendarInterval Passed"),"year"===t)return"Try using a shorter range of values.";for(var o=r+1;o<n.length;o+=1)if(e/Object.values(S)[o]<=100){var i=n[o];return{errorMessage:"Please pass calendarInterval prop with value greater than or equal to a `"+i+"` for a meaningful resolution of histogram.",calculatedCalendarInterval:i}}return{errorMessage:"Try using a shorter range of values.",calculatedCalendarInterval:"year"}},t.isFunction=function(e){return"function"==typeof e});t.getComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.children,r=t.render;return $(n)?n(e):$(r)?r(e):null},t.hasCustomRenderer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.render,n=e.children;return $(n)||$(t)},t.recLookup=function e(t,n){try{var r=n.split(".");return 1===r.length?t[r[0]]:e(t[r[0]],r.slice(1).join("."))}catch(e){return!1}};t.transformRawTreeListData=function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[];if(t instanceof Object){var a=Object.keys(t);a.forEach((function(a){Array.isArray(t[a].buckets)&&t[a].buckets.forEach((function(t){i.push(n({key:t.key,count:t.doc_count,level:o},t[r[o+1]]instanceof Object?{list:e(u({},r[o+1],t[r[o+1]]),r,o+1)}:{}))}))}))}return i},t.transformTreeListLocalStateIntoQueryComptaibleFormat=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[];return t instanceof Object&&(Object.keys(t).length?Object.keys(t).forEach((function(o){t[o]instanceof Object&&r.push.apply(r,s(e(t[o],n?n+" > "+o:o))),!0===t[o]&&r.push(n?n+" > "+o:o)})):n&&r.push(n)),r},t.saveDataAsFile=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"exportedData",t=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"csv",r=t,o="text/"+n;"json"===n&&(r=JSON.stringify(r,0,4));var i=new Blob([r],{type:o}),a=document.createElement("a");a.download=e+"."+n,a.href=window.URL.createObjectURL(i),a.dataset.downloadurl=[o,a.download,a.href].join(":");var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});a.dispatchEvent(s),a.remove()},t.flatten=function(e){var t={};return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(Object(n)!==n)t[r]=n;else if(Array.isArray(n))t[r]=JSON.stringify(n);else{var o=!0;Object.keys(n).forEach((function(t){o=!1,e(n[t],r?r+"."+t:t)})),o&&r&&(t[r]={})}}(e),t};t.transformRequestUsingEndpoint=function(e,t){if(t instanceof Object){var r=t.headers,o=void 0===r?{}:r,i=t.body,s=a(t,["headers","body"]);return n({},e,s,{headers:n({},e.headers,o)},i instanceof Object?{body:JSON.stringify(i)}:{})}return e}}));r(be);var Oe=be.transformRequestUsingEndpoint,Ce=(be.flatten,be.saveDataAsFile,be.transformTreeListLocalStateIntoQueryComptaibleFormat,be.transformRawTreeListData,be.recLookup,be.hasCustomRenderer,be.getComponent,be.isFunction,be.getCalendarIntervalErrorMessage,be.queryFormatMillisecondsMap,be.featuredSuggestionsActionTypes,be.suggestionTypes),we=(be.getTopSuggestions,be.withClickIds),Se=(be.getCompositeAggsQuery,be.getAggsQuery,be.extractQueryFromDefaultQuery,be.updateInternalQuery,be.getSearchState,be.extractQueryFromCustomQuery),$e=be.getOptionsForCustomQuery,_e=(be.getOptionsFromQuery,be.parseHits,be.handleA11yAction,be.getInnerKey,be.getClassName,be.checkSomePropChange,be.checkPropChange,be.updateDefaultQuery,be.updateCustomQuery,be.isEqual),ke=(be.compareQueries,be.debounce,be.getQueryOptions),Pe=be.buildQuery,Ee=be.pushToAndClause,Te=(be.checkValueChange,be.getAggsOrder,be.formatDate,be.getResultStats,be.extractFieldsFromSource,be.normalizeDataField,be.handleOnSuggestions,be.isValidDateRangeQueryFormat,be.setDeep,o((function(e,t){function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:C.UPDATE_AGGS,component:e,aggregations:t,append:n}}function r(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{type:C.UPDATE_HITS,component:e,hits:t.hits,total:"object"==typeof t.total?t.total.value:t.total,hidden:r,time:n,append:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateAggs=n,t.updateCompositeAggs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:C.UPDATE_COMPOSITE_AGGS,component:e,aggregations:t,append:n}},t.updateHits=r,t.saveQueryToHits=function(e,t){return{type:C.SET_QUERY_TO_HITS,component:e,query:t}},t.mockDataForTesting=function(e,t){return function(o){t.hasOwnProperty("error")&&o((0,Ie.setError)(e,t.error)),t.hasOwnProperty("aggregations")&&o(n(e,t.aggregations)),t.hasOwnProperty("hits")&&o(r(e,t,t.time||void 0))}}})));r(Te);Te.updateAggs,Te.updateCompositeAggs,Te.updateHits,Te.saveQueryToHits,Te.mockDataForTesting;var Ie=o((function(e,t){function n(e,t){return{type:C.SET_RAW_DATA,component:e,response:t}}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_PROMOTED_RESULTS,results:e,component:t}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_DEFAULT_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:C.SET_CUSTOM_DATA,data:e,component:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.setRawData=n,t.setLoading=function(e,t){return{type:C.SET_LOADING,component:e,isLoading:t}},t.setError=function(e,t){return{type:C.SET_ERROR,component:e,error:t}},t.setTimestamp=function(e,t){return{type:C.SET_TIMESTAMP,component:e,timestamp:t}},t.setSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:C.SET_SEARCH_ID,searchId:e}},t.setSuggestionsSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:C.SET_SUGGESTIONS_SEARCH_ID,searchId:e}},t.setQuery=function(e,t){return{type:C.SET_QUERY,component:e,query:t}},t.setCustomQuery=function(e,t){return{type:C.SET_CUSTOM_QUERY,component:e,query:t}},t.setDefaultQuery=function(e,t){return{type:C.SET_DEFAULT_QUERY,component:e,query:t}},t.setCustomHighlightOptions=function(e,t){return{type:C.SET_CUSTOM_HIGHLIGHT_OPTIONS,component:e,data:t}},t.updateQueryOptions=function(e,t){return{type:C.SET_QUERY_OPTIONS,component:e,options:t}},t.logQuery=function(e,t){return{type:C.LOG_QUERY,component:e,query:t}},t.logCombinedQuery=function(e,t){return{type:C.LOG_COMBINED_QUERY,component:e,query:t}},t.setHeaders=function(e){return{type:C.SET_HEADERS,headers:e}},t.setPromotedResults=r,t.setPopularSuggestions=o,t.setDefaultPopularSuggestions=i,t.setCustomData=a,t.setAppliedSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:C.SET_APPLIED_SETTINGS,data:e,component:t}},t.setQueryListener=function(e,t,n){return{type:C.SET_QUERY_LISTENER,component:e,onQueryChange:t,onError:n}},t.setGoogleMapScriptLoading=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_LOADING,loading:e}},t.setGoogleMapScriptLoaded=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_LOADED,loaded:e}},t.setGoogleMapScriptError=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_ERROR,error:e}},t.resetStoreForComponent=function(e){return function(t){t(n(e,null)),t(a(null,e)),t(r([],e)),t(o([],e)),t(i([],e)),t((0,Te.updateAggs)(e,null)),t((0,Te.updateCompositeAggs)(e,{})),t((0,Te.updateHits)(e,{hits:[],total:0},0))}},t.setLastUsedAppbaseQuery=function(e){return{type:C.SET_APPBASE_QUERY,query:e}}}));r(Ie);Ie.setRawData,Ie.setLoading,Ie.setError,Ie.setTimestamp,Ie.setSearchId,Ie.setSuggestionsSearchId,Ie.setQuery,Ie.setCustomQuery,Ie.setDefaultQuery,Ie.setCustomHighlightOptions,Ie.updateQueryOptions,Ie.logQuery,Ie.logCombinedQuery,Ie.setHeaders,Ie.setPromotedResults,Ie.setPopularSuggestions,Ie.setDefaultPopularSuggestions,Ie.setCustomData,Ie.setAppliedSettings,Ie.setQueryListener,Ie.setGoogleMapScriptLoading,Ie.setGoogleMapScriptLoaded,Ie.setGoogleMapScriptError,Ie.resetStoreForComponent,Ie.setLastUsedAppbaseQuery;var Ae=o((function(e){
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=e||self).ReactiveSearchVue={},e.Vue)}(this,(function(exports,vue){"use strict";var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _toPrimitive(e,t){if("object"!==_typeof(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"===_typeof(t)?t:String(t)}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function formatProdErrorMessage(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var $$observable="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},ActionTypes={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function isPlainObject(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function createStore(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(formatProdErrorMessage(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(formatProdErrorMessage(1));return n(createStore)(e,t)}if("function"!=typeof e)throw new Error(formatProdErrorMessage(2));var o=e,a=t,s=[],i=s,u=!1;function l(){i===s&&(i=s.slice())}function c(){if(u)throw new Error(formatProdErrorMessage(3));return a}function p(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage(4));if(u)throw new Error(formatProdErrorMessage(5));var t=!0;return l(),i.push(e),function(){if(t){if(u)throw new Error(formatProdErrorMessage(6));t=!1,l();var n=i.indexOf(e);i.splice(n,1),s=null}}}function d(e){if(!isPlainObject(e))throw new Error(formatProdErrorMessage(7));if(void 0===e.type)throw new Error(formatProdErrorMessage(8));if(u)throw new Error(formatProdErrorMessage(9));try{u=!0,a=o(a,e)}finally{u=!1}for(var t=s=i,n=0;n<t.length;n++){(0,t[n])()}return e}function h(e){if("function"!=typeof e)throw new Error(formatProdErrorMessage(10));o=e,d({type:ActionTypes.REPLACE})}function f(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(formatProdErrorMessage(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[$$observable]=function(){return this},e}return d({type:ActionTypes.INIT}),(r={dispatch:d,subscribe:p,getState:c,replaceReducer:h})[$$observable]=f,r}var legacy_createStore=createStore;function assertReducerShape(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:ActionTypes.INIT}))throw new Error(formatProdErrorMessage(12));if(void 0===n(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()}))throw new Error(formatProdErrorMessage(13))}))}function combineReducers(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var a,s=Object.keys(n);try{assertReducerShape(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,o={},i=0;i<s.length;i++){var u=s[i],l=n[u],c=e[u],p=l(c,t);if(void 0===p){t&&t.type;throw new Error(formatProdErrorMessage(14))}o[u]=p,r=r||p!==c}return(r=r||s.length!==Object.keys(e).length)?o:e}}function bindActionCreator(e,t){return function(){return t(e.apply(this,arguments))}}function bindActionCreators(e,t){if("function"==typeof e)return bindActionCreator(e,t);if("object"!=typeof e||null===e)throw new Error(formatProdErrorMessage(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=bindActionCreator(o,t))}return n}function compose(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function applyMiddleware(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(formatProdErrorMessage(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return r=compose.apply(void 0,a)(n.dispatch),_objectSpread2(_objectSpread2({},n),{},{dispatch:r})}}}var redux=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:ActionTypes,applyMiddleware:applyMiddleware,bindActionCreators:bindActionCreators,combineReducers:combineReducers,compose:compose,createStore:createStore,legacy_createStore:legacy_createStore});function createThunkMiddleware(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var thunk=createThunkMiddleware();thunk.withExtraArgument=createThunkMiddleware;var constants=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.ADD_COMPONENT="ADD_COMPONENT",t.REMOVE_COMPONENT="REMOVE_COMPONENT",t.WATCH_COMPONENT="WATCH_COMPONENT",t.SET_QUERY="SET_QUERY",t.SET_APPBASE_QUERY="SET_APPBASE_QUERY",t.SET_QUERY_OPTIONS="SET_QUERY_OPTIONS",t.EXECUTE_QUERY="EXECUTE_QUERY",t.UPDATE_HITS="UPDATE_HITS",t.UPDATE_AGGS="UPDATE_AGGS",t.UPDATE_COMPOSITE_AGGS="UPDATE_COMPOSITE_AGGS",t.ADD_CONFIG="ADD_CONFIG",t.UPDATE_CONFIG="UPDATE_CONFIG",t.ADD_APPBASE_REF="ADD_APPBASE_REF",t.ADD_ANALYTICS_REF="ADD_ANALYTICS_REF",t.LOG_QUERY="LOG_QUERY",t.LOG_COMBINED_QUERY="LOG_COMBINED_QUERY",t.SET_INTERNAL_VALUE="SET_INTERNAL_VALUE",t.PATCH_VALUE="PATCH_VALUE",t.CLEAR_VALUES="CLEAR_VALUES",t.SET_LOADING="SET_LOADING",t.SET_ERROR="SET_ERROR",t.SET_TIMESTAMP="SET_TIMESTAMP",t.SET_HEADERS="SET_HEADERS",t.SET_MAP_DATA="SET_MAP_DATA",t.SET_MAP_RESULTS="SET_MAP_RESULTS",t.SET_QUERY_LISTENER="SET_QUERY_LISTENER",t.STORE_KEY="__REACTIVESEARCH__",t.SET_SEARCH_ID="SET_SEARCH_ID",t.SET_PROMOTED_RESULTS="SET_PROMOTED_RESULTS",t.SET_DEFAULT_QUERY="SET_DEFAULT_QUERY",t.SET_CUSTOM_QUERY="SET_CUSTOM_QUERY",t.SET_CUSTOM_HIGHLIGHT_OPTIONS="SET_CUSTOM_HIGHLIGHT_OPTIONS",t.SET_CUSTOM_DATA="SET_CUSTOM_DATA",t.SET_APPLIED_SETTINGS="SET_APPLIED_SETTINGS",t.SET_PROPS="SET_PROPS",t.UPDATE_PROPS="UPDATE_PROPS",t.REMOVE_PROPS="REMOVE_PROPS",t.SET_SUGGESTIONS_SEARCH_VALUE="SET_SUGGESTIONS_SEARCH_VALUE",t.CLEAR_SUGGESTIONS_SEARCH_VALUE="CLEAR_SUGGESTIONS_SEARCH_VALUE",t.SET_SUGGESTIONS_SEARCH_ID="SET_SUGGESTIONS_SEARCH_ID",t.UPDATE_ANALYTICS_CONFIG="UPDATE_ANALYTICS_CONFIG",t.SET_RAW_DATA="SET_RAW_DATA",t.SET_POPULAR_SUGGESTIONS="SET_POPULAR_SUGGESTIONS",t.SET_DEFAULT_POPULAR_SUGGESTIONS="SET_DEFAULT_POPULAR_SUGGESTIONS",t.SET_QUERY_TO_HITS="SET_QUERY_TO_HITS",t.RECENT_SEARCHES_SUCCESS="RECENT_SEARCHES_SUCCESS",t.RECENT_SEARCHES_ERROR="RECENT_SEARCHES_ERROR",t.SET_VALUE="SET_VALUE",t.SET_VALUES="SET_VALUES",t.RESET_TO_DEFAULT="RESET_TO_DEFAULT",t.SET_GOOGLE_MAP_SCRIPT_LOADING="SET_GOOGLE_MAP_SCRIPT_LOADING",t.SET_GOOGLE_MAP_SCRIPT_LOADED="SET_GOOGLE_MAP_SCRIPT_LOADED",t.SET_GOOGLE_MAP_SCRIPT_ERROR="SET_GOOGLE_MAP_SCRIPT_ERROR",t.SET_REGISTERED_COMPONENT_TIMESTAMP="SET_REGISTERED_COMPONENT_TIMESTAMP",t.REMOVE_REGISTERED_COMPONENT_TIMESTAMP="REMOVE_REGISTERED_COMPONENT_TIMESTAMP"}));unwrapExports(constants);var constants_1=constants.ADD_COMPONENT,constants_2=constants.REMOVE_COMPONENT,constants_3=constants.WATCH_COMPONENT,constants_4=constants.SET_QUERY,constants_5=constants.SET_APPBASE_QUERY,constants_6=constants.SET_QUERY_OPTIONS,constants_7=constants.EXECUTE_QUERY,constants_8=constants.UPDATE_HITS,constants_9=constants.UPDATE_AGGS,constants_10=constants.UPDATE_COMPOSITE_AGGS,constants_11=constants.ADD_CONFIG,constants_12=constants.UPDATE_CONFIG,constants_13=constants.ADD_APPBASE_REF,constants_14=constants.ADD_ANALYTICS_REF,constants_15=constants.LOG_QUERY,constants_16=constants.LOG_COMBINED_QUERY,constants_17=constants.SET_INTERNAL_VALUE,constants_18=constants.PATCH_VALUE,constants_19=constants.CLEAR_VALUES,constants_20=constants.SET_LOADING,constants_21=constants.SET_ERROR,constants_22=constants.SET_TIMESTAMP,constants_23=constants.SET_HEADERS,constants_24=constants.SET_MAP_DATA,constants_25=constants.SET_MAP_RESULTS,constants_26=constants.SET_QUERY_LISTENER,constants_27=constants.STORE_KEY,constants_28=constants.SET_SEARCH_ID,constants_29=constants.SET_PROMOTED_RESULTS,constants_30=constants.SET_DEFAULT_QUERY,constants_31=constants.SET_CUSTOM_QUERY,constants_32=constants.SET_CUSTOM_HIGHLIGHT_OPTIONS,constants_33=constants.SET_CUSTOM_DATA,constants_34=constants.SET_APPLIED_SETTINGS,constants_35=constants.SET_PROPS,constants_36=constants.UPDATE_PROPS,constants_37=constants.REMOVE_PROPS,constants_38=constants.SET_SUGGESTIONS_SEARCH_VALUE,constants_39=constants.CLEAR_SUGGESTIONS_SEARCH_VALUE,constants_40=constants.SET_SUGGESTIONS_SEARCH_ID,constants_41=constants.UPDATE_ANALYTICS_CONFIG,constants_42=constants.SET_RAW_DATA,constants_43=constants.SET_POPULAR_SUGGESTIONS,constants_44=constants.SET_DEFAULT_POPULAR_SUGGESTIONS,constants_45=constants.SET_QUERY_TO_HITS,constants_46=constants.RECENT_SEARCHES_SUCCESS,constants_47=constants.RECENT_SEARCHES_ERROR,constants_48=constants.SET_VALUE,constants_49=constants.SET_VALUES,constants_50=constants.RESET_TO_DEFAULT,constants_51=constants.SET_GOOGLE_MAP_SCRIPT_LOADING,constants_52=constants.SET_GOOGLE_MAP_SCRIPT_LOADED,constants_53=constants.SET_GOOGLE_MAP_SCRIPT_ERROR,constants_54=constants.SET_REGISTERED_COMPONENT_TIMESTAMP,constants_55=constants.REMOVE_REGISTERED_COMPONENT_TIMESTAMP,componentsReducer_1=createCommonjsModule((function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(t.type===constants.ADD_COMPONENT)return[].concat(n(e),[t.component]);if(t.type===constants.REMOVE_COMPONENT)return e.filter((function(e){return e!==t.component}));return e}}));unwrapExports(componentsReducer_1);var watchManReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=Object.values(e),n=[];return t.forEach((function(e){"string"==typeof e?n.push(e):Array.isArray(e)?e.forEach((function(e){"string"==typeof e?n.push(e):n.push.apply(n,r(o(e)))})):"object"==typeof e&&null!==e&&n.push.apply(n,r(o(e)))})),n.filter((function(e,t,n){return n.indexOf(e)===t}))}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.WATCH_COMPONENT){var a=o(t.react),s=n({},e);return Object.keys(s).forEach((function(e){s[e]=s[e].filter((function(e){return e!==t.component}))})),a.forEach((function(e){Array.isArray(s[e])?s[e]=[].concat(r(s[e]),[t.component]):s[e]=[t.component]})),s}return e}}));unwrapExports(watchManReducer_1);var dependencyTreeReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.WATCH_COMPONENT)return n({},e,o({},t.component,t.react));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}})),dependencyTreeReducer=unwrapExports(dependencyTreeReducer_1),queryReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}})),queryReducer=unwrapExports(queryReducer_1),appbaseQueryReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_APPBASE_QUERY)return n({},e,t.query);return e}}));unwrapExports(appbaseQueryReducer_1);var queryOptionsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_QUERY_OPTIONS)return n({},e,o({},t.component,t.options));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}})),queryOptionsReducer=unwrapExports(queryOptionsReducer_1),constants$1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",searchBox:"SEARCHBOX",singleList:"SINGLELIST",multiList:"MULTILIST",singleDataList:"SINGLEDATALIST",tabDataList:"TABDATALIST",singleDropdownList:"SINGLEDROPDOWNLIST",multiDataList:"MULTIDATALIST",multiDropdownList:"MULTIDROPDOWNLIST",singleDropdownRange:"SINGLEDROPDOWNRANGE",treeList:"TREELIST",numberBox:"NUMBERBOX",tagCloud:"TAGCLOUD",toggleButton:"TOGGLEBUTTON",reactiveComponent:"REACTIVECOMPONENT",datePicker:"DATEPICKER",dateRange:"DATERANGE",dynamicRangeSlider:"DYNAMICRANGESLIDER",multiDropdownRange:"MULTIDROPDOWNRANGE",singleRange:"SINGLERANGE",multiRange:"MULTIRANGE",rangeSlider:"RANGESLIDER",ratingsFilter:"RATINGSFILTER",rangeInput:"RANGEINPUT",geoDistanceDropdown:"GEO_DISTANCE_DROPDOWN",geoDistanceSlider:"GEO_DISTANCE_SLIDER",reactiveMap:"REACTIVE_MAP",reactiveChart:"REACTIVE_CHART"},t.queryTypes={search:"search",term:"term",range:"range",geo:"geo",suggestion:"suggestion"},t.validProps=["type","componentType","aggregationField","aggregationSize","distinctField","distinctFieldConfig","index","aggregations","dataField","includeFields","excludeFields","size","from","sortBy","sortOptions","pagination","autoFocus","autosuggest","debounce","defaultValue","defaultSuggestions","fieldWeights","filterLabel","fuzziness","highlight","highlightConfig","highlightField","nestedField","placeholder","queryFormat","searchOperators","enableSynonyms","enableQuerySuggestions","queryString","categoryField","strictSelection","selectAllLabel","showCheckbox","showFilter","showSearch","showCount","showLoadMore","loadMoreLabel","showMissing","missingLabel","data","showRadio","multiSelect","includeNullValues","interval","showHistogram","snap","stepValue","range","showSlider","parseDate","calendarInterval","unit","enablePopularSuggestions","enableRecentSuggestions","popularSuggestionsConfig","recentSuggestionsConfig","indexSuggestionsConfig","featuredSuggestionsConfig","enablePredictiveSuggestions","applyStopwords","customStopwords","enableIndexSuggestions","enableFeaturedSuggestions","searchboxId","endpoint","enableEndpointSuggestions"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"},t.SEARCH_COMPONENTS_MODES={SELECT:"select",TAG:"tag"},t.TREELIST_VALUES_PATH_SEPARATOR="◐◑◒◓"}));unwrapExports(constants$1);var constants_1$1=constants$1.componentTypes,constants_2$1=constants$1.queryTypes,constants_3$1=constants$1.validProps,constants_4$1=constants$1.CLEAR_ALL,constants_5$1=constants$1.SEARCH_COMPONENTS_MODES,constants_6$1=constants$1.TREELIST_VALUES_PATH_SEPARATOR,analytics=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomEvents=t.parseRangeObject=t.parseFilterValue=t.rangeObjectComponents=t.rangeComponents=t.filterComponents=t.defaultAnalyticsConfig=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var s,i=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&i.return&&i.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=[constants$1.componentTypes.numberBox,constants$1.componentTypes.tagCloud,constants$1.componentTypes.toggleButton,constants$1.componentTypes.datePicker,constants$1.componentTypes.dateRange,constants$1.componentTypes.multiDataList,constants$1.componentTypes.multiDropdownList,constants$1.componentTypes.multiList,constants$1.componentTypes.singleDataList,constants$1.componentTypes.singleDropdownList,constants$1.componentTypes.singleList,constants$1.componentTypes.dynamicRangeSlider,constants$1.componentTypes.multiDropdownRange,constants$1.componentTypes.multiRange,constants$1.componentTypes.rangeSlider,constants$1.componentTypes.ratingsFilter,constants$1.componentTypes.singleDropdownRange,constants$1.componentTypes.singleRange,constants$1.componentTypes.treeList],o=[constants$1.componentTypes.dateRange,constants$1.componentTypes.dynamicRangeSlider,constants$1.componentTypes.rangeSlider,constants$1.componentTypes.rangeInput,constants$1.componentTypes.ratingsFilter],a=[constants$1.componentTypes.singleRange,constants$1.componentTypes.singleDropdownRange,constants$1.componentTypes.multiRange,constants$1.componentTypes.multiDropdownRange];function s(e,t){return e+"="+t.start+"~"+t.end}function i(e,t){var n=t.label,r=t.value,i=t.componentType,u=n||e;return o.includes(i)?u+"="+r[0]+"~"+r[1]:a.includes(i)?Array.isArray(r)?r.map((function(e){return s(u,e)})).join():s(u,r):Array.isArray(r)?"object"==typeof r[0]&&null!==r[0]?r.map((function(e){return u+"="+e.value})).join():r.map((function(e){return u+"="+e})).join():u+"="+r}t.defaultAnalyticsConfig={emptyQuery:!0,suggestionAnalytics:!0,userId:null,customEvents:null,enableQueryRules:!0};t.filterComponents=r,t.rangeComponents=o,t.rangeObjectComponents=a,t.parseFilterValue=i,t.parseRangeObject=s,t.parseCustomEvents=function(e){var t="";return Object.keys(e).forEach((function(n,r){t+=n+"="+e[n],r<Object.keys(e).length-1&&(t+=",")})),t},t.default=function(e){return e&&Object.keys(e).length?Object.entries(e).filter((function(e){var t=n(e,2)[1];return r.includes(t.componentType)&&(t.value&&t.value.length||t.value&&t.value.start||t.value&&t.value.end)})).map((function(e){var t=n(e,2);return i(t[0],t[1])})).join():null}}));unwrapExports(analytics);var analytics_1=analytics.parseCustomEvents,analytics_2=analytics.parseRangeObject,analytics_3=analytics.parseFilterValue,analytics_4=analytics.rangeObjectComponents,analytics_5=analytics.rangeComponents,analytics_6=analytics.filterComponents,analytics_7=analytics.defaultAnalyticsConfig,configReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{analyticsConfig:analytics.defaultAnalyticsConfig,lock:!1},t=arguments[1];if(t.type===constants.ADD_CONFIG)return n({},e,{analyticsConfig:n({},analytics.defaultAnalyticsConfig,t.analyticsConfig)});if(t.type===constants.UPDATE_ANALYTICS_CONFIG)return n({},e,{analyticsConfig:n({},e.analyticsConfig,t.analyticsConfig)});if(t.type===constants.UPDATE_CONFIG)return n({},e,t.config);return e}}));unwrapExports(configReducer_1);var appbaseRefReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.ADD_APPBASE_REF)return t.appbaseRef;return e}}));unwrapExports(appbaseRefReducer_1);var hitsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.UPDATE_HITS)return t.append?n({},e,o({},t.component,{hits:[].concat(a(e[t.component].hits),a(t.hits)),total:t.total,time:t.time,hidden:t.hidden||0})):n({},e,o({},t.component,{hits:t.hits,total:t.total,time:t.time,hidden:t.hidden||0}));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));unwrapExports(hitsReducer_1);var logsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.LOG_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(logsReducer_1);var combinedLogsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.LOG_COMBINED_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(combinedLogsReducer_1);var valueReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case constants.SET_VALUE:var a={};return Object.keys(t.componentsToReset||{}).forEach((function(r){a[r]=n({},e[r],{value:t.componentsToReset[r]})})),n({},e,a,o({},t.component,{value:t.value,label:t.label||t.component,showFilter:t.showFilter,URLParams:t.URLParams,componentType:t.componentType,category:t.category,meta:t.meta,reference:t.reference}));case constants.SET_VALUES:var s=t.componentsValues?Object.keys(t.componentsValues):[];if(s.length){var i={};return s.forEach((function(o){var a=t.componentsValues[o],s=a.value,u=r(a,["value"]);i[o]=n({},e[o],{value:s},u)})),n({},e,i)}return e;case constants.PATCH_VALUE:return n({},e,o({},t.component,n({},e[t.component],t.payload)));case constants.CLEAR_VALUES:var u={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){u[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(u[n]=e[n])})),u;case constants.REMOVE_COMPONENT:e[t.component];var l=r(e,[t.component]);return l;case constants.RESET_TO_DEFAULT:return n({},e,t.defaultValues);default:return e}}})),valueReducer=unwrapExports(valueReducer_1),internalValueReducer=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case constants.SET_INTERNAL_VALUE:return n({},e,o({},t.component,{value:t.value,componentType:t.componentType,category:t.category,meta:t.meta}));case constants.CLEAR_VALUES:var a={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){a[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(a[n]=e[n])})),a;case constants.RESET_TO_DEFAULT:return n({},e,t.defaultValues);case constants.REMOVE_COMPONENT:e[t.component];var s=r(e,[t.component]);return s;default:return e}}}));unwrapExports(internalValueReducer);var loadingReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_LOADING){var a,s=e[t.component+"_active"]||0;return t.isLoading?s+=1:s&&(s-=1),n({},e,(o(a={},t.component,t.isLoading),o(a,t.component+"_active",s),a),t.isLoading?o({},t.component+"_timestamp",(new Date).getTime()):null)}if(t.type===constants.REMOVE_COMPONENT){e[t.component],e[t.component+"_active"];var i=r(e,[t.component,t.component+"_active"]);return i}return e}}));unwrapExports(loadingReducer_1);var errorReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_ERROR)return n({},e,o({},t.component,t.error));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(errorReducer_1);var timestampReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(timestampReducer_1);var headersReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_HEADERS)return t.headers;return e}}));unwrapExports(headersReducer_1);var mapDataReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_MAP_DATA)return n({},e,o({},t.componentId,{query:t.query,persistMapQuery:t.persistMapQuery}));if(t.type===constants.SET_MAP_RESULTS)return n({},e,o({},t.componentId,n({},e[t.componentId],t.payload)));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(mapDataReducer_1);var queryListenerReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_QUERY_LISTENER)return n({},e,o({},t.component,{onQueryChange:t.onQueryChange,onError:t.onError}));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(queryListenerReducer_1);var analyticsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case constants.SET_VALUE:return o.includes(t.componentType)?{searchValue:t.value,searchId:null}:e;case constants.SET_SEARCH_ID:return n({},e,{searchId:t.searchId});case constants.SET_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:t.value,suggestionsSearchId:null});case constants.SET_SUGGESTIONS_SEARCH_ID:return n({},e,{suggestionsSearchId:t.searchId});case constants.CLEAR_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:null,suggestionsSearchId:null});default:return e}};var r={searchValue:null,searchId:null,suggestionsSearchId:null,suggestionsSearchValue:null},o=[constants$1.componentTypes.dataSearch,constants$1.componentTypes.categorySearch]}));unwrapExports(analyticsReducer_1);var promotedResultsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_PROMOTED_RESULTS)return n({},e,o({},t.component,t.results.map((function(e){return n({},e,{_promoted:!0})}))));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(promotedResultsReducer_1);var customDataReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_CUSTOM_DATA)return n({},e,o({},t.component,t.data));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(customDataReducer_1);var defaultQueryReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_DEFAULT_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(defaultQueryReducer_1);var customQueryReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_CUSTOM_QUERY)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(customQueryReducer_1);var propsReducer=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case constants.SET_PROPS:return n({},e,o({},t.component,t.options));case constants.UPDATE_PROPS:return n({},e,o({},t.component,n({},e[t.component],t.options)));case constants.REMOVE_PROPS:case constants.REMOVE_COMPONENT:e[t.component];var a=r(e,[t.component]);return a;default:return e}}}));unwrapExports(propsReducer);var aggsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.UPDATE_AGGS){if(t.append){var s=Object.keys(e[t.component])[0],i=t.aggregations[s],u=i.buckets,l=a(i,["buckets"]);return n({},e,r({},t.component,r({},s,n({buckets:[].concat(o(e[t.component][s].buckets),o(u))},l))))}return n({},e,r({},t.component,t.aggregations))}if(t.type===constants.REMOVE_COMPONENT){e[t.component];var c=a(e,[t.component]);return c}return e}}));unwrapExports(aggsReducer_1);var compositeAggsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.UPDATE_COMPOSITE_AGGS){var s=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],i=Object.keys(t.aggregations)[0];if(!s)return e;var u=[];s.buckets&&Array.isArray(s.buckets)&&(u=s.buckets);var l=u.map((function(e){var t=e.doc_count,r=e.key,o=e[i],s={},u={};if(o&&o.hits){var l=o.hits.hits[0];u=l._source,s=a(l,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[i],top_hits:o},s,u)}));return n({},e,r({},t.component,t.append?[].concat(o(e[t.component]),o(l)):l))}return e}})),compositeAggsReducer=unwrapExports(compositeAggsReducer_1),appliedSettingsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_APPLIED_SETTINGS)return n({},e,r({},t.component,t.data));return e}}));unwrapExports(appliedSettingsReducer_1);var customHighlightReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_CUSTOM_HIGHLIGHT_OPTIONS)return n({},e,o({},t.component,t.data));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(customHighlightReducer_1);var rawDataReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_RAW_DATA)return n({},e,o({},t.component,t.response));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(rawDataReducer_1);var querySuggestionsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));unwrapExports(querySuggestionsReducer_1);var defaultPopularSuggestions_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_DEFAULT_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));unwrapExports(defaultPopularSuggestions_1);var queryToHitsReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_QUERY_TO_HITS)return n({},e,o({},t.component,t.query));if(t.type===constants.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(queryToHitsReducer_1);var recentSearches=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.RECENT_SEARCHES_SUCCESS)return{error:null,data:t.data};if(t.type===constants.RECENT_SEARCHES_ERROR)return{error:t.error};return e}}));unwrapExports(recentSearches);var googleMapScriptReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1],o=t.type,a=t.loading,s=t.loaded,i=t.error;if(o===constants.SET_GOOGLE_MAP_SCRIPT_LOADING)return n({},r,{loading:a});if(o===constants.SET_GOOGLE_MAP_SCRIPT_LOADED)return n({},r,{loaded:s});if(o===constants.SET_GOOGLE_MAP_SCRIPT_ERROR)return n({},r,{error:i});return e};var r={loading:!1,loaded:!1,error:null}}));unwrapExports(googleMapScriptReducer_1);var analyticsRefReducer_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.ADD_ANALYTICS_REF)return t.analyticsRef;return e}}));unwrapExports(analyticsRefReducer_1);var registeredComponentReducer=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===constants.SET_REGISTERED_COMPONENT_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===constants.REMOVE_REGISTERED_COMPONENT_TIMESTAMP){e[t.component];var a=r(e,[t.component]);return a}return e}}));unwrapExports(registeredComponentReducer);var reducers=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=N(componentsReducer_1),r=N(watchManReducer_1),o=N(dependencyTreeReducer_1),a=N(queryReducer_1),s=N(appbaseQueryReducer_1),i=N(queryOptionsReducer_1),u=N(configReducer_1),l=N(appbaseRefReducer_1),c=N(hitsReducer_1),p=N(logsReducer_1),d=N(combinedLogsReducer_1),h=N(valueReducer_1),f=N(internalValueReducer),m=N(loadingReducer_1),g=N(errorReducer_1),y=N(timestampReducer_1),v=N(headersReducer_1),b=N(mapDataReducer_1),_=N(queryListenerReducer_1),$=N(analyticsReducer_1),C=N(promotedResultsReducer_1),O=N(customDataReducer_1),S=N(defaultQueryReducer_1),w=N(customQueryReducer_1),T=N(propsReducer),P=N(aggsReducer_1),E=N(compositeAggsReducer_1),k=N(appliedSettingsReducer_1),R=N(customHighlightReducer_1),x=N(rawDataReducer_1),Q=N(querySuggestionsReducer_1),I=N(defaultPopularSuggestions_1),A=N(queryToHitsReducer_1),L=N(recentSearches),V=N(googleMapScriptReducer_1),j=N(analyticsRefReducer_1),M=N(registeredComponentReducer);function N(e){return e&&e.__esModule?e:{default:e}}t.default=(0,redux.combineReducers)({components:n.default,customQueries:w.default,defaultQueries:S.default,customHighlightOptions:R.default,settings:k.default,watchMan:r.default,queryList:a.default,queryOptions:i.default,dependencyTree:o.default,appbaseRef:l.default,analyticsRef:j.default,config:u.default,hits:c.default,promotedResults:C.default,customData:O.default,aggregations:P.default,compositeAggregations:E.default,queryLog:p.default,combinedLog:d.default,selectedValues:h.default,internalValues:f.default,isLoading:m.default,error:g.default,timestamp:y.default,headers:v.default,mapData:b.default,queryListener:_.default,analytics:$.default,props:T.default,rawData:x.default,querySuggestions:Q.default,defaultPopularSuggestions:I.default,queryToHits:A.default,recentSearches:L.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},googleMapScriptStatus:V.default,lastUsedAppbaseQuery:s.default,registeredComponentsTimestamps:M.default})}));unwrapExports(reducers);var dateFormats_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={date:"yyyy-MM-dd",basic_date:"yyyyMMdd",basic_date_time:"yyyyMMdd'T'HHmmss.fffzzz",basic_date_time_no_millis:"yyyyMMdd'T'HHmmsszzz",date_time_no_millis:"yyyy-MM-dd'T'HH:mm:sszzz",basic_time:"HHmmss.fffzzz",basic_time_no_millis:"HHmmsszzz",epoch_millis:"epoch_millis",epoch_second:"epoch_second"}}));unwrapExports(dateFormats_1);var diacritics_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={"«":'"',"²":"2","³":"3","¹":"1","»":'"',"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"q","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƀ":"b","Ɓ":"B","Ƃ":"B","ƃ":"b","Ɔ":"O","Ƈ":"C","ƈ":"c","Ɖ":"D","Ɗ":"D","Ƌ":"D","ƌ":"d","Ǝ":"E","Ə":"A","Ɛ":"E","Ƒ":"F","ƒ":"f","Ɠ":"G","ƕ":"hv","Ɩ":"I","Ɨ":"I","Ƙ":"K","ƙ":"k","ƚ":"l","Ɯ":"M","Ɲ":"N","ƞ":"n","Ɵ":"O","Ơ":"O","ơ":"o","Ƥ":"P","ƥ":"p","ƫ":"t","Ƭ":"T","ƭ":"t","Ʈ":"T","Ư":"U","ư":"u","Ʋ":"V","Ƴ":"Y","ƴ":"y","Ƶ":"Z","ƶ":"z","ƿ":"w","DŽ":"DZ","Dž":"Dz","dž":"dz","LJ":"LJ","Lj":"Lj","lj":"lj","NJ":"NJ","Nj":"Nj","nj":"nj","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","ǝ":"e","Ǟ":"A","ǟ":"a","Ǡ":"A","ǡ":"a","Ǣ":"AE","ǣ":"ae","Ǥ":"G","ǥ":"G","Ǧ":"G","ǧ":"G","Ǩ":"K","ǩ":"k","Ǫ":"O","ǫ":"o","Ǭ":"O","ǭ":"o","ǰ":"j","DZ":"DZ","Dz":"Dz","dz":"dz","Ǵ":"G","ǵ":"g","Ƕ":"HV","Ƿ":"W","Ǹ":"N","ǹ":"n","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Ȁ":"A","ȁ":"a","Ȃ":"A","ȃ":"a","Ȅ":"E","ȅ":"e","Ȇ":"E","ȇ":"e","Ȉ":"I","ȉ":"i","Ȋ":"I","ȋ":"i","Ȍ":"O","ȍ":"o","Ȏ":"O","ȏ":"o","Ȑ":"R","ȑ":"r","Ȓ":"R","ȓ":"r","Ȕ":"U","ȕ":"u","Ȗ":"U","ȗ":"u","Ș":"S","ș":"s","Ț":"T","ț":"t","Ȝ":"Z","ȝ":"z","Ȟ":"H","ȟ":"h","Ƞ":"N","ȡ":"d","Ȣ":"OU","ȣ":"ou","Ȥ":"Z","ȥ":"z","Ȧ":"A","ȧ":"a","Ȩ":"E","ȩ":"e","Ȫ":"O","ȫ":"o","Ȭ":"O","ȭ":"o","Ȯ":"O","ȯ":"o","Ȱ":"O","ȱ":"o","Ȳ":"Y","ȳ":"y","ȴ":"l","ȵ":"n","ȶ":"t","ȷ":"j","ȸ":"db","ȹ":"qp","Ⱥ":"A","Ȼ":"C","ȼ":"c","Ƚ":"L","Ⱦ":"T","ȿ":"s","ɀ":"z","Ƀ":"B","Ʉ":"U","Ʌ":"V","Ɇ":"E","ɇ":"e","Ɉ":"J","ɉ":"j","Ɋ":"Q","ɋ":"q","Ɍ":"R","ɍ":"r","Ɏ":"Y","ɏ":"y","ɐ":"a","ɓ":"b","ɔ":"o","ɕ":"c","ɖ":"d","ɗ":"d","ɘ":"e","ə":"a","ɚ":"a","ɛ":"e","ɜ":"e","ɝ":"e","ɞ":"e","ɟ":"j","ɠ":"g","ɡ":"g","ɢ":"G","ɥ":"h","ɦ":"h","ɨ":"i","ɪ":"I","ɫ":"l","ɬ":"l","ɭ":"l","ɯ":"m","ɰ":"m","ɱ":"m","ɲ":"n","ɳ":"n","ɴ":"N","ɵ":"o","ɶ":"OE","ɼ":"r","ɽ":"r","ɾ":"r","ɿ":"r","ʀ":"R","ʁ":"R","ʂ":"s","ʄ":"j","ʇ":"t","ʈ":"t","ʉ":"u","ʋ":"v","ʌ":"v","ʍ":"w","ʎ":"y","ʏ":"Y","ʐ":"z","ʑ":"z","ʗ":"C","ʙ":"B","ʚ":"e","ʛ":"G","ʜ":"H","ʝ":"j","ʞ":"k","ʟ":"L","ʠ":"q","ʣ":"dz","ʥ":"dz","ʦ":"ts","ʨ":"tc","ʪ":"ls","ʫ":"lz","ʮ":"h","ʯ":"h","ᴀ":"A","ᴁ":"AE","ᴂ":"ae","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴆ":"D","ᴇ":"E","ᴈ":"e","ᴉ":"i","ᴊ":"J","ᴋ":"K","ᴌ":"L","ᴍ":"M","ᴎ":"N","ᴏ":"O","ᴐ":"O","ᴔ":"oe","ᴕ":"OU","ᴖ":"o","ᴗ":"o","ᴘ":"P","ᴙ":"R","ᴚ":"R","ᴛ":"T","ᴜ":"U","ᴠ":"V","ᴡ":"W","ᴢ":"Z","ᵢ":"i","ᵣ":"r","ᵤ":"u","ᵥ":"v","ᵫ":"ue","ᵬ":"b","ᵭ":"d","ᵮ":"f","ᵯ":"m","ᵰ":"n","ᵱ":"p","ᵲ":"r","ᵳ":"r","ᵴ":"s","ᵵ":"t","ᵶ":"z","ᵷ":"g","ᵹ":"g","ᵺ":"th","ᵻ":"I","ᵼ":"i","ᵽ":"p","ᵾ":"U","ᶀ":"b","ᶁ":"d","ᶂ":"f","ᶃ":"g","ᶄ":"k","ᶅ":"l","ᶆ":"m","ᶇ":"n","ᶈ":"p","ᶉ":"r","ᶊ":"s","ᶌ":"v","ᶍ":"x","ᶎ":"z","ᶏ":"a","ᶑ":"d","ᶒ":"e","ᶓ":"e","ᶔ":"e","ᶕ":"a","ᶖ":"i","ᶗ":"o","ᶙ":"u","Ḁ":"A","ḁ":"a","Ḃ":"B","ḃ":"b","Ḅ":"B","ḅ":"b","Ḇ":"B","ḇ":"b","Ḉ":"C","ḉ":"c","Ḋ":"D","ḋ":"d","Ḍ":"D","ḍ":"d","Ḏ":"D","ḏ":"d","Ḑ":"D","ḑ":"d","Ḓ":"D","ḓ":"d","Ḕ":"E","ḕ":"e","Ḗ":"E","ḗ":"e","Ḙ":"E","ḙ":"e","Ḛ":"E","ḛ":"e","Ḝ":"E","ḝ":"e","Ḟ":"F","ḟ":"f","Ḡ":"G","ḡ":"g","Ḣ":"H","ḣ":"h","Ḥ":"H","ḥ":"h","Ḧ":"H","ḧ":"h","Ḩ":"H","ḩ":"h","Ḫ":"H","ḫ":"h","Ḭ":"I","ḭ":"i","Ḯ":"I","ḯ":"i","Ḱ":"K","ḱ":"k","Ḳ":"K","ḳ":"k","Ḵ":"K","ḵ":"k","Ḷ":"L","ḷ":"l","Ḹ":"L","ḹ":"l","Ḻ":"L","ḻ":"l","Ḽ":"L","ḽ":"l","Ḿ":"M","ḿ":"m","Ṁ":"M","ṁ":"m","Ṃ":"M","ṃ":"m","Ṅ":"N","ṅ":"n","Ṇ":"N","ṇ":"n","Ṉ":"N","ṉ":"n","Ṋ":"N","ṋ":"n","Ṍ":"O","ṍ":"o","Ṏ":"O","ṏ":"o","Ṑ":"O","ṑ":"o","Ṓ":"O","ṓ":"o","Ṕ":"P","ṕ":"p","Ṗ":"P","ṗ":"p","Ṙ":"R","ṙ":"r","Ṛ":"R","ṛ":"r","Ṝ":"R","ṝ":"r","Ṟ":"R","ṟ":"r","Ṡ":"S","ṡ":"s","Ṣ":"S","ṣ":"s","Ṥ":"S","ṥ":"s","Ṧ":"S","ṧ":"s","Ṩ":"S","ṩ":"s","Ṫ":"T","ṫ":"t","Ṭ":"T","ṭ":"t","Ṯ":"T","ṯ":"t","Ṱ":"T","ṱ":"t","Ṳ":"U","ṳ":"u","Ṵ":"U","ṵ":"u","Ṷ":"U","ṷ":"u","Ṹ":"U","ṹ":"u","Ṻ":"U","ṻ":"u","Ṽ":"V","ṽ":"v","Ṿ":"V","ṿ":"v","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","Ẇ":"W","ẇ":"w","Ẉ":"W","ẉ":"w","Ẋ":"X","ẋ":"x","Ẍ":"X","ẍ":"x","Ẏ":"Y","ẏ":"y","Ẑ":"Z","ẑ":"z","Ẓ":"Z","ẓ":"z","Ẕ":"Z","ẕ":"z","ẖ":"h","ẗ":"t","ẘ":"w","ẙ":"y","ẚ":"a","ẛ":"f","ẜ":"s","ẝ":"s","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","Ỻ":"LL","ỻ":"ll","Ỽ":"V","Ỿ":"Y","ỿ":"y","‐":"-","‑":"-","‒":"-","–":"-","—":"-","‘":'"',"’":'"',"‚":'"',"‛":'"',"“":'"',"”":'"',"„":'"',"′":'"',"″":'"',"‵":'"',"‶":'"',"‸":"^","‹":'"',"›":'"',"‼":"!!","⁄":"/","⁅":"[","⁆":"]","⁇":"??","⁈":"?!","⁉":"!?","⁎":"*","⁏":";","⁒":"%","⁓":"~","⁰":"0","ⁱ":"i","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","ⁿ":"n","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","₊":"+","₋":"-","₌":"=","₍":"(","₎":")","ₐ":"a","ₑ":"e","ₒ":"o","ₓ":"x","ₔ":"a","ↄ":"c","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"19","⑳":"20","⑴":"(1)","⑵":"(2)","⑶":"(3)","⑷":"(4)","⑸":"(5)","⑹":"(6)","⑺":"(7)","⑻":"(8)","⑼":"(9)","⑽":"(10)","⑾":"(11)","⑿":"(12)","⒀":"(13)","⒁":"(14)","⒂":"(15)","⒃":"(16)","⒄":"(17)","⒅":"(18)","⒆":"(19)","⒇":"(20)","⒈":"1.","⒉":"2.","⒊":"3.","⒋":"4.","⒌":"5.","⒍":"6.","⒎":"7.","⒏":"8.","⒐":"9.","⒑":"10.","⒒":"11.","⒓":"12.","⒔":"13.","⒕":"14.","⒖":"15.","⒗":"16.","⒘":"17.","⒙":"18.","⒚":"19.","⒛":"20.","⒜":"(a)","⒝":"(b)","⒞":"(c)","⒟":"(d)","⒠":"(e)","⒡":"(f)","⒢":"(g)","⒣":"(h)","⒤":"(i)","⒥":"(j)","⒦":"(k)","⒧":"(l)","⒨":"(m)","⒩":"(n)","⒪":"(o)","⒫":"(p)","⒬":"(q)","⒭":"(r)","⒮":"(s)","⒯":"(t)","⒰":"(u)","⒱":"(v)","⒲":"(w)","⒳":"(x)","⒴":"(y)","⒵":"(z)","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓥ":"v","ⓦ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","⓪":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","❛":'"',"❜":'"',"❝":'"',"❞":'"',"❨":"(","❩":")","❪":"(","❫":")","❬":"<","❭":">","❮":'"',"❯":'"',"❰":"<","❱":">","❲":"[","❳":"]","❴":"{","❵":"}","❶":"1","❷":"2","❸":"3","❹":"4","❺":"5","❻":"6","❼":"7","❽":"8","❾":"9","❿":"10","➀":"1","➁":"2","➂":"3","➃":"4","➄":"5","➅":"6","➆":"7","➇":"8","➈":"9","➉":"10","➊":"1","➋":"2","➌":"3","➍":"4","➎":"5","➏":"6","➐":"7","➑":"8","➒":"9","➓":"10","Ⱡ":"L","ⱡ":"l","Ɫ":"L","Ᵽ":"P","Ɽ":"R","ⱥ":"a","ⱦ":"t","Ⱨ":"H","ⱨ":"h","Ⱪ":"K","ⱪ":"k","Ⱬ":"Z","ⱬ":"z","Ɱ":"M","Ɐ":"a","ⱱ":"v","Ⱳ":"W","ⱳ":"w","ⱴ":"v","Ⱶ":"H","ⱶ":"h","ⱸ":"e","ⱺ":"o","ⱻ":"E","ⱼ":"j","⸨":"((","⸩":"))","Ꜩ":"TZ","ꜩ":"tz","ꜰ":"F","ꜱ":"S","Ꜳ":"AA","ꜳ":"aa","Ꜵ":"AO","ꜵ":"ao","Ꜷ":"AU","ꜷ":"au","Ꜹ":"AV","ꜹ":"av","Ꜻ":"AV","ꜻ":"av","Ꜽ":"AY","ꜽ":"ay","Ꜿ":"c","ꜿ":"c","Ꝁ":"K","ꝁ":"k","Ꝃ":"K","ꝃ":"k","Ꝅ":"K","ꝅ":"k","Ꝇ":"L","ꝇ":"l","Ꝉ":"L","ꝉ":"l","Ꝋ":"O","ꝋ":"o","Ꝍ":"O","ꝍ":"o","Ꝏ":"OO","ꝏ":"oo","Ꝑ":"P","ꝑ":"p","Ꝓ":"P","ꝓ":"p","Ꝕ":"P","ꝕ":"p","Ꝗ":"Q","ꝗ":"q","Ꝙ":"Q","ꝙ":"q","Ꝛ":"R","ꝛ":"r","Ꝟ":"V","ꝟ":"v","Ꝡ":"VY","ꝡ":"vy","Ꝣ":"Z","ꝣ":"z","Ꝧ":"TH","ꝧ":"th","Ꝩ":"V","Ꝺ":"D","ꝺ":"d","Ꝼ":"F","ꝼ":"f","Ᵹ":"G","Ꝿ":"G","ꝿ":"g","Ꞁ":"L","ꞁ":"l","Ꞃ":"R","ꞃ":"r","Ꞅ":"s","ꞅ":"S","Ꞇ":"T","ꟻ":"F","ꟼ":"p","ꟽ":"M","ꟾ":"I","ꟿ":"M","ff":"ff","fi":"fi","fl":"fl","ffi":"ffi","ffl":"ffl","st":"st","!":"!",""":'"',"#":"#","$":"$","%":"%","&":"&","'":'"',"(":"(",")":")","*":"*","+":"+",",":",","-":"-",".":".","/":"/","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9",":":":",";":";","<":"<","=":"=",">":">","?":"?","@":"@","A":"A","B":"B","C":"C","D":"D","E":"E","F":"F","G":"G","H":"H","I":"I","J":"J","K":"K","L":"L","M":"M","N":"N","O":"O","P":"P","Q":"Q","R":"R","S":"S","T":"T","U":"U","V":"V","W":"W","X":"X","Y":"Y","Z":"Z","[":"[","\":"\\","]":"]","^":"^","_":"_","a":"a","b":"b","c":"c","d":"d","e":"e","f":"f","g":"g","h":"h","i":"i","j":"j","k":"k","l":"l","m":"m","n":"n","o":"o","p":"p","q":"q","r":"r","s":"s","t":"t","u":"u","v":"v","w":"w","x":"x","y":"y","z":"z","{":"{","}":"}","~":"~"}}));unwrapExports(diacritics_1);var suggestions=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.replaceDiacritics=i;var r,o=(r=diacritics_1)&&r.__esModule?r:{default:r};function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var s=function(e){switch(typeof e){case"string":return e;case"object":return Array.isArray(e)?function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])}(e):null;default:return e}};function i(e){for(var t=e?String(e):"",n=0;n<t.length;n++){var r=t.charAt(n);o.default[r]&&(t=t.replaceAll(r,o.default[r]))}return t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var l=function(e){var t=e.suggestions,r=e.currentValue,o=e.wordsToShowAfterHighlight,s={};if(r){var i=r.trim();return t.reduce((function(e,t){var r=t.label,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["label"]),c=(new DOMParser).parseFromString(r,"text/html").documentElement.textContent,p="^("+u(i)+")\\w+",d=new RegExp(p,"i"),h=d.exec(c);if(h||(p="^("+u(i)+")",h=(d=new RegExp(p,"i")).exec(c)),h){var f=c.slice(h.index,c.length).slice(i.length).split(" ").slice(0,o+1).join(" "),m=i+'<mark class="highlight">'+f+"</mark>",g=""+i+f;return s[m]?e:(s[m]=1,[].concat(a(e),[n({},l,{label:m,value:g,isPredictiveSuggestion:!0})]))}return e}),[])}return[]};t.default=function(e){var t=e.fields,r=e.suggestions,o=e.currentValue,u=e.suggestionProperties,c=void 0===u?[]:u,p=e.showDistinctSuggestions,d=void 0!==p&&p,h=e.enablePredictiveSuggestions,f=void 0!==h&&h,m=e.wordsToShowAfterHighlight,g=void 0===m?2:m,y=e.enableSynonyms,v=[],b=[],_=!1,$=function(e,t,r){if((_||o.trim().split(" ").some((function(t){return i(e).toLowerCase().includes(i(t))})))&&!b.includes(e)||r._promoted){var s={label:e,value:e,source:r},u={};Array.isArray(c)&&c.length>0&&c.forEach((function(e){t.hasOwnProperty(e)&&(u=n({},u,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t[e])))}));var l=n({},s,u);if(b=[].concat(a(b),[e]),v=[].concat(a(v),[l]),d)return!0}return!1},C=function(){r.forEach((function(e){t.forEach((function(t){!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if("object"==typeof t){var a=n.split("."),i=t[a[0]];if(t[n]){var u=t[n],l=s(u);if(l&&"string"==typeof l)return $(l,t,r)}if(Array.isArray(i)&&(i.length>1&&(i=i.filter((function(e){return e&&e.toString().toLowerCase().includes(o.toString().toLowerCase())}))),i=i[0]),i)if(a.length>1){var c=n.substring(a[0].length+1);e(i,c,r)}else{var p=s(i);if(p)return $(p,t,r)}}return!1}(e,t)}))}))};if(C(),v.length<r.length&&!_&&y&&(_=!0,C()),f){var O=l({suggestions:v,currentValue:o,wordsToShowAfterHighlight:g});v=O}if(d){var S={},w=[];return v.forEach((function(e){e.source&&e.source._id&&(S[e.source._id]||(w.push(e),S[e.source._id]=!0))})),w}return v}}));unwrapExports(suggestions);var suggestions_1=suggestions.replaceDiacritics,helper=createCommonjsModule((function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.transformRequestUsingEndpoint=t.flatten=t.saveDataAsFile=t.transformTreeListLocalStateIntoQueryComptaibleFormat=t.transformRawTreeListData=t.recLookup=t.hasCustomRenderer=t.getComponent=t.isFunction=t.getCalendarIntervalErrorMessage=t.queryFormatMillisecondsMap=t.featuredSuggestionsActionTypes=t.suggestionTypes=t.getTopSuggestions=t.withClickIds=t.getCompositeAggsQuery=t.getAggsQuery=t.extractQueryFromDefaultQuery=t.updateInternalQuery=t.getSearchState=t.componentTypeToDefaultValue=t.extractQueryFromCustomQuery=t.getOptionsForCustomQuery=t.getOptionsFromQuery=t.parseHits=t.handleA11yAction=t.getInnerKey=t.getClassName=t.checkSomePropChange=t.checkPropChange=t.updateDefaultQuery=t.updateCustomQuery=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isEqual=p,t.compareQueries=function(e,t){try{return p(JSON.parse(JSON.stringify(e)),JSON.parse(JSON.stringify(t)))}catch(e){return!1}},t.debounce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(!t)return e;var r=null,o=null,a=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(a,t)}},t.getQueryOptions=function(e){var t={};void 0!==e.size&&(t.size=e.size);if(e.includeFields||e.excludeFields){var n={};e.includeFields&&(n.includes=e.includeFields),e.excludeFields&&(n.excludes=e.excludeFields),t._source=n}return t},t.buildQuery=function(e,t,n,o){var a=null,s=null;e in t&&(a=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var a=h(d(o),t[o].map((function(t){return"string"!=typeof t?e(t,n):t in n&&n[t]&&Object.keys(n[t]).length?n[t]:null})).filter((function(e){return!!e})));a&&Object.keys(a).length&&(r=[].concat(u(r),[a]))}else if("string"==typeof t[o]){var s=h(d(o),n[t[o]]);s&&Object.keys(s).length&&(r=[].concat(u(r),[s]))}else if("object"==typeof t[o]&&null!==t[o]){var i=e(t[o],n);i&&Object.keys(i).length&&(r=[].concat(u(r),[i]))}})),Array.isArray(r)&&r.length)return{bool:{must:r}};if(r&&Object.keys(r).length)return r;return null}(t[e],n),s=function e(t,n,o){var a={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){n[e]&&(a=r({},a,n[e]))})):"string"==typeof t[o]?n[t[o]]&&(a=r({},a,n[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(a=r({},a,e(t[o],n)))})),n[o]&&(a=r({},a,n[o]));return a}(t[e],o,e));return{queryObj:a,options:s}},t.pushToAndClause=function e(t,n){var o=r({},t);if(o.and)return Array.isArray(o.and)?(o.and=[].concat(u(o.and),[n]),o):"string"==typeof o.and?(o.and=[o.and,n],o):(o.and=e(o.and,n),o);return r({},o,{and:n})},t.checkValueChange=function(e,t,n,r){var o=t;Array.isArray(t)&&!t.length&&(o=null);var a=function(t){console.warn(e+" - beforeValueChange rejected the promise with ",t)};if(n)try{var s=n(o);s instanceof Promise?s.then(r).catch(a):r()}catch(e){a(e)}else r()},t.getAggsOrder=f,t.formatDate=function(e,t){if(t.parseDate)return t.parseDate(e,t);switch(t.queryFormat){case"epoch_millis":return e.getTime();case"epoch_second":return Math.floor(e.getTime()/1e3);default:return o.default[t.queryFormat]?e.toString(o.default[t.queryFormat]):e.getTime()}},t.getResultStats=function(e){var t=e.total,n=e.size,o=e.time,a=e.hidden,s=e.promotedResults;return r({numberOfResults:t},n>0?{numberOfPages:Math.ceil(t/n)}:null,{time:o||0,hidden:a,promoted:s?s.length:0})},t.extractFieldsFromSource=O,t.normalizeDataField=S,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,o=n.promotedResults,s=n.enablePredictiveSuggestions,i=[];n.dataField?i=S(n.dataField).map((function(e){return e.field})):e&&Array.isArray(e)&&e.length>0&&e[0]&&e[0]._source&&(i=O(e[0]._source));var l=y(e,!1),c=y(o,!1);if(c&&c.length){var p=c.map((function(e){return e._id})).filter(Boolean);p&&(l=l.filter((function(e){return!p.includes(e._id)}))),l=[].concat(u(c),u(l))}var d=(0,a.default)({fields:i,suggestions:l,currentValue:t.toLowerCase(),showDistinctSuggestions:n.showDistinctSuggestions,enablePredictiveSuggestions:s,enableSynonyms:n.enableSynonyms});if(r)return d.map((function(e){return r(e)}));return d},t.isValidDateRangeQueryFormat=function(e){return Object.keys(o.default).includes(e)},t.setDeep=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.reduce((function(e,o,a){return r&&"object"!=typeof e[o]&&a!==t.length-1?(e[o]={},e[o]):a===t.length-1?(e[o]=n,n):"object"==typeof e[o]?e[o]:{}}),e)};var o=s(dateFormats_1),a=s(suggestions);function s(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.updateCustomQuery=function(e,t,n){t.customQuery&&"function"==typeof t.customQuery&&t.setCustomQuery(e,t.customQuery(n,t))};var c=t.updateDefaultQuery=function(e,t,n){t.defaultQuery&&"function"==typeof t.defaultQuery&&t.setDefaultQuery(e,t.defaultQuery(n,t))};function p(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;if(e.constructor!==t.constructor)return!1;for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))return!1;if(e[n]!==t[n]){if("object"!=typeof e[n])return!1;if(!p(e[n],t[n]))return!1}}for(var r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}function d(e){return"and"===e?"must":"or"===e?"should":"must_not"}function h(e,t){var n=null;return(Array.isArray(t)&&t.length||!Array.isArray(t)&&t)&&(n={bool:l({},e,t)}),"should"===e&&n&&(n={bool:r({},n.bool,{minimum_should_match:1})}),n}function f(e){return"count"===e?{_count:"desc"}:{_key:e}}var m=t.checkPropChange=function(e,t,n){return!p(e,t)&&(n(),!0)},g=(t.checkSomePropChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];n.some((function(n){return m(e[n],t[n],r)}))},t.getClassName=function(e,t){return e&&e[t]||""},t.getInnerKey=function(e,t){return e&&e[t]||{}},t.handleA11yAction=function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())},function(e){var t=r({},e);return t.highlight&&Object.keys(t.highlight).forEach((function(e){var n=t.highlight[e][0];t._source=r({},t._source,l({},e,n))})),t}),y=t.parseHits=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=null;return e&&(n=[].concat(u(e)).map((function(e){var n=r({},e);return t&&(n=g(e)),Object.keys(n).filter((function(e){return"_source"!==e})).reduce((function(e,t){return e[t]=n[t],e}),r({highlight:n.highlight||{}},n._source))}))),n};var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query;var t=i(e,["query"]);return Object.keys(t).length?t:null}return null};t.getOptionsFromQuery=v;t.getOptionsForCustomQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query,e.id,e.params;var t=i(e,["query","id","params"]);return Object.keys(t).length?t:null}return null};t.extractQueryFromCustomQuery=function(e){return e?e.id?{id:e.id,params:e.params}:e.query:null};function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2];Object.keys(e).forEach((function(o){var a=e[o]||{},s=a.hidden,i=a.total,u=a.time;t[o]=r({},t[o],{resultStats:r({},t[o].resultStats,{numberOfResults:i,time:u,promoted:n[o]&&n[o].length,hidden:s||0})})}))}var _=t.componentTypeToDefaultValue=(l(n={},constants$1.componentTypes.singleList,""),l(n,constants$1.componentTypes.multiList,[]),l(n,constants$1.componentTypes.singleDataList,""),l(n,constants$1.componentTypes.singleDropdownList,""),l(n,constants$1.componentTypes.multiDataList,[]),l(n,constants$1.componentTypes.multiDropdownList,[]),l(n,constants$1.componentTypes.tagCloud,""),l(n,constants$1.componentTypes.toggleButton,""),l(n,constants$1.componentTypes.singleDropdownRange,""),l(n,constants$1.componentTypes.multiDropdownRange,[]),l(n,constants$1.componentTypes.singleRange,""),l(n,constants$1.componentTypes.multiRange,[]),n),$=(t.getSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.selectedValues,o=e.queryLog,a=e.dependencyTree,s=e.props,i=e.hits,u=e.aggregations,c=e.isLoading,p=e.error,d=e.promotedResults,h=e.settings,f=e.customData,m=e.rawData,g={},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return Object.keys(e).forEach((function(n){g[n]=r({},g[n],t?l({},t,e[n]):e[n])}))};return y(s),Object.keys(n||{}).forEach((function(e){var t=g[e],o=n[e],a=s[e],i=a?a.componentType:null;if(o){var u=r({},t,r({title:o.label,componentType:o.componentType,value:o.value||_[i]},o.category&&{category:o.category},{URLParams:o.URLParams}));Object.keys(u).length&&(g[e]=u)}})),t||(y(o),y(i,"hits"),y(u,"aggregations"),y(c,"isLoading"),y(p,"error"),y(d,"promotedData"),y(h,"settings"),y(f,"customData"),y(m,"rawData"),b(i,g,d)),y(a,"react"),g},t.updateInternalQuery=function(e,t,n,o,a,s){var i=o.defaultQuery,u=void 0,l=a;if(i){var p=i(n,o);l=(p||{}).query,u=v(p),c(e,o,n)}l?(o.setQueryOptions(e,r({},u,t||a)),o.updateQuery(r({componentId:e,query:l,value:n},s))):o.setQueryOptions(e,r({},u,t||a))},function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var a=i(o,["query"]);a&&(n=a)}}return n});t.extractQueryFromDefaultQuery=$;t.getAggsQuery=function(e,t,n){var o=t,a=n.dataField,s=n.size,i=n.sortBy,c=n.showMissing,p=n.missingLabel;if(o.size=0,"string"==typeof a)o.aggs=l({},a,{terms:r({field:a,size:s,order:f(i||"count")},c?{missing:p}:{})});else{var d=void 0;[].concat(u(a)).reverse().forEach((function(e){d=l({},e,{terms:r({field:e,size:s,order:f(i||"count")},c?{missing:p}:{}),aggs:d})})),o.aggs=d}return n.nestedField&&(o.aggs={reactivesearch_nested:{nested:{path:n.nestedField},aggs:o.aggs}}),r({},o,$(n,e))},t.getCompositeAggsQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,n=void 0===t?{}:t,o=e.props,a=e.after,s=void 0===a?null:a,i=e.showTopHits,u=void 0!==i&&i,c=e.value,p=n,d=o.dataField,h=o.size,f=o.sortBy,m=o.showMissing,g=o.aggregationField,y=g||d,v="count"===f?{}:{order:f};return p.aggs=l({},y,r({composite:r({sources:[l({},y,{terms:r({field:y},v,m?{missing_bucket:!0}:{})})],size:h},s)},u?{aggs:l({},y,{top_hits:{size:1}})}:{})),p.size=0,o.nestedField&&(p.aggs={reactivesearch_nested:{nested:{path:o.nestedField},aggs:p.aggs}}),r({},p,$(o,c))};var C=t.withClickIds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e,t){return r({},e,{_click_id:t})}))};function O(e){var t=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments[1],s=n?n+"."+a:a;return Number.isNaN(parseInt(a,10))||(s=n||a),t[a]&&"object"==typeof t[a]?r({},o,e(t[a],s)):r({},o,l({},s,!0))}),[])}(e);return Object.keys(t)}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"string"==typeof e?[{field:e,weight:t.length?t[0]:void 0}]:Array.isArray(e)?e.map((function(e,n){var r={};return"string"==typeof e?(r.field=e,t.length>n&&(r.weight=t[n])):"object"==typeof e&&e&&e.field&&(r.field=e.field,r.weight=e.weight),r})):"object"==typeof e&&e?[{field:e.field,weight:e.weight}]:[]}t.getTopSuggestions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],r=y(e,!1),o=(0,a.default)({fields:["key","key.autosuggest","key.search"],suggestions:r||[],currentValue:t.toLowerCase(),showDistinctSuggestions:n});return C(o)};t.suggestionTypes={Popular:"popular",Index:"index",Recent:"recent",Promoted:"promoted",Featured:"featured"},t.featuredSuggestionsActionTypes={NAVIGATE:"navigate",FUNCTION:"function"};var w=t.queryFormatMillisecondsMap={minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629746e3,quarter:7889238e3,year:31556952e3},T=(t.getCalendarIntervalErrorMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"minute",n=Object.keys(w),r=n.indexOf(t);if(-1===r&&console.error("Invalid calendarInterval Passed"),"year"===t)return"Try using a shorter range of values.";for(var o=r+1;o<n.length;o+=1)if(e/Object.values(w)[o]<=100){var a=n[o];return{errorMessage:"Please pass calendarInterval prop with value greater than or equal to a `"+a+"` for a meaningful resolution of histogram.",calculatedCalendarInterval:a}}return{errorMessage:"Try using a shorter range of values.",calculatedCalendarInterval:"year"}},t.isFunction=function(e){return"function"==typeof e});t.getComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.children,r=t.render;return T(n)?n(e):T(r)?r(e):null},t.hasCustomRenderer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.render,n=e.children;return T(n)||T(t)},t.recLookup=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";try{var o=n.split(r);return 1===o.length?t[o[0]]:e(t[o[0]],o.slice(1).join(r),r)}catch(e){return!1}};t.transformRawTreeListData=function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=[];if(t instanceof Object){var s=Object.keys(t);s.forEach((function(s){Array.isArray(t[s].buckets)&&t[s].buckets.forEach((function(t){a.push(r({key:t.key,count:t.doc_count,level:o},t[n[o+1]]instanceof Object?{list:e(l({},n[o+1],t[n[o+1]]),n,o+1)}:{}))}))}))}return a},t.transformTreeListLocalStateIntoQueryComptaibleFormat=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[];return t instanceof Object&&(Object.keys(t).length?Object.keys(t).forEach((function(o){t[o]instanceof Object&&r.push.apply(r,u(e(t[o],n?n+" > "+o:o))),!0===t[o]&&r.push(n?n+" > "+o:o)})):n&&r.push(n)),r},t.saveDataAsFile=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"exportedData",t=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"csv",r=t,o="text/"+n;"json"===n&&(r=JSON.stringify(r,0,4));var a=new Blob([r],{type:o}),s=document.createElement("a");s.download=e+"."+n,s.href=window.URL.createObjectURL(a),s.dataset.downloadurl=[o,s.download,s.href].join(":");var i=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});s.dispatchEvent(i),s.remove()},t.flatten=function(e){var t={};return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(Object(n)!==n)t[r]=n;else if(Array.isArray(n))t[r]=JSON.stringify(n);else{var o=!0;Object.keys(n).forEach((function(t){o=!1,e(n[t],r?r+"."+t:t)})),o&&r&&(t[r]={})}}(e),t};t.transformRequestUsingEndpoint=function(e,t){if(t instanceof Object){var n=t.headers,o=void 0===n?{}:n,a=t.body,s=i(t,["headers","body"]);return r({},e,s,{headers:r({},e.headers,o)},a instanceof Object?{body:JSON.stringify(a)}:{})}return e}}));unwrapExports(helper);var helper_1=helper.transformRequestUsingEndpoint,helper_2=helper.flatten,helper_3=helper.saveDataAsFile,helper_4=helper.transformTreeListLocalStateIntoQueryComptaibleFormat,helper_5=helper.transformRawTreeListData,helper_6=helper.recLookup,helper_7=helper.hasCustomRenderer,helper_8=helper.getComponent,helper_9=helper.isFunction,helper_10=helper.getCalendarIntervalErrorMessage,helper_11=helper.queryFormatMillisecondsMap,helper_12=helper.featuredSuggestionsActionTypes,helper_13=helper.suggestionTypes,helper_14=helper.getTopSuggestions,helper_15=helper.withClickIds,helper_16=helper.getCompositeAggsQuery,helper_17=helper.getAggsQuery,helper_18=helper.extractQueryFromDefaultQuery,helper_19=helper.updateInternalQuery,helper_20=helper.getSearchState,helper_21=helper.componentTypeToDefaultValue,helper_22=helper.extractQueryFromCustomQuery,helper_23=helper.getOptionsForCustomQuery,helper_24=helper.getOptionsFromQuery,helper_25=helper.parseHits,helper_26=helper.handleA11yAction,helper_27=helper.getInnerKey,helper_28=helper.getClassName,helper_29=helper.checkSomePropChange,helper_30=helper.checkPropChange,helper_31=helper.updateDefaultQuery,helper_32=helper.updateCustomQuery,helper_33=helper.isEqual,helper_34=helper.compareQueries,helper_35=helper.debounce,helper_36=helper.getQueryOptions,helper_37=helper.buildQuery,helper_38=helper.pushToAndClause,helper_39=helper.checkValueChange,helper_40=helper.getAggsOrder,helper_41=helper.formatDate,helper_42=helper.getResultStats,helper_43=helper.extractFieldsFromSource,helper_44=helper.normalizeDataField,helper_45=helper.handleOnSuggestions,helper_46=helper.isValidDateRangeQueryFormat,helper_47=helper.setDeep,xdate=createCommonjsModule((function(e){
2
2
  /**
3
3
  * @preserve XDate v@VERSION
4
4
  * Docs & Licensing: http://arshaw.com/xdate/
5
5
  */
6
- !function(t,n,r,o){var i=["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds","Day","Year"],a=["Years","Months","Days"],s=[12,31,24,60,60,1e3,1],u=new RegExp("(([a-zA-Z])\\2*)|(\\((('.*?'|\\(.*?\\)|.)*?)\\))|('(.*?)')"),l=t.UTC,c=t.prototype.toUTCString,p=d.prototype;function d(){return h(this instanceof d?this:new d,arguments)}function h(e,n){var r,o=n.length;if(Q(n[o-1])&&(r=n[--o],n=L(n,0,o)),o)if(1==o){var i=n[0];i instanceof t?e[0]=new t(i.getTime()):!function(e){return"number"==typeof e}(i)?i instanceof d?e[0]=function(e){var n=new t(e[0].getTime());f(e)&&(n.toString=c);return n}(i):M(i)&&(e[0]=new t(0),e=function(e,n,r){for(var o,i=d.parsers,a=0;a<i.length;a++)if(o=i[a](e,n,r))return o;return r[0]=new t(e),r}(i,r||!1,e)):e[0]=new t(i)}else e[0]=new t(l.apply(t,n)),r||(e[0]=I(e[0]));else e[0]=new t;return Q(r)&&g(e,r),e}function f(e){return e[0].toString===c}function g(e,n,r){var o;return n?f(e)||(r&&(e[0]=(o=e[0],new t(l(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds())))),e[0].toString=c):f(e)&&(e[0]=r?I(e[0]):new t(e[0].getTime())),e}function m(e,t,n,r,o){var i,a=x(E,e[0],o),s=x(T,e[0],o),u=!1;2==r.length&&Q(r[1])&&(u=r[1],r=[n]),i=1==t?(n%12+12)%12:a(1),s(t,r),u&&a(1)!=i&&(s(1,[a(1)-1]),s(2,[A(a(0),a(1))]))}function y(e,t,r){e=e.clone().setUTCMode(!0,!0),t=d(t).setUTCMode(!0,!0);var o=0;if(0==r||1==r){for(var i=6;i>=r;i--)o/=s[i],o+=E(t,!1,i)-E(e,!1,i);1==r&&(o+=12*(t.getFullYear()-e.getFullYear()))}else if(2==r){var a=e.toDate().setUTCHours(0,0,0,0),u=t.toDate().setUTCHours(0,0,0,0);o=n.round((u-a)/864e5)+(t-u-(e-a))/864e5}else o=(t-e)/[36e5,6e4,1e3,1][r-3];return o}function v(e){return r=e(0),o=e(1),i=e(2),a=new t(l(r,o,i)),s=O(b(r,o,i)),n.floor(n.round((a-s)/864e5)/7)+1;var r,o,i,a,s}function b(e,n,r){var o=new t(l(e,n,r));return o<O(e)?e-1:o>=O(e+1)?e+1:e}function O(e){var n=new t(l(e,0,4));return n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+6)%7),n}function C(e,t,n,r){var o=x(E,e,r),i=x(T,e,r);void 0===n&&(n=b(o(0),o(1),o(2)));var a=O(n);r||(a=I(a)),e.setTime(a.getTime()),i(2,[o(2)+7*(t-1)])}function w(e,t,n,r,o){var i=d.locales,a=i[d.defaultLocale]||{},s=x(E,e,o);return n=(M(n)?i[n]:n)||{},S(e,t,(function(e){if(r)for(var t=(7==e?2:e)-1;t>=0;t--)r.push(s(t));return s(e)}),(function(e){return n[e]||a[e]}),o)}function S(e,t,n,r,o){for(var i,a,s="";i=t.match(u);)s+=t.substr(0,i.index),i[1]?s+=$(e,i[1],n,r,o):i[3]?(a=S(e,i[4],n,r,o),parseInt(a.replace(/\D/g,""),10)&&(s+=a)):s+=i[7]||"'",t=t.substr(i.index+i[0].length);return s+t}function $(e,t,n,r,o){for(var i,a=t.length,s="";a>0;)void 0!==(i=_(e,t.substr(0,a),n,r,o))?(s+=i,a=(t=t.substr(a)).length):a--;return s+t}function _(e,t,r,o,i){var a=d.formatters[t];if(M(a))return S(e,a,r,o,i);if("function"==typeof a)return a(e,i||!1,o);switch(t){case"fff":return V(r(6),3);case"s":return r(5);case"ss":return V(r(5));case"m":return r(4);case"mm":return V(r(4));case"h":return r(3)%12||12;case"hh":return V(r(3)%12||12);case"H":return r(3);case"HH":return V(r(3));case"d":return r(2);case"dd":return V(r(2));case"ddd":return o("dayNamesShort")[r(7)]||"";case"dddd":return o("dayNames")[r(7)]||"";case"M":return r(1)+1;case"MM":return V(r(1)+1);case"MMM":return o("monthNamesShort")[r(1)]||"";case"MMMM":return o("monthNames")[r(1)]||"";case"yy":return(r(0)+"").substring(2);case"yyyy":return r(0);case"t":return k(r,o).substr(0,1).toLowerCase();case"tt":return k(r,o).toLowerCase();case"T":return k(r,o).substr(0,1);case"TT":return k(r,o);case"z":case"zz":case"zzz":return i?"Z":function(e,t){var r=e.getTimezoneOffset(),o=r<0?"+":"-",i=n.floor(n.abs(r)/60),a=n.abs(r)%60,s=i;"zz"==t?s=V(i):"zzz"==t&&(s=V(i)+":"+V(a));return o+s}(e,t);case"w":return v(r);case"ww":return V(v(r));case"S":var s=r(2);return s>10&&s<20?"th":["st","nd","rd"][s%10-1]||"th"}}function k(e,t){return e(3)<12?t("amDesignator"):t("pmDesignator")}function P(e){return!isNaN(e[0].getTime())}function E(e,t,n){return e["get"+(t?"UTC":"")+i[n]]()}function T(e,t,n,r){e["set"+(t?"UTC":"")+i[n]].apply(e,r)}function I(e){return new t(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function A(e,n){return 32-new t(l(e,n,32)).getUTCDate()}function R(e){return function(){return e.apply(void 0,[this].concat(L(arguments)))}}function x(e){var t=L(arguments,1);return function(){return e.apply(void 0,t.concat(L(arguments)))}}function L(e,t,n){return r.prototype.slice.call(e,t||0,void 0===n?e.length:n)}function j(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function M(e){return"string"==typeof e}function Q(e){return"boolean"==typeof e}function V(e,t){for(t=t||2,e+="";e.length<t;)e="0"+e;return e}p.length=1,p.splice=r.prototype.splice,p.getUTCMode=R(f),p.setUTCMode=R(g),p.getTimezoneOffset=function(){return f(this)?0:this[0].getTimezoneOffset()},j(i,(function(e,t){p["get"+e]=function(){return E(this[0],f(this),t)},8!=t&&(p["getUTC"+e]=function(){return E(this[0],!0,t)}),7!=t&&(p["set"+e]=function(e){return m(this,t,e,arguments,f(this)),this},8!=t&&(p["setUTC"+e]=function(e){return m(this,t,e,arguments,!0),this},p["add"+(a[t]||e)]=function(e,r){return function e(t,r,o,a){o=Number(o);var u=n.floor(o);t["set"+i[r]](t["get"+i[r]]()+u,a||!1),u!=o&&r<6&&e(t,r+1,(o-u)*s[r],a)}(this,t,e,r),this},p["diff"+(a[t]||e)]=function(e){return y(this,e,t)}))})),p.getWeek=function(){return v(x(E,this,!1))},p.getUTCWeek=function(){return v(x(E,this,!0))},p.setWeek=function(e,t){return C(this,e,t,!1),this},p.setUTCWeek=function(e,t){return C(this,e,t,!0),this},p.addWeeks=function(e){return this.addDays(7*Number(e))},p.diffWeeks=function(e){return y(this,e,2)/7},d.parsers=[function(e,n,r){var o=e.match(/^(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/);if(o){var i=new t(l(o[1],o[3]?o[3]-1:0,o[5]||1,o[7]||0,o[8]||0,o[10]||0,o[12]?1e3*Number("0."+o[12]):0));return o[13]?o[14]&&i.setUTCMinutes(i.getUTCMinutes()+("-"==o[15]?1:-1)*(60*Number(o[16])+(o[18]?Number(o[18]):0))):n||(i=I(i)),r.setTime(i.getTime())}}],d.parse=function(e){return+d(""+e)},p.toString=function(e,t,n){return void 0!==e&&P(this)?w(this,e,t,n,f(this)):this[0].toString()},p.toUTCString=p.toGMTString=function(e,t,n){return void 0!==e&&P(this)?w(this,e,t,n,!0):this[0].toUTCString()},p.toISOString=function(){return this.toUTCString("yyyy-MM-dd'T'HH:mm:ss(.fff)zzz")},d.defaultLocale="",d.locales={"":{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],amDesignator:"AM",pmDesignator:"PM"}},d.formatters={i:"yyyy-MM-dd'T'HH:mm:ss(.fff)",u:"yyyy-MM-dd'T'HH:mm:ss(.fff)zzz"},j(["getTime","valueOf","toDateString","toTimeString","toLocaleString","toLocaleDateString","toLocaleTimeString","toJSON"],(function(e){p[e]=function(){return this[0][e]()}})),p.setTime=function(e){return this[0].setTime(e),this},p.valid=R(P),p.clone=function(){return new d(this)},p.clearTime=function(){return this.setHours(0,0,0,0)},p.toDate=function(){return new t(this[0].getTime())},d.now=function(){return(new t).getTime()},d.today=function(){return(new d).clearTime()},d.UTC=l,d.getDaysInMonth=A,e.exports&&(e.exports=d)}(Date,Math,Array)})),Re=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getDependentQueries=t.extractPropsFromState=t.getValidInterval=t.getRSQuery=t.hasPaginationSupport=t.isComponentUsesLabelAsValue=t.isSearchComponent=t.isDRSRangeComponent=t.getHistogramComponentID=t.getInternalComponentID=t.isInternalComponent=t.getNormalizedField=t.componentToTypeMap=void 0;var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.flatReactProp=_;var o=a(Ae),i=a(ge);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=t.componentToTypeMap=(u(n={},R.componentTypes.reactiveList,R.queryTypes.search),u(n,R.componentTypes.dataSearch,R.queryTypes.search),u(n,R.componentTypes.categorySearch,R.queryTypes.search),u(n,R.componentTypes.searchBox,R.queryTypes.suggestion),u(n,R.componentTypes.singleList,R.queryTypes.term),u(n,R.componentTypes.multiList,R.queryTypes.term),u(n,R.componentTypes.singleDataList,R.queryTypes.term),u(n,R.componentTypes.singleDropdownList,R.queryTypes.term),u(n,R.componentTypes.multiDataList,R.queryTypes.term),u(n,R.componentTypes.multiDropdownList,R.queryTypes.term),u(n,R.componentTypes.tagCloud,R.queryTypes.term),u(n,R.componentTypes.toggleButton,R.queryTypes.term),u(n,R.componentTypes.reactiveChart,R.queryTypes.term),u(n,R.componentTypes.treeList,R.queryTypes.term),u(n,R.componentTypes.numberBox,R.queryTypes.term),u(n,R.componentTypes.datePicker,R.queryTypes.range),u(n,R.componentTypes.dateRange,R.queryTypes.range),u(n,R.componentTypes.dynamicRangeSlider,R.queryTypes.range),u(n,R.componentTypes.singleDropdownRange,R.queryTypes.range),u(n,R.componentTypes.multiDropdownRange,R.queryTypes.range),u(n,R.componentTypes.singleRange,R.queryTypes.range),u(n,R.componentTypes.multiRange,R.queryTypes.range),u(n,R.componentTypes.rangeSlider,R.queryTypes.range),u(n,R.componentTypes.ratingsFilter,R.queryTypes.range),u(n,R.componentTypes.rangeInput,R.queryTypes.range),u(n,R.componentTypes.geoDistanceDropdown,R.queryTypes.geo),u(n,R.componentTypes.geoDistanceSlider,R.queryTypes.geo),u(n,R.componentTypes.reactiveMap,R.queryTypes.geo),n),c=[R.componentTypes.multiRange,R.componentTypes.multiDropdownRange],p=[R.componentTypes.dateRange,R.componentTypes.datePicker],d=[R.componentTypes.categorySearch,R.componentTypes.dataSearch,R.componentTypes.searchBox],h=[R.componentTypes.singleList,R.componentTypes.multiList,R.componentTypes.singleDropdownList,R.componentTypes.multiDropdownList],f=t.getNormalizedField=function(e){return e&&!Array.isArray(e)?[e]:e},g=t.isInternalComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__internal")},m=t.getInternalComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__internal"},y=t.getHistogramComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__histogram__internal"},v=t.isDRSRangeComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__range__internal")},b=t.isSearchComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.includes(e)},O=t.isComponentUsesLabelAsValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e===R.componentTypes.multiDataList||e===R.componentTypes.singleDataList||e===R.componentTypes.tabDataList},C=t.hasPaginationSupport=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return h.includes(e)},w=t.getRSQuery=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&e){var o=t.type?t.type:l[t.componentType];if(!b(t.componentType)&&!t.dataField)return null;var i=void 0;return t.endpoint instanceof Object&&(i=t.endpoint),r({id:e,type:o,dataField:f(t.dataField),execute:n,react:t.react,highlight:t.highlight,highlightField:f(t.highlightField),fuzziness:t.fuzziness,searchOperators:t.searchOperators,includeFields:t.includeFields,excludeFields:t.excludeFields,size:t.size,aggregationSize:t.aggregationSize,from:t.from,queryFormat:t.queryFormat,sortBy:t.sortBy,fieldWeights:f(t.fieldWeights),includeNullValues:t.includeNullValues,aggregationField:t.aggregationField||void 0,categoryField:t.categoryField||void 0,missingLabel:t.missingLabel||void 0,showMissing:t.showMissing,nestedField:t.nestedField||void 0,interval:t.interval,customHighlight:t.customHighlight,customQuery:t.customQuery,defaultQuery:t.defaultQuery,value:t.value,categoryValue:t.categoryValue||void 0,after:t.after||void 0,aggregations:t.aggregations||void 0,enableSynonyms:t.enableSynonyms,selectAllLabel:t.selectAllLabel,pagination:t.pagination,queryString:t.queryString,distinctField:t.distinctField,distinctFieldConfig:t.distinctFieldConfig,index:t.index},o===R.queryTypes.suggestion?r({enablePopularSuggestions:t.enablePopularSuggestions,enableRecentSuggestions:t.enableRecentSuggestions,popularSuggestionsConfig:t.popularSuggestionsConfig,recentSuggestionsConfig:t.recentSuggestionsConfig,applyStopwords:t.applyStopwords,customStopwords:t.customStopwords,enablePredictiveSuggestions:t.enablePredictiveSuggestions,featuredSuggestionsConfig:t.featuredSuggestionsConfig,indexSuggestionsConfig:t.indexSuggestionsConfig,enableFeaturedSuggestions:t.enableFeaturedSuggestions,enableIndexSuggestions:t.enableIndexSuggestions},t.searchboxId?{searchboxId:t.searchboxId}:{}):{},{calendarInterval:t.calendarInterval,endpoint:i})}return null},S=t.getValidInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Math.ceil((t.end-t.start)/100)||1;return e?e<n?n:e:n},$=t.extractPropsFromState=function(e,t,n){var a=e.props[t];if(!a)return null;var s=a.type?a.type:l[a.componentType],u=e.selectedValues[t]||e.internalValues[t],d=null!=u?u.value:void 0,h=a.queryFormat,f=void 0,g=a.interval,w=s,$=a.dataField,_=a.aggregations,k=void 0,P=a.from;if(s===R.queryTypes.term)if(a.showLoadMore&&C(a.componentType)&&(k=!0),null!=d&&"object"==typeof d&&d.value)d=d.value;else if(Array.isArray(d)){var E=[];d.forEach((function(e){null!=e&&"object"==typeof e&&e.value?E.push(e.value):E.push(e)})),d=E}if(s===R.queryTypes.range){if(Array.isArray(d))d=c.includes(a.componentType)?d.map((function(e){return{start:e.start,end:e.end}})):{start:d[0],end:d[1]};else if(a.showHistogram){var T=m(t),I=e.internalValues[T];if(!I){var A=y(t);I=e.internalValues[A]}I&&Array.isArray(I.value)&&(d={start:I.value[0],end:I.value[1]},g=S(g,d))}v(t)?_=["min","max"]:a.showHistogram&&(_=["histogram"]),a.componentType!==R.componentTypes.dynamicRangeSlider&&a.componentType!==R.componentTypes.rangeSlider||(f=Object.keys(i.default).includes(h)?a.calendarInterval:void 0,d&&(d=(0,be.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,be.formatDate)(new o.default(d.start),a),end:(0,be.formatDate)(new o.default(d.end),a)}:{start:parseFloat(d.start),end:parseFloat(d.end)})),p.includes(a.componentType)&&(h="or",d&&("string"==typeof d?d={start:(0,be.formatDate)(new o.default(d).addHours(-24),a),end:(0,be.formatDate)(new o.default(d),a)}:Array.isArray(d)&&(d=d.map((function(e){return{start:(0,be.formatDate)(new o.default(e).addHours(-24),a),end:(0,be.formatDate)(new o.default(e),a)}})))))}if(s===R.queryTypes.geo){d=void 0;var x=e.selectedValues[t]||e.internalValues[t]||e.internalValues[m(t)];x&&x.meta&&(x.meta.distance&&x.meta.coordinates&&(d={distance:x.meta.distance,location:x.meta.coordinates},a.unit&&(d.unit=a.unit)),x.meta.mapBoxBounds&&x.meta.mapBoxBounds.top_left&&x.meta.mapBoxBounds.bottom_right&&(d={geoBoundingBox:{topLeft:x.meta.mapBoxBounds.top_left[1]+", "+x.meta.mapBoxBounds.top_left[0],bottomRight:x.meta.mapBoxBounds.bottom_right[1]+", "+x.meta.mapBoxBounds.bottom_right[0]}}))}if(a.componentType===R.componentTypes.numberBox&&("exact"===h?w="term":(w="range",d="lte"===h?{end:d,boost:2}:{start:d,boost:2}),h="or"),a.componentType===R.componentTypes.reactiveComponent&&(w="term",$="reactive_component_field",d=void 0),b(a.componentType)&&!d&&(d=""),O(a.componentType)){var L=a.data,j=[];d&&Array.isArray(d)?j=d:d&&"string"==typeof d&&(j=[d]);var M=[];j.length&&L&&Array.isArray(L)&&j.forEach((function(e){var t=L.find((function(t){return t.label===e}));t&&t.value&&M.push(t.value)})),d=M.length?M:void 0}a.componentType===R.componentTypes.reactiveList&&(d>0&&(P=(d-1)*(a.size||10)),d=void 0);var Q=d||void 0;a.componentType===R.componentTypes.searchBox&&Array.isArray(Q)&&(Q=void 0);var V=void 0;return a.endpoint instanceof Object&&(V=r({},V||{},a.endpoint)),r({},a,{endpoint:V,calendarInterval:f,dataField:$,queryFormat:h,type:w,aggregations:_,interval:g,react:e.dependencyTree?e.dependencyTree[t]:void 0,customQuery:e.customQueries?e.customQueries[t]:void 0,defaultQuery:e.defaultQueries?e.defaultQueries[t]:void 0,customHighlight:e.customHighlightOptions?e.customHighlightOptions[t]:void 0,categoryValue:e.internalValues[t]?e.internalValues[t].category:void 0,value:Q,pagination:k,from:P},n)};function _(e,t){var n=[];return function e(t){t&&Object.keys(t)&&Object.keys(t).forEach((function(r){t[r]&&("string"==typeof t[r]?n=[].concat(s(n),[t[r]]):Array.isArray(t[r])?n=[].concat(s(n),s(t[r])):"object"==typeof t[r]&&e(t[r]))}))}(e),n=n.filter((function(e){return e!==t}))}t.getDependentQueries=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={},i=_(e.dependencyTree[t],t);return i.forEach((function(t){var i=t,a=e.customQueries[i];if(!g(i)){var s=e.selectedValues[i]||e.internalValues[i];if((s||a)&&!o[i]){var u=!1;Array.isArray(n)&&n.includes(i)&&(u=!0);var l=e.props[i],c=w(i,$(e,i,r({},l&&l.componentType===R.componentTypes.searchBox?r({},!1===u?{type:R.queryTypes.search}:{},s.category?{categoryValue:s.category}:{},s.value?{value:s.value}:{}):{})),u);c&&(o[i]=c)}}})),o}}));r(Re);var xe=Re.getDependentQueries,Le=Re.extractPropsFromState,je=(Re.getValidInterval,Re.getRSQuery),Me=(Re.hasPaginationSupport,Re.isComponentUsesLabelAsValue,Re.isSearchComponent),Qe=(Re.isDRSRangeComponent,Re.getHistogramComponentID,Re.getInternalComponentID),Ve=Re.isInternalComponent,De=(Re.getNormalizedField,Re.componentToTypeMap,Re.flatReactProp,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSuggestionQuery=t.isPropertyDefined=t.handleResponseMSearch=t.handleResponse=t.handleError=t.getQuerySuggestionsId=t.isComponentActive=t.handleTransformResponse=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.executeQueryListener=function(e,t,n){e&&e.onQueryChange&&e.onQueryChange(t,n)},t.updateStoreConfig=function(e){return function(t){t({type:C.UPDATE_CONFIG,config:e})}};var o=t.handleTransformResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.transformResponse&&"function"==typeof t.transformResponse?t.transformResponse(e,n):new Promise((function(t){return t(e)}))},i=t.isComponentActive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e(),r=n.components;return!!r.includes(t)},a=t.getQuerySuggestionsId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__suggestions"},s=t.handleError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.orderOfQueries,n=void 0===t?[]:t,r=e.error,o=void 0===r?null:r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},s=arguments[2],u=a(),l=u.queryListener;try{console.error(JSON.stringify(o))}catch(e){console.error(o)}n.forEach((function(e){i(a,e)&&(l[e]&&l[e].onError&&l[e].onError(o),s((0,Ie.setError)(e,o)),s((0,Ie.setLoading)(e,!1)))}))};t.handleResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.res,a=e.orderOfQueries,u=void 0===a?[]:a,l=e.appendToHits,c=void 0!==l&&l,p=e.appendToAggs,d=void 0!==p&&p,h=e.isSuggestionsQuery,f=void 0!==h&&h,g=e.query,m=e.queryId,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},v=arguments[2],b=y(),O=b.config,C=b.internalValues,w=b.lastUsedAppbaseQuery,S=t._headers?t._headers.get("X-Search-Id"):null;S&&v(f?(0,Ie.setSuggestionsSearchId)(S):(0,Ie.setSearchId)(S)),u.forEach((function(e){if(i(y,e)){if(w[e]&&w[e].queryId&&m&&w[e].queryId!==m)return;t.settings&&v((0,Ie.setAppliedSettings)(t.settings,e)),o(t[e],O,e).then((function(o){if(o){var i=y(),a=i.timestamp,s=i.props;if(void 0===a[e]||a[e]<t._timestamp){var u=o.promoted;if(u){var l=u.map((function(e){return n({},e.doc,{_position:e.position})}));v((0,Ie.setPromotedResults)(l,e))}else v((0,Ie.setPromotedResults)([],e));if(v((0,Ie.setRawData)(e,o)),v((0,Ie.setCustomData)(o.customData,e)),o.hits){v((0,Ie.setTimestamp)(e,t._timestamp)),s[e].componentType===R.componentTypes.reactiveList&&g.find((function(t){return t.id===e})).execute&&v((0,Ie.setLastUsedAppbaseQuery)(r({},e,g))),v((0,Te.updateHits)(e,o.hits,o.took,o.hits&&o.hits.hidden,c));var p=(0,Re.getInternalComponentID)(e);C[p]&&v((0,Te.saveQueryToHits)(e,C[p].value))}o.aggregations&&(v((0,Te.updateAggs)(e,o.aggregations,d)),v((0,Te.updateCompositeAggs)(e,o.aggregations,d)))}v((0,Ie.setLoading)(e,!1))}})).catch((function(e){s({orderOfQueries:u,error:e},y,v)}))}}))},t.handleResponseMSearch=function(e){var t=e.res,n=void 0===t?{}:t,r=e.isSuggestionsQuery,a=void 0!==r&&r,u=e.orderOfQueries,l=void 0===u?[]:u,c=e.appendToHits,p=void 0!==c&&c,d=e.appendToAggs,h=void 0!==d&&d,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},g=arguments[2];l.forEach((function(e,t){if(i(f,e)){var r=n._headers?n._headers.get("X-Search-Id"):null;r&&g(a?(0,Ie.setSuggestionsSearchId)(r):(0,Ie.setSearchId)(r));var u=n;n&&Array.isArray(n.responses)&&n.responses[t]&&(u=n.responses[t]);var c=f(),d=c.config,m=c.internalValues;o(u,d,e).then((function(t){var r=f().timestamp;if(void 0===r[e]||r[e]<n._timestamp){g((0,Ie.setRawData)(e,t));var o=t.promoted||n.promoted;if(g(o?(0,Ie.setPromotedResults)(o,e):(0,Ie.setPromotedResults)([],e)),t.hits){g((0,Ie.setTimestamp)(e,n._timestamp)),g((0,Te.updateHits)(e,t.hits,t.took,t.hits&&t.hits.hidden,p));var i=(0,Re.getInternalComponentID)(e);m[i]&&g((0,Te.saveQueryToHits)(e,m[i].value))}t.aggregations&&(g((0,Te.updateAggs)(e,t.aggregations,h)),g((0,Te.updateCompositeAggs)(e,t.aggregations,h)))}g((0,Ie.setLoading)(e,!1))})).catch((function(e){s({orderOfQueries:l,error:e},f,g)}))}}))},t.isPropertyDefined=function(e){return null!=e},t.getSuggestionQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments[1],n=e(),r=n.internalValues,o=r[t],i=o&&o.value||"";return[{id:a(t),dataField:["key","key.autosuggest"],size:5,value:i,defaultQuery:{query:{bool:{minimum_should_match:1,should:[{function_score:{field_value_factor:{field:"count",modifier:"sqrt",missing:1}}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],fuzziness:0,operator:"or",query:i,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:i,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:i,type:"phrase_prefix"}}]}}}}]}})));r(De);De.getSuggestionQuery;var Fe=De.isPropertyDefined,Ne=(De.handleResponseMSearch,De.handleResponse,De.handleError,De.getQuerySuggestionsId,De.isComponentActive,De.handleTransformResponse,De.executeQueryListener,De.updateStoreConfig,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.setValue=function(e,t,n,o,i,a,s,u,l){return function(c,p){var d=p(),h=d.urlValues,f=d.selectedValues,g=d.watchMan,m=d.props,y=l;(0,be.isEqual)(h[e],t)&&(y="URL");var v={},b=[R.componentTypes.reactiveList,R.componentTypes.reactiveMap].includes(m[e]&&m[e].componentType),O=f[e]&&f[e].value;if(!(0,be.isEqual)(O,t)&&m[e]&&!b){var w=[e],S=g[e]||[];(w=[].concat(r(w),r(S))).forEach((function(e){var t=m[e];"URL"!==y&&t&&[R.componentTypes.reactiveList,R.componentTypes.reactiveMap].includes(t.componentType)&&null!==f[e]&&(v[e]=null)}))}b&&t<2&&(!O||O<2)||c({type:C.SET_VALUE,component:e,reference:y,value:t,label:n,showFilter:o,URLParams:i,componentType:a,category:s,meta:u,componentsToReset:v})}},t.resetValuesToDefault=function(e){return function(t,r){var o=r(),i=o.selectedValues,a=o.props,s={},u=void 0;Object.keys(i).forEach((function(t){Array.isArray(e)&&e.includes(t)||(a[t]&&a[t].componentType&&a[t].defaultValue?[R.componentTypes.rangeSlider,R.componentTypes.rangeInput,R.componentTypes.ratingsFilter,R.componentTypes.dateRange].includes(a[t].componentType)?u="object"==typeof a[t].defaultValue?[a[t].defaultValue.start,a[t].defaultValue.end]:null:[R.componentTypes.multiDropdownList,R.componentTypes.multiDataList,R.componentTypes.multiList,R.componentTypes.singleDataList,R.componentTypes.singleDropdownList,R.componentTypes.singleList,R.componentTypes.tagCloud,R.componentTypes.toggleButton,R.componentTypes.multiDropdownRange,R.componentTypes.multiRange,R.componentTypes.singleDropdownRange,R.componentTypes.singleRange,R.componentTypes.dataSearch,R.componentTypes.datePicker,R.componentTypes.treeList].includes(a[t].componentType)?u=a[t].defaultValue:[R.componentTypes.categorySearch].includes(a[t].componentType)&&(u=a[t].defaultValue?a[t].defaultValue.term:""):u=null,(0,be.isEqual)(i[t].value,u)||(s=n({},s,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,n({},i[t],{value:u})))))})),t({type:C.RESET_TO_DEFAULT,defaultValues:s})}},t.setInternalValue=function(e,t,n,r,o){return{type:C.SET_INTERNAL_VALUE,component:e,value:t,componentType:n,category:r,meta:o}},t.patchValue=function(e,t){return{type:C.PATCH_VALUE,component:e,payload:t}},t.clearValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:C.CLEAR_VALUES,resetValues:e,clearAllBlacklistComponents:t}},t.setValues=function(e){return function(t){t((0,De.updateStoreConfig)({queryLockConfig:{initialTimestamp:(new Date).getTime(),lockTime:300}})),t({type:C.SET_VALUES,componentsValues:e})}}})));r(Ne);Ne.setValue,Ne.resetValuesToDefault,Ne.setInternalValue,Ne.patchValue,Ne.clearValues;var Ue=Ne.setValues,qe=o((function(e,t){function n(e,t,n){return{type:C.SET_MAP_DATA,componentId:e,query:t,persistMapQuery:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateMapData=n,t.setMapData=function(e,t,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return function(s){if(s(n(e,t,r)),s((0,Ne.setInternalValue)((0,Re.getInternalComponentID)(e),void 0,void 0,void 0,i)),o){s((0,We.executeQuery)(e,!1,!0,R.componentTypes.reactiveMap,{},a))}}},t.setMapResults=function(e,t){var n=t.center,r=t.zoom,o=t.markers;return{type:C.SET_MAP_RESULTS,componentId:e,payload:{center:n,zoom:r,markers:o}}}}));r(qe);qe.updateMapData,qe.setMapData,qe.setMapResults;var Be=o((function(e,t){var r="undefined"!=typeof self?self:n,o=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=l(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[l(e)]},d.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},d.prototype.set=function(e,t){this.map[l(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function O(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];C.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new C(o,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=d,e.Request=b,e.Response=C),t.Headers=d,t.Request=b,t.Response=C,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t})),ze=r(Be),He=(Be.fetch,Be.Headers,Be.Request,Be.Response,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(n=Be)&&n.__esModule?n:{default:n};t.default=function(e){var t=e.graphQLUrl,n=e.url,i=e.credentials,a=e.app,s=e.query,u=e.headers,l=i?n.replace("//","//"+i+"@"):n;return(0,o.default)(t,{method:"POST",body:'\n\t\t\tquery{\n\t\t\t\telastic77(host: "'+l+'"){\n\t\t\t\t\tmsearch(\n\t\t\t\t\t\tindex: "'+a+'"\n\t\t\t\t\t\tbody: '+JSON.stringify(s.map((function(e){return JSON.stringify(e)})))+"\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t",headers:r({},u,{"Content-Type":"application/graphql"})}).then((function(e){return e.json()})).then((function(e){return e.data.elastic77.msearch})).catch((function(e){console.error(e)}))}}))),Ge=r(He),We=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.loadPopularSuggestions=u,t.executeQuery=h,t.setQueryOptions=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){r((0,Ie.updateQueryOptions)(e,t)),n&&r(h(e,!0))}},t.updateQuery=function(e){var t=e.componentId,n=e.query,r=e.value,o=e.label,i=void 0===o?null:o,a=e.showFilter,s=void 0===a||a,u=e.URLParams,l=void 0!==u&&u,c=e.componentType,p=void 0===c?null:c,d=e.category,f=void 0===d?null:d,g=e.meta,m=void 0===g?{}:g,y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],v=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(e){var o=n;n&&n.query&&(o=n.query),t.endsWith("__internal")?e((0,Ne.setInternalValue)(t,r,p,f,m)):(e((0,Ne.setValue)(t,r,i,s,l,p,f,m)),v&&(p===R.componentTypes.dynamicRangeSlider?e((0,Ne.setInternalValue)((0,Re.getHistogramComponentID)(t),r,p,f,m)):e((0,Ne.setInternalValue)(t+"__internal",r,p,f,m)))),e((0,Ie.setQuery)(t,o)),y&&e(h(t,!0,!1,p))}},t.loadMore=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(i,s){var u=s(),l=(0,be.buildQuery)(e,u.dependencyTree,u.queryList,u.queryOptions),d=l.queryObj,h=l.options,f=u.queryLog;h||(h={}),h=n({},h,t),(!d||d&&!Object.keys(d).length)&&(d={match_all:{}});var g=n({query:n({},d)},h);if(!(0,be.compareQueries)(f[e],g))if(i((0,Ie.logQuery)(e,g)),u.config&&u.config.enableAppbase){var m,y=u.props[e]||{},v=y.aggregationField;Re.componentToTypeMap[y.componentType]===R.queryTypes.term&&(v=y.dataField);var b=(0,Re.getRSQuery)(e,(0,Re.extractPropsFromState)(u,e,{from:h.from,after:u.aggregations[e]&&u.aggregations[e][v]&&u.aggregations[e][v].after_key||void 0}));m=n(a({},e,b),(0,Re.getDependentQueries)(s(),e,[])),i(p({query:Object.keys(m).map((function(e){return m[e]})),orderOfQueries:[e],appendToHits:r,appendToAggs:o}))}else{i(c([{preference:u.config&&u.config.analyticsConfig&&u.config.analyticsConfig.userId?u.config.analyticsConfig.userId+"_"+e:e},g],[e],r,!1,o))}}},t.loadDataToExport=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(a,u){var l=u(),c=l.appbaseRef,p=l.lastUsedAppbaseQuery[t];if(p){var d=p.map((function(e){if(e.id===t){var i=n({},e,{deepPaginationConfig:{cursor:r},deepPagination:!0,size:o<1e3?o:1e3,sortField:"_id",sortBy:"asc"});return delete i.from,i}return e}));return o&&Array.isArray(i)&&o<=i.length?i:c.reactiveSearchv3(d).then((function(n){var r=n[t].hits.hits;return Array.isArray(r)&&0!==r.length?a(e(t,r[r.length-1]._id,n[t].hits.total.value,[].concat(s(i),s(r)))):i})).catch((function(e){console.error("Error fetching data to export! ",e)}))}return console.error("Error fetching data to export!")}};var r=i(M),o=i(He);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e){return function(t,n){var r=n(),o=r.config,i=r.appbaseRef,a=r.props,s=r.internalValues,u=o&&o.enableAppbase,l=a[e]||{},c=s[e],p=c&&c.value||"";if(u&&(l.enablePopularSuggestions||l.enableQuerySuggestions)){if(o.mongodb)return void t((0,Ie.setDefaultPopularSuggestions)([],e.split("__internal")[0]));var d=(0,De.getSuggestionQuery)(n,e);i.getQuerySuggestions(d).then((function(n){var r=n[(0,De.getQuerySuggestionsId)(e)];t(p?(0,Ie.setPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]):(0,Ie.setDefaultPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]))})).catch((function(r){(0,De.handleError)({orderOfQueries:[e],error:r},n,t)}))}}}var l=function(e,t){if(e&&"function"==typeof e){var n=e(t);return n instanceof Promise?n:Promise.resolve(n)}return Promise.resolve(t)};function c(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments[5];return function(c,p){var d=p(),h=d.appbaseRef,f=d.config,g=d.headers,m=d.analytics,y=d.selectedValues,v={},b=[R.componentTypes.dataSearch,R.componentTypes.categorySearch],O=a&&-1!==b.indexOf(u);if(f.analytics){if(f.analyticsConfig.suggestionAnalytics&&O){var C=m.suggestionsSearchValue;!(!f.analyticsConfig.emptyQuery&&!C)&&(v={"X-Search-Query":C||""})}else{var w=m.searchValue,S=m.searchId,$=(0,r.default)(y);if(S)v=n({"X-Search-Id":S,"X-Search-Query":w||""},$&&{"X-Search-Filters":$});else{var _=!(!f.analyticsConfig.emptyQuery&&!w);v=n(_&&{"X-Search-Query":w||""},$&&{"X-Search-Filters":$})}}f.analyticsConfig.userId&&(v["X-User-Id"]=f.analyticsConfig.userId),f.analyticsConfig.customEvents&&(v["X-Search-CustomEvent"]=(0,M.parseCustomEvents)(f.analyticsConfig.customEvents))}if(t.forEach((function(e){c((0,Ie.setLoading)(e,!0)),c((0,Ie.setError)(e,null))})),f.graphQLUrl){var k={graphQLUrl:f.graphQLUrl,url:f.url,credentials:f.credentials,app:f.app,query:e,headers:g};l(h.transformRequest,k).then((function(e){(0,o.default)(e).then((function(e){(0,De.handleResponseMSearch)({res:e,isSuggestionsQuery:O,orderOfQueries:t,appendToHits:i,appendToAggs:s},p,c)})).catch((function(e){(0,De.handleError)({orderOfQueries:t,error:e},p,c)}))})).catch((function(e){(0,De.handleError)({orderOfQueries:t,error:e},p,c)}))}else h.setHeaders(n({},g,v)),h.msearch({type:"*"===f.type?"":f.type,body:e}).then((function(e){(0,De.handleResponseMSearch)({res:e,isSuggestionsQuery:O,orderOfQueries:t,appendToHits:i,appendToAggs:s},p,c)})).catch((function(e){(0,De.handleError)({orderOfQueries:t,error:e},p,c)}))}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.queryId,r=e.query,o=e.orderOfQueries,i=e.appendToHits,a=void 0!==i&&i,s=e.isSuggestionsQuery,l=void 0!==s&&s,c=e.searchComponentID,p=e.appendToAggs,d=void 0!==p&&p;return function(e,i){var s=i(),p=s.appbaseRef,h=s.config,f=s.headers,g=!1;h&&((0,De.isPropertyDefined)(h.analytics)?g=h.analytics:h.analyticsConfig&&((0,De.isPropertyDefined)(h.analyticsConfig.recordAnalytics)?g=h.analyticsConfig.recordAnalytics:(0,De.isPropertyDefined)(h.analyticsConfig.analytics)&&(g=h.analyticsConfig.analytics)));var m={recordAnalytics:g};h.analyticsConfig&&(m.userId=(0,De.isPropertyDefined)(h.analyticsConfig.userId)?h.analyticsConfig.userId:void 0,m.enableQueryRules=(0,De.isPropertyDefined)(h.analyticsConfig.enableQueryRules)?h.analyticsConfig.enableQueryRules:void 0,m.customEvents=(0,De.isPropertyDefined)(h.analyticsConfig.customEvents)?h.analyticsConfig.customEvents:void 0,m.emptyQuery=(0,De.isPropertyDefined)(h.analyticsConfig.emptyQuery)?h.analyticsConfig.emptyQuery:void 0,m.enableSearchRelevancy=(0,De.isPropertyDefined)(h.analyticsConfig.enableSearchRelevancy)?h.analyticsConfig.enableSearchRelevancy:void 0,m.suggestionAnalytics=(0,De.isPropertyDefined)(h.analyticsConfig.suggestionAnalytics)?h.analyticsConfig.suggestionAnalytics:void 0,m.useCache=(0,De.isPropertyDefined)(h.analyticsConfig.useCache)?h.analyticsConfig.useCache:void 0),o.forEach((function(t){e((0,Ie.setLoading)(t,!0)),e((0,Ie.setError)(t,null))})),p.setHeaders(n({},f)),l&&c&&e(u(c)),p.reactiveSearchv3(r,m).then((function(n){(0,De.handleResponse)({res:n,orderOfQueries:o,appendToHits:a,appendToAggs:d,query:r,queryId:t},i,e)})).catch((function(n){(0,De.handleError)({orderOfQueries:o,error:n,queryId:t},i,e)}))}}var d=[];function h(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments[3],i=arguments[4],u=arguments[5];return function(l,h){var f=h(),g=f.queryLog,m=f.config,y=f.mapData,v=f.watchMan,b=f.dependencyTree,O=f.queryList,C=f.queryOptions,w=f.queryListener,S=f.props,$=f.internalValues,_=f.lock,k=m.initialQueriesSyncTime,P=m.initialTimestamp,E=u||(new Date).getTime();m.queryLockConfig instanceof Object&&(k=m.queryLockConfig.lockTime,P=m.queryLockConfig.initialTimestamp);var T=[e],I=[],A={},x=[],L=m&&m.enableAppbase;if(t){var j=v[e]||[];T=[].concat(s(T),s(j))}var M={match_all:{}};if(T.forEach((function(t){var o=(0,be.buildQuery)(t,b,O,C),u=o.queryObj,c=o.options,p=["aggs","from","sort"];if(u&&Object.keys(u).length||c&&Object.keys(c).some((function(e){return p.includes(e)}))){(!u||u&&!Object.keys(u).length)&&(u=n({},M));var d=n({query:n({},u)},c,C[t]),f=n({query:n({},u)},c,C[t]),v=g[t];if(r||!(0,be.compareQueries)(d,v,!1)){x=[].concat(s(x),[t]);var _=Object.keys(y).includes(t);if(_&&l((0,Ie.setLastUsedAppbaseQuery)(a({},t,{queryId:E}))),l((0,Ie.logQuery)(t,f)),_&&y[t].query){var k=d.query;d.query={bool:{must:[k,y[t].query]}},y[t].persistMapQuery||l((0,qe.updateMapData)(e,null,!1));var P=h().combinedLog;if((0,be.compareQueries)(P[t],d))return;l((0,Ie.logCombinedQuery)(t,d))}if((0,De.executeQueryListener)(w[t],v,d),L){var T=void 0,R=e.endsWith("__internal"),j=S[e];R&&j&&(0,Re.isSearchComponent)(j.componentType)&&(T=$[e]&&$[e].value);var Q=(0,Re.getRSQuery)(t,(0,Re.extractPropsFromState)(h(),t,n({},T?{value:T}:null,i?{from:i.from}:null)));if(Q&&(A=n({},A,a({},t,Q),(0,Re.getDependentQueries)(h(),t,x))),_){var V=(0,Re.getInternalComponentID)(t),D=(0,Re.getRSQuery)(V,(0,Re.extractPropsFromState)(h(),V,i?{from:i.from}:null));D&&(A[V]=n({},D,{execute:!1}))}}else{var F=m&&m.analyticsConfig&&m.analyticsConfig.userId?m.analyticsConfig.userId+"_"+t:t;I=[].concat(s(I),[{preference:F},d])}}}})),L&&(I=Object.keys(A).map((function(e){return A[e]}))),I.length)if(L){var Q=[R.componentTypes.dataSearch,R.componentTypes.categorySearch],V=e.endsWith("__internal")&&-1!==Q.indexOf(o);(new Date).getTime()-P<k?(_&&!m.queryLockConfig||setTimeout((function(){var e=[],t=!1,r="",o={},i={},a={};d.forEach((function(u){t||(t=u.isSuggestionsQuery),r||(r=u.searchComponentID),Array.isArray(u.query)&&u.query.forEach((function(e){e.execute&&(a[e.id]=e.execute);var t=e;if(a[e.id]&&(t.execute=!0),i[e.id]&&i[e.id].type===R.queryTypes.suggestion&&t.type!==R.queryTypes.suggestion)return i[e.id+"__suggestion_type"]=n({},i[e.id]),void(i[e.id]=n({},t,{execute:!1}));i[e.id]=t})),Array.isArray(u.orderOfQueries)&&u.orderOfQueries.forEach((function(t){o[t.id]?o[t.id]=!0:e=[t].concat(s(e))}))}));var u=Object.values(i);u.length&&l(p({query:u,orderOfQueries:e,isSuggestionsQuery:t,searchComponentID:r})),d=[],l((0,De.updateStoreConfig)({queryLockConfig:void 0}))}),k),l((0,De.updateStoreConfig)({lock:!0})),d.push({query:I,orderOfQueries:x,isSuggestionsQuery:V,searchComponentID:e})):l(p({queryId:E,query:I,orderOfQueries:x,isSuggestionsQuery:V,searchComponentID:e}))}else l(c(I,x,!1,e.endsWith("__internal"),void 0,o))}}}));r(We);We.loadPopularSuggestions,We.executeQuery,We.setQueryOptions,We.updateQuery,We.loadMore,We.loadDataToExport;var Ze=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addComponent=function(e){return{type:C.ADD_COMPONENT,component:e}},t.removeComponent=function(e){return{type:C.REMOVE_COMPONENT,component:e}},t.watchComponent=function(e,t){return function(n){n(function(e,t){return{type:C.WATCH_COMPONENT,component:e,react:t}}(e,t)),n((0,We.executeQuery)(e))}}}));r(Ze);Ze.addComponent,Ze.removeComponent,Ze.watchComponent;var Ke=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.setComponentProps=function(e,t,o){return{type:C.SET_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.updateComponentProps=function(e,t,o){return{type:C.UPDATE_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.removeComponentProps=function(e){return{type:C.REMOVE_PROPS,component:e}};var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach((function(n){R.validProps.includes(n)&&(t[n]=e[n])})),t}}));r(Ke);Ke.setComponentProps,Ke.updateComponentProps,Ke.removeComponentProps;var Ye=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.url,o=e.app,i=e.credentials,a=e.headers,s=e.documentId,u=e.clickPosition,l=e.queryId,c=e.clickType;s?fetch(t+"/"+o+"/_analytics/click",{method:"PUT",body:JSON.stringify({query_id:l,click_type:c||"result",click_on:r({},s,u+1)}),headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(i)})}):console.warn("ReactiveSearch: document id is required to record the click analytics")}t.setSuggestionsSearchValue=function(e){return{type:C.SET_SUGGESTIONS_SEARCH_VALUE,value:e}},t.clearSuggestionsSearchValue=function(){return{type:C.CLEAR_SUGGESTIONS_SEARCH_VALUE}},t.updateAnalyticsConfig=function(e){return{type:C.UPDATE_ANALYTICS_CONFIG,analyticsConfig:e}},t.getRecentSearches=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:5,minChars:3};return function(t,r){var o=r(),i=o.config,a=o.headers,s=o.appbaseRef,u=s.url,l=s.protocol,c=s.credentials,p=i.app,d=i.mongodb,h=(l+"://"+u||"").replace(/\/+$/,""),f={headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(c)})},g="",m=function(e,t){g+=g?"&"+e+"="+t:e+"="+t};return i.analyticsConfig&&i.analyticsConfig.userId&&m("user_id",i.analyticsConfig.userId),e&&(e.size&&m("size",String(e.size)),e.from&&m("from",e.from),e.to&&m("to",e.to),e.minChars&&m("min_chars",String(e.minChars)),e.customEvents&&Object.keys(e.customEvents).forEach((function(t){m(t,e.customEvents[t])}))),d?t({type:C.RECENT_SEARCHES_SUCCESS,data:[]}):fetch(h+"/_analytics/"+p+"/recent-searches?"+g,f).then((function(e){return e.status>=500||e.status>=400?t({type:C.RECENT_SEARCHES_ERROR,error:e}):e.json().then((function(e){return t({type:C.RECENT_SEARCHES_SUCCESS,data:e})})).catch((function(e){return t({type:C.RECENT_SEARCHES_ERROR,error:e})}))})).catch((function(e){return t({type:C.RECENT_SEARCHES_ERROR,error:e})}))}},t.recordResultClick=function(e,t){return function(r,i){var a=i(),s=a.config,u=a.analytics.searchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=s.app,g=d+"://"+p;if(s.analytics&&u){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Click":!0,"X-Search-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,queryId:u})}}},t.recordSuggestionClick=function(e,t){return function(r,i){var a=i(),s=a.config,u=a.analytics.suggestionsSearchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=s.app,g=d+"://"+p;if(s.analytics&&(void 0===s.analyticsConfig||void 0===s.analyticsConfig.suggestionAnalytics||s.analyticsConfig.suggestionAnalytics)&&u&&void 0!==e){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Suggestions-Click":!0,"X-Search-Suggestions-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,clickType:"suggestion",queryId:u})}}},t.recordImpressions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(r,o){var i=o(),a=i.config.app,s=i.headers,u=i.appbaseRef,l=u.url,c=u.protocol,p=u.credentials,d=(c+"://"+l).replace(/\/+$/,"");!d.includes("scalr.api.appbase.io")&&e&&t.length&&fetch(d+"/"+a+"/_analytics/search",{method:"PUT",body:JSON.stringify({query_id:e,impressions:t}),keepalive:!0,headers:n({},s,{"Content-Type":"application/json",Authorization:"Basic "+btoa(p)})})}}}));r(Ye);Ye.setSuggestionsSearchValue,Ye.clearSuggestionsSearchValue;var Xe=Ye.updateAnalyticsConfig,Je=(Ye.getRecentSearches,Ye.recordResultClick,Ye.recordSuggestionClick,Ye.recordImpressions,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(Ze).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ze[e]}})})),Object.keys(Te).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Te[e]}})})),Object.keys(qe).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return qe[e]}})})),Object.keys(We).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return We[e]}})})),Object.keys(Ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ne[e]}})})),Object.keys(Ke).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ke[e]}})})),Object.keys(Ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ye[e]}})})),Object.keys(Ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ie[e]}})}))})));if(r(Je),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}},configurable:!0,writable:!0}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=this.length-e.length;return t>=0&&this.lastIndexOf(e)===t}),"function"!=typeof Event){"undefined"!=typeof window&&(window.Event=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t})}var et=Object.freeze({__proto__:null}),tt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={ENTER_PRESS:"ENTER_PRESS",SUGGESTION_SELECT:"SUGGESTION_SELECT",CLEAR_VALUE:"CLEAR_VALUE",SEARCH_ICON_CLICK:"SEARCH_ICON_CLICK"};t.default=n}));r(tt);var nt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.constants=t.Reducers=t.polyfills=t.storeKey=t.Actions=t.suggestions=t.causes=t.helper=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=n({},e,{config:n({},e.config,{lock:!1,analyticsConfig:e.config&&e.config.analyticsConfig?n({},M.defaultAnalyticsConfig,e.config.analyticsConfig):M.defaultAnalyticsConfig})});return(0,v.createStore)(o.default,t,k)};var r=y(O),o=y(fe),i=m(Je),a=m(be),s=y(ye),u=y(R),l=y(et),c=y(tt),p=y(U),d=y(P),h=y(I),f=y(_),g=y(ne);function m(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}function y(e){return e&&e.__esModule?e:{default:e}}var b=C.STORE_KEY,w=s.default,S=c.default,$={valueReducer:p.default,queryOptionsReducer:h.default,queryReducer:d.default,dependencyTreeReducer:f.default,propsReducer:g.default};t.helper=a,t.causes=S,t.suggestions=w,t.Actions=i,t.storeKey=b,t.polyfills=l.default,t.Reducers=$,t.constants=u.default;var k=("object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):v.compose)((0,v.applyMiddleware)(r.default))})),rt=r(nt),ot=(nt.constants,nt.Reducers,nt.polyfills,nt.storeKey,nt.Actions),it=(nt.suggestions,nt.causes),at=nt.helper;function st(){
7
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
8
- st=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var c={};function p(){}function d(){}function h(){}var f={};s(f,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g($([])));m&&m!==t&&n.call(m,o)&&(f=m);var y=h.prototype=p.prototype=Object.create(f);function v(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,s){var u=l(e[o],e,i);if("throw"!==u.type){var c=u.arg,p=c.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function O(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function w(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function $(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return d.prototype=h,s(y,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},v(b.prototype),s(b.prototype,i,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},v(y),s(y,a,"Generator"),s(y,o,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=$,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:$(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function ut(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ct(){return(ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dt(e,t)}function dt(e,t){return(dt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ht(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function ft(e,t){return t||(t=e.slice(0)),e.raw=t,e}function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yt(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}
9
- /*!
10
- * isobject <https://github.com/jonschlinkert/isobject>
11
- *
12
- * Copyright (c) 2014-2017, Jon Schlinkert.
13
- * Released under the MIT License.
14
- */
6
+ !function(t,n,r,o){var a=["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds","Day","Year"],s=["Years","Months","Days"],i=[12,31,24,60,60,1e3,1],u=new RegExp("(([a-zA-Z])\\2*)|(\\((('.*?'|\\(.*?\\)|.)*?)\\))|('(.*?)')"),l=t.UTC,c=t.prototype.toUTCString,p=d.prototype;function d(){return h(this instanceof d?this:new d,arguments)}function h(e,n){var r,o=n.length;if(j(n[o-1])&&(r=n[--o],n=A(n,0,o)),o)if(1==o){var a=n[0];a instanceof t?e[0]=new t(a.getTime()):!function(e){return"number"==typeof e}(a)?a instanceof d?e[0]=function(e){var n=new t(e[0].getTime());f(e)&&(n.toString=c);return n}(a):V(a)&&(e[0]=new t(0),e=function(e,n,r){for(var o,a=d.parsers,s=0;s<a.length;s++)if(o=a[s](e,n,r))return o;return r[0]=new t(e),r}(a,r||!1,e)):e[0]=new t(a)}else e[0]=new t(l.apply(t,n)),r||(e[0]=R(e[0]));else e[0]=new t;return j(r)&&m(e,r),e}function f(e){return e[0].toString===c}function m(e,n,r){var o;return n?f(e)||(r&&(e[0]=(o=e[0],new t(l(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds())))),e[0].toString=c):f(e)&&(e[0]=r?R(e[0]):new t(e[0].getTime())),e}function g(e,t,n,r,o){var a,s=I(E,e[0],o),i=I(k,e[0],o),u=!1;2==r.length&&j(r[1])&&(u=r[1],r=[n]),a=1==t?(n%12+12)%12:s(1),i(t,r),u&&s(1)!=a&&(i(1,[s(1)-1]),i(2,[x(s(0),s(1))]))}function y(e,t,r){e=e.clone().setUTCMode(!0,!0),t=d(t).setUTCMode(!0,!0);var o=0;if(0==r||1==r){for(var a=6;a>=r;a--)o/=i[a],o+=E(t,!1,a)-E(e,!1,a);1==r&&(o+=12*(t.getFullYear()-e.getFullYear()))}else if(2==r){var s=e.toDate().setUTCHours(0,0,0,0),u=t.toDate().setUTCHours(0,0,0,0);o=n.round((u-s)/864e5)+(t-u-(e-s))/864e5}else o=(t-e)/[36e5,6e4,1e3,1][r-3];return o}function v(e){return function(e,r,o){var a=new t(l(e,r,o)),s=_(b(e,r,o));return n.floor(n.round((a-s)/864e5)/7)+1}(e(0),e(1),e(2))}function b(e,n,r){var o=new t(l(e,n,r));return o<_(e)?e-1:o>=_(e+1)?e+1:e}function _(e){var n=new t(l(e,0,4));return n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+6)%7),n}function $(e,t,n,r){var o=I(E,e,r),a=I(k,e,r);void 0===n&&(n=b(o(0),o(1),o(2)));var s=_(n);r||(s=R(s)),e.setTime(s.getTime()),a(2,[o(2)+7*(t-1)])}function C(e,t,n,r,o){var a=d.locales,s=a[d.defaultLocale]||{},i=I(E,e,o);return n=(V(n)?a[n]:n)||{},O(e,t,(function(e){if(r)for(var t=(7==e?2:e)-1;t>=0;t--)r.push(i(t));return i(e)}),(function(e){return n[e]||s[e]}),o)}function O(e,t,n,r,o){for(var a,s,i="";a=t.match(u);)i+=t.substr(0,a.index),a[1]?i+=S(e,a[1],n,r,o):a[3]?(s=O(e,a[4],n,r,o),parseInt(s.replace(/\D/g,""),10)&&(i+=s)):i+=a[7]||"'",t=t.substr(a.index+a[0].length);return i+t}function S(e,t,n,r,o){for(var a,s=t.length,i="";s>0;)void 0!==(a=w(e,t.substr(0,s),n,r,o))?(i+=a,s=(t=t.substr(s)).length):s--;return i+t}function w(e,t,r,o,a){var s=d.formatters[t];if(V(s))return O(e,s,r,o,a);if("function"==typeof s)return s(e,a||!1,o);switch(t){case"fff":return M(r(6),3);case"s":return r(5);case"ss":return M(r(5));case"m":return r(4);case"mm":return M(r(4));case"h":return r(3)%12||12;case"hh":return M(r(3)%12||12);case"H":return r(3);case"HH":return M(r(3));case"d":return r(2);case"dd":return M(r(2));case"ddd":return o("dayNamesShort")[r(7)]||"";case"dddd":return o("dayNames")[r(7)]||"";case"M":return r(1)+1;case"MM":return M(r(1)+1);case"MMM":return o("monthNamesShort")[r(1)]||"";case"MMMM":return o("monthNames")[r(1)]||"";case"yy":return(r(0)+"").substring(2);case"yyyy":return r(0);case"t":return T(r,o).substr(0,1).toLowerCase();case"tt":return T(r,o).toLowerCase();case"T":return T(r,o).substr(0,1);case"TT":return T(r,o);case"z":case"zz":case"zzz":return a?"Z":function(e,t){var r=e.getTimezoneOffset(),o=r<0?"+":"-",a=n.floor(n.abs(r)/60),s=n.abs(r)%60,i=a;"zz"==t?i=M(a):"zzz"==t&&(i=M(a)+":"+M(s));return o+i}(e,t);case"w":return v(r);case"ww":return M(v(r));case"S":var i=r(2);return i>10&&i<20?"th":["st","nd","rd"][i%10-1]||"th"}}function T(e,t){return e(3)<12?t("amDesignator"):t("pmDesignator")}function P(e){return!isNaN(e[0].getTime())}function E(e,t,n){return e["get"+(t?"UTC":"")+a[n]]()}function k(e,t,n,r){e["set"+(t?"UTC":"")+a[n]].apply(e,r)}function R(e){return new t(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function x(e,n){return 32-new t(l(e,n,32)).getUTCDate()}function Q(e){return function(){return e.apply(void 0,[this].concat(A(arguments)))}}function I(e){var t=A(arguments,1);return function(){return e.apply(void 0,t.concat(A(arguments)))}}function A(e,t,n){return r.prototype.slice.call(e,t||0,void 0===n?e.length:n)}function L(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function V(e){return"string"==typeof e}function j(e){return"boolean"==typeof e}function M(e,t){for(t=t||2,e+="";e.length<t;)e="0"+e;return e}p.length=1,p.splice=r.prototype.splice,p.getUTCMode=Q(f),p.setUTCMode=Q(m),p.getTimezoneOffset=function(){return f(this)?0:this[0].getTimezoneOffset()},L(a,(function(e,t){p["get"+e]=function(){return E(this[0],f(this),t)},8!=t&&(p["getUTC"+e]=function(){return E(this[0],!0,t)}),7!=t&&(p["set"+e]=function(e){return g(this,t,e,arguments,f(this)),this},8!=t&&(p["setUTC"+e]=function(e){return g(this,t,e,arguments,!0),this},p["add"+(s[t]||e)]=function(e,r){return function e(t,r,o,s){o=Number(o);var u=n.floor(o);t["set"+a[r]](t["get"+a[r]]()+u,s||!1),u!=o&&r<6&&e(t,r+1,(o-u)*i[r],s)}(this,t,e,r),this},p["diff"+(s[t]||e)]=function(e){return y(this,e,t)}))})),p.getWeek=function(){return v(I(E,this,!1))},p.getUTCWeek=function(){return v(I(E,this,!0))},p.setWeek=function(e,t){return $(this,e,t,!1),this},p.setUTCWeek=function(e,t){return $(this,e,t,!0),this},p.addWeeks=function(e){return this.addDays(7*Number(e))},p.diffWeeks=function(e){return y(this,e,2)/7},d.parsers=[function(e,n,r){var o=e.match(/^(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/);if(o){var a=new t(l(o[1],o[3]?o[3]-1:0,o[5]||1,o[7]||0,o[8]||0,o[10]||0,o[12]?1e3*Number("0."+o[12]):0));return o[13]?o[14]&&a.setUTCMinutes(a.getUTCMinutes()+("-"==o[15]?1:-1)*(60*Number(o[16])+(o[18]?Number(o[18]):0))):n||(a=R(a)),r.setTime(a.getTime())}}],d.parse=function(e){return+d(""+e)},p.toString=function(e,t,n){return void 0!==e&&P(this)?C(this,e,t,n,f(this)):this[0].toString()},p.toUTCString=p.toGMTString=function(e,t,n){return void 0!==e&&P(this)?C(this,e,t,n,!0):this[0].toUTCString()},p.toISOString=function(){return this.toUTCString("yyyy-MM-dd'T'HH:mm:ss(.fff)zzz")},d.defaultLocale="",d.locales={"":{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],amDesignator:"AM",pmDesignator:"PM"}},d.formatters={i:"yyyy-MM-dd'T'HH:mm:ss(.fff)",u:"yyyy-MM-dd'T'HH:mm:ss(.fff)zzz"},L(["getTime","valueOf","toDateString","toTimeString","toLocaleString","toLocaleDateString","toLocaleTimeString","toJSON"],(function(e){p[e]=function(){return this[0][e]()}})),p.setTime=function(e){return this[0].setTime(e),this},p.valid=Q(P),p.clone=function(){return new d(this)},p.clearTime=function(){return this.setHours(0,0,0,0)},p.toDate=function(){return new t(this[0].getTime())},d.now=function(){return(new t).getTime()},d.today=function(){return(new d).clearTime()},d.UTC=l,d.getDaysInMonth=x,e.exports&&(e.exports=d)}(Date,Math,Array)})),transform=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.transformValueToComponentStateFormat=t.getDependentQueries=t.extractPropsFromState=t.getValidInterval=t.getRSQuery=t.hasPaginationSupport=t.isComponentUsesLabelAsValue=t.isSearchComponent=t.isDRSRangeComponent=t.getHistogramComponentID=t.getInternalComponentID=t.isInternalComponent=t.getNormalizedField=t.componentToTypeMap=void 0;var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.flatReactProp=S;var o=s(xdate),a=s(dateFormats_1);function s(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=t.componentToTypeMap=(u(n={},constants$1.componentTypes.reactiveList,constants$1.queryTypes.search),u(n,constants$1.componentTypes.dataSearch,constants$1.queryTypes.search),u(n,constants$1.componentTypes.categorySearch,constants$1.queryTypes.search),u(n,constants$1.componentTypes.searchBox,constants$1.queryTypes.suggestion),u(n,constants$1.componentTypes.singleList,constants$1.queryTypes.term),u(n,constants$1.componentTypes.multiList,constants$1.queryTypes.term),u(n,constants$1.componentTypes.singleDataList,constants$1.queryTypes.term),u(n,constants$1.componentTypes.singleDropdownList,constants$1.queryTypes.term),u(n,constants$1.componentTypes.multiDataList,constants$1.queryTypes.term),u(n,constants$1.componentTypes.multiDropdownList,constants$1.queryTypes.term),u(n,constants$1.componentTypes.tagCloud,constants$1.queryTypes.term),u(n,constants$1.componentTypes.toggleButton,constants$1.queryTypes.term),u(n,constants$1.componentTypes.reactiveChart,constants$1.queryTypes.term),u(n,constants$1.componentTypes.treeList,constants$1.queryTypes.term),u(n,constants$1.componentTypes.numberBox,constants$1.queryTypes.term),u(n,constants$1.componentTypes.datePicker,constants$1.queryTypes.range),u(n,constants$1.componentTypes.dateRange,constants$1.queryTypes.range),u(n,constants$1.componentTypes.dynamicRangeSlider,constants$1.queryTypes.range),u(n,constants$1.componentTypes.singleDropdownRange,constants$1.queryTypes.range),u(n,constants$1.componentTypes.multiDropdownRange,constants$1.queryTypes.range),u(n,constants$1.componentTypes.singleRange,constants$1.queryTypes.range),u(n,constants$1.componentTypes.multiRange,constants$1.queryTypes.range),u(n,constants$1.componentTypes.rangeSlider,constants$1.queryTypes.range),u(n,constants$1.componentTypes.ratingsFilter,constants$1.queryTypes.range),u(n,constants$1.componentTypes.rangeInput,constants$1.queryTypes.range),u(n,constants$1.componentTypes.geoDistanceDropdown,constants$1.queryTypes.geo),u(n,constants$1.componentTypes.geoDistanceSlider,constants$1.queryTypes.geo),u(n,constants$1.componentTypes.reactiveMap,constants$1.queryTypes.geo),n),c=[constants$1.componentTypes.multiRange,constants$1.componentTypes.multiDropdownRange],p=[constants$1.componentTypes.dateRange,constants$1.componentTypes.datePicker],d=[constants$1.componentTypes.categorySearch,constants$1.componentTypes.dataSearch,constants$1.componentTypes.searchBox],h=[constants$1.componentTypes.singleList,constants$1.componentTypes.multiList,constants$1.componentTypes.singleDropdownList,constants$1.componentTypes.multiDropdownList],f=t.getNormalizedField=function(e){return e&&!Array.isArray(e)?[e]:e},m=t.isInternalComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__internal")},g=t.getInternalComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__internal"},y=t.getHistogramComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__histogram__internal"},v=t.isDRSRangeComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__range__internal")},b=t.isSearchComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.includes(e)},_=t.isComponentUsesLabelAsValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e===constants$1.componentTypes.multiDataList||e===constants$1.componentTypes.singleDataList||e===constants$1.componentTypes.tabDataList},$=t.hasPaginationSupport=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return h.includes(e)},C=t.getRSQuery=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&e){var o=t.type?t.type:l[t.componentType];if(!b(t.componentType)&&!t.dataField)return null;var a=void 0;return t.endpoint instanceof Object&&(a=t.endpoint),r({id:e,type:o||constants$1.queryTypes.search,dataField:f(t.dataField),execute:n,react:t.react,highlight:t.highlight,highlightField:f(t.highlightField),fuzziness:t.fuzziness,searchOperators:t.searchOperators,includeFields:t.includeFields,excludeFields:t.excludeFields,size:t.size,aggregationSize:t.aggregationSize,from:t.from,queryFormat:t.queryFormat,sortBy:t.sortBy,fieldWeights:f(t.fieldWeights),includeNullValues:t.includeNullValues,aggregationField:t.aggregationField||void 0,categoryField:t.categoryField||void 0,missingLabel:t.missingLabel||void 0,showMissing:t.showMissing,nestedField:t.nestedField||void 0,interval:t.interval,highlightConfig:t.customHighlight||t.highlightConfig,customQuery:t.customQuery,defaultQuery:t.defaultQuery,value:t.value,categoryValue:t.categoryValue||void 0,after:t.after||void 0,aggregations:t.aggregations||void 0,enableSynonyms:t.enableSynonyms,selectAllLabel:t.selectAllLabel,pagination:t.pagination,queryString:t.queryString,distinctField:t.distinctField,distinctFieldConfig:t.distinctFieldConfig,index:t.index},o===constants$1.queryTypes.suggestion?r({enablePopularSuggestions:t.enablePopularSuggestions,enableEndpointSuggestions:t.enableEndpointSuggestions,enableRecentSuggestions:t.enableRecentSuggestions,popularSuggestionsConfig:t.popularSuggestionsConfig,recentSuggestionsConfig:t.recentSuggestionsConfig,applyStopwords:t.applyStopwords,customStopwords:t.customStopwords,enablePredictiveSuggestions:t.enablePredictiveSuggestions,featuredSuggestionsConfig:t.featuredSuggestionsConfig,indexSuggestionsConfig:t.indexSuggestionsConfig,enableFeaturedSuggestions:t.enableFeaturedSuggestions,enableIndexSuggestions:t.enableIndexSuggestions},t.searchboxId?{searchboxId:t.searchboxId}:{}):{},{calendarInterval:t.calendarInterval,endpoint:a,range:t.range})}return null},O=(t.getValidInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Math.ceil((t.end-t.start)/100)||1;return e?e<n?n:e:n},t.extractPropsFromState=function(e,t,n){var s=e.props[t];if(!s)return null;var i=s.type?s.type:l[s.componentType],u=e.selectedValues[t],d=null!=u?u.value:void 0,h=s.queryFormat,f=void 0,m=s.interval,C=i,O=s.dataField,S=s.aggregations,w=void 0,T=s.from,P=void 0;if(i===constants$1.queryTypes.term)if(s.showLoadMore&&$(s.componentType)&&(w=!0),null!=d&&"object"==typeof d&&d.value)d=d.value;else if(Array.isArray(d)){var E=[];d.forEach((function(e){null!=e&&"object"==typeof e&&e.value?E.push(e.value):E.push(e)})),d=E}if(i===constants$1.queryTypes.range){if(Array.isArray(d))d=c.includes(s.componentType)?d.map((function(e){return{start:e.start,end:e.end}})):{start:d[0],end:d[1]};else if(s.showHistogram){var k=g(t),R=e.internalValues[k];if(!R){var x=y(t);R=e.internalValues[x]}R&&Array.isArray(R.value)&&(d={start:R.value[0],end:R.value[1]})}if(v(t)?S=["min","max"]:s.showHistogram&&(S=["histogram"]),s.componentType===constants$1.componentTypes.dynamicRangeSlider||s.componentType===constants$1.componentTypes.rangeSlider){f=Object.keys(a.default).includes(h)?s.calendarInterval:void 0,d&&(d=(0,helper.isValidDateRangeQueryFormat)(s.queryFormat)?{start:(0,helper.formatDate)(new o.default(d.start),s),end:(0,helper.formatDate)(new o.default(d.end),s)}:{start:parseFloat(d.start),end:parseFloat(d.end)});var Q=void 0;s.componentType===constants$1.componentTypes.dynamicRangeSlider?(Q=e.aggregations[t+"__range__internal"],Q=s.nestedField?Q&&e.aggregations[t+"__range__internal"][s.nestedField].min?{start:e.aggregations[t+"__range__internal"][s.nestedField].min.value,end:e.aggregations[t+"__range__internal"][s.nestedField].max.value}:null:Q&&e.aggregations[t+"__range__internal"].min?{start:e.aggregations[t+"__range__internal"].min.value,end:e.aggregations[t+"__range__internal"].max.value}:null):Q=s.range,Q&&(P=(0,helper.isValidDateRangeQueryFormat)(s.queryFormat)?{start:(0,helper.formatDate)(new o.default(Q.start),s),end:(0,helper.formatDate)(new o.default(Q.end),s)}:{start:parseFloat(Q.start),end:parseFloat(Q.end)})}p.includes(s.componentType)&&d&&(0,helper.isValidDateRangeQueryFormat)(s.queryFormat)&&(d="string"==typeof d?{start:(0,helper.formatDate)(new o.default(d).addHours(-24),s),end:(0,helper.formatDate)(new o.default(d),s)}:Array.isArray(d)?d.map((function(e){return{start:(0,helper.formatDate)(new o.default(e).addHours(-24),s),end:(0,helper.formatDate)(new o.default(e),s)}})):{start:(0,helper.formatDate)(new o.default(d.start).addHours(-24),s),end:(0,helper.formatDate)(new o.default(d.end),s)})}if(i===constants$1.queryTypes.geo){d=void 0;var I=e.selectedValues[t]||e.internalValues[t]||e.internalValues[g(t)];I&&I.meta&&(I.meta.distance&&I.meta.coordinates&&(d={distance:I.meta.distance,location:I.meta.coordinates},s.unit&&(d.unit=s.unit)),I.meta.mapBoxBounds&&I.meta.mapBoxBounds.top_left&&I.meta.mapBoxBounds.bottom_right&&(d={geoBoundingBox:{topLeft:I.meta.mapBoxBounds.top_left[1]+", "+I.meta.mapBoxBounds.top_left[0],bottomRight:I.meta.mapBoxBounds.bottom_right[1]+", "+I.meta.mapBoxBounds.bottom_right[0]}}))}if(s.componentType===constants$1.componentTypes.numberBox&&("exact"===h?C="term":(C="range",d="lte"===h?{end:d,boost:2}:{start:d,boost:2}),h="or"),s.componentType===constants$1.componentTypes.reactiveComponent&&(C="term",O="reactive_component_field",d=void 0),b(s.componentType)&&!d&&(d=""),_(s.componentType)){var A=s.data,L=s.selectAllLabel,V=[];d&&Array.isArray(d)?V=d:d&&"string"==typeof d&&(V=[d]);var j=[];V.length&&A&&Array.isArray(A)&&V.forEach((function(e){var t=A.find((function(t){return t.label===e}));t&&t.value&&j.push(t.value)})),L&&V.length&&V.includes(L)&&(j=V),d=j.length?j:void 0}s.componentType===constants$1.componentTypes.reactiveList&&(d>0&&(T=(d-1)*(s.size||10)),d=void 0);var M=d||void 0;s.componentType===constants$1.componentTypes.searchBox&&Array.isArray(M)&&(M=void 0);var N=void 0;return s.endpoint instanceof Object&&(N=r({},N||{},s.endpoint)),r({},s,{endpoint:N,calendarInterval:f,dataField:O,queryFormat:h,type:C,aggregations:S,interval:m,react:e.dependencyTree?e.dependencyTree[t]:void 0,customQuery:e.customQueries?e.customQueries[t]:void 0,defaultQuery:e.defaultQueries?e.defaultQueries[t]:void 0,customHighlight:e.customHighlightOptions?e.customHighlightOptions[t]:void 0,categoryValue:e.internalValues[t]?e.internalValues[t].category:void 0,value:M,pagination:w,from:T,range:P},n)});function S(e,t){var n=[];return function e(t){t&&Object.keys(t)&&Object.keys(t).forEach((function(r){t[r]&&("string"==typeof t[r]?n=[].concat(i(n),[t[r]]):Array.isArray(t[r])?n=[].concat(i(n),i(t[r])):"object"==typeof t[r]&&e(t[r]))}))}(e),n=n.filter((function(e){return e!==t}))}t.getDependentQueries=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={},a=S(e.dependencyTree[t],t);return a.forEach((function(t){var a=t,s=e.customQueries[a];if(!m(a)){var i=e.selectedValues[a]||e.internalValues[a];if((i&&i.value||s)&&!o[a]){var u=!1;Array.isArray(n)&&n.includes(a)&&(u=!0);var l=e.props[a],c=C(a,O(e,a,r({},l&&r({},l.componentType===constants$1.componentTypes.searchBox?r({},!1===u?{type:constants$1.queryTypes.search}:{},i.category?{categoryValue:i.category}:{categoryValue:void 0},i.value?{value:i.value}:{}):{},l.componentType===constants$1.componentTypes.categorySearch?r({},i.category?{categoryValue:i.category}:{categoryValue:void 0}):{}))),u);c&&(o[a]=c)}}})),o},t.transformValueToComponentStateFormat=function(e,t){var n=t.componentType,a=t.data,s=t.queryFormat,u=e,l={};if(e)switch(n){case constants$1.componentTypes.singleDataList:case constants$1.componentTypes.tabDataList:u="",u=Array.isArray(e)&&"string"==typeof e[0]?e[0]:"object"==typeof e&&e.label?e.label:e;break;case constants$1.componentTypes.multiDataList:u=[],Array.isArray(e)&&e.forEach((function(e){"object"==typeof e&&(e.label||e.value)?u.push(e.label||e.value):"string"==typeof e&&u.push(e)}));break;case constants$1.componentTypes.toggleButton:if(u=[],Array.isArray(e))e.forEach((function(e){if("object"==typeof e&&e.label&&e.value)u.push(e);else if("string"==typeof e){var t=a.find((function(t){return t.label.trim()===e.trim()||t.value.trim()===e.trim()}));u.push(t)}}));else if("object"==typeof e&&e.label&&e.value)u=e.value;else if("string"==typeof e){var c=a.find((function(t){return t.label.trim()===e.trim()||t.value.trim()===e.trim()}));u=c.value}break;case constants$1.componentTypes.singleRange:case constants$1.componentTypes.singleDropdownRange:if(u={},Array.isArray(e)||"object"!=typeof e){if("string"==typeof e){var p=a.find((function(t){return t.label.trim()===e.trim()}));u=r({},p)}}else u=r({},e);break;case constants$1.componentTypes.multiDropdownRange:case constants$1.componentTypes.multiRange:if(u=[],Array.isArray(e))e.forEach((function(e){if("object"==typeof e&&"number"==typeof e.start&&"number"==typeof e.end){var t=r({},e);t.label||(t=a.find((function(t){return t.start===e.start&&t.end===e.end}))),u.push(t)}else if("string"==typeof e){var n=a.find((function(t){return t.label.trim()===e.trim()}));u.push(n)}}));else if("string"==typeof e){var d=a.find((function(t){return t.label.trim()===e.trim()}));u.push(d)}break;case constants$1.componentTypes.rangeSlider:case constants$1.componentTypes.ratingsFilter:case constants$1.componentTypes.dynamicRangeSlider:case constants$1.componentTypes.reactiveChart:u=[],s?Array.isArray(e)?u=e.map((function(e){return(0,helper.formatDate)(new o.default(e),t)})):"object"==typeof e&&(u=[(0,helper.formatDate)(new o.default(e.start),t),(0,helper.formatDate)(new o.default(e.end),t)]):u=Array.isArray(e)?[].concat(i(e)):"object"==typeof e?[e.start,e.end]:e;break;case constants$1.componentTypes.numberBox:u=[],Array.isArray(e)||"object"!=typeof e?"number"==typeof e&&(u=e):u=e.start;break;case constants$1.componentTypes.datePicker:u="","object"!=typeof e?u=new o.default(e).toString("yyyy-MM-dd"):e.end?u=new o.default(e.end).toString("yyyy-MM-dd"):e.start&&(u=new o.default(e.start).addHours(24).toString("yyyy-MM-dd"));break;case constants$1.componentTypes.dateRange:u=[],Array.isArray(e)?u=e.map((function(e){return new o.default(e).toString("yyyy-MM-dd")})):"object"==typeof e&&(u=[new o.default(e.start).toString("yyyy-MM-dd"),new o.default(e.end).toString("yyyy-MM-dd")]);break;case constants$1.componentTypes.categorySearch:u="","object"==typeof e?(u=e.value,void 0!==e.category&&(l.category=e.category)):"string"==typeof e&&(u=e)}return{value:u,meta:l}}}));unwrapExports(transform);var transform_1=transform.transformValueToComponentStateFormat,transform_2=transform.getDependentQueries,transform_3=transform.extractPropsFromState,transform_4=transform.getValidInterval,transform_5=transform.getRSQuery,transform_6=transform.hasPaginationSupport,transform_7=transform.isComponentUsesLabelAsValue,transform_8=transform.isSearchComponent,transform_9=transform.isDRSRangeComponent,transform_10=transform.getHistogramComponentID,transform_11=transform.getInternalComponentID,transform_12=transform.isInternalComponent,transform_13=transform.getNormalizedField,transform_14=transform.componentToTypeMap,transform_15=transform.flatReactProp,hits=createCommonjsModule((function(e,t){function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:constants.UPDATE_AGGS,component:e,aggregations:t,append:n}}function r(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{type:constants.UPDATE_HITS,component:e,hits:t.hits,total:"object"==typeof t.total?t.total.value:t.total,hidden:r,time:n,append:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateAggs=n,t.updateCompositeAggs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:constants.UPDATE_COMPOSITE_AGGS,component:e,aggregations:t,append:n}},t.updateHits=r,t.saveQueryToHits=function(e,t){return{type:constants.SET_QUERY_TO_HITS,component:e,query:t}},t.mockDataForTesting=function(e,t){return function(o){t.hasOwnProperty("error")&&o((0,misc.setError)(e,t.error)),t.hasOwnProperty("aggregations")&&o(n(e,t.aggregations)),t.hasOwnProperty("hits")&&o(r(e,t,t.time||void 0))}}}));unwrapExports(hits);var hits_1=hits.updateAggs,hits_2=hits.updateCompositeAggs,hits_3=hits.updateHits,hits_4=hits.saveQueryToHits,hits_5=hits.mockDataForTesting,misc=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){return{type:constants.SET_RAW_DATA,component:e,response:t}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:constants.SET_PROMOTED_RESULTS,results:e,component:t}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:constants.SET_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:constants.SET_DEFAULT_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:constants.SET_CUSTOM_DATA,data:e,component:t}}t.setRawData=r,t.setLoading=function(e,t){return{type:constants.SET_LOADING,component:e,isLoading:t}},t.setError=function(e,t){return{type:constants.SET_ERROR,component:e,error:t}},t.setTimestamp=function(e,t){return{type:constants.SET_TIMESTAMP,component:e,timestamp:t}},t.setSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:constants.SET_SEARCH_ID,searchId:e}},t.setSuggestionsSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:constants.SET_SUGGESTIONS_SEARCH_ID,searchId:e}},t.setQuery=function(e,t){return{type:constants.SET_QUERY,component:e,query:t}},t.setCustomQuery=function(e,t){return{type:constants.SET_CUSTOM_QUERY,component:e,query:t}},t.setDefaultQuery=function(e,t){return{type:constants.SET_DEFAULT_QUERY,component:e,query:t}},t.setCustomHighlightOptions=function(e,t){return{type:constants.SET_CUSTOM_HIGHLIGHT_OPTIONS,component:e,data:t}},t.updateQueryOptions=function(e,t){return{type:constants.SET_QUERY_OPTIONS,component:e,options:t}},t.logQuery=function(e,t){return{type:constants.LOG_QUERY,component:e,query:t}},t.logCombinedQuery=function(e,t){return{type:constants.LOG_COMBINED_QUERY,component:e,query:t}},t.setHeaders=function(e){return{type:constants.SET_HEADERS,headers:e}},t.setPromotedResults=o,t.setPopularSuggestions=a,t.setDefaultPopularSuggestions=s,t.setCustomData=i,t.setAppliedSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:constants.SET_APPLIED_SETTINGS,data:e,component:t}},t.setQueryListener=function(e,t,n){return{type:constants.SET_QUERY_LISTENER,component:e,onQueryChange:t,onError:n}},t.setGoogleMapScriptLoading=function(e){return{type:constants.SET_GOOGLE_MAP_SCRIPT_LOADING,loading:e}},t.setGoogleMapScriptLoaded=function(e){return{type:constants.SET_GOOGLE_MAP_SCRIPT_LOADED,loaded:e}},t.setGoogleMapScriptError=function(e){return{type:constants.SET_GOOGLE_MAP_SCRIPT_ERROR,error:e}},t.resetStoreForComponent=function(e){return function(t){t(r(e,null)),t(i(null,e)),t(o([],e)),t(a([],e)),t(s([],e)),t((0,hits.updateAggs)(e,null)),t((0,hits.updateCompositeAggs)(e,{})),t((0,hits.updateHits)(e,{hits:[],total:0},0))}},t.setLastUsedAppbaseQuery=function(e){return{type:constants.SET_APPBASE_QUERY,query:e}},t.setSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var r={};Object.keys(e).forEach((function(t){var o=e[t],a=o.value,s=o.componentProps,i=(0,transform.transformValueToComponentStateFormat)(a,s),u=i.value,l=i.meta,c=void 0===l?{}:l;r[t]=n({value:u},c)})),t((0,value.setValues)(r))}}}));unwrapExports(misc);var misc_1=misc.setRawData,misc_2=misc.setLoading,misc_3=misc.setError,misc_4=misc.setTimestamp,misc_5=misc.setSearchId,misc_6=misc.setSuggestionsSearchId,misc_7=misc.setQuery,misc_8=misc.setCustomQuery,misc_9=misc.setDefaultQuery,misc_10=misc.setCustomHighlightOptions,misc_11=misc.updateQueryOptions,misc_12=misc.logQuery,misc_13=misc.logCombinedQuery,misc_14=misc.setHeaders,misc_15=misc.setPromotedResults,misc_16=misc.setPopularSuggestions,misc_17=misc.setDefaultPopularSuggestions,misc_18=misc.setCustomData,misc_19=misc.setAppliedSettings,misc_20=misc.setQueryListener,misc_21=misc.setGoogleMapScriptLoading,misc_22=misc.setGoogleMapScriptLoaded,misc_23=misc.setGoogleMapScriptError,misc_24=misc.resetStoreForComponent,misc_25=misc.setLastUsedAppbaseQuery,misc_26=misc.setSearchState,utils=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSuggestionQuery=t.isPropertyDefined=t.handleResponse=t.handleError=t.getQuerySuggestionsId=t.isComponentActive=t.handleTransformResponse=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.executeQueryListener=function(e,t,n){e&&e.onQueryChange&&e.onQueryChange(t,n)},t.updateStoreConfig=function(e){return function(t){t({type:constants.UPDATE_CONFIG,config:e})}};var o=t.handleTransformResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.transformResponse&&"function"==typeof t.transformResponse?t.transformResponse(e,n):new Promise((function(t){return t(e)}))},a=t.isComponentActive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e(),r=n.components;return!!r.includes(t)},s=t.getQuerySuggestionsId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__suggestions"},i=t.handleError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.orderOfQueries,n=void 0===t?[]:t,r=e.error,o=void 0===r?null:r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},i=arguments[2],u=s(),l=u.queryListener;try{console.error(JSON.stringify(o))}catch(e){console.error(o)}n.forEach((function(e){a(s,e)&&(l[e]&&l[e].onError&&l[e].onError(o),i((0,misc.setError)(e,o)),i((0,misc.setLoading)(e,!1)))}))};t.handleResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.res,s=e.orderOfQueries,u=void 0===s?[]:s,l=e.appendToHits,c=void 0!==l&&l,p=e.appendToAggs,d=void 0!==p&&p,h=e.isSuggestionsQuery,f=void 0!==h&&h,m=e.query,g=e.queryId,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},v=arguments[2],b=y(),_=b.config,$=b.internalValues,C=b.lastUsedAppbaseQuery,O=b.analyticsRef,S=t._headers?t._headers.get("X-Search-Id"):null;S&&(f?v((0,misc.setSuggestionsSearchId)(S)):(v((0,misc.setSearchId)(S)),O&&(O.queryID=S))),u.forEach((function(e){if(a(y,e)){if(C[e]&&C[e].queryId&&g&&C[e].queryId!==g)return;t.settings&&v((0,misc.setAppliedSettings)(t.settings,e)),o(t[e],_,e).then((function(o){if(o){var a=y(),s=a.timestamp,i=a.props;if(void 0===s[e]||s[e]<t._timestamp){var u=o.promoted;if(u){var l=u.map((function(e){return n({},e.doc,{_position:e.position})}));v((0,misc.setPromotedResults)(l,e))}else v((0,misc.setPromotedResults)([],e));if(v((0,misc.setRawData)(e,o)),v((0,misc.setCustomData)(o.customData,e)),o.hits){v((0,misc.setTimestamp)(e,t._timestamp)),i[e].componentType===constants$1.componentTypes.reactiveList&&m.find((function(t){return t.id===e})).execute&&v((0,misc.setLastUsedAppbaseQuery)(r({},e,m))),v((0,hits.updateHits)(e,o.hits,o.took,o.hits&&o.hits.hidden,c));var p=(0,transform.getInternalComponentID)(e);$[p]&&v((0,hits.saveQueryToHits)(e,$[p].value))}o.aggregations&&(v((0,hits.updateAggs)(e,o.aggregations,d)),v((0,hits.updateCompositeAggs)(e,o.aggregations,d)))}v((0,misc.setLoading)(e,!1))}})).catch((function(e){i({orderOfQueries:u,error:e},y,v)}))}}))},t.isPropertyDefined=function(e){return null!=e},t.getSuggestionQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments[1],n=e(),r=n.internalValues,o=r[t],a=o&&o.value||"";return[{id:s(t),dataField:["key","key.autosuggest"],size:5,value:a,defaultQuery:{query:{bool:{minimum_should_match:1,should:[{function_score:{field_value_factor:{field:"count",modifier:"sqrt",missing:1}}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],fuzziness:0,operator:"or",query:a,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:a,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:a,type:"phrase_prefix"}}]}}}}]}}));unwrapExports(utils);var utils_1=utils.getSuggestionQuery,utils_2=utils.isPropertyDefined,utils_3=utils.handleResponse,utils_4=utils.handleError,utils_5=utils.getQuerySuggestionsId,utils_6=utils.isComponentActive,utils_7=utils.handleTransformResponse,utils_8=utils.executeQueryListener,utils_9=utils.updateStoreConfig,value=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.setValue=function(e,t,n,o,a,s,i,u,l){return function(c,p){var d=p(),h=d.urlValues,f=d.selectedValues,m=d.watchMan,g=d.props,y=l;(0,helper.isEqual)(h[e],t)&&(y="URL");var v={},b=[constants$1.componentTypes.reactiveList,constants$1.componentTypes.reactiveMap].includes(g[e]&&g[e].componentType),_=f[e]&&f[e].value;if(!(0,helper.isEqual)(_,t)&&g[e]&&!b){var $=[e],C=m[e]||[];($=[].concat(r($),r(C))).forEach((function(e){var t=g[e];"URL"!==y&&t&&[constants$1.componentTypes.reactiveList,constants$1.componentTypes.reactiveMap].includes(t.componentType)&&null!==f[e]&&(v[e]=null)}))}b&&t<2&&(!_||_<2)||c({type:constants.SET_VALUE,component:e,reference:y,value:t,label:n,showFilter:o,URLParams:a,componentType:s,category:i,meta:u,componentsToReset:v})}},t.resetValuesToDefault=function(e){return function(t,r){var o=r(),a=o.selectedValues,s=o.props,i={},u=void 0;Object.keys(a).forEach((function(t){Array.isArray(e)&&e.includes(t)||(s[t]&&s[t].componentType&&s[t].defaultValue?[constants$1.componentTypes.rangeSlider,constants$1.componentTypes.rangeInput,constants$1.componentTypes.ratingsFilter,constants$1.componentTypes.dateRange].includes(s[t].componentType)?u="object"==typeof s[t].defaultValue?[s[t].defaultValue.start,s[t].defaultValue.end]:null:[constants$1.componentTypes.multiDropdownList,constants$1.componentTypes.multiDataList,constants$1.componentTypes.multiList,constants$1.componentTypes.singleDataList,constants$1.componentTypes.singleDropdownList,constants$1.componentTypes.singleList,constants$1.componentTypes.tagCloud,constants$1.componentTypes.toggleButton,constants$1.componentTypes.multiDropdownRange,constants$1.componentTypes.multiRange,constants$1.componentTypes.singleDropdownRange,constants$1.componentTypes.singleRange,constants$1.componentTypes.dataSearch,constants$1.componentTypes.datePicker,constants$1.componentTypes.treeList].includes(s[t].componentType)?u=s[t].defaultValue:[constants$1.componentTypes.categorySearch].includes(s[t].componentType)&&(u=s[t].defaultValue?s[t].defaultValue.term:""):u=null,(0,helper.isEqual)(a[t].value,u)||(i=n({},i,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,n({},a[t],{value:u})))))})),t({type:constants.RESET_TO_DEFAULT,defaultValues:i})}},t.setInternalValue=function(e,t,n,r,o){return{type:constants.SET_INTERNAL_VALUE,component:e,value:t,componentType:n,category:r,meta:o}},t.patchValue=function(e,t){return{type:constants.PATCH_VALUE,component:e,payload:t}},t.clearValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:constants.CLEAR_VALUES,resetValues:e,clearAllBlacklistComponents:t}},t.setValues=function(e){return function(t){t((0,utils.updateStoreConfig)({queryLockConfig:{initialTimestamp:(new Date).getTime(),lockTime:300}})),t({type:constants.SET_VALUES,componentsValues:e})}}}));unwrapExports(value);var value_1=value.setValue,value_2=value.resetValuesToDefault,value_3=value.setInternalValue,value_4=value.patchValue,value_5=value.clearValues,value_6=value.setValues,maps=createCommonjsModule((function(e,t){function n(e,t,n){return{type:constants.SET_MAP_DATA,componentId:e,query:t,persistMapQuery:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateMapData=n,t.setMapData=function(e,t,r,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return function(i){if(i(n(e,t,r)),i((0,value.setInternalValue)((0,transform.getInternalComponentID)(e),void 0,void 0,void 0,a)),o){i((0,query.executeQuery)(e,!1,!0,constants$1.componentTypes.reactiveMap,{},s))}}},t.setMapResults=function(e,t){var n=t.center,r=t.zoom,o=t.markers;return{type:constants.SET_MAP_RESULTS,componentId:e,payload:{center:n,zoom:r,markers:o}}}}));unwrapExports(maps);var maps_1=maps.updateMapData,maps_2=maps.setMapData,maps_3=maps.setMapResults,query=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function s(e){return function(t,n){var r=n(),o=r.config,a=r.appbaseRef,s=r.props,i=r.internalValues,u=s[e]||{},l=i[e],c=l&&l.value||"";if(u.enablePopularSuggestions){if(o.mongodb)return void t((0,misc.setDefaultPopularSuggestions)([],e.split("__internal")[0]));var p=(0,utils.getSuggestionQuery)(n,e);a.getQuerySuggestions(p).then((function(n){var r=n[(0,utils.getQuerySuggestionsId)(e)];t(c?(0,misc.setPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]):(0,misc.setDefaultPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]))})).catch((function(r){(0,utils.handleError)({orderOfQueries:[e],error:r},n,t)}))}}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.queryId,r=e.query,o=e.orderOfQueries,a=e.appendToHits,i=void 0!==a&&a,u=e.isSuggestionsQuery,l=void 0!==u&&u,c=e.searchComponentID,p=e.appendToAggs,d=void 0!==p&&p;return function(e,a){var u=a(),p=u.appbaseRef,h=u.config,f=u.headers,m=!1;h&&((0,utils.isPropertyDefined)(h.analytics)?m=h.analytics:h.analyticsConfig&&((0,utils.isPropertyDefined)(h.analyticsConfig.recordAnalytics)?m=h.analyticsConfig.recordAnalytics:(0,utils.isPropertyDefined)(h.analyticsConfig.analytics)&&(m=h.analyticsConfig.analytics)));var g={recordAnalytics:m};h.analyticsConfig&&(g.userId=(0,utils.isPropertyDefined)(h.analyticsConfig.userId)?h.analyticsConfig.userId:void 0,g.enableQueryRules=(0,utils.isPropertyDefined)(h.analyticsConfig.enableQueryRules)?h.analyticsConfig.enableQueryRules:void 0,g.customEvents=(0,utils.isPropertyDefined)(h.analyticsConfig.customEvents)?h.analyticsConfig.customEvents:void 0,g.emptyQuery=(0,utils.isPropertyDefined)(h.analyticsConfig.emptyQuery)?h.analyticsConfig.emptyQuery:void 0,g.enableSearchRelevancy=void 0,(0,utils.isPropertyDefined)(h.analyticsConfig.enableSearchRelevancy)&&(g.enableSearchRelevancy=h.analyticsConfig.enableSearchRelevancy),g.suggestionAnalytics=(0,utils.isPropertyDefined)(h.analyticsConfig.suggestionAnalytics)?h.analyticsConfig.suggestionAnalytics:void 0,g.useCache=(0,utils.isPropertyDefined)(h.analyticsConfig.useCache)?h.analyticsConfig.useCache:void 0,g.queryParams=(0,utils.isPropertyDefined)(h.analyticsConfig.queryParams)?h.analyticsConfig.queryParams:void 0),o.forEach((function(t){e((0,misc.setLoading)(t,!0)),e((0,misc.setError)(t,null))})),p.setHeaders(n({},f)),l&&c&&e(s(c)),p.reactiveSearch(r,g,g.queryParams).then((function(n){(0,utils.handleResponse)({res:n,orderOfQueries:o,appendToHits:i,appendToAggs:d,query:r,queryId:t},a,e)})).catch((function(n){(0,utils.handleError)({orderOfQueries:o,error:n,queryId:t},a,e)}))}}t.loadPopularSuggestions=s,t.executeQuery=l,t.setQueryOptions=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){r((0,misc.updateQueryOptions)(e,t)),n&&r(l(e,!0))}},t.updateQuery=function(e){var t=e.componentId,n=e.query,r=e.value,o=e.label,a=void 0===o?null:o,s=e.showFilter,i=void 0===s||s,u=e.URLParams,c=void 0!==u&&u,p=e.componentType,d=void 0===p?null:p,h=e.category,f=void 0===h?null:h,m=e.meta,g=void 0===m?{}:m,y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],v=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(e){var o=n;n&&n.query&&(o=n.query),t.endsWith("__internal")?e((0,value.setInternalValue)(t,r,d,f,g)):(e((0,value.setValue)(t,r,a,i,c,d,f,g)),v&&(d===constants$1.componentTypes.dynamicRangeSlider?e((0,value.setInternalValue)((0,transform.getHistogramComponentID)(t),r,d,f,g)):e((0,value.setInternalValue)(t+"__internal",r,d,f,g)))),e((0,misc.setQuery)(t,o)),y&&e(l(t,!0,!1,d))}},t.loadMore=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(s,u){var l=u(),c=(0,helper.buildQuery)(e,l.dependencyTree,l.queryList,l.queryOptions),p=c.queryObj,d=c.options,h=l.queryLog;d||(d={}),d=n({},d,t),(!p||p&&!Object.keys(p).length)&&(p={match_all:{}});var f,m=l.props[e]||{},g=m.aggregationField;transform.componentToTypeMap[m.componentType]===constants$1.queryTypes.term&&(g=m.dataField);var y=(0,transform.getRSQuery)(e,(0,transform.extractPropsFromState)(l,e,{from:d.from,after:l.aggregations[e]&&l.aggregations[e][g]&&l.aggregations[e][g].after_key||void 0}));(f=n(o({},e,y),(0,transform.getDependentQueries)(u(),e,[])),(0,helper.compareQueries)(h[e],f))||(s((0,misc.logQuery)(e,f)),s(i({query:Object.keys(f).map((function(e){return f[e]})),orderOfQueries:[e],appendToHits:r,appendToAggs:a})))}},t.loadDataToExport=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(i,u){var l=u(),c=l.appbaseRef,p=l.lastUsedAppbaseQuery[t];if(p){var d=p.map((function(e){if(e.id===t){var a=n({},e,{deepPaginationConfig:{cursor:r},deepPagination:!0,size:o<1e3?o:1e3,sortField:"_id",sortBy:"asc"});return delete a.from,a}return e}));return o&&Array.isArray(s)&&o<=s.length?s:c.reactiveSearchv3(d).then((function(n){var r=n[t].hits.hits;return Array.isArray(r)&&0!==r.length?i(e(t,r[r.length-1]._id,n[t].hits.total.value,[].concat(a(s),a(r)))):s})).catch((function(e){console.error("Error fetching data to export! ",e)}))}return console.error("Error fetching data to export!")}};var u=[];function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments[3],c=arguments[4],p=arguments[5];return function(d,h){var f=h(),m=f.queryLog,g=f.config,y=f.mapData,v=f.watchMan,b=f.queryListener,_=f.props,$=f.internalValues,C=f.lock,O=f.dependencyTree,S=f.queryList,w=f.queryOptions,T=g.initialQueriesSyncTime,P=g.initialTimestamp,E=p||(new Date).getTime();g.queryLockConfig instanceof Object&&(T=g.queryLockConfig.lockTime,P=g.queryLockConfig.initialTimestamp);var k,R=[e],x={},Q=[];if(t){var I=v[e]||[];R=[].concat(a(R),a(I))}if(R.forEach((function(t){var i=(0,helper.buildQuery)(t,O,S,w),u=i.queryObj,l=i.options;if(u||l){var p=void 0,f=e.endsWith("__internal"),g=_[e];f&&g&&(0,transform.isSearchComponent)(g.componentType)&&(p=$[e]&&$[e].value);var v=(0,transform.getRSQuery)(t,(0,transform.extractPropsFromState)(h(),t,n({},p?{value:p}:null,c?{from:c.from}:null)));if(v&&Object.keys(v).length){var C=v,T=m[t],P=_[t],k=(0,transform.getDependentQueries)(h(),t,Q),R=n(o({},t,C),Object.keys(k).reduce((function(e,t){return n({},e,o({},t,n({},k[t],{execute:!1})))}),{})),I=transform.componentToTypeMap[P&&P.componentType];if([constants$1.queryTypes.range,constants$1.queryTypes.term].includes(I)){C.value;var A=r(C,["value"]);R=n(o({},t,A),Object.keys(k).reduce((function(e,t){return n({},e,o({},t,[].concat(a(k[t]),a({execute:!1}))))}),{}))}if(s||!(0,helper.compareQueries)(R,T,!1)){Q=[].concat(a(Q),[t]);var L=Object.keys(y).includes(t);if(L&&d((0,misc.setLastUsedAppbaseQuery)(o({},t,{queryId:E}))),d((0,misc.logQuery)(t,R)),L&&y[t].query){var V=C.query;C.query={bool:{must:[V,y[t].query]}},y[t].persistMapQuery||d((0,maps.updateMapData)(e,null,!1));var j=h().combinedLog;if((0,helper.compareQueries)(j[t],C))return;d((0,misc.logCombinedQuery)(t,C))}if((0,utils.executeQueryListener)(b[t],T,C),v&&(x=n({},x,o({},t,v),(0,transform.getDependentQueries)(h(),t,Q))),L){var M=(0,transform.getInternalComponentID)(t),N=(0,transform.getRSQuery)(M,(0,transform.extractPropsFromState)(h(),M,c?{from:c.from}:null));N&&(x[M]=n({},N,{execute:!1}))}}}}})),(k=Object.keys(x).map((function(e){return x[e]}))).length){var A=[constants$1.componentTypes.dataSearch,constants$1.componentTypes.categorySearch],L=e.endsWith("__internal")&&-1!==A.indexOf(l);(new Date).getTime()-P<T?(C&&!g.queryLockConfig||setTimeout((function(){var e=[],t=!1,r="",o={},s={},l={};u.forEach((function(i){t||(t=i.isSuggestionsQuery),r||(r=i.searchComponentID),Array.isArray(i.query)&&i.query.forEach((function(e){e.execute&&(l[e.id]=e.execute);var t=e;if(l[e.id]&&(t.execute=!0),s[e.id]&&s[e.id].type===constants$1.queryTypes.suggestion&&t.type!==constants$1.queryTypes.suggestion)return s[e.id+"__suggestion_type"]=n({},s[e.id]),void(s[e.id]=n({},t,{execute:!1}));s[e.id]=t})),Array.isArray(i.orderOfQueries)&&i.orderOfQueries.forEach((function(t){o[t.id]?o[t.id]=!0:e=[t].concat(a(e))}))}));var c=Object.values(s);c.length&&d(i({query:c,orderOfQueries:e,isSuggestionsQuery:t,searchComponentID:r})),u=[],d((0,utils.updateStoreConfig)({queryLockConfig:void 0}))}),T),d((0,utils.updateStoreConfig)({lock:!0})),u.push({query:k,orderOfQueries:Q,isSuggestionsQuery:L,searchComponentID:e})):d(i({queryId:E,query:k,orderOfQueries:Q,isSuggestionsQuery:L,searchComponentID:e}))}}}}));unwrapExports(query);var query_1=query.loadPopularSuggestions,query_2=query.executeQuery,query_3=query.setQueryOptions,query_4=query.updateQuery,query_5=query.loadMore,query_6=query.loadDataToExport,component=createCommonjsModule((function(e,t){function n(e,t){return{type:constants.WATCH_COMPONENT,component:e,react:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.addComponent=function(e){return function(t){t(function(e){return{type:constants.ADD_COMPONENT,component:e}}(e)),t(function(e,t){return{type:constants.SET_REGISTERED_COMPONENT_TIMESTAMP,component:e,timestamp:t}}(e,(new Date).getTime()))}},t.removeComponent=function(e){return{type:constants.REMOVE_COMPONENT,component:e}},t.watchComponent=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(o){o(n(e,t)),r&&o((0,query.executeQuery)(e))}}}));unwrapExports(component);var component_1=component.addComponent,component_2=component.removeComponent,component_3=component.watchComponent,props=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.setComponentProps=function(e,t,o){return{type:constants.SET_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.updateComponentProps=function(e,t,o){return{type:constants.UPDATE_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.removeComponentProps=function(e){return{type:constants.REMOVE_PROPS,component:e}};var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach((function(n){constants$1.validProps.includes(n)&&(t[n]=e[n])})),t}}));unwrapExports(props);var props_1=props.setComponentProps,props_2=props.updateComponentProps,props_3=props.removeComponentProps,analytics$1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.documentId,n=e.clickPosition,o=e.analyticsInstance,a=e.isSuggestionClick;t?o.click({queryID:o.getQueryID(),objects:r({},t,n+1),isSuggestionClick:a}):console.warn("ReactiveSearch: document id is required to record the click analytics")}t.setSuggestionsSearchValue=function(e){return{type:constants.SET_SUGGESTIONS_SEARCH_VALUE,value:e}},t.clearSuggestionsSearchValue=function(){return{type:constants.CLEAR_SUGGESTIONS_SEARCH_VALUE}},t.updateAnalyticsConfig=function(e){return{type:constants.UPDATE_ANALYTICS_CONFIG,analyticsConfig:e}},t.getRecentSearches=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:5,minChars:3};return function(t,r){var o=r(),a=o.config,s=o.headers,i=o.appbaseRef,u=i.url,l=i.protocol,c=i.credentials,p=a.app,d=a.mongodb,h=(l+"://"+u||"").replace(/\/+$/,""),f={headers:n({},s,{"Content-Type":"application/json",Authorization:"Basic "+btoa(c)})},m="",g=function(e,t){m+=m?"&"+e+"="+t:e+"="+t};return a.analyticsConfig&&a.analyticsConfig.userId&&g("user_id",a.analyticsConfig.userId),e&&(e.size&&g("size",String(e.size)),e.from&&g("from",e.from),e.to&&g("to",e.to),e.minChars&&g("min_chars",String(e.minChars)),e.customEvents&&Object.keys(e.customEvents).forEach((function(t){g(t,e.customEvents[t])}))),d?t({type:constants.RECENT_SEARCHES_SUCCESS,data:[]}):fetch(h+"/_analytics/"+p+"/recent-searches?"+m,f).then((function(e){return e.status>=500||e.status>=400?t({type:constants.RECENT_SEARCHES_ERROR,error:e}):e.json().then((function(e){return t({type:constants.RECENT_SEARCHES_SUCCESS,data:e})})).catch((function(e){return t({type:constants.RECENT_SEARCHES_ERROR,error:e})}))})).catch((function(e){return t({type:constants.RECENT_SEARCHES_ERROR,error:e})}))}},t.recordResultClick=function(e,t){return function(r,a){var s=a(),i=s.config,u=s.analytics.searchId,l=s.headers,c=s.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=s.analyticsRef,m=i.app,g=d+"://"+p;if(i.analytics&&u){var y=l;delete y["X-Search-Query"];var v=(g||"").replace(/\/+$/,"");v.includes("scalr.api.appbase.io")?fetch(v+"/"+m+"/_analytics",{method:"POST",headers:n({},y,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Click":!0,"X-Search-ClickPosition":e+1})}):o({documentId:t,clickPosition:e,analyticsInstance:f})}}},t.recordSuggestionClick=function(e,t){return function(r,a){var s=a(),i=s.config,u=s.analytics.suggestionsSearchId,l=s.headers,c=s.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=s.analyticsRef,m=i.app,g=d+"://"+p;if(i.analytics&&(void 0===i.analyticsConfig||void 0===i.analyticsConfig.suggestionAnalytics||i.analyticsConfig.suggestionAnalytics)){var y=l;delete y["X-Search-Query"];var v=(g||"").replace(/\/+$/,"");v.includes("scalr.api.appbase.io")&&void 0!==e&&u?fetch(v+"/"+m+"/_analytics",{method:"POST",headers:n({},y,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Suggestions-Click":!0,"X-Search-Suggestions-ClickPosition":e+1})}):void 0!==e&&o({documentId:t,clickPosition:e,analyticsInstance:f,isSuggestionClick:!0})}}},t.recordImpressions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){var o=r(),a=o.appbaseRef,s=a.url,i=a.protocol,u=o.analyticsRef,l=o.config,c=(i+"://"+s).replace(/\/+$/,"");l.analytics&&!c.includes("scalr.api.appbase.io")&&e&&t.length&&u.search({queryID:u.getQueryID(),impressions:t})}}}));unwrapExports(analytics$1);var analytics_1$1=analytics$1.setSuggestionsSearchValue,analytics_2$1=analytics$1.clearSuggestionsSearchValue,analytics_3$1=analytics$1.updateAnalyticsConfig,analytics_4$1=analytics$1.getRecentSearches,analytics_5$1=analytics$1.recordResultClick,analytics_6$1=analytics$1.recordSuggestionClick,analytics_7$1=analytics$1.recordImpressions,actions=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(component).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return component[e]}})})),Object.keys(hits).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return hits[e]}})})),Object.keys(maps).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return maps[e]}})})),Object.keys(query).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return query[e]}})})),Object.keys(value).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return value[e]}})})),Object.keys(props).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return props[e]}})})),Object.keys(analytics$1).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return analytics$1[e]}})})),Object.keys(misc).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return misc[e]}})}))}));if(unwrapExports(actions),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var a=t[o];if(e.call(r,a,o,t))return a;o++}},configurable:!0,writable:!0}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=this.length-e.length;return t>=0&&this.lastIndexOf(e)===t}),"function"!=typeof Event){var _Event=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t};"undefined"!=typeof window&&(window.Event=_Event)}var polyfills=Object.freeze({__proto__:null}),causes_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={ENTER_PRESS:"ENTER_PRESS",SUGGESTION_SELECT:"SUGGESTION_SELECT",CLEAR_VALUE:"CLEAR_VALUE",SEARCH_ICON_CLICK:"SEARCH_ICON_CLICK"};t.default=n}));unwrapExports(causes_1);var lib=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.constants=t.Reducers=t.polyfills=t.storeKey=t.Actions=t.suggestions=t.causes=t.helper=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=n({},e,{config:n({},e.config,{lock:!1,analyticsConfig:e.config&&e.config.analyticsConfig?n({},analytics.defaultAnalyticsConfig,e.config.analyticsConfig):analytics.defaultAnalyticsConfig})});return(0,redux.createStore)(o.default,t,C)};var r=y(thunk),o=y(reducers),a=g(actions),s=g(helper),i=y(suggestions),u=y(constants$1),l=y(polyfills),c=y(causes_1),p=y(valueReducer_1),d=y(queryReducer_1),h=y(queryOptionsReducer_1),f=y(dependencyTreeReducer_1),m=y(propsReducer);function g(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}function y(e){return e&&e.__esModule?e:{default:e}}var v=constants.STORE_KEY,b=i.default,_=c.default,$={valueReducer:p.default,queryOptionsReducer:h.default,queryReducer:d.default,dependencyTreeReducer:f.default,propsReducer:m.default};t.helper=s,t.causes=_,t.suggestions=b,t.Actions=a,t.storeKey=v,t.polyfills=l.default,t.Reducers=$,t.constants=u.default;var C=("object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):redux.compose)((0,redux.applyMiddleware)(r.default))})),configureStore=unwrapExports(lib),lib_1=lib.constants,lib_2=lib.Reducers,lib_3=lib.polyfills,lib_4=lib.storeKey,lib_5=lib.Actions,lib_6=lib.suggestions,lib_7=lib.causes,lib_8=lib.helper,transformOn=function(e){var t={};return Object.keys(e).forEach((function(n){t["on"+n[0].toUpperCase()+n.substr(1)]=e[n]})),t},babelHelperVueTransformOn=transformOn;function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_toPropertyKey$1(r.key),r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _createForOfIteratorHelperLoose(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _toPrimitive$1(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey$1(e){var t=_toPrimitive$1(e,"string");return"symbol"==typeof t?t:String(t)}
15
7
  /*!
16
8
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
17
9
  *
18
10
  * Copyright (c) 2014-2017, Jon Schlinkert.
19
11
  * Released under the MIT License.
20
- */
21
- function vt(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}function bt(e){var t,n;return!1!==vt(e)&&("function"==typeof(t=e.constructor)&&(!1!==vt(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}var Ot=Object.prototype,Ct=Ot.toString,wt=Ot.hasOwnProperty,St=/^\s*function (\w+)/;function $t(e){var t=null!=e?e.type?e.type:e:null,n=t&&t.toString().match(St);return n&&n[1]}function _t(){}var kt=function(){return!0},Pt=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Et=Array.isArray||function(e){return"[object Array]"===Ct.call(e)},Tt=function(e){return"[object Function]"===Ct.call(e)};function It(e,t,n){var r;return void 0===n&&(n=!1),Object.defineProperty(t,"_vueTypes_name",{enumerable:!1,writable:!1,value:e}),function(e){Object.defineProperty(e,"def",{value:function(e){return void 0!==e||this.default?Tt(e)||At(this,e)?(Et(e)?this.default=function(){return[].concat(e)}:bt(e)?this.default=function(){return Object.assign({},e)}:this.default=e,this):(Rt(this._vueTypes_name+' - invalid default value: "'+e+'"',e),this):this},enumerable:!1,writable:!1})}((r=t,Object.defineProperty(r,"isRequired",{get:function(){return this.required=!0,this},enumerable:!1}))),n?function(e){Object.defineProperty(e,"validate",{value:function(e){return this.validator=e.bind(this),this},enumerable:!1})}(t):Object.defineProperty(t,"validate",{value:function(){return Rt(e+' - "validate" method not supported on this type'),this},enumerable:!1}),Tt(t.validator)&&(t.validator=t.validator.bind(t)),t}function At(e,t,n){void 0===n&&(n=!1);var r,o=e,i=!0;bt(e)||(o={type:e});var a,s=o._vueTypes_name?o._vueTypes_name+" - ":"";if(wt.call(o,"type")&&null!==o.type){if(void 0===o.type)throw new TypeError("[VueTypes error]: Setting type to undefined is not allowed.");if(!o.required&&void 0===t)return i;Et(o.type)?(i=o.type.some((function(e){return At(e,t,!0)})),r=o.type.map((function(e){return $t(e)})).join(" or ")):i="Array"===(r=$t(o))?Et(t):"Object"===r?bt(t):"String"===r||"Number"===r||"Boolean"===r||"Function"===r?function(e){if(null==e)return null;var t=e.constructor.toString().match(St);return t&&t[1]}(t)===r:t instanceof o.type}return i?wt.call(o,"validator")&&Tt(o.validator)?(n&&(a=Rt,Rt=_t),i=o.validator(t),a&&(Rt=a),i||!1!==n||Rt(s+"custom validation failed"),i):i:(!1===n&&Rt(s+'value "'+t+'" should be of type "'+r+'"'),!1)}var Rt=_t;var xt,Lt,jt={get any(){return It("any",{type:null},!0)},get func(){return It("function",{type:Function},!0).def(jt.sensibleDefaults.func)},get bool(){return It("boolean",{type:Boolean},!0).def(jt.sensibleDefaults.bool)},get string(){return It("string",{type:String},!0).def(jt.sensibleDefaults.string)},get number(){return It("number",{type:Number},!0).def(jt.sensibleDefaults.number)},get array(){return It("array",{type:Array},!0).def(jt.sensibleDefaults.array)},get object(){return It("object",{type:Object},!0).def(jt.sensibleDefaults.object)},get integer(){return It("integer",{type:Number,validator:function(e){return Pt(e)}}).def(jt.sensibleDefaults.integer)},get symbol(){return It("symbol",{type:null,validator:function(e){return"symbol"==typeof e}},!0)},extend:function(e){if(void 0===e&&(e={}),Et(e))return e.forEach((function(e){return jt.extend(e)})),this;var t,n,r=e,o=r.name,i=r.validate,a=void 0!==i&&i,s=r.getter,u=void 0!==s&&s,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["name","validate","getter"]);if(t=jt,n=o,wt.call(t,n))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var c,p=l.type,d=l.validator,h=void 0===d?kt:d;if(p&&p._vueTypes_name){delete l.type;for(var f=["type","required","default"],g=0;g<f.length;g+=1){var m=f[g];void 0!==p[m]&&(l[m]=p[m])}a=!1,Tt(p.validator)&&(l.validator=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p.validator.apply(p,t)&&h.apply(this,t)})}if(u)c={get:function(){return It(o,Object.assign({},l),a)},enumerable:!0,configurable:!1};else{var y=l.validator;c={value:function(){var e=It(o,Object.assign({},l),a);if(y){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.validator=y.bind.apply(y,[e].concat(n))}return e},writable:!1,enumerable:!0,configurable:!1}}return Object.defineProperty(this,o,c)},custom:function(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return It(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||Rt(this._vueTypes_name+" - "+t),r}})},oneOf:function(e){if(!Et(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t='oneOf - value should be one of "'+e.join('", "')+'"',n=e.reduce((function(e,t){return null!=t&&-1===e.indexOf(t.constructor)&&e.push(t.constructor),e}),[]);return It("oneOf",{type:n.length>0?n:null,validator:function(n){var r=-1!==e.indexOf(n);return r||Rt(t),r}})},instanceOf:function(e){return It("instanceOf",{type:e})},oneOfType:function(e){if(!Et(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t=!1,n=e.reduce((function(e,n){if(bt(n)){if("oneOf"===n._vueTypes_name)return e.concat(n.type||[]);if(Tt(n.validator))return t=!0,e;if(n.type){if(Et(n.type))return e.concat(n.type);e.push(n.type)}return e}return e.push(n),e}),[]);if(!t)return It("oneOfType",{type:n});var r=e.map((function(e){return e&&Et(e.type)?e.type.map($t):$t(e)})).reduce((function(e,t){return e.concat(Et(t)?t:[t])}),[]).join('", "');return this.custom((function(t){var n=e.some((function(e){return"oneOf"===e._vueTypes_name?!e.type||At(e.type,t,!0):At(e,t,!0)}));return n||Rt('oneOfType - value type should be one of "'+r+'"'),n}))},arrayOf:function(e){return It("arrayOf",{type:Array,validator:function(t){var n=t.every((function(t){return At(e,t)}));return n||Rt('arrayOf - value must be an array of "'+$t(e)+'"'),n}})},objectOf:function(e){return It("objectOf",{type:Object,validator:function(t){var n=Object.keys(t).every((function(n){return At(e,t[n])}));return n||Rt('objectOf - value must be an object of "'+$t(e)+'"'),n}})},shape:function(e){var t=Object.keys(e),n=t.filter((function(t){return e[t]&&!0===e[t].required})),r=It("shape",{type:Object,validator:function(r){var o=this;if(!bt(r))return!1;var i=Object.keys(r);return n.length>0&&n.some((function(e){return-1===i.indexOf(e)}))?(Rt('shape - at least one of required properties "'+n.join('", "')+'" is not present'),!1):i.every((function(n){return-1===t.indexOf(n)?!0===o._vueTypes_isLoose||(Rt('shape - object is missing "'+n+'" property'),!1):At(e[n],r[n])}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{enumerable:!1,writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this},enumerable:!1}),r}};xt=jt,Lt={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0},Object.defineProperty(xt,"sensibleDefaults",{enumerable:!1,set:function(e){Lt=!1===e?{}:!0===e?{func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}:e},get:function(){return Lt}}),jt.utils={validate:function(e,t){return At(t,e,!0)},toType:It};var Mt="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var Qt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Vt(e){function t(e,t,r){var o=t.trim().split(f);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[u++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",s=2*t+3*n+4*i;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===T||2===T&&o(u,1)?"-webkit-"+u+u:u}if(0===T||2===T&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(_,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return d.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(b,"tb");break;case 232:u=a.replace(b,"tb-rl");break;case 220:u=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===$.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),x(2!==t?r:r.replace(S,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(C," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,s,l,c){for(var p,d=0,h=t;d<R;++d)switch(p=A[d].call(u,e,h,n,r,o,i,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:h=p}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(x=null,e?"function"!=typeof e?T=1:(T=2,x=e):T=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<R){var u=a(-1,n,s,s,P,k,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var p=function e(n,s,u,p,d){for(var h,f,g,b,C,w=0,S=0,$=0,_=0,A=0,x=0,j=g=h=0,M=0,Q=0,V=0,D=0,F=u.length,N=F-1,U="",q="",B="",z="";M<F;){if(f=u.charCodeAt(M),M===N&&0!==S+_+$+w&&(0!==S&&(f=47===S?10:47),_=$=w=0,F++,N++),0===S+_+$+w){if(M===N&&(0<Q&&(U=U.replace(c,"")),0<U.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:U+=u.charAt(M)}f=59}switch(f){case 123:for(h=(U=U.trim()).charCodeAt(0),g=1,D=++M;M<F;){switch(f=u.charCodeAt(M)){case 123:g++;break;case 125:g--;break;case 47:switch(f=u.charCodeAt(M+1)){case 42:case 47:e:{for(j=M+1;j<N;++j)switch(u.charCodeAt(j)){case 47:if(42===f&&42===u.charCodeAt(j-1)&&M+2!==j){M=j+1;break e}break;case 10:if(47===f){M=j+1;break e}}M=j}}break;case 91:f++;case 40:f++;case 34:case 39:for(;M++<N&&u.charCodeAt(M)!==f;);}if(0===g)break;M++}switch(g=u.substring(D,M),0===h&&(h=(U=U.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<Q&&(U=U.replace(c,"")),f=U.charCodeAt(1)){case 100:case 109:case 115:case 45:Q=s;break;default:Q=I}if(D=(g=e(s,Q,g,f,d+1)).length,0<R&&(C=a(3,g,Q=t(I,U,V),s,P,k,D,f,d,p),U=Q.join(""),void 0!==C&&0===(D=(g=C.trim()).length)&&(f=0,g="")),0<D)switch(f){case 115:U=U.replace(O,i);case 100:case 109:case 45:g=U+"{"+g+"}";break;case 107:g=(U=U.replace(m,"$1 $2"))+"{"+g+"}",g=1===T||2===T&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=U+g,112===p&&(q+=g,g="")}else g="";break;default:g=e(s,t(s,U,V),g,p,d+1)}B+=g,g=V=Q=j=h=0,U="",f=u.charCodeAt(++M);break;case 125:case 59:if(1<(D=(U=(0<Q?U.replace(c,""):U).trim()).length))switch(0===j&&(h=U.charCodeAt(0),45===h||96<h&&123>h)&&(D=(U=U.replace(" ",":")).length),0<R&&void 0!==(C=a(1,U,s,n,P,k,q.length,p,d,p))&&0===(D=(U=C.trim()).length)&&(U="\0\0"),h=U.charCodeAt(0),f=U.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){z+=U+u.charAt(M);break}default:58!==U.charCodeAt(D-1)&&(q+=r(U,h,f,U.charCodeAt(2)))}V=Q=j=h=0,U="",f=u.charCodeAt(++M)}}switch(f){case 13:case 10:47===S?S=0:0===1+h&&107!==p&&0<U.length&&(Q=1,U+="\0"),0<R*L&&a(0,U,s,n,P,k,q.length,p,d,p),k=1,P++;break;case 59:case 125:if(0===S+_+$+w){k++;break}default:switch(k++,b=u.charAt(M),f){case 9:case 32:if(0===_+w+S)switch(A){case 44:case 58:case 9:case 32:b="";break;default:32!==f&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===_+S+w&&(Q=V=1,b="\f"+b);break;case 108:if(0===_+S+w+E&&0<j)switch(M-j){case 2:112===A&&58===u.charCodeAt(M-3)&&(E=A);case 8:111===x&&(E=x)}break;case 58:0===_+S+w&&(j=M);break;case 44:0===S+$+_+w&&(Q=1,b+="\r");break;case 34:case 39:0===S&&(_=_===f?0:0===_?f:_);break;case 91:0===_+S+$&&w++;break;case 93:0===_+S+$&&w--;break;case 41:0===_+S+w&&$--;break;case 40:if(0===_+S+w){if(0===h)switch(2*A+3*x){case 533:break;default:h=1}$++}break;case 64:0===S+$+_+w+j+g&&(g=1);break;case 42:case 47:if(!(0<_+w+$))switch(S){case 0:switch(2*f+3*u.charCodeAt(M+1)){case 235:S=47;break;case 220:D=M,S=42}break;case 42:47===f&&42===A&&D+2!==M&&(33===u.charCodeAt(D+2)&&(q+=u.substring(D,M+1)),b="",S=0)}}0===S&&(U+=b)}x=A,A=f,M++}if(0<(D=q.length)){if(Q=s,0<R&&(void 0!==(C=a(2,q,Q,n,P,k,D,p,d,p))&&0===(q=C).length))return z+q+B;if(q=Q.join(",")+"{"+q+"}",0!=T*E){switch(2!==T||o(q,2)||(E=0),E){case 111:q=q.replace(v,":-moz-$1")+q;break;case 112:q=q.replace(y,"::-webkit-input-$1")+q.replace(y,"::-moz-$1")+q.replace(y,":-ms-input-$1")+q}E=0}}return z+q+B}(I,s,n,0,0);return 0<R&&(void 0!==(u=a(-2,p,s,s,P,k,p.length,0,0,0))&&(p=u)),"",E=0,k=P=1,p}var l=/^\0+/g,c=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,f=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,w=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,$=/stretch|:\s*\w+\-(?:conte|avail)/,_=/([^-])(image-set\()/,k=1,P=1,E=0,T=1,I=[],A=[],R=0,x=null,L=0;return u.use=function e(t){switch(t){case void 0:case null:R=A.length=0;break;default:switch(t.constructor){case Array:for(var n=0,r=t.length;n<r;++n)e(t[n]);break;case Function:A[R++]=t;break;case Boolean:L=0|!!t}}return e},u.set=s,void 0!==e&&s(e),u}var Dt,Ft,Nt=o((function(e,t){e.exports=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,u,l,c,p){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}})),Ut=/[A-Z]|^ms/g,qt=(Dt=function(e){return e.replace(Ut,"-$&").toLowerCase()},Ft={},function(e){return void 0===Ft[e]&&(Ft[e]=Dt(e)),Ft[e]}),Bt=function(e,t){return null==t||"boolean"==typeof t?"":1===Qt[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},zt=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"function":a=e([i()]);break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o},Ht="undefined"!=typeof document;function Gt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}var Wt=function(){function e(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=Gt(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(this.tags[this.tags.length-1]);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else{var r=Gt(this.opts);this.tags.push(r),r.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(Gt(this.opts))},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,this.injected=!1},e}();var Zt=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var n,r,o=t.key||"css",i=Nt((function(e){n+=e,Ht&&s.insert(e,l)}));void 0!==t.prefix&&(r={prefix:t.prefix});var a={registered:{},inserted:{},nonce:t.nonce,key:o},s=new Wt(t);Ht&&s.inject();var u=new Vt(r);u.use(t.stylisPlugins)(i);var l="";function c(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var n=e.toString();return n}return c.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return f.call(this,e);default:var r=a.registered[e];return!1===t&&void 0!==r?r:e}}var p,d,h=new WeakMap;function f(e){if(h.has(e))return h.get(e);var t="";return Array.isArray(e)?e.forEach((function(e){t+=c.call(this,e,!1)}),this):Object.keys(e).forEach((function(n){"object"!=typeof e[n]?void 0!==a.registered[e[n]]?t+=n+"{"+a.registered[e[n]]+"}":t+=qt(n)+":"+Bt(n,e[n])+";":Array.isArray(e[n])&&"string"==typeof e[n][0]&&void 0===a.registered[e[n][0]]?e[n].forEach((function(e){t+=qt(n)+":"+Bt(n,e)+";"})):t+=n+"{"+c.call(this,e[n],!1)+"}"}),this),h.set(e,t),t}var g=/label:\s*([^\s;\n{]+)\s*;/g,m=function(e,t){return function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}(e+t)+t},y=function(e){var t=!0,n="",r="";null==e||void 0===e.raw?(t=!1,n+=c.call(this,e,!1)):n+=e[0];for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return i.forEach((function(r,o){n+=c.call(this,r,46===n.charCodeAt(n.length-1)),!0===t&&void 0!==e[o+1]&&(n+=e[o+1])}),this),d=n,n=n.replace(g,(function(e,t){return r+="-"+t,""})),p=m(n,r),n};function v(e,t){void 0===a.inserted[p]&&(n="",u(e,t),a.inserted[p]=n)}var b=function(){var e=y.apply(this,arguments),t=o+"-"+p;return void 0===a.registered[t]&&(a.registered[t]=d),v("."+t,e),t};function O(e,t){var n="";return t.split(" ").forEach((function(t){void 0!==a.registered[t]?e.push(t):n+=t+" "})),n}function C(e,t){var n=[],r=O(n,e);return n.length<2?e:r+b(n,t)}function w(e){a.inserted[e]=!0}if(Ht){var S=document.querySelectorAll("[data-emotion-"+o+"]");Array.prototype.forEach.call(S,(function(e){s.tags[0].parentNode.insertBefore(e,s.tags[0]),e.getAttribute("data-emotion-"+o).split(" ").forEach(w)}))}var $={flush:function(){Ht&&(s.flush(),s.inject()),a.inserted={},a.registered={}},hydrate:function(e){e.forEach(w)},cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return C(zt(t))},merge:C,getRegisteredStyles:O,injectGlobal:function(){var e=y.apply(this,arguments);v("",e)},keyframes:function(){var e=y.apply(this,arguments),t="animation-"+p;return v("","@keyframes "+t+"{"+e+"}"),t},css:b,sheet:s,caches:a};return e.__SECRET_EMOTION__=$,$}(void 0!==Mt?Mt:{}),Kt=(Zt.flush,Zt.hydrate,Zt.cx),Yt=(Zt.merge,Zt.getRegisteredStyles),Xt=Zt.injectGlobal,Jt=(Zt.keyframes,Zt.css),en=(Zt.sheet,Zt.caches,function(e){for(var t=arguments,n=1;n<arguments.length;n++)for(var r in arguments[n])e[r]=t[n][r];return e}),tn="__emotion_styles";function nn(e){return(nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rn(e){return Array.isArray(e)?e.join(" "):"object"===nn(e)?Object.keys(e).filter((function(t){return Boolean(e[t])})).join(" "):e}var on=function(e,t){var n,r,o,i;void 0!==t&&(n=t.e,r=t.label,o=t.target,i=t.props);var a=e.__emotion_real===e,s=void 0===n&&a&&e.__emotion_base||e;return function(){var t=a&&void 0!==e[tn]?e[tn].slice(0):[];if(void 0!==r&&t.push("label:".concat(r,";")),void 0===n){for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];if(null===l[0]||void 0===l[0].raw)t.push.apply(t,l);else{t.push(l[0][0]);for(var p=l.length,d=1;d<p;d++)t.push(l[d],l[0][d])}}var h={name:"Styled".concat(e.name||r||"Component"),functional:!0,inject:{theme:{from:"theme_reactivesearch",default:null}},props:i,render:function(r,i){var a=i.data,s=i.children,u=i.props,l=i.injections,c="",p=[],d=rn(a.class),h={};for(var f in a.attrs)"$"!==f[0]&&(h[f]=a.attrs[f]);if(d&&(c+=void 0===n?Yt(p,d):"".concat(d," ")),void 0===n){var g={mergedProps:en({theme:l.theme},u)};c+=Jt.apply(g,t.concat(p))}else c+=n;return void 0!==o&&(c+=" ".concat(o)),r(e,en({},a,{attrs:h,class:c}),s)}};return h[tn]=t,h.__emotion_base=s,h.__emotion_real=h,Object.defineProperty(h,"toString",{enumerable:!1,value:function(){return".".concat(o)}}),h}};function an(){return(an=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function sn(e){return Math.round(255*e)}function un(e,t,n){return sn(e)+","+sn(t)+","+sn(n)}function ln(e,t,n,r){if(void 0===r&&(r=un),0===t)return r(n,n,n);var o=e%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,u=0,l=0;o>=0&&o<1?(s=i,u=a):o>=1&&o<2?(s=a,u=i):o>=2&&o<3?(u=i,l=a):o>=3&&o<4?(u=a,l=i):o>=4&&o<5?(s=a,l=i):o>=5&&o<6&&(s=i,l=a);var c=n-i/2;return r(s+c,u+c,l+c)}var cn={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var pn=/^#[a-fA-F0-9]{6}$/,dn=/^#[a-fA-F0-9]{8}$/,hn=/^#[a-fA-F0-9]{3}$/,fn=/^#[a-fA-F0-9]{4}$/,gn=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,mn=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,yn=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,vn=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function bn(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return cn[t]?"#"+cn[t]:e}(e);if(t.match(pn))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(dn)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(hn))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(fn)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=gn.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=mn.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=yn.exec(t);if(a){var s="rgb("+ln(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=gn.exec(s);if(!u)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+s+".");return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var l=vn.exec(t);if(l){var c="rgb("+ln(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",p=gn.exec(c);if(!p)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+c+".");return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+l[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function On(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u=i-a,l=s>.5?u/(2-i-a):u/(i+a);switch(i){case n:t=(r-o)/u+(r<o?6:0);break;case r:t=(o-n)/u+2;break;default:t=(n-r)/u+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:l,lightness:s,alpha:e.alpha}:{hue:t,saturation:l,lightness:s}}(bn(e))}var Cn=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function wn(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Sn(e){return wn(Math.round(255*e))}function $n(e,t,n){return Cn("#"+Sn(e)+Sn(t)+Sn(n))}function _n(e,t,n){return ln(e,t,n,$n)}function kn(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Cn("#"+wn(e)+wn(t)+wn(n));if("object"==typeof e&&void 0===t&&void 0===n)return Cn("#"+wn(e.red)+wn(e.green)+wn(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function Pn(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=bn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?kn(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?kn(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}var En="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function Tn(e){if("object"!=typeof e)throw new Error(En);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return Pn(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return kn(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?_n(e,t,n):"rgba("+ln(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?_n(e.hue,e.saturation,e.lightness):"rgba("+ln(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return _n(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return _n(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}(e);throw new Error(En)}function In(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function An(e,t,n){return Math.max(e,Math.min(t,n))}function Rn(e,t){var n=On(t);return Tn(an({},n,{lightness:An(0,1,n.lightness-parseFloat(e))}))}var xn=In(Rn);function Ln(e,t){var n=On(t);return Tn(an({},n,{lightness:An(0,1,n.lightness+parseFloat(e))}))}var jn,Mn,Qn,Vn,Dn,Fn,Nn,Un,qn=In(Ln),Bn=function(e){var t=e.colors.borderColor;return Jt(jn||(jn=ft(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 2px 3px;\n\t\tpadding: 5px 8px;\n\t\tfont-size: 0.85rem;\n\t\tposition: relative;\n\n\t\tspan:first-child {\n\t\t\tmax-width: 260px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-right: 26px;\n\t\t}\n\n\t\tspan:last-child {\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 8px;\n\t\t\tposition: absolute;\n\t\t\talign-items: center;\n\t\t\tborder-left: 1px solid ",";\n\t\t\tpadding-left: 8px;\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tspan:first-child {\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t}\n"])),t||"#fff")},zn=Jt(Mn||(Mn=ft(["\n\tmargin: 10px -3px;\n\tmax-width: 100%;\n\ttext-align: center;\n\n\ta {\n\t\tmargin: 0 3px;\n\t}\n"]))),Hn=Jt(Qn||(Qn=ft(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 3px 3px;\n\t}\n"]))),Gn=(Jt(Vn||(Vn=ft(["\n\tmargin: 0 -5px;\n\ta {\n\t\tmargin: 5px;\n\t}\n\tspan {\n\t\tmargin: 0 5px;\n\t}\n"]))),function(e){var t=e.theme;return Jt(Dn||(Dn=ft(["\n\tbackground-color: ",";\n\tcolor: ",";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.primaryColor,t.colors.primaryTextColor,xn(.1,t.colors.primaryColor))}),Wn=function(){return Jt(Fn||(Fn=ft(["\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"])))},Zn=function(e){var t=e.theme;return Jt(Nn||(Nn=ft(["\n\tbackground-color: ",";\n\tcolor: #ccc;\n\tcursor: not-allowed;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor?qn(.1,t.colors.backgroundColor):"#fafafa",t.colors.backgroundColor?qn(.2,t.colors.backgroundColor):"#fafafa")},Kn=on("a")(Un||(Un=ft(["\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\talign-items: center;\n\tborder-radius: 3px;\n\tborder: 1px solid transparent;\n\tmin-height: 30px;\n\tword-wrap: break-word;\n\tpadding: 5px 12px;\n\tline-height: 1.2rem;\n\tbackground-color: ",";\n\tcolor: ",";\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n\n\t&:focus {\n\t\toutline: 0;\n\t\tborder-color: ",";\n\t\tbox-shadow: ",";\n\t}\n\n\t",";\n\t",";\n\t",";\n\n\t&.enter-btn {\n\t\tborder-top-left-radius: 0px;\n\t\tborder-bottom-left-radius: 0px;\n\t\theight: 100%;\n\t}\n"])),(function(e){return e.theme.colors.backgroundColor||"#eee"}),(function(e){return e.theme.colors.textColor}),(function(e){var t=e.theme;return t.colors.backgroundColor?xn(.1,t.colors.backgroundColor):"#ccc"}),(function(e){return Pn(e.theme.colors.primaryColor,.6)}),(function(e){return"0 0 0 2px "+Pn(e.theme.colors.primaryColor,.3)}),(function(e){return e.primary?Gn:null}),(function(e){return e.disabled?Zn:null}),(function(e){return e.large&&Wn})),Yn=Jt({margin:"5px 0",display:"flex",justifyContent:"center"});jt.sensibleDefaults=!1;var Xn=jt.oneOfType([jt.string,jt.arrayOf(jt.string),jt.object,jt.arrayOf(jt.object)]);var Jn={any:jt.any,bool:jt.bool,boolRequired:jt.bool.isRequired,components:jt.arrayOf(jt.string),children:jt.any,data:jt.arrayOf(jt.object),dataFieldArray:jt.oneOfType([jt.string,jt.arrayOf(jt.string)]).isRequired,dataNumberBox:jt.shape({label:jt.string,start:jt.number.isRequired,end:jt.number.isRequired}).isRequired,date:jt.oneOfType([jt.string,jt.arrayOf(jt.string)]),dateObject:jt.object,excludeFields:jt.arrayOf(jt.string),fieldWeights:jt.arrayOf(jt.number),filterLabel:jt.string,func:jt.func,funcRequired:jt.func.isRequired,fuzziness:jt.oneOf([0,1,2,"AUTO"]),headers:jt.object,hits:jt.arrayOf(jt.object),iconPosition:jt.oneOf(["left","right"]),includeFields:jt.arrayOf(jt.string),labelPosition:jt.oneOf(["left","right","top","bottom"]),number:jt.number,options:jt.oneOfType([jt.arrayOf(jt.object),jt.object]),paginationAt:jt.oneOf(["top","bottom","both"]),range:jt.shape({start:jt.number.isRequired,end:jt.number.isRequired}),rangeLabels:jt.shape({start:jt.string.isRequired,end:jt.string.isRequired}),react:jt.shape({and:Xn,or:Xn,not:Xn}),selectedValues:jt.object,selectedValue:jt.oneOfType([jt.string,jt.arrayOf(jt.string),jt.arrayOf(jt.object),jt.object,Number,jt.arrayOf(Number)]),suggestions:jt.arrayOf(jt.object),supportedOrientations:jt.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),sortBy:jt.oneOf(["asc","desc"]),sortOptions:jt.arrayOf(jt.shape({label:jt.string,dataField:jt.string,sortBy:jt.string})),sortByWithCount:jt.oneOf(["asc","desc","count"]),stats:jt.arrayOf(jt.object),string:jt.string,stringArray:jt.arrayOf(jt.string),stringOrArray:jt.oneOfType([jt.string,jt.arrayOf(jt.string)]),stringRequired:jt.string.isRequired,style:jt.object,themePreset:jt.oneOf(["light","dark"]),queryFormatSearch:jt.oneOf(["and","or"]),queryFormatNumberBox:jt.oneOf(["exact","lte","gte"]),params:jt.object.isRequired,props:jt.object,rangeLabelsAlign:jt.oneOf(["left","right"]),title:jt.oneOfType([jt.string,jt.any]),tooltipTrigger:jt.oneOf(["always","none","hover"]),location:jt.custom((function(e){return e&&e.lat&&e.lng?isNaN(e.lat)?(console.error(new Error("lat value must be a number")),!1):isNaN(e.lat)?(console.error(new Error("lng value must be a number")),!1):e.lat<-90||e.lat>90?(console.error(new Error("lat value should be between -90 and 90.")),!1):!(e.lat<-180||e.lat>180)||(console.error(new Error("lng value should be between -180 and 180.")),!1):(console.error(new Error("location must be an object with lat and lng keys defined")),!1)})),unit:jt.oneOf(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),value:jt.string.def(void 0),analyticsConfig:jt.shape({emptyQuery:jt.bool,suggestionAnalytics:jt.bool,userId:jt.string,customEvents:jt.object}),appbaseConfig:jt.shape({recordAnalytics:jt.bool,emptyQuery:jt.bool,suggestionAnalytics:jt.bool,enableQueryRules:jt.bool,enableSearchRelevancy:jt.bool,userId:jt.string,useCache:jt.bool,customEvents:jt.object,enableTelemetry:jt.bool.def(!0)}).def({}),mongodb:jt.shape({db:jt.string,collection:jt.string}),endpointConfig:jt.shape({url:jt.string.isRequired,method:jt.string,headers:jt.object,body:jt.object})},er=at.getClassName,tr=at.handleA11yAction;function nr(e,t,n){var r=parseInt(e/2,10),o=t-(n?Math.ceil(r/2)-1:r);return o>1?o:2}var rr,or={name:"Pagination",functional:!0,props:{currentPage:Jn.number,innerClass:Jn.style,pages:Jn.number,setPage:Jn.func,totalPages:Jn.number,showEndPage:jt.bool,prevLabel:Jn.string,nextLabel:Jn.string},render:function(e,t){var n=arguments[0],r=t.props,o=function(){r.currentPage&&r.setPage(r.currentPage-1)},i=function(){r.currentPage<r.totalPages-1&&r.setPage(r.currentPage+1)};if(!r.totalPages)return null;var a=er(r.innerClass,"button"),s=0===r.currentPage,u=a||s?a+" "+(s?"active":""):"",l=function(e){var t=r.pages,o=r.currentPage,i=r.totalPages,s=r.setPage,u=r.showEndPage,l="start"===e?nr(t,o,u):Math.max(2,Math.ceil(i-(t-1)/2+1)),c=[],p=l;if(l<=i){var d=t<i?l+(t-1):i+1;u&&(d="start"===e?l+(Math.ceil(t/2)-t%2):i+1),o>i-t+2&&(l=Math.max(2,i-t+2),d=l+t);for(var h=function(e){var t=o===e-1,r=n(Kn,{class:a||t?a+" "+(t?"active":""):"",attrs:{primary:t,tabIndex:"0",alt:"page-"+e},on:{keyPress:function(t){return tr(t,(function(){return s(e-1)}))},click:function(){return s(e-1)}}},[e]);e<=i+1&&(c.push(r),e===Math.min(i+1,d)-1&&(p=e))},f=l;f<Math.min(i+1,d);f+=1)h(f)}return[c,l,p]},c=function(){var e=r.showEndPage,t=r.currentPage,n=r.totalPages,o=r.pages;return e?t<=n-o+2||n<o?l("start")[0]:null:l("start")[0]};return n("div",{class:zn+" "+er(r.innerClass,"pagination")},[n(Kn,{class:er(r.innerClass,"button")||"",attrs:{disabled:0===r.currentPage,tabIndex:"0"},on:{keyPress:function(e){return tr(e,o)},click:o}},[r.prevLabel||"Prev"]),n(Kn,{class:u,attrs:{primary:s,tabIndex:"0"},on:{keyPress:function(e){return tr(e,(function(){return r.setPage(0)}))},click:function(){return r.setPage(0)}}},["1"]),r.showEndPage&&r.currentPage>=Math.floor(r.pages/2)+!!(r.pages%2)&&2!==l("start")[1]?n("span",["..."]):null,c(),r.showEndPage&&r.pages>2&&r.currentPage<=r.totalPages-Math.ceil(.75*r.pages)&&l("start")[2]!==l("end")[1]-1?n("span",["..."]):null,r.showEndPage&&r.totalPages>=r.pages&&l("end")[0],n(Kn,{class:er(r.innerClass,"button")||"",attrs:{disabled:r.currentPage>=r.totalPages-1,tabIndex:"0"},on:{keyPress:function(e){return tr(e,i)},click:i}},[r.nextLabel||"Next"])])}};or.install=function(e){e.component(or.name,or)};var ir=on("img")(rr||(rr=ft(["\n\twidth: 110px;\n"]))),ar={functional:!0,render:function(e){return e("a",{attrs:{href:"https://appbase.io/",target:"_blank",rel:"noopener noreferrer"}},[e(ir,{attrs:{src:"https://cdn.jsdelivr.net/gh/appbaseio/cdn@d2ec210045e59104ee5485841fa17b23fc83f097/appbase/logos/rbc-logo.svg"}})])}},sr=Object.prototype.hasOwnProperty;function ur(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}var lr=function(){return{}},cr={},pr=function(e,t){return void 0===e&&(e=lr),void 0===t&&(t=cr),function(n){var r=function(e){if("function"==typeof e)return e;if(e===Object(e))return function(t,n){return Object.keys(e).filter((function(t){return"function"==typeof e[t]})).reduce((function(r,o){var i;return ct({},r,((i={})[o]=e[o](t,n),i))}),{})};throw new Error("[revux] - mapState provided to connect is invalid")}(e);return{name:"connect-"+n.name,mixins:[n],inject:["$$store"],data:function(){var e=ct({},r(this.$$store.getState(),this.$props||{}),m(t,this.$$store.dispatch));return Object.keys(e).reduce((function(t,n){var r;return ct({},t,((r={})[n]=e[n],r))}),{})},created:function(){var e=this;this._unsubscribe=function(e,t,n){var r=t(e.getState());return e.subscribe((function(){var o=t(e.getState());if(!function(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o+=1)if(!sr.call(t,n[o])||!ur(e[n[o]],t[n[o]]))return!1;return!0}(r,o)){var i=r;n(r=o,i)}}))}(this.$$store,(function(t){return r(t,e.$props||{})}),(function(t){Object.keys(t).forEach((function(n){e.$set(e,n,t[n])}))}))},beforeDestroy:function(){this._unsubscribe()}}}},dr=at.updateDefaultQuery,hr=at.updateCustomQuery,fr=at.isEqual,gr=function(){return pr.apply(void 0,arguments)},mr=function(e){return"function"==typeof e};function yr(e,t){var n;Array.isArray(e)?n=[].concat(e):n=Object.keys(e).map((function(t){return e[t]?t:null}));return n.includes(t)?n.filter((function(e){return e!==t})):[].concat(n,[t])}var vr=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=(t.$scopedSlots||t.$props).render;return n?n(e):null},br=function(e){void 0===e&&(e={});var t=(e.$scopedSlots||e.$props).render;return Boolean(t)},Or=function(e){return void 0===e&&(e={}),Object.keys(e).filter((function(e){return L.includes(e)}))},Cr=function(e){return!!(e&&e.stopPropagation&&e.preventDefault)},wr=function(e,t,n,r){dr(e,ct({},n,{setDefaultQuery:t}),r)},Sr=function(e,t,n,r){hr(e,ct({},n,{setCustomQuery:t}),r)},$r=function(e,t,n,r){return"function"!=typeof e||"function"!=typeof t||fr(t(n,r),e(n,r))},_r=function(e){void 0===e&&(e={});var t=e.$scopedSlots||e.$props,n=t.renderQuerySuggestions,r=t.renderPopularSuggestions;return Boolean(r)||Boolean(n)},kr=function(e){return!(e&&e.length&&Object.keys(e).length)};function Pr(e){return/^-?\d+$/.test(e)}function Er(e){var t=e,n=t-48*Math.floor(t/48);return String.fromCharCode(t>=96?n:t)}function Tr(e){if(kr(e))return[];var t=[];return e.forEach((function(e){if("string"==typeof e)if("string"==typeof(a=e)&&-1!==a.indexOf("+")){for(var n,r=e.split("+"),o=[],i=0;i<r.length;i+=1)Pr(r[i])?o.push(Er(+r[i])):o.push(r[i]);n=o.join("+"),t.push(n)}else Pr(e)?t.push(Er(+e)):t.push(e);else t.push(Er(e));var a})),t}var Ir=["shift","ctrl","alt","control","option","cmd","command"];function Ar(e){return e.filter((function(e){return Ir.includes(e)}))}function Rr(e){return"string"!=typeof e?e:e.replace(/&#([0-9]{1,3});/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)}))}var xr=ot.addComponent,Lr=ot.removeComponent,jr=ot.watchComponent,Mr=ot.setQueryListener,Qr=ot.setComponentProps,Vr=ot.updateComponentProps,Dr=at.pushToAndClause,Fr=at.checkPropChange,Nr=at.checkSomePropChange,Ur=function(e,t){return{savedComponentProps:e.props[t.componentId]}},qr={addComponent:xr,removeComponent:Lr,setQueryListener:Mr,watchComponent:jr,setComponentProps:Qr,updateComponentProps:Vr},Br=function(e,t){return void 0===t&&(t={}),gr(Ur,qr)(function(e,t){return void 0===t&&(t={componentType:null,internalComponent:!1}),{name:"ComponentWrapper",props:{destroyOnUnmount:jt.bool.def(!1)},created:function(){var e=ct({},this.$attrs),t={};Object.keys(e).forEach((function(n){var r;t[(r=n,void 0===r&&(r=""),r.split("-").map((function(e,t){return t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e})).join("")||"")]=e[n]})),this.componentProps=t,this.componentId=this.componentProps.componentId,this.react=this.componentProps.react},beforeMount:function(){var e=this,n=[];this.$$store&&(n=this.$$store.getState().components);if(this.destroyOnUnmount||-1===n.indexOf(this.componentProps.componentId)){this.addComponent(this.componentId);this.setQueryListener(this.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),(function(t){e.$emit("error",t)})),this.setComponentProps(this.componentId,this.componentProps,t.componentType)}(t.internalComponent||this.componentProps.defaultQuery&&t.componentType===x.reactiveComponent)&&(this.internalComponent=Qe(this.componentId)),this.internalComponent&&(this.destroyOnUnmount||-1===n.indexOf(this.internalComponent))&&(this.addComponent(this.internalComponent),this.setComponentProps(this.internalComponent,this.componentProps,t.componentType))},mounted:function(){this.internalComponent&&this.setReact(this.componentProps)},beforeDestroy:function(){this.destroyOnUnmount&&(this.removeComponent(this.componentId),this.internalComponent&&this.removeComponent(this.internalComponent))},watch:{$attrs:{deep:!0,handler:function(e){var n=this,r=Or(e);Nr(e,this.savedComponentProps,r,(function(){n.updateComponentProps(n.componentId,e,t.componentType),n.updateComponentProps(n.internalComponent,e,t.componentType)}))}},react:function(e,t){var n=this;Fr(e,t,(function(){return n.setReact(n.componentProps)}))}},methods:{setReact:function(e){var t=e.react;if(this.internalComponent)if(t){var n=Dr(t,this.internalComponent);this.watchComponent(e.componentId,n)}else this.watchComponent(e.componentId,{and:this.internalComponent});else this.watchComponent(e.componentId,t)}},render:function(t){return t(e,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots})}}}(e,t))};function zr(){return(zr=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}var Hr,Gr,Wr,Zr,Kr,Yr,Xr,Jr,eo=["attrs","props","domProps"],to=["class","style","directives"],no=["on","nativeOn"],ro=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},oo=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==eo.indexOf(n))e[n]=zr({},e[n],t[n]);else if(-1!==to.indexOf(n)){var r=e[n]instanceof Array?e[n]:[e[n]],o=t[n]instanceof Array?t[n]:[t[n]];e[n]=r.concat(o)}else if(-1!==no.indexOf(n))for(var i in t[n])if(e[n][i]){var a=e[n][i]instanceof Array?e[n][i]:[e[n][i]],s=t[n][i]instanceof Array?t[n][i]:[t[n][i]];e[n][i]=a.concat(s)}else e[n][i]=t[n][i];else if("hook"==n)for(var u in t[n])e[n][u]=e[n][u]?ro(e[n][u],t[n][u]):t[n][u];else e[n]=t[n];else e[n]=t[n];return e}),{})},io=on("h2")(Hr||(Hr=ft(["\n\tmargin: 0 0 8px;\n\tfont-size: 1rem;\n\tcolor: ",";\n"])),(function(e){return e.theme.colors.titleColor})),ao=Jt(Gr||(Gr=ft(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 0;\n\tborder-radius: 0.25rem;\n\toverflow: hidden;\n"]))),so=Jt(Wr||(Wr=ft(["\n\twidth: 100px;\n\theight: 100px;\n"]))),uo=on("div")(Zr||(Zr=ft(["\n\twidth: 160px;\n\theight: 160px;\n\t",";\n\tmargin: 0;\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tbackground-image: ",";\n"])),(function(e){return e.small?so:null}),(function(e){return"url("+e.src+")"})),lo=on("a")(Kr||(Kr=ft(["\n\twidth: 100%;\n\theight: auto;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 0;\n\tbackground-color: ",";\n\tdisplay: flex;\n\tflex-direction: row;\n\tmargin: 0;\n\tpadding: 10px;\n\tborder-bottom: 1px solid ",";\n\tcolor: ",";\n\t","; all 0.3s ease;\n\n\t&:hover, &:focus {\n\t\tbackground-color: ",";\n\t}\n\n\t&:last-child {\n\t\tborder: 0;\n\t}\n\n\th2 {\n\t\twidth: 100%;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 0 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\twidth: ",";\n\t\tpadding-left: ",";\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover, &:focus {\n\t\tbox-shadow: 0 0 0 0 rgba(0,0,0,0.10);\n\t}\n\n\t@media (max-width: 420px) {\n\t\tmin-width: 0;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover, &:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"])),(function(e){var t=e.theme;return t.colors.backgroundColor?qn(.1,t.colors.backgroundColor):"#fff"}),(function(e){var t=e.theme;return t.colors.backgroundColor?qn(.3,t.colors.backgroundColor):qn(.68,t.colors.textColor)}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null}),(function(e){var t=e.theme;return t.colors.backgroundColor?qn(.2,t.colors.backgroundColor):"#fdfefd"}),(function(e){return e.image?e.small?"calc(100% - 100px)":"calc(100% - 160px)":"100%"}),(function(e){return e.image?"10px":0})),co={name:"ResultListWrapper",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",oo([{attrs:{className:ao}},n]),[r])}};co.install=function(e){e.component(co.name,co)};var po,ho,fo,go,mo,yo,vo,bo,Oo,Co,wo,So=Jt(Yr||(Yr=ft(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\tflex-wrap: wrap;\n\tmargin: 0 -8px;\n\n\t@media (max-width: 420px) {\n\t\tmargin: 0;\n\t}\n"]))),$o=on("div")(Xr||(Xr=ft(["\n\twidth: calc(100% + 20px);\n\theight: 220px;\n\tmargin: -10px -10px 0;\n\tbackground-color: ",";\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n"])),(function(e){return e.theme.colors.backgroundColor||"#fcfcfc"})),_o=on("a")(Jr||(Jr=ft(["\n\twidth: auto;\n\tflex-grow: 1;\n\toutline: none;\n\ttext-decoration: none;\n\tmin-width: 240px;\n\tmax-width: 250px;\n\tborder-radius: 0.25rem;\n\tbackground-color: ",";\n\theight: 300px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tmargin: 8px;\n\tpadding: 10px;\n\toverflow: hidden;\n\tbox-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);\n\tcolor: ",";\n\t",";\n\ttransition: all 0.3s ease;\n\n\th2 {\n\t\twidth: 100%;\n\t\tfont-size: 0.9rem;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 10px 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\tflex-grow: 1;\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbox-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.3);\n\t}\n\n\t@media (max-width: 420px) {\n\t\twidth: 50%;\n\t\tmin-width: 0;\n\t\theight: 210px;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"])),(function(e){var t=e.theme;return t.colors.backgroundColor?qn(.1,t.colors.backgroundColor):"#fff"}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null})),ko={name:"ResultCardsWrapper",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",oo([{attrs:{className:So}},n]),[r])}};ko.install=function(e){e.component(ko.name,ko)};var Po,Eo,To=Jt(po||(po=ft(["\n\tflex-direction: row;\n\talign-items: center;\n"]))),Io=Jt(ho||(ho=ft(["\n\tflex-direction: row-reverse;\n\talign-items: center;\n"]))),Ao=Jt(fo||(fo=ft(["\n\tflex-direction: column;\n"]))),Ro=Jt(go||(go=ft(["\n\tflex-direction: column-reverse;\n"]))),xo=function(e){var t=e.theme.colors;return Jt(mo||(mo=ft(["\n\tborder: 1px solid ",";\n"])),t.borderColor||"#ccc")},Lo=on("div")(yo||(yo=ft(["\n\tdisplay: ",";\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t",";\n\t",";\n\n\t",";\n\t",";\n\t",";\n\n\tsvg.cancel-icon {\n\t\tcursor: pointer;\n\t\tfill: ",";\n\t\tflex-basis: 30px;\n\n\t\t&:hover {\n\t\t\tfill: ",";\n\t\t}\n\t}\n"])),(function(e){return e.inline?"inline-flex":"flex"}),(function(e){return("left"===e.labelPosition||"right"===e.iconPosition)&&To}),(function(e){return("right"===e.labelPosition||"left"===e.iconPosition)&&Io}),(function(e){return"top"===e.labelPosition&&Ao}),(function(e){return"bottom"===e.labelPosition&&Ro}),(function(e){return e.showBorder&&xo}),(function(e){return e.justifyContent&&Jt(vo||(vo=ft(["\n\t\t\tjustify-content: ",";\n\t\t"])),e.justifyContent)}),(function(e){return e.alignItems&&Jt(bo||(bo=ft(["\n\t\t\talign-items: ",";\n\t\t"])),e.alignItems)}),(function(e){return e.flex&&Jt(Oo||(Oo=ft(["\n\t\t\tflex: ",";\n\t\t"])),e.flex)}),(function(e){return e.direction&&Jt(Co||(Co=ft(["\n\t\t\tflex-direction: ",";\n\t\t"])),e.direction)}),(function(e){return e.basis&&Jt(wo||(wo=ft(["\n\t\t\tflex-basis: ",";\n\t\t"])),e.basis)}),(function(e){var t=e.theme.colors;return t.borderColor||qn(.3,t.textColor)}),(function(e){return e.theme.colors.textColor})),jo=Jt(Po||(Po=ft(["\n\tflex-grow: 1;\n\tfont-size: 0.82rem;\n"]))),Mo=Jt(Eo||(Eo=ft(["\n\tcolor: #424242;\n\theight: 32px;\n\tfont-size: 0.82rem;\n\tpadding: 0 25px 0 10px;\n\tbackground: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+)\n\t\tno-repeat 95% 50%;\n\tbackground-color: #fff;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\tappearance: none;\n\t-webkit-border-radius: 0;\n\tborder-radius: 0;\n\tborder: 0;\n\toutline: 1px solid #ddd;\n\toutline-offset: -1px;\n"]))),Qo=ot.recordImpressions,Vo=at.isEqual,Do={name:"ImpressionTracker",inject:["$$store"],props:{hits:Jn.hits},created:function(){this.currentHits=[],this.trackedIds={},this.waitingToBeTracked={}},mounted:function(){this.setCurrentHits(this.hits),window&&window.addEventListener("scroll",this.tracker)},destroy:function(){this.clearTrackerInterval()},watch:{hits:function(e,t){if(e&&e!==t){var n=t.map((function(e){return e._id})),r=e.map((function(e){return e._id}));Vo(r,n)||this.setCurrentHits(e)}}},methods:{inViewPort:function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},setCurrentHits:function(e){this.currentHits=e,this.trackedIds={},e&&e.length&&(this.tracker(),this.setTrackerInterval())},recordImpression:function(){var e=this;if(Object.keys(this.waitingToBeTracked).length){var t=ct({},this.waitingToBeTracked);Object.keys(t).forEach((function(n){t[n]&&t[n].length&&(e.trackImpressions(n,t[n]),delete e.waitingToBeTracked[n])}))}},addToWaitingList:function(e){var t=this.getQueryId();if(e&&t){var n={id:e._id,index:e._index};this.waitingToBeTracked[t]?this.waitingToBeTracked[t].push(n):this.waitingToBeTracked[t]=[n]}},tracker:function(){var e,t,n=this;this.getHitIds().length?(window&&document&&this.getHitIds().forEach((function(e){var t=document.getElementById(e);if(t&&n.inViewPort(t)){var r=n.currentHits.find((function(t){return t._id===e}));n.trackedIds[e]=!0,n.addToWaitingList(r)}})),e=this.recordImpression,t=300,clearTimeout(e._tId),e._tId=setTimeout((function(){e()}),t)):this.clearTrackerInterval()},setTrackerInterval:function(){this.intervalID=setInterval(this.tracker,1e3)},clearTrackerInterval:function(){this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)},getQueryId:function(){var e=this.$$store?this.$$store.getState():null;return e?e.analytics.searchId:null},getHitIds:function(){var e=this;return this.currentHits.map((function(e){return e._id})).filter((function(t){return!e.trackedIds[t]}))}},render:function(){return this.$slots.default}},Fo=gr((function(){return null}),{trackImpressions:Qo})(Do),No=ot.setQueryOptions,Uo=ot.updateQuery,qo=ot.loadMore,Bo=ot.setValue,zo=ot.updateComponentProps,Ho=ot.setDefaultQuery,Go=ot.recordResultClick,Wo=at.isEqual,Zo=at.getQueryOptions,Ko=at.getClassName,Yo=at.parseHits,Xo=at.getCompositeAggsQuery,Jo=at.getResultStats,ei=at.extractQueryFromCustomQuery,ti=at.getOptionsForCustomQuery,ni={name:"ReactiveList",components:{ResultListWrapper:co,ResultCardsWrapper:ko},data:function(){var e=0,t=this.defaultPage||-1;return t>=0?e=t:this.currentPage&&(e=Math.max(this.currentPage-1,0)),this.__state={from:e*this.size,currentPageState:e},this.__state},created:function(){var e=this,t=this.$props,n=t.distinctField,r=t.distinctFieldConfig,o=t.index;this.pagination&&this.aggregationField&&console.warn("Pagination is not supported when aggregationField is present. The list will be rendered with infinite scroll"),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!n&&!r||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&o&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var i=this.defaultPage||-1;i>=0&&(this.currentPageState=i,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.sortOptionIndex=0,this.defaultSortOption&&this.sortOptions&&Array.isArray(this.sortOptions)&&(this.sortOptionIndex=this.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption}))),this.urlSortOption&&(this.sortOptionIndex=this.$props.sortOptions.findIndex((function(t){return t.label===e.urlSortOption}))||0),this.updateComponentProps(this.componentId,{from:this.from},x.reactiveList),this.updateComponentProps(this.internalComponent,{from:this.from},x.reactiveList)},props:{currentPage:jt.number.def(0),includeFields:Jn.includeFields,className:Jn.string,componentId:Jn.stringRequired,dataField:Jn.stringRequired,aggregationField:Jn.string,aggregationSize:jt.number,defaultQuery:Jn.func,defaultSortOption:Jn.string,excludeFields:Jn.excludeFields,innerClass:Jn.style,listClass:jt.string.def(""),loader:Jn.title,render:Jn.func,renderItem:Jn.func,renderNoResults:jt.any.def("No Results found."),renderError:Jn.title,renderResultStats:Jn.func,pages:jt.number.def(5),pagination:jt.bool.def(!1),infiniteScroll:jt.bool.def(!0),paginationAt:jt.oneOf(["top","bottom","both"]).def("bottom"),react:Jn.react,scrollOnChange:jt.bool.def(!0),showResultStats:jt.bool.def(!0),showEndPage:jt.bool.def(!1),size:jt.number.def(10),sortBy:Jn.sortBy,sortOptions:Jn.sortOptions,URLParams:jt.bool.def(!1),prevLabel:Jn.string,nextLabel:Jn.string,distinctField:Jn.string,distinctFieldConfig:Jn.props,index:jt.string,endpoint:Jn.endpointConfig},computed:{shouldRenderPagination:function(){return this.pagination&&!this.aggregationField},totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},hasPageChangeListener:function(){return this.$listeners&&this.$listeners.pageChange},hasResultStatsListener:function(){return this.$listeners&&this.$listeners.resultStats},stats:function(){return ct({},Jo(this),{currentPage:this.currentPageState,displayedResults:this.data.length})},hasCustomRender:function(){return br(this)},showInfiniteScroll:function(){return this.infiniteScroll&&!this.shouldRenderPagination},data:function(){var e=Yo(this.hits)||[],t=Yo(this.promotedResults)||[],n=e;if(t.length){var r=t.map((function(e){return e._id})).filter(Boolean);r&&(n=n.filter((function(e){return!r.includes(e._id)}))),n=[].concat(t,n)}return we(n)}},watch:{sortOptions:function(e,t){Wo(t,e)||this.updateQueryOptions(this.$props)},sortBy:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},size:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},dataField:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},includeFields:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},excludeFields:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},defaultQuery:function(e,t){if(!$r(e,t,null,this.$props)){var n=Zo(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=ei(this.$defaultQuery),o=ti(this.$defaultQuery);o&&(n=ct({},n,o)),wr(this.componentId,this.setDefaultQuery,this.$props),this.setQueryOptions(this.$props.componentId,ct({},n,this.getAggsQuery()),!r),this.updateQuery({componentId:this.internalComponent,query:r},!0),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){Wo(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){Wo(e,t)||this.$emit("data",this.getData())},time:function(e,t){Wo(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.shouldRenderPagination?this.isLoading&&(t||e)&&(this.hasPageChangeListener?(this.$emit("pageChange",this.currentPageState+1,this.totalPages),this.$emit("page-change",this.currentPageState+1,this.totalPages)):this.scrollOnChange&&window.scrollTo(0,0)):t&&e&&(t.length===e.length&&e.length!==this.$props.total||e.length<t.length&&(this.scrollOnChange&&window.scrollTo(0,0),this.from=0))},rawData:function(e,t){Wo(e,t)||this.$emit("data",this.getData())},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},infiniteScroll:function(e,t){e!==t&&(e?window.removeEventListener("scroll",this.scrollHandler):window.addEventListener("scroll",this.scrollHandler))},defaultPage:function(e,t){this.currentPageState!==e&&t!==e&&this.setPage(e>=0?e:0)}},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,this.URLParams);var e=Zo(this.$props);if(e.from=this.$data.from,this.sortOptions&&this.sortOptions[this.sortOptionIndex]){var t,n=this.sortOptions[this.sortOptionIndex].dataField,r=this.sortOptions[this.sortOptionIndex].sortBy;e.sort=[(t={},t[n]={order:r},t)],this.updateComponentProps(this.componentId,{dataField:n,sortBy:r},x.reactiveList)}else if(this.$props.sortBy){var o;e.sort=[(o={},o[this.$props.dataField]={order:this.$props.sortBy},o)]}this.$defaultQuery=null,this.$props.defaultQuery&&(this.$defaultQuery=this.$props.defaultQuery(),e=ct({},e,ti(this.$defaultQuery)),wr(this.componentId,this.setDefaultQuery,this.$props));var i=ei(this.$defaultQuery);this.setQueryOptions(this.$props.componentId,ct({},e,this.getAggsQuery()),!1),this.$defaultQuery?this.updateQuery({componentId:this.internalComponent,query:i},!1):this.updateQuery({componentId:this.internalComponent,query:null},!1),this.showInfiniteScroll&&window.addEventListener("scroll",this.scrollHandler)},beforeDestroy:function(){this.showInfiniteScroll&&window.removeEventListener("scroll",this.scrollHandler)},render:function(){var e=arguments[0],t=this.$data.hits,n=Yo(t)||[];return e("div",{style:this.$props.style,class:this.$props.className},[this.isLoading&&this.shouldRenderPagination&&this.showInfiniteScroll&&(this.$scopedSlots.loader||this.$props.loader),this.renderErrorComponent(),e(Lo,{attrs:{labelPosition:this.sortOptions?"right":"left"},class:Ko(this.$props.innerClass,"resultsInfo")},[this.sortOptions?this.renderSortOptions():null,this.$props.showResultStats&&n.length?this.renderStats():null]),!this.isLoading&&t&&0===t.length?this.renderNoResult():null,!this.shouldRenderPagination||"top"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:e(or,{attrs:{pages:this.$props.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.$props.innerClass,prevLabel:this.$props.prevLabel,nextLabel:this.$props.nextLabel}}),this.renderResults(),this.isLoading&&!this.shouldRenderPagination?this.$scopedSlots.loader||this.$props.loader||e("div",{style:{textAlign:"center",margin:"20px 0",color:"#666"}},["Loading..."]):null,!this.shouldRenderPagination||"bottom"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:e(or,{attrs:{pages:this.$props.pages,totalPages:Math.ceil(this.$data.total/this.$props.size),currentPage:this.currentPageState,setPage:this.setPage,showEndPage:this.$props.showEndPage,innerClass:this.$props.innerClass,prevLabel:this.$props.prevLabel,nextLabel:this.$props.nextLabel}}),this.url.endsWith("appbase.io")&&n.length?e(Lo,{attrs:{direction:"row-reverse"},class:Ko(this.$props.innerClass,"poweredBy")},[e(ar)]):null])},methods:{renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?mr(e)?e(this.error):e:null},renderResults:function(){var e=this,t=this.$createElement,n=this.$props.size,r=this.$scopedSlots.renderItem||this.$props.renderItem,o=this.hasCustomRender?this.getComponent():t("div",{class:this.$props.listClass+" "+Ko(this.$props.innerClass,"list")},[this.data.map((function(t,o){return r({item:t,count:e.currentPageState*n+o+1,triggerClickAnalytics:function(){return e.triggerClickAnalytics(e.currentPageState*n+o)}})}))]);return this.analytics?t(Fo,{attrs:{hits:this.data}},[o]):o},updateQueryOptions:function(e){var t=Zo(e);if(t.from=this.$data.from,e.sortOptions&&Array.isArray(e.sortOptions)){var n,r=e.defaultSortOption?e.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption})):0;if(e.sortOptions[r])t.sort=[(n={},n[e.sortOptions[r].dataField]={order:e.sortOptions[r].sortBy},n)]}else if(e.sortBy){var o;t.sort=[(o={},o[e.dataField]={order:e.sortBy},o)]}this.setQueryOptions(this.$props.componentId,ct({},t,this.getAggsQuery()),!0)},getAggsQuery:function(){var e=this.$props,t=e.size,n=e.aggregationField,r=this.$data.afterKey,o={size:t};return n&&(o.aggs=Xo({props:this.$props,after:r||null,showTopHits:!0}).aggs),o},scrollHandler:function(){!this.isLoading&&window.innerHeight+window.pageYOffset+300>=document.body.scrollHeight&&this.loadMore()},loadMore:function(){if((!this.aggregationField||this.afterKey)&&this.hits&&!this.shouldRenderPagination&&this.total>this.hits.length){var e=this.$data.from+this.$props.size;if(this.hits.length<e)return;var t=ct({},Zo(this.$props),this.getAggsQuery());this.from=e,wr(this.componentId,this.setDefaultQuery,this.$props),this.loadMoreAction(this.$props.componentId,ct({},t,{from:e}),!0,!!this.aggregationField)}},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.$props.size*e,n=Zo(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.$props.componentId,ct({},n,{from:t}),!1),this.setPageURL(this.$props.componentId,e+1,this.$props.componentId,!1,this.URLParams)}},renderStats:function(){var e=this.$createElement,t=this.$scopedSlots.renderResultStats||this.$props.renderResultStats;return t&&this.$data.total?t(this.stats):this.stats.numberOfResults?e("p",{class:jo+" "+Ko(this.$props.innerClass,"resultStats")},[this.stats.numberOfResults," results found in ",this.stats.time||0,"ms"]):null},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return this.$scopedSlots.renderNoResults?mr(t)?t():t:e("p",{class:Ko(this.$props.innerClass,"noResults")||null},[mr(t)?t():t])},handleSortChange:function(e){var t=e.target.value;if(this.sortOptions&&this.sortOptions[t]){var n,r=Zo(this.$props);r.from=0;var o=this.sortOptions[t].dataField,i=this.sortOptions[t].sortBy;r.sort=[(n={},n[o]={order:i},n)],this.sortOptionIndex=t,this.updateComponentProps(this.componentId,{dataField:o,sortBy:i},x.reactiveList),this.setQueryOptions(this.$props.componentId,r,!0),this.setPage(0),this.currentPageState=0,this.from=0;var a=this.$props.sortOptions[this.sortOptionIndex]?this.$props.sortOptions[this.sortOptionIndex].label:null;this.setPageURL(this.$props.componentId+"sortOption",a,this.$props.componentId+"sortOption",!1,this.$props.URLParams)}},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.getData().data.find((function(t){return t._click_id===e}));r&&r._id&&(n=r._id)}this.recordResultClick(e,n)},renderSortOptions:function(){var e=this.$createElement;return e("select",{class:Mo+" "+Ko(this.$props.innerClass,"sortOptions"),attrs:{name:"sort-options","aria-label":"Sort options"},on:{change:this.handleSortChange},domProps:{value:this.sortOptionIndex}},[this.sortOptions.map((function(t,n){return e("option",{key:t.label,domProps:{value:n}},[t.label])}))])},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return ct({},e,{_click_id:t+n})}))},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.aggregationData,r=this.customData,o=this.currentPage,i=this.hits,a=o*e;return{results:Yo(i)||[],customData:r||{},promotedResults:Yo(t)||[],aggregationData:n,loadMore:this.loadMore,base:a,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData;return{data:this.data,aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t||[]),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=ct({error:this.error,loading:this.isLoading||!1,loadMore:this.loadMore,triggerAnalytics:this.triggerClickAnalytics,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return vr(e,this)}}},ri={loadMoreAction:qo,setPageURL:Bo,setQueryOptions:No,updateQuery:Uo,updateComponentProps:zo,setDefaultQuery:Ho,recordResultClick:Go};ni.generateQueryOptions=function(e){var t=Zo(e),n=e.size,r=e.dataField,o=e.defaultSortOption,i=e.sortOptions,a=e.currentPage,s=e.sortBy;t.from=a?(a-1)*(n||10):0,t.size=n||10;if(i)t.sort=[function(){var e;if(o){var t,n=i.find((function(e){return e.label===o}));if(n)return(t={})[n.dataField]={order:n.sortBy},t}return(e={})[i[0].dataField]={order:i[0].sortBy},e}()];else if(s){var u;t.sort=[(u={},u[r]={order:s},u)]}return t},ni.hasInternalComponent=function(){return!0};var oi=Br(gr((function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1,urlSortOption:e.selectedValues[t.componentId+"sortOption"]&&e.selectedValues[t.componentId+"sortOption"].value,hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId],promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,analytics:e.config&&e.config.analytics,enableAppbase:e.config.enableAppbase,url:e.config.url,error:e.error[t.componentId],afterKey:e.aggregations[t.componentId]&&e.aggregations[t.componentId][t.aggregationField]&&e.aggregations[t.componentId][t.aggregationField].after_key,componentProps:e.props[t.componentId],isLoading:e.isLoading[t.componentId]}}),ri)(ni),{componentType:x.reactiveList,internalComponent:ni.hasInternalComponent()});ni.install=function(e){e.component(ni.name,oi),e.component(co.name,co),e.component(ko.name,ko)},ni.componentType=x.reactiveList;var ii=function(e){var t=RegExp("^(([^:/?#]*)?://)?(((.*)?@)?([^/?#]*)?)([^?#]*)(\\?([^#]*))?(#(.*))?"),n=e.match(t);return{protocol:n[2],auth:n[5],host:n[6],path:n[7],query:n[9],hash:n[11]}};function ai(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var si=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var l,c,p,d,h=e[u].replace(i,"%20"),f=h.indexOf(n);f>=0?(l=h.substr(0,f),c=h.substr(f+1)):(l=h,c=""),p=decodeURIComponent(l),d=decodeURIComponent(c),ai(o,p)?Array.isArray(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o},ui=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},li=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(ui(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(ui(e))})).join(t):o+encodeURIComponent(ui(e[r]))})).filter(Boolean).join(t):r?encodeURIComponent(ui(r))+n+encodeURIComponent(ui(e)):""},ci=o((function(e,t){t.decode=t.parse=si,t.encode=t.stringify=li})),pi=(ci.decode,ci.parse,ci.encode,ci.stringify,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e});function di(e){if(e&&"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<e.length;t+=1){var n=e[t];if(!n)return new Error("query object can not have an empty value");if(!n.id)return new Error("'id' field must be present in query object")}return!0}return new Error("invalid query value, 'query' value must be an array")}function hi(e,t){var n=[],r={object:null,string:"",number:0};Object.keys(t).forEach((function(o){var i=t[o].split("|").find((function(t){return pi(e[o])===t}));i&&e[o]!==r[i]||n.push(o)}));for(var o="",i=0;i<n.length;i+=1)o+=n[i]+", ";return!(n.length>0)||new Error("fields missing: "+o)}function fi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e||0!==Object.keys(e).length||e.constructor!==Object?JSON.parse(JSON.stringify(e)):null}function gi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return t?Object.keys(e).forEach((function(t){n[t]=encodeURI(e[t])})):n=e,n}function mi(e,t){var n={};return e&&(n.index=e),t&&(t.db&&(n.db=t.db),t.collection&&(n.collection=t.collection)),n}function yi(e,t){var n={};return t?(Object.assign(n,{"X-Search-Client":"Appbase JS"}),!1===e&&Object.assign(n,{"X-Enable-Telemetry":e}),n):n}var vi={MONGODB:"mongodb",ELASTICSEARCH:"elasticsearch"},bi="array",Oi="object",Ci="boolean",wi="string",Si=function(e){return(void 0===e?"undefined":pi(e))===Oi?Array.isArray(e)?bi:Oi:void 0===e?"undefined":pi(e)};var $i={mongodb:{url:{type:wi,required:!0},app:{type:wi,required:!1},credentials:{type:wi,required:!1},enableTelemetry:{type:Ci,required:!1},mongodb:{type:Oi,required:!0},username:{type:wi,required:!1},password:{type:wi,required:!1}},elasticsearch:{url:{type:wi,required:!0},app:{type:wi,required:!0},credentials:{type:wi,required:!1},enableTelemetry:{type:Ci,required:!1},username:{type:wi,required:!1},password:{type:wi,required:!1}}};function _i(e){var t=ii((e.endpoint?e.endpoint.url:"")||e.url),n=t.auth,r=void 0===n?null:n,o=t.host,i=void 0===o?"":o,a=t.path,s=void 0===a?"":a,u=t.protocol,l=void 0===u?"":u,c=e.url;"/"===(c=i+s).slice(-1)&&(c=c.slice(0,-1));var p=vi[e.mongodb?"MONGODB":"ELASTICSEARCH"],d=$i[p];if(e.endpoint&&function(e){var t=void 0;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}(e.endpoint.url)&&(d.url.required=!1,d.app.required=!1,d.credentials.required=!1),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=Object.keys(e).filter((function(t){return!!e[t]})),o=Object.keys(t),i=[];o.forEach((function(e){t[e].required&&i.push(e)})),i.forEach((function(e){if(!r.includes(e))throw new Error(e+" is required when using the "+n+" Search backend.")})),r.forEach((function(r){if(!o.includes(r))throw new Error(r+" property isn't accepted property by "+n+" backend.");var i=Array.isArray(t[r].type)?t[r].type:[].concat(t[r].type),a=Si(e[r]);if(!i.includes(a))throw new Error("The property "+r+" is expected with type(s) ["+i.join(", ")+"], but type was set as "+a+".")}))}({url:e.url,app:e.app,credentials:e.credentials,username:e.username,password:e.password,enableTelemetry:e.enableTelemetry,mongodb:e.mongodb},d,p),"string"!=typeof l||""===l)throw new Error("Protocol is not present in url. URL should be of the form https://appbase-demo-ansible-abxiydt-arc.searchbase.io");var h=r||null;if("string"==typeof e.credentials&&""!==e.credentials?h=e.credentials:"string"==typeof e.username&&""!==e.username&&"string"==typeof e.password&&""!==e.password&&(h=e.username+":"+e.password),!e.mongodb&&function(e){return t="scalr.api.appbase.io",-1!==e.indexOf(t);var t}(c)&&null===h)throw new Error("Authentication information is not present. Did you add credentials?");this.url=c,this.protocol=l,this.app=e.app,this.credentials=h,e.mongodb&&(this.mongodb=e.mongodb),"boolean"==typeof e.enableTelemetry&&(this.enableTelemetry=e.enableTelemetry)}function ki(e){var t=this;return new Promise((function(n,r){var o=fi(e);try{var i=o.method,a=o.path,s=o.params,u=o.body,l=o.isRSAPI,c=o.isSuggestionsAPI,p=o.isMongoRequest,d=void 0!==p&&p,h=c?".suggestions":t.app,f=u,g=a.endsWith("msearch")||a.endsWith("bulk")?"application/x-ndjson":"application/json",m=Object.assign({},{Accept:"application/json","Content-Type":g},e.headers,t.headers),y=Date.now();t.credentials&&(m.Authorization="Basic "+function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=t,o="",i=0,a=0,s=n;r.charAt(0|a)||(s="=",a%1);o+=s.charAt(63&i>>8-a%1*8)){if((e=r.charCodeAt(a+=3/4))>255)throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');i=i<<8|e}return o}(t.credentials));var v={method:i,headers:m};if(Array.isArray(f)){var b="";f.forEach((function(e){b+=JSON.stringify(e),b+="\n"})),f=b}else f=JSON.stringify(f)||{};0!==Object.keys(f).length&&(v.body=f);var O={},C="";s&&(C="?"+ci.stringify(s));var w=d?t.protocol+"://"+t.url:t.protocol+"://"+t.url+"/"+h+"/"+a+C;return function(e){if(t.transformRequest&&"function"==typeof t.transformRequest){var n=t.transformRequest(e);return n instanceof Promise?n:Promise.resolve(n)}return Promise.resolve(e)}(Object.assign({},{url:w},v)).then((function(e){var t=Object.assign({},e),o=t.url;return delete t.url,ze(o||w,Object.assign({},t,{headers:l&&!d?Object.assign({},t.headers,{"x-timestamp":(new Date).getTime()}):t.headers})).then((function(e){return e.status>=500?r(e):(O=e.headers,e.json().then((function(t){if(e.status>=400)return r(e);if(t&&t.error)return r(t);if(l&&t&&"[object Object]"===Object.prototype.toString.call(t)&&u&&u.query&&u.query instanceof Array){var o=0,i=u.query.filter((function(e){return e.execute||void 0===e.execute})).length;if(t&&Object.keys(t).forEach((function(e){t[e]&&Object.prototype.hasOwnProperty.call(t[e],"error")&&t[e].error&&(o+=1)})),o>0&&i===o)return r(t)}if(t&&t.responses instanceof Array&&t.responses.length===t.responses.filter((function(e){return Object.prototype.hasOwnProperty.call(e,"error")})).length)return r(t);var a=Object.assign({},t,{_timestamp:y,_headers:O});return n(a)})).catch((function(e){return r(e)})))})).catch((function(e){return r(e)}))})).catch((function(e){return r(e)}))}catch(e){return r(e)}}))}function Pi(e){var t=fi(e),n=hi(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id,a=t.body;delete t.type,delete t.body,delete t.id;var s=void 0;return s=i?o?o+"/"+encodeURIComponent(i):encodeURIComponent(i):o,this.performFetchRequest({method:"POST",path:s,params:t,body:a})}function Ei(e){var t=fi(e),n=hi(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(i);return this.performFetchRequest({method:"GET",path:a,params:t})}function Ti(e){var t=fi(e),n=hi(t,{id:"string|number",body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id,a=t.body;delete t.type,delete t.id,delete t.body;var s=o+"/"+encodeURIComponent(i)+"/_update";return this.performFetchRequest({method:"POST",path:s,params:t,body:a})}function Ii(e){var t=fi(e),n=hi(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(i);return this.performFetchRequest({method:"DELETE",path:a,params:t})}function Ai(e){var t=fi(e),n=hi(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_bulk":"_bulk",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function Ri(e){var t=fi(e),n=hi(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_search":"_search",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function xi(e){var t=fi(e),n=hi(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_msearch":"_msearch",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function Li(e,t){var n=fi(t),r=di(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:mi(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch",body:o,headers:yi(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb})}function ji(e,t){var n=fi(t),r=di(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:mi(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,headers:yi(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb})}function Mi(){return this.performFetchRequest({method:"GET",path:"_mapping"})}function Qi(e,t){var n=fi(t),r=di(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:mi(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,headers:yi(this.enableTelemetry),isRSAPI:!0,isSuggestionsAPI:!0,isMongoRequest:!!this.mongodb})}function Vi(e){var t=new _i(e);return _i.prototype.performFetchRequest=ki,_i.prototype.index=Pi,_i.prototype.get=Ei,_i.prototype.update=Ti,_i.prototype.delete=Ii,_i.prototype.bulk=Ai,_i.prototype.search=Ri,_i.prototype.msearch=xi,_i.prototype.reactiveSearch=Li,_i.prototype.reactiveSearchv3=ji,_i.prototype.getQuerySuggestions=Qi,_i.prototype.getMappings=Mi,_i.prototype.setHeaders=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.headers=t?gi(e):e},"undefined"!=typeof window&&(window.Appbase=t),t}
12
+ */function isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}function isPlainObject$1(e){var t,n;return!1!==isObject(e)&&(void 0===(t=e.constructor)||!1!==isObject(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}var a={silent:!1,logLevel:"warn"},f=["validator"],l=Object.prototype,c=l.toString,s=l.hasOwnProperty,d=/^\s*function (\w+)/;function v(e){var t,n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){var r=n.toString().match(d);return r?r[1]:""}return""}var p=isPlainObject$1,y=function(e){return e},h=y,g=function(e,t){return s.call(e,t)},O=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},m=Array.isArray||function(e){return"[object Array]"===c.call(e)},j=function(e){return"[object Function]"===c.call(e)},_=function(e,t){return p(e)&&g(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t)},T=function(e){return p(e)&&(g(e,"type")||["_vueTypes_name","validator","default","required"].some((function(t){return g(e,t)})))};function w(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function k(e,t,n){var r;void 0===n&&(n=!1);var o=!0,a="";r=p(e)?e:{type:e};var s=_(r)?r._vueTypes_name+" - ":"";if(T(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return o;if(!r.required&&void 0===t)return o;m(r.type)?(o=r.type.some((function(e){return!0===k(e,t,!0)})),a=r.type.map((function(e){return v(e)})).join(" or ")):o="Array"===(a=v(r))?m(t):"Object"===a?p(t):"String"===a||"Number"===a||"Boolean"===a||"Function"===a?function(e){if(null==e)return"";var t=e.constructor.toString().match(d);return t?t[1]:""}(t)===a:t instanceof r.type}if(!o){var i=s+'value "'+t+'" should be of type "'+a+'"';return!1===n?(h(i),!1):i}if(g(r,"validator")&&j(r.validator)){var u=h,l=[];if(h=function(e){l.push(e)},o=r.validator(t),h=u,!o){var c=(l.length>1?"* ":"")+l.join("\n* ");return l.length=0,!1===n?(h(c),o):c}}return o}function P(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(e){return void 0===e?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(g(this,"default")&&delete this.default,this):j(e)||!0===k(this,e,!0)?(this.default=m(e)?function(){return[].concat(e)}:p(e)?function(){return Object.assign({},e)}:e,this):(h(this._vueTypes_name+' - invalid default value: "'+e+'"'),this)}}}),r=n.validator;return j(r)&&(n.validator=w(r,n)),n}function x(e,t){var n=P(e,t);return Object.defineProperty(n,"validate",{value:function(e){return j(this.validator)&&h(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=w(e,this),this}})}function A(e,t,n){var r,o,a=(r=t,o={},Object.getOwnPropertyNames(r).forEach((function(e){o[e]=Object.getOwnPropertyDescriptor(r,e)})),Object.defineProperties({},o));if(a._vueTypes_name=e,!p(n))return a;var s,i,l=n.validator,c=u(n,f);if(j(l)){var d=a.validator;d&&(d=null!==(i=(s=d).__original)&&void 0!==i?i:s),a.validator=w(d?function(e){return d.call(this,e)&&l.call(this,e)}:l,a)}return Object.assign(a,c)}function E(e){return e.replace(/^(?!\s*$)/gm," ")}var S=function(){return x("any",{})},N=function(){return x("function",{type:Function})},V=function(){return x("boolean",{type:Boolean})},q=function(){return x("string",{type:String})},L=function(){return x("number",{type:Number})},B=function(){return x("array",{type:Array})},D=function(){return x("object",{type:Object})},F=function(){return P("integer",{type:Number,validator:function(e){var t=O(e);return!1===t&&h('integer - "'+e+'" is not an integer'),t}})},Y=function(){return P("symbol",{validator:function(e){var t="symbol"==typeof e;return!1===t&&h('symbol - invalid value "'+e+'"'),t}})},I=function(){return Object.defineProperty({type:null,validator:function(e){var t=null===e;return!1===t&&h("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"})};function J(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return P(e.name||"<<anonymous function>>",{type:null,validator:function(n){var r=e(n);return r||h(this._vueTypes_name+" - "+t),r}})}function M(e){if(!m(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.map((function(e){return"symbol"==typeof e?e.toString():e})).join('", "')+'".',n={validator:function(n){var r=-1!==e.indexOf(n);return r||h(t),r}};if(-1===e.indexOf(null)){var r=e.reduce((function(e,t){if(null!=t){var n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e}),[]);r.length>0&&(n.type=r)}return P("oneOf",n)}function R(e){if(!m(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=!1,r=[],o=0;o<e.length;o+=1){var a=e[o];if(T(a)){if(j(a.validator)&&(t=!0),_(a,"oneOf")&&a.type){r=r.concat(a.type);continue}if(_(a,"nullable")){n=!0;continue}if(!0===a.type||!a.type){h('oneOfType - invalid usage of "true" and "null" as types.');continue}r=r.concat(a.type)}else r.push(a)}r=r.filter((function(e,t){return r.indexOf(e)===t}));var s=!1===n&&r.length>0?r:null;return P("oneOfType",t?{type:s,validator:function(t){var n=[],r=e.some((function(e){var r=k(e,t,!0);return"string"==typeof r&&n.push(r),!0===r}));return r||h("oneOfType - provided value does not match any of the "+n.length+" passed-in validators:\n"+E(n.join("\n"))),r}}:{type:s})}function U(e){return P("arrayOf",{type:Array,validator:function(t){var n="",r=t.every((function(t){return!0===(n=k(e,t,!0))}));return r||h("arrayOf - value validation error:\n"+E(n)),r}})}function $(e){return P("instanceOf",{type:e})}function z(e){return P("objectOf",{type:Object,validator:function(t){var n="",r=Object.keys(t).every((function(r){return!0===(n=k(e,t[r],!0))}));return r||h("objectOf - value validation error:\n"+E(n)),r}})}function C(e){var t=Object.keys(e),n=t.filter((function(t){var n;return!(null===(n=e[t])||void 0===n||!n.required)})),r=P("shape",{type:Object,validator:function(r){var o=this;if(!p(r))return!1;var a=Object.keys(r);if(n.length>0&&n.some((function(e){return-1===a.indexOf(e)}))){var s=n.filter((function(e){return-1===a.indexOf(e)}));return h(1===s.length?'shape - required property "'+s[0]+'" is not defined.':'shape - required properties "'+s.join('", "')+'" are not defined.'),!1}return a.every((function(n){if(-1===t.indexOf(n))return!0===o._vueTypes_isLoose||(h('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var a=k(e[n],r[n],!0);return"string"==typeof a&&h('shape - "'+n+'" property validation error:\n '+E(a)),!0===a}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var G=["name","validate","getter"],H=function(){var e;return(e=function(){function e(){}return e.extend=function(e){var t=this;if(h("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),m(e))return e.forEach((function(e){return t.extend(e)})),this;var n=e.name,r=e.validate,o=void 0!==r&&r,a=e.getter,s=void 0!==a&&a,i=u(e,G);if(g(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var l,c=i.type;return _(c)?(delete i.type,Object.defineProperty(this,n,s?{get:function(){return A(n,c,i)}}:{value:function(){var e,t=A(n,c,i);return t.validator&&(t.validator=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t}})):(l=s?{get:function(){var e=Object.assign({},i);return o?x(n,e):P(n,e)},enumerable:!0}:{value:function(){var e,t,r=Object.assign({},i);return e=o?x(n,r):P(n,r),r.validator&&(e.validator=(t=r.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e},enumerable:!0},Object.defineProperty(this,n,l))},n(e,null,[{key:"any",get:function(){return S()}},{key:"func",get:function(){return N().def(this.defaults.func)}},{key:"bool",get:function(){return void 0===this.defaults.bool?V():V().def(this.defaults.bool)}},{key:"string",get:function(){return q().def(this.defaults.string)}},{key:"number",get:function(){return L().def(this.defaults.number)}},{key:"array",get:function(){return B().def(this.defaults.array)}},{key:"object",get:function(){return D().def(this.defaults.object)}},{key:"integer",get:function(){return F().def(this.defaults.integer)}},{key:"symbol",get:function(){return Y()}},{key:"nullable",get:function(){return I()}}]),e}()).defaults={},e.sensibleDefaults=void 0,e.config=a,e.custom=J,e.oneOf=M,e.instanceOf=$,e.oneOfType=R,e.arrayOf=U,e.objectOf=z,e.shape=C,e.utils={validate:function(e,t){return!0===k(t,e,!0)},toType:function(e,t,n){return void 0===n&&(n=!1),n?x(e,t):P(e,t)}},e}();function K(e){var t;return void 0===e&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(t){function o(){return t.apply(this,arguments)||this}return i(o,t),n(o,null,[{key:"sensibleDefaults",get:function(){return r({},this.defaults)},set:function(t){this.defaults=!1!==t?r({},!0!==t?t:e):{}}}]),o}(H)).defaults=r({},e),t}var Q=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(K());function sheetForTag(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function createStyleElement(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var StyleSheet=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(createStyleElement(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=sheetForTag(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),e="-ms-",r$1="-moz-",a$1="-webkit-",n$1="comm",c$1="rule",s$1="decl",i$1="@import",h$1="@keyframes",$$1=Math.abs,k$1=String.fromCharCode,g$1=Object.assign;function m$1(e,t){return 45^C$1(e,0)?(((t<<2^C$1(e,0))<<2^C$1(e,1))<<2^C$1(e,2))<<2^C$1(e,3):0}function x$1(e){return e.trim()}function y$1(e,t){return(e=t.exec(e))?e[0]:e}function j$1(e,t,n){return e.replace(t,n)}function z$1(e,t){return e.indexOf(t)}function C$1(e,t){return 0|e.charCodeAt(t)}function O$1(e,t,n){return e.slice(t,n)}function A$1(e){return e.length}function M$1(e){return e.length}function S$1(e,t){return t.push(e),e}function q$1(e,t){return e.map(t).join("")}var B$1=1,D$1=1,E$1=0,F$1=0,G$1=0,H$1="";function I$1(e,t,n,r,o,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:B$1,column:D$1,length:s,return:""}}function J$1(e,t){return g$1(I$1("",null,null,"",null,null,0),e,{length:-e.length},t)}function K$1(){return G$1}function L$1(){return G$1=F$1>0?C$1(H$1,--F$1):0,D$1--,10===G$1&&(D$1=1,B$1--),G$1}function N$1(){return G$1=F$1<E$1?C$1(H$1,F$1++):0,D$1++,10===G$1&&(D$1=1,B$1++),G$1}function P$1(){return C$1(H$1,F$1)}function Q$1(){return F$1}function R$1(e,t){return O$1(H$1,e,t)}function T$1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function U$1(e){return B$1=D$1=1,E$1=A$1(H$1=e),F$1=0,[]}function V$1(e){return H$1="",e}function W(e){return x$1(R$1(F$1-1,ee(91===e?e+2:40===e?e+1:e)))}function Y$1(e){for(;(G$1=P$1())&&G$1<33;)N$1();return T$1(e)>2||T$1(G$1)>3?"":" "}function _$1(e,t){for(;--t&&N$1()&&!(G$1<48||G$1>102||G$1>57&&G$1<65||G$1>70&&G$1<97););return R$1(e,Q$1()+(t<6&&32==P$1()&&32==N$1()))}function ee(e){for(;N$1();)switch(G$1){case e:return F$1;case 34:case 39:34!==e&&39!==e&&ee(G$1);break;case 40:41===e&&ee(e);break;case 92:N$1()}return F$1}function re(e,t){for(;N$1()&&e+G$1!==57&&(e+G$1!==84||47!==P$1()););return"/*"+R$1(t,F$1-1)+"*"+k$1(47===e?e:N$1())}function ae(e){for(;!T$1(P$1());)N$1();return R$1(e,F$1)}function ne(e){return V$1(ce("",null,null,null,[""],e=U$1(e),0,[0],e))}function ce(e,t,n,r,o,a,s,i,u){for(var l=0,c=0,p=s,d=0,h=0,f=0,m=1,g=1,y=1,v=0,b="",_=o,$=a,C=r,O=b;g;)switch(f=v,v=N$1()){case 40:if(108!=f&&58==C$1(O,p-1)){-1!=z$1(O+=j$1(W(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:O+=W(v);break;case 9:case 10:case 13:case 32:O+=Y$1(f);break;case 92:O+=_$1(Q$1()-1,7);continue;case 47:switch(P$1()){case 42:case 47:S$1(te(re(N$1(),Q$1()),t,n),u);break;default:O+="/"}break;case 123*m:i[l++]=A$1(O)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:h>0&&A$1(O)-p&&S$1(h>32?ue(O+";",r,n,p-1):ue(j$1(O," ","")+";",r,n,p-2),u);break;case 59:O+=";";default:if(S$1(C=se(O,t,n,l,c,o,i,b,_=[],$=[],p),a),123===v)if(0===c)ce(O,t,C,C,_,a,p,i,$);else switch(99===d&&110===C$1(O,3)?100:d){case 100:case 109:case 115:ce(e,C,C,r&&S$1(se(e,C,C,0,0,o,i,b,o,_=[],p),$),o,$,p,i,r?_:$);break;default:ce(O,C,C,C,[""],$,0,i,$)}}l=c=h=0,m=y=1,b=O="",p=s;break;case 58:p=1+A$1(O),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==L$1())continue;switch(O+=k$1(v),v*m){case 38:y=c>0?1:(O+="\f",-1);break;case 44:i[l++]=(A$1(O)-1)*y,y=1;break;case 64:45===P$1()&&(O+=W(N$1())),d=P$1(),c=p=A$1(b=O+=ae(Q$1())),v++;break;case 45:45===f&&2==A$1(O)&&(m=0)}}return a}function se(e,t,n,r,o,a,s,i,u,l,c){for(var p=o-1,d=0===o?a:[""],h=M$1(d),f=0,m=0,g=0;f<r;++f)for(var y=0,v=O$1(e,p+1,p=$$1(m=s[f])),b=e;y<h;++y)(b=x$1(m>0?d[y]+" "+v:j$1(v,/&\f/g,d[y])))&&(u[g++]=b);return I$1(e,t,n,0===o?c$1:i,u,l,c)}function te(e,t,n){return I$1(e,t,n,n$1,k$1(K$1()),O$1(e,2,-2),0)}function ue(e,t,n,r){return I$1(e,t,n,s$1,O$1(e,0,r),O$1(e,r+1,-1),r)}function fe(e,t){for(var n="",r=M$1(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function oe(e,t,n,r){switch(e.type){case i$1:case s$1:return e.return=e.return||e.value;case n$1:return"";case h$1:return e.return=e.value+"{"+fe(e.children,r)+"}";case c$1:e.value=e.props.join(",")}return A$1(n=fe(e.children,r))?e.return=e.value+"{"+n+"}":""}function le(e){var t=M$1(e);return function(n,r,o,a){for(var s="",i=0;i<t;i++)s+=e[i](n,r,o,a)||"";return s}}function ve(e){return function(t){t.root||(t=t.return)&&e(t)}}function memoize(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var identifierWithPointTracking=function(e,t,n){for(var r=0,o=0;r=o,o=P$1(),38===r&&12===o&&(t[n]=1),!T$1(o);)N$1();return R$1(e,F$1)},toRules=function(e,t){var n=-1,r=44;do{switch(T$1(r)){case 0:38===r&&12===P$1()&&(t[n]=1),e[n]+=identifierWithPointTracking(F$1-1,t,n);break;case 2:e[n]+=W(r);break;case 4:if(44===r){e[++n]=58===P$1()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=k$1(r)}}while(r=N$1());return e},getRules=function(e,t){return V$1(toRules(U$1(e),t))},fixedElements=new WeakMap,compat=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fixedElements.get(n))&&!r){fixedElements.set(e,!0);for(var o=[],a=getRules(t,o),s=n.props,i=0,u=0;i<a.length;i++)for(var l=0;l<s.length;l++,u++)e.props[u]=o[i]?a[i].replace(/&\f/g,s[l]):s[l]+" "+a[i]}}},removeLabel=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function prefix(t,n){switch(m$1(t,n)){case 5103:return a$1+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a$1+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a$1+t+r$1+t+e+t+t;case 6828:case 4268:return a$1+t+e+t+t;case 6165:return a$1+t+e+"flex-"+t+t;case 5187:return a$1+t+j$1(t,/(\w+).+(:[^]+)/,a$1+"box-$1$2"+e+"flex-$1$2")+t;case 5443:return a$1+t+e+"flex-item-"+j$1(t,/flex-|-self/,"")+t;case 4675:return a$1+t+e+"flex-line-pack"+j$1(t,/align-content|flex-|-self/,"")+t;case 5548:return a$1+t+e+j$1(t,"shrink","negative")+t;case 5292:return a$1+t+e+j$1(t,"basis","preferred-size")+t;case 6060:return a$1+"box-"+j$1(t,"-grow","")+a$1+t+e+j$1(t,"grow","positive")+t;case 4554:return a$1+j$1(t,/([^-])(transform)/g,"$1"+a$1+"$2")+t;case 6187:return j$1(j$1(j$1(t,/(zoom-|grab)/,a$1+"$1"),/(image-set)/,a$1+"$1"),t,"")+t;case 5495:case 3959:return j$1(t,/(image-set\([^]*)/,a$1+"$1$`$1");case 4968:return j$1(j$1(t,/(.+:)(flex-)?(.*)/,a$1+"box-pack:$3"+e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a$1+t+t;case 4095:case 3583:case 4068:case 2532:return j$1(t,/(.+)-inline(.+)/,a$1+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(A$1(t)-1-n>6)switch(C$1(t,n+1)){case 109:if(45!==C$1(t,n+4))break;case 102:return j$1(t,/(.+:)(.+)-([^]+)/,"$1"+a$1+"$2-$3$1"+r$1+(108==C$1(t,n+3)?"$3":"$2-$3"))+t;case 115:return~z$1(t,"stretch")?prefix(j$1(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==C$1(t,n+1))break;case 6444:switch(C$1(t,A$1(t)-3-(~z$1(t,"!important")&&10))){case 107:return j$1(t,":",":"+a$1)+t;case 101:return j$1(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a$1+(45===C$1(t,14)?"inline-":"")+"box$3$1"+a$1+"$2$3$1"+e+"$2box$3")+t}break;case 5936:switch(C$1(t,n+11)){case 114:return a$1+t+e+j$1(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a$1+t+e+j$1(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a$1+t+e+j$1(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a$1+t+e+t+t}return t}var prefixer=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case s$1:t.return=prefix(t.value,t.length);break;case h$1:return fe([J$1(t,{value:j$1(t.value,"@","@"+a$1)})],o);case c$1:if(t.length)return q$1(t.props,(function(n){switch(y$1(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fe([J$1(t,{props:[j$1(n,/:(read-\w+)/,":"+r$1+"$1")]})],o);case"::placeholder":return fe([J$1(t,{props:[j$1(n,/:(plac\w+)/,":"+a$1+"input-$1")]}),J$1(t,{props:[j$1(n,/:(plac\w+)/,":"+r$1+"$1")]}),J$1(t,{props:[j$1(n,/:(plac\w+)/,e+"input-$1")]})],o)}return""}))}},defaultStylisPlugins=[prefixer],createCache=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||defaultStylisPlugins,s={},i=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;i.push(e)}));var u,l=[compat,removeLabel],c=[oe,ve((function(e){u.insert(e)}))],p=le(l.concat(a,c));o=function(e,t,n,r){u=n,fe(ne(e?e+"{"+t.styles+"}":t.styles),p),r&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new StyleSheet({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return d.sheet.hydrate(i),d},isBrowser=!0;function getRegisteredStyles(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var registerStyles=function(e,t,n){var r=e.key+"-"+t.name;!1!==n&&!1!==isBrowser||void 0!==e.registered[r]||(e.registered[r]=t.styles)},insertStyles=function(e,t,n){registerStyles(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}};function murmur2(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(e){return 45===e.charCodeAt(1)},isProcessableValue=function(e){return null!=e&&"boolean"!=typeof e},processStyleName=memoize((function(e){return isCustomProperty(e)?e:e.replace(hyphenateRegex,"-$&").toLowerCase()})),processStyleValue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex,(function(e,t,n){return cursor={name:t,styles:n,next:cursor},t}))}return 1===unitlessKeys[e]||isCustomProperty(e)||"number"!=typeof t||0===t?t:t+"px"},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return cursor={name:n.name,styles:n.styles,next:cursor},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)cursor={name:r.name,styles:r.styles,next:cursor},r=r.next;return n.styles+";"}return createStringFromObject(e,t,n);case"function":if(void 0!==e){var o=cursor,a=n(e);return cursor=o,handleInterpolation(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}function createStringFromObject(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=handleInterpolation(e,t,n[o])+";";else for(var a in n){var s=n[a];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":isProcessableValue(s)&&(r+=processStyleName(a)+":"+processStyleValue(a,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var i=handleInterpolation(e,t,s);switch(a){case"animation":case"animationName":r+=processStyleName(a)+":"+i+";";break;default:r+=a+"{"+i+"}"}}else for(var u=0;u<s.length;u++)isProcessableValue(s[u])&&(r+=processStyleName(a)+":"+processStyleValue(a,s[u])+";")}return r}var labelPattern=/label:\s*([^\s;\n{]+)\s*(;|$)/g,cursor,serializeStyles=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";cursor=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=handleInterpolation(n,t,a)):o+=a[0];for(var s=1;s<e.length;s++)o+=handleInterpolation(n,t,e[s]),r&&(o+=a[s]);labelPattern.lastIndex=0;for(var i,u="";null!==(i=labelPattern.exec(o));)u+="-"+i[1];return{name:murmur2(o)+u,styles:o,next:cursor}},_excluded=["as"],createStyled=function e(t,n){void 0===n&&(n={});var r=n.label,o=n.target,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;return function(){var i=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];void 0!==r&&i.push("label:"+r+";");for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];if(null===l[0]||void 0===l[0].raw)i.push.apply(i,l);else{i.push(l[0][0]);for(var p=l.length,d=1;d<p;d++)i.push(l[d],l[0][d])}var h={inheritAttrs:!1,inject:{theme:{from:"theme_reactivesearch",default:void 0},$emotionCache:{default:null}},render:function(e){var t=e.theme,r=e.$attrs,a=e.$options,u=e.$slots,l=e.$props,c=(e.$parent,this.$emotionCache),p=r||{},d=p.as,h=_objectWithoutPropertiesLoose(p,_excluded),f="",m=d||s,g=[],y=_extends({},r,{theme:t||a.inject.theme});r.class&&(f+=getRegisteredStyles(c.registered,g,r.class));var v=serializeStyles(i.concat(g),c.registered,y);insertStyles(c,v,"string"==typeof m),f+=c.key+"-"+v.name,void 0!==o&&(f+=" "+o);var b=_extends({},l,n.getAttrs?n.getAttrs(h):h,{class:f});return vue.h(m,b,u)}};return h.name=void 0===r?"Styled"+("string"==typeof s?s:s.name||"Component"):r,h.__emotion_real=h,h.__emotion_base=s,h.__emotion_styles=i,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,void 0===r?n:_extends({},n||{},r)).apply(void 0,i)},h}},styled=createStyled;function insertWithoutScoping(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}var createGlobalStyle=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return{inheritAttrs:!1,render:function(e){var n=e.$parent,r=e.$attrs,o=e.$props,a=n.$emotionCache,s=_extends({},o,r);insertWithoutScoping(a,serializeStyles(t,a.registered,s))}}},global$1="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function memoize$1(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var unitlessKeys$1={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function murmurhash2_32_gc(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}function stylis_min(e){function t(e,t,r){var o=t.trim().split(f);t=o;var a=o.length,s=e.length;switch(s){case 0:case 1:var i=0;for(e=0===s?"":e[0]+" ";i<a;++i)t[i]=n(e,t[i],r).trim();break;default:var u=i=0;for(t=[];i<a;++i)for(var l=0;l<s;++l)t[u++]=n(e[l]+" ",o[i],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,a){var s=e+";",i=2*t+3*n+4*a;if(944===i){e=s.indexOf(":",9)+1;var u=s.substring(e,s.length-1).trim();return u=s.substring(0,e).trim()+u+";",1===k||2===k&&o(u,1)?"-webkit-"+u+u:u}if(0===k||2===k&&!o(s,1))return s;switch(i){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(w,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(u=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+u+s;case 1005:return d.test(s)?s.replace(p,":-webkit-")+s.replace(p,":-moz-")+s:s;case 1e3:switch(t=(u=s.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=s.replace(b,"tb");break;case 232:u=s.replace(b,"tb-rl");break;case 220:u=s.replace(b,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+u+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,i=(u=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:s=s.replace(u,"-webkit-"+u)+";"+s;break;case 207:case 102:s=s.replace(u,"-webkit-"+(102<i?"inline-":"")+"box")+";"+s.replace(u,"-webkit-"+u)+";"+s.replace(u,"-ms-"+u+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return u=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+u+"-ms-flex-"+u+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(C,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(C,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,a).replace(":fill-available",":stretch"):s.replace(u,"-webkit-"+u)+s.replace(u,"-moz-"+u.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+a&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+s}return s}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(O,"$1"),n,t)}function a(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace($," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,a,s,i,l,c){for(var p,d=0,h=t;d<Q;++d)switch(p=x[d].call(u,e,h,n,r,o,a,s,i,l,c)){case void 0:case!1:case!0:case null:break;default:h=p}if(h!==t)return h}function i(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?k=1:(k=2,I=e):k=0),i}function u(e,n){var i=e;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<Q){var u=s(-1,n,i,i,P,T,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var p=function e(n,i,u,p,d){for(var h,f,m,b,$,C=0,O=0,S=0,w=0,x=0,I=0,L=m=h=0,V=0,j=0,M=0,N=0,D=u.length,F=D-1,q="",U="",B="",H="";V<D;){if(f=u.charCodeAt(V),V===F&&0!==O+w+S+C&&(0!==O&&(f=47===O?10:47),w=S=C=0,D++,F++),0===O+w+S+C){if(V===F&&(0<j&&(q=q.replace(c,"")),0<q.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:q+=u.charAt(V)}f=59}switch(f){case 123:for(h=(q=q.trim()).charCodeAt(0),m=1,N=++V;V<D;){switch(f=u.charCodeAt(V)){case 123:m++;break;case 125:m--;break;case 47:switch(f=u.charCodeAt(V+1)){case 42:case 47:e:{for(L=V+1;L<F;++L)switch(u.charCodeAt(L)){case 47:if(42===f&&42===u.charCodeAt(L-1)&&V+2!==L){V=L+1;break e}break;case 10:if(47===f){V=L+1;break e}}V=L}}break;case 91:f++;case 40:f++;case 34:case 39:for(;V++<F&&u.charCodeAt(V)!==f;);}if(0===m)break;V++}switch(m=u.substring(N,V),0===h&&(h=(q=q.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<j&&(q=q.replace(c,"")),f=q.charCodeAt(1)){case 100:case 109:case 115:case 45:j=i;break;default:j=R}if(N=(m=e(i,j,m,f,d+1)).length,0<Q&&($=s(3,m,j=t(R,q,M),i,P,T,N,f,d,p),q=j.join(""),void 0!==$&&0===(N=(m=$.trim()).length)&&(f=0,m="")),0<N)switch(f){case 115:q=q.replace(_,a);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:m=(q=q.replace(g,"$1 $2"))+"{"+m+"}",m=1===k||2===k&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===p&&(U+=m,m="")}else m="";break;default:m=e(i,t(i,q,M),m,p,d+1)}B+=m,m=M=j=L=h=0,q="",f=u.charCodeAt(++V);break;case 125:case 59:if(1<(N=(q=(0<j?q.replace(c,""):q).trim()).length))switch(0===L&&(h=q.charCodeAt(0),45===h||96<h&&123>h)&&(N=(q=q.replace(" ",":")).length),0<Q&&void 0!==($=s(1,q,i,n,P,T,U.length,p,d,p))&&0===(N=(q=$.trim()).length)&&(q="\0\0"),h=q.charCodeAt(0),f=q.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){H+=q+u.charAt(V);break}default:58!==q.charCodeAt(N-1)&&(U+=r(q,h,f,q.charCodeAt(2)))}M=j=L=h=0,q="",f=u.charCodeAt(++V)}}switch(f){case 13:case 10:47===O?O=0:0===1+h&&107!==p&&0<q.length&&(j=1,q+="\0"),0<Q*A&&s(0,q,i,n,P,T,U.length,p,d,p),T=1,P++;break;case 59:case 125:if(0===O+w+S+C){T++;break}default:switch(T++,b=u.charAt(V),f){case 9:case 32:if(0===w+C+O)switch(x){case 44:case 58:case 9:case 32:b="";break;default:32!==f&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===w+O+C&&(j=M=1,b="\f"+b);break;case 108:if(0===w+O+C+E&&0<L)switch(V-L){case 2:112===x&&58===u.charCodeAt(V-3)&&(E=x);case 8:111===I&&(E=I)}break;case 58:0===w+O+C&&(L=V);break;case 44:0===O+S+w+C&&(j=1,b+="\r");break;case 34:case 39:0===O&&(w=w===f?0:0===w?f:w);break;case 91:0===w+O+S&&C++;break;case 93:0===w+O+S&&C--;break;case 41:0===w+O+C&&S--;break;case 40:if(0===w+O+C){if(0===h)switch(2*x+3*I){case 533:break;default:h=1}S++}break;case 64:0===O+S+w+C+L+m&&(m=1);break;case 42:case 47:if(!(0<w+C+S))switch(O){case 0:switch(2*f+3*u.charCodeAt(V+1)){case 235:O=47;break;case 220:N=V,O=42}break;case 42:47===f&&42===x&&N+2!==V&&(33===u.charCodeAt(N+2)&&(U+=u.substring(N,V+1)),b="",O=0)}}0===O&&(q+=b)}I=x,x=f,V++}if(0<(N=U.length)){if(j=i,0<Q&&(void 0!==($=s(2,U,j,n,P,T,N,p,d,p))&&0===(U=$).length))return H+U+B;if(U=j.join(",")+"{"+U+"}",0!=k*E){switch(2!==k||o(U,2)||(E=0),E){case 111:U=U.replace(v,":-moz-$1")+U;break;case 112:U=U.replace(y,"::-webkit-input-$1")+U.replace(y,"::-moz-$1")+U.replace(y,":-ms-input-$1")+U}E=0}}return H+U+B}(R,i,n,0,0);return 0<Q&&(void 0!==(u=s(-2,p,i,i,P,T,p.length,0,0,0))&&(p=u)),"",E=0,T=P=1,p}var l=/^\0+/g,c=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,f=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,$=/([\s\S]*?);/g,C=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,w=/([^-])(image-set\()/,T=1,P=1,E=0,k=1,R=[],x=[],Q=0,I=null,A=0;return u.use=function e(t){switch(t){case void 0:case null:Q=x.length=0;break;default:switch(t.constructor){case Array:for(var n=0,r=t.length;n<r;++n)e(t[n]);break;case Function:x[Q++]=t;break;case Boolean:A=0|!!t}}return e},u.set=i,void 0!==e&&i(e),u}var stylisRuleSheet=createCommonjsModule((function(e,t){e.exports=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,a,s,i,u,l,c,p){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}})),hyphenateRegex$1=/[A-Z]|^ms/g,processStyleName$1=memoize$1((function(e){return e.replace(hyphenateRegex$1,"-$&").toLowerCase()})),processStyleValue$1=function(e,t){return null==t||"boolean"==typeof t?"":1===unitlessKeys$1[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},classnames=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var s=void 0;switch(typeof a){case"boolean":break;case"function":s=e([a()]);break;case"object":if(Array.isArray(a))s=e(a);else for(var i in s="",a)a[i]&&i&&(s&&(s+=" "),s+=i);break;default:s=a}s&&(o&&(o+=" "),o+=s)}}return o},isBrowser$1="undefined"!=typeof document;function sheetForTag$1(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function makeStyleTag(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}var StyleSheet$1=function(){function e(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=makeStyleTag(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var n=sheetForTag$1(this.tags[this.tags.length-1]);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else{var r=makeStyleTag(this.opts);this.tags.push(r),r.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(makeStyleTag(this.opts))},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,this.injected=!1},e}();function createEmotion(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var n,r=t.key||"css";var o,a=stylisRuleSheet((function(e){n+=e,isBrowser$1&&i.insert(e,l)}));void 0!==t.prefix&&(o={prefix:t.prefix});var s={registered:{},inserted:{},nonce:t.nonce,key:r},i=new StyleSheet$1(t);isBrowser$1&&i.inject();var u=new stylis_min(o);u.use(t.stylisPlugins)(a);var l="";function c(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var n=e.toString();return n}return c.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return f.call(this,e);default:var r=s.registered[e];return!1===t&&void 0!==r?r:e}}var p,d,h=new WeakMap;function f(e){if(h.has(e))return h.get(e);var t="";return Array.isArray(e)?e.forEach((function(e){t+=c.call(this,e,!1)}),this):Object.keys(e).forEach((function(n){"object"!=typeof e[n]?void 0!==s.registered[e[n]]?t+=n+"{"+s.registered[e[n]]+"}":t+=processStyleName$1(n)+":"+processStyleValue$1(n,e[n])+";":Array.isArray(e[n])&&"string"==typeof e[n][0]&&void 0===s.registered[e[n][0]]?e[n].forEach((function(e){t+=processStyleName$1(n)+":"+processStyleValue$1(n,e)+";"})):t+=n+"{"+c.call(this,e[n],!1)+"}"}),this),h.set(e,t),t}var m=/label:\s*([^\s;\n{]+)\s*;/g,g=function(e,t){return murmurhash2_32_gc(e+t)+t},y=function(e){var t=!0,n="",r="";null==e||void 0===e.raw?(t=!1,n+=c.call(this,e,!1)):n+=e[0];for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return a.forEach((function(r,o){n+=c.call(this,r,46===n.charCodeAt(n.length-1)),!0===t&&void 0!==e[o+1]&&(n+=e[o+1])}),this),d=n,n=n.replace(m,(function(e,t){return r+="-"+t,""})),p=g(n,r),n};function v(e,t){void 0===s.inserted[p]&&(n="",u(e,t),s.inserted[p]=n)}var b=function(){var e=y.apply(this,arguments),t=r+"-"+p;return void 0===s.registered[t]&&(s.registered[t]=d),v("."+t,e),t};function _(e,t){var n="";return t.split(" ").forEach((function(t){void 0!==s.registered[t]?e.push(t):n+=t+" "})),n}function $(e,t){var n=[],r=_(n,e);return n.length<2?e:r+b(n,t)}function C(e){s.inserted[e]=!0}if(isBrowser$1){var O=document.querySelectorAll("[data-emotion-"+r+"]");Array.prototype.forEach.call(O,(function(e){i.tags[0].parentNode.insertBefore(e,i.tags[0]),e.getAttribute("data-emotion-"+r).split(" ").forEach(C)}))}var S={flush:function(){isBrowser$1&&(i.flush(),i.inject()),s.inserted={},s.registered={}},hydrate:function(e){e.forEach(C)},cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(classnames(t))},merge:$,getRegisteredStyles:_,injectGlobal:function(){var e=y.apply(this,arguments);v("",e)},keyframes:function(){var e=y.apply(this,arguments),t="animation-"+p;return v("","@keyframes "+t+"{"+e+"}"),t},css:b,sheet:i,caches:s};return e.__SECRET_EMOTION__=S,S}var context=void 0!==global$1?global$1:{},_createEmotion=createEmotion(context),flush=_createEmotion.flush,hydrate=_createEmotion.hydrate,cx=_createEmotion.cx,merge=_createEmotion.merge,getRegisteredStyles$1=_createEmotion.getRegisteredStyles,injectGlobal=_createEmotion.injectGlobal,keyframes=_createEmotion.keyframes,css=_createEmotion.css,sheet=_createEmotion.sheet,caches=_createEmotion.caches;function _extends$1(){return(_extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function colorToInt(e){return Math.round(255*e)}function convertToInt(e,t,n){return colorToInt(e)+","+colorToInt(t)+","+colorToInt(n)}function hslToRgb(e,t,n,r){if(void 0===r&&(r=convertToInt),0===t)return r(n,n,n);var o=e%360/60,a=(1-Math.abs(2*n-1))*t,s=a*(1-Math.abs(o%2-1)),i=0,u=0,l=0;o>=0&&o<1?(i=a,u=s):o>=1&&o<2?(i=s,u=a):o>=2&&o<3?(u=a,l=s):o>=3&&o<4?(u=s,l=a):o>=4&&o<5?(i=s,l=a):o>=5&&o<6&&(i=a,l=s);var c=n-a/2;return r(i+c,u+c,l+c)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return namedColorMap[t]?"#"+namedColorMap[t]:e}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,rgbaRegex=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,hslaRegex=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function parseToRgb(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var t=nameToHex(e);if(t.match(hexRegex))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(hexRgbaRegex)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(reducedHexRegex))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(reducedRgbaHexRegex)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=rgbRegex.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=rgbaRegex.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var s=hslRegex.exec(t);if(s){var i="rgb("+hslToRgb(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",u=rgbRegex.exec(i);if(!u)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+i+".");return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var l=hslaRegex.exec(t);if(l){var c="rgb("+hslToRgb(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",p=rgbRegex.exec(c);if(!p)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+c+".");return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+l[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function rgbToHsl(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(n,r,o),s=Math.min(n,r,o),i=(a+s)/2;if(a===s)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var u=a-s,l=i>.5?u/(2-a-s):u/(a+s);switch(a){case n:t=(r-o)/u+(r<o?6:0);break;case r:t=(o-n)/u+2;break;default:t=(n-r)/u+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:l,lightness:i,alpha:e.alpha}:{hue:t,saturation:l,lightness:i}}function parseToHsl(e){return rgbToHsl(parseToRgb(e))}var reduceHexValue=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function numberToHex(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function colorToHex(e){return numberToHex(Math.round(255*e))}function convertToHex(e,t,n){return reduceHexValue("#"+colorToHex(e)+colorToHex(t)+colorToHex(n))}function hslToHex(e,t,n){return hslToRgb(e,t,n,convertToHex)}function hsl(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return hslToHex(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return hslToHex(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}function hsla(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?hslToHex(e,t,n):"rgba("+hslToRgb(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?hslToHex(e.hue,e.saturation,e.lightness):"rgba("+hslToRgb(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}function rgb(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return reduceHexValue("#"+numberToHex(e)+numberToHex(t)+numberToHex(n));if("object"==typeof e&&void 0===t&&void 0===n)return reduceHexValue("#"+numberToHex(e.red)+numberToHex(e.green)+numberToHex(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function rgba(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=parseToRgb(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?rgb(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?rgb(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}var isRgb=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},isRgba=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},isHsl=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},isHsla=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},errMsg="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function toColorString(e){if("object"!=typeof e)throw new Error(errMsg);if(isRgba(e))return rgba(e);if(isRgb(e))return rgb(e);if(isHsla(e))return hsla(e);if(isHsl(e))return hsl(e);throw new Error(errMsg)}function curried(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):curried(e,t,r)}}function curry(e){return curried(e,e.length,[])}function guard(e,t,n){return Math.max(e,Math.min(t,n))}function darken(e,t){var n=parseToHsl(t);return toColorString(_extends$1({},n,{lightness:guard(0,1,n.lightness-parseFloat(e))}))}var curriedDarken=curry(darken);function lighten(e,t){var n=parseToHsl(t);return toColorString(_extends$1({},n,{lightness:guard(0,1,n.lightness+parseFloat(e))}))}var curriedLighten=curry(lighten),_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,filters=function(e){var t=e.colors.borderColor;return css(_templateObject||(_templateObject=_taggedTemplateLiteralLoose(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\tbutton {\n\t\tmargin: 2px 3px;\n\t\tpadding: 5px 8px;\n\t\tfont-size: 0.85rem;\n\t\tposition: relative;\n\n\t\tspan:first-child {\n\t\t\tmax-width: 260px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-right: 26px;\n\t\t}\n\n\t\tspan:last-child {\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 8px;\n\t\t\tposition: absolute;\n\t\t\talign-items: center;\n\t\t\tborder-left: 1px solid ",";\n\t\t\tpadding-left: 8px;\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tspan:first-child {\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t}\n"])),t||"#fff")},pagination=css(_templateObject2||(_templateObject2=_taggedTemplateLiteralLoose(["\n\tmargin: 10px -3px;\n\tmax-width: 100%;\n\ttext-align: center;\n\n\tbutton {\n\t\tmargin: 0 3px;\n\t}\n"]))),toggleButtons=css(_templateObject3||(_templateObject3=_taggedTemplateLiteralLoose(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\tbutton {\n\t\tmargin: 3px 3px;\n\t}\n"]))),numberBoxContainer=css(_templateObject4||(_templateObject4=_taggedTemplateLiteralLoose(["\n\tmargin: 0 -5px;\n\tbutton {\n\t\tmargin: 5px;\n\t}\n\tspan {\n\t\tmargin: 0 5px;\n\t}\n"]))),primary=function(e){var t=e.theme;return"\n\tbackground-color: "+t.colors.primaryColor+";\n\tcolor: "+t.colors.primaryTextColor+";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: "+curriedDarken(.1,t.colors.primaryColor)+";\n\t}\n"},large=function(){return"\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"},disabled=function(e){var t=e.theme;return"\n\tbackground-color: "+(t.colors.backgroundColor?curriedLighten(.1,t.colors.backgroundColor):"#fafafa")+";\n\tcolor: #ccc;\n\tcursor: not-allowed;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: "+(t.colors.backgroundColor?curriedLighten(.2,t.colors.backgroundColor):"#fafafa")+";\n\t}\n"},Button=styled("button")(_templateObject5||(_templateObject5=_taggedTemplateLiteralLoose(["\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\talign-items: center;\n\tborder-radius: 3px;\n\tborder: 1px solid transparent;\n\tmin-height: 30px;\n\tword-wrap: break-word;\n\tpadding: 5px 12px;\n\tline-height: 1.2rem;\n\tbackground-color: ",";\n\tcolor: ",";\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n\n\t&:focus {\n\t\toutline: 0;\n\t\tborder-color: ",";\n\t\tbox-shadow: ",";\n\t}\n\n\t",";\n\t",";\n\t",";\n\n\t&.enter-btn {\n\t\tborder-top-left-radius: 0px;\n\t\tborder-bottom-left-radius: 0px;\n\t\theight: 100%;\n\t}\n"])),(function(e){var t=e.theme;return t.colors?t.colors.backgroundColor:"#eee"}),(function(e){var t=e.theme;return t.colors?t.colors.textColor:""}),(function(e){var t=e.theme;return t.colors&&t.colors.backgroundColor?curriedDarken(.1,t.colors.backgroundColor):"#ccc"}),(function(e){var t=e.theme;return t.colors&&t.colors.primaryColor?rgba(t.colors.primaryColor,.6):"unset"}),(function(e){var t=e.theme;return t.colors&&t.colors.primaryColor?"0 0 0 2px "+rgba(t.colors.primaryColor,.3):""}),(function(e){return e.primary?primary:null}),(function(e){return e.disabled?disabled:null}),(function(e){return e.large&&large})),loadMoreContainer=css({margin:"5px 0",display:"flex",justifyContent:"center"});Q.sensibleDefaults=!1;var reactKeyType=Q.oneOfType([Q.string,Q.arrayOf(Q.string),Q.object,Q.arrayOf(Q.object)]);function validateLocation(e){return e&&e.lat&&e.lng?isNaN(e.lat)?(console.error(new Error("lat value must be a number")),!1):isNaN(e.lat)?(console.error(new Error("lng value must be a number")),!1):e.lat<-90||e.lat>90?(console.error(new Error("lat value should be between -90 and 90.")),!1):!(e.lat<-180||e.lat>180)||(console.error(new Error("lng value should be between -180 and 180.")),!1):(console.error(new Error("location must be an object with lat and lng keys defined")),!1)}var types={any:Q.any,bool:Q.bool,boolRequired:Q.bool.isRequired,components:Q.arrayOf(Q.string),children:Q.any,data:Q.arrayOf(Q.object),dataFieldArray:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]).isRequired,dataNumberBox:Q.shape({label:Q.string,start:Q.number.isRequired,end:Q.number.isRequired}).isRequired,date:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]),dateObject:Q.object,excludeFields:Q.arrayOf(Q.string),fieldWeights:Q.arrayOf(Q.number),filterLabel:Q.string,func:Q.func,funcRequired:Q.func.isRequired,fuzziness:Q.oneOf([0,1,2,"AUTO"]),headers:Q.object,hits:Q.arrayOf(Q.object),iconPosition:Q.oneOf(["left","right"]),includeFields:Q.arrayOf(Q.string),labelPosition:Q.oneOf(["left","right","top","bottom"]),number:Q.number,options:Q.oneOfType([Q.arrayOf(Q.object),Q.object]),paginationAt:Q.oneOf(["top","bottom","both"]),range:Q.shape({start:Q.number.isRequired,end:Q.number.isRequired}),rangeLabels:Q.shape({start:Q.string.isRequired,end:Q.string.isRequired}),react:Q.shape({and:reactKeyType,or:reactKeyType,not:reactKeyType}),selectedValues:Q.object,selectedValue:Q.oneOfType([Q.string,Q.arrayOf(Q.string),Q.arrayOf(Q.object),Q.object,Number,Q.arrayOf(Number)]),suggestions:Q.arrayOf(Q.object),supportedOrientations:Q.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),sortBy:Q.oneOf(["asc","desc"]),sortOptions:Q.arrayOf(Q.shape({label:Q.string,dataField:Q.string,sortBy:Q.string})),sortByWithCount:Q.oneOf(["asc","desc","count"]),stats:Q.arrayOf(Q.object),string:Q.string,stringArray:Q.arrayOf(Q.string),stringOrArray:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]),stringRequired:Q.string.isRequired,style:Q.object,themePreset:Q.oneOf(["light","dark"]),queryFormatSearch:Q.oneOf(["and","or"]),queryFormatNumberBox:Q.oneOf(["exact","lte","gte"]),params:Q.object.isRequired,props:Q.object,rangeLabelsAlign:Q.oneOf(["left","right"]),title:Q.oneOfType([Q.string,Q.nullable]),tooltipTrigger:Q.oneOf(["always","none","hover"]),location:Q.custom(validateLocation),unit:Q.oneOf(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),value:Q.string.def(void 0),reactivesearchAPIConfig:Q.shape({recordAnalytics:Q.bool,emptyQuery:Q.bool,suggestionAnalytics:Q.bool,enableQueryRules:Q.bool,enableSearchRelevancy:Q.bool,userId:Q.string,useCache:Q.bool,customEvents:Q.object,enableTelemetry:Q.bool.def(!0)}).def({}),mongodb:Q.shape({db:Q.string,collection:Q.string}),endpointConfig:Q.shape({url:Q.string.isRequired,method:Q.string,headers:Q.object,body:Q.object})};function _isSlot(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var getClassName=lib_8.getClassName,handleA11yAction=lib_8.handleA11yAction;function getStartPage(e,t,n){var r=parseInt(e/2,10),o=t-(n?Math.ceil(r/2)-1:r);return o>1?o:2}var Pagination={name:"Pagination",functional:!0,props:{currentPage:types.number,innerClass:types.style,pages:types.number,setPage:types.func,totalPages:types.number,showEndPage:Q.bool,prevLabel:types.string,nextLabel:types.string},render:function(e){var t=e.$props,n=function(){t.currentPage&&t.setPage(t.currentPage-1)},r=function(){t.currentPage<t.totalPages-1&&t.setPage(t.currentPage+1)};if(!t.totalPages)return null;var o,a,s,i,u=getClassName(t.innerClass,"button"),l=0===t.currentPage,c=u||l?u+" "+(l?"active":""):"",p=function(e){var n=t.pages,r=t.currentPage,o=t.totalPages,a=t.setPage,s=t.showEndPage,i="start"===e?getStartPage(n,r,s):Math.max(2,Math.ceil(o-(n-1)/2+1)),l=[],c=i;if(i<=o){var p=n<o?i+(n-1):o+1;s&&(p="start"===e?i+(Math.ceil(n/2)-n%2):o+1),r>o-n+2&&(i=Math.max(2,o-n+2),p=i+n);for(var d=function(e){var t=r===e-1,n=u||t?u+" "+(t?"active":""):"",s=vue.createVNode(Button,{class:n,primary:t,tabIndex:"0",onKeyPress:function(t){return handleA11yAction(t,(function(){return a(e-1)}))},alt:"page-"+e,onClick:function(){return a(e-1)}},_isSlot(e)?e:{default:function(){return[e]}});e<=o+1&&(l.push(s),e===Math.min(o+1,p)-1&&(c=e))},h=i;h<Math.min(o+1,p);h+=1)d(h)}return[l,i,c]};return vue.createVNode("div",{class:pagination+" "+getClassName(t.innerClass,"pagination")},[vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:n,"key-press":function(e){return handleA11yAction(e,n)}}),{class:getClassName(t.innerClass,"button")||"",disabled:0===t.currentPage,tabIndex:"0"}),{default:function(){return[t.prevLabel||"Prev"]}}),vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:function(){return t.setPage(0)}}),{class:c,primary:l,onKeyPress:function(e){return handleA11yAction(e,(function(){return t.setPage(0)}))},tabIndex:"0"}),{default:function(){return[vue.createTextVNode("1")]}}),t.showEndPage&&t.currentPage>=Math.floor(t.pages/2)+!!(t.pages%2)&&2!==p("start")[1]?vue.createVNode("span",null,[vue.createTextVNode("...")]):null,(o=t.showEndPage,a=t.currentPage,s=t.totalPages,i=t.pages,o?a<=s-i+2||s<i?p("start")[0]:null:p("start")[0]),t.showEndPage&&t.pages>2&&t.currentPage<=t.totalPages-Math.ceil(.75*t.pages)&&p("start")[2]!==p("end")[1]-1?vue.createVNode("span",null,[vue.createTextVNode("...")]):null,t.showEndPage&&t.totalPages>=t.pages&&p("end")[0],vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:r,"key-press":function(e){return handleA11yAction(e,r)}}),{class:getClassName(t.innerClass,"button")||"",disabled:t.currentPage>=t.totalPages-1,tabIndex:"0"}),{default:function(){return[t.nextLabel||"Next"]}})])}},_templateObject$1;Pagination.install=function(e){e.component(Pagination.name,Pagination)};var PoweredByImage=styled("img")(_templateObject$1||(_templateObject$1=_taggedTemplateLiteralLoose(["\n\twidth: 110px;\n"]))),PoweredBy=function(){return vue.createVNode("a",{href:"https://appbase.io/",target:"_blank",rel:"noopener noreferrer"},[vue.createVNode(PoweredByImage,{src:"https://cdn.jsdelivr.net/gh/appbaseio/cdn@d2ec210045e59104ee5485841fa17b23fc83f097/appbase/logos/rbc-logo.svg"},null)])},hasOwn=Object.prototype.hasOwnProperty;function is(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function shallowEqual(e,t){if(is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o+=1)if(!hasOwn.call(t,n[o])||!is(e[n[o]],t[n[o]]))return!1;return!0}var defaultMapState=function(){return{}},defaultMapDispatch={},normalizeMapState=function(e){if("function"==typeof e)return e;if(e===Object(e))return function(t,n){return Object.keys(e).filter((function(t){return"function"==typeof e[t]})).reduce((function(r,o){var a;return _extends({},r,((a={})[o]=e[o](t,n),a))}),{})};throw new Error("[revux] - mapState provided to connect is invalid")},connector=function(e,t){return void 0===e&&(e=defaultMapState),void 0===t&&(t=defaultMapDispatch),function(n){var r=normalizeMapState(e);return{name:"connect-"+n.name,mixins:[n],inject:["$$store"],data:function(){var e=_extends({},r(this.$$store.getState(),this.$props||{}),bindActionCreators(t,this.$$store.dispatch));return Object.keys(e).reduce((function(t,n){var r;return _extends({},t,((r={})[n]=e[n],r))}),{})},created:function(){var e=this;this._unsubscribe=function(e,t,n){var r=t(e.getState());return e.subscribe((function(){var o=t(e.getState());if(!shallowEqual(r,o)){var a=r;n(r=o,a)}}))}(this.$$store,(function(t){return r(t,e.$props||{})}),(function(t){Object.keys(t).forEach((function(n){e[n]=t[n]}))}))},beforeUnmount:function(){this._unsubscribe()}}}},defaultQueryUtil=lib_8.updateDefaultQuery,customQueryUtil=lib_8.updateCustomQuery,isEqual=lib_8.isEqual,connect=function(){return connector.apply(void 0,arguments)},X_SEARCH_CLIENT="ReactiveSearch Vue",composeThemeObject=function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),{typography:_extends({},e.typography,t.typography),colors:_extends({},e.colors,t.colors),component:_extends({},e.component,t.component)}},isFunction=function(e){return"function"==typeof e};function parseValueArray(e,t){var n;Array.isArray(e)?n=[].concat(e):n=Object.keys(e).map((function(t){return e[t]?t:null}));return n.includes(t)?n.filter((function(e){return e!==t})):[].concat(n,[t])}var getComponent=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=(t.$slots||t.$props).render;return n?n(e):null},hasCustomRenderer=function(e){void 0===e&&(e={});var t=(e.$slots||e.$props).render;return Boolean(t)},getValidPropsKeys=function(e){return void 0===e&&(e={}),Object.keys(e).filter((function(e){return constants_3$1.includes(e)}))},isEvent=function(e){return!!(e&&e.stopPropagation&&e.preventDefault)},updateDefaultQuery=function(e,t,n,r){defaultQueryUtil(e,_extends({},n,{setDefaultQuery:t}),r)},updateCustomQuery=function(e,t,n,r){customQueryUtil(e,_extends({},n,{setCustomQuery:t}),r)},isQueryIdentical=function(e,t,n,r){return"function"!=typeof e||"function"!=typeof t||isEqual(t(n,r),e(n,r))},getCamelCase=function(e){return void 0===e&&(e=""),e.split("-").map((function(e,t){return t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e})).join("")||""},isEmpty=function(e){return!(e&&e.length&&Object.keys(e).length)};function isNumeric(e){return/^-?\d+$/.test(e)}function isHotkeyCombination(e){return"string"==typeof e&&-1!==e.indexOf("+")}function getCharFromCharCode(e){var t=e,n=t-48*Math.floor(t/48);return String.fromCharCode(t>=96?n:t)}function parseFocusShortcuts(e){if(isEmpty(e))return[];var t=[];return e.forEach((function(e){if("string"==typeof e)if(isHotkeyCombination(e)){for(var n,r=e.split("+"),o=[],a=0;a<r.length;a+=1)isNumeric(r[a])?o.push(getCharFromCharCode(+r[a])):o.push(r[a]);n=o.join("+"),t.push(n)}else isNumeric(e)?t.push(getCharFromCharCode(+e)):t.push(e);else t.push(getCharFromCharCode(e))})),t}var MODIFIER_KEYS=["shift","ctrl","alt","control","option","cmd","command"];function extractModifierKeysFromFocusShortcuts(e){return e.filter((function(e){return MODIFIER_KEYS.includes(e)}))}function decodeHtml(e){return"string"!=typeof e?e:e.replace(/&#([0-9]{1,3});/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)}))}var addComponent=lib_5.addComponent,removeComponent=lib_5.removeComponent,watchComponent=lib_5.watchComponent,setQueryListener=lib_5.setQueryListener,setComponentProps=lib_5.setComponentProps,updateComponentProps=lib_5.updateComponentProps,pushToAndClause=lib_8.pushToAndClause,checkPropChange=lib_8.checkPropChange,checkSomePropChange=lib_8.checkSomePropChange,ComponentWrapper=function(e,t){return void 0===t&&(t={componentType:null,internalComponent:!1}),{name:"ComponentWrapper",$timestamp:null,props:{destroyOnUnmount:Q.bool.def(!0)},created:function(){var e=_extends({},this.$attrs),t={};Object.keys(e).forEach((function(n){t[getCamelCase(n)]=e[n]})),this.componentProps=t,this.componentId=this.componentProps.componentId,this.react=this.componentProps.react,this.$timestamp=(new Date).getTime()},beforeMount:function(){var e=this,n=[];this.$$store&&(n=this.$$store.getState().components);if(this.destroyOnUnmount||-1===n.indexOf(this.componentProps.componentId)){this.addComponent(this.componentId);this.setQueryListener(this.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),(function(t){e.$emit("error",t)})),this.setComponentProps(this.componentId,this.componentProps,t.componentType)}(t.internalComponent||this.componentProps.defaultQuery&&t.componentType===constants_1$1.reactiveComponent)&&(this.internalComponent=transform_11(this.componentId)),this.internalComponent&&(this.destroyOnUnmount||-1===n.indexOf(this.internalComponent))&&(this.addComponent(this.internalComponent),this.setComponentProps(this.internalComponent,this.componentProps,t.componentType))},mounted:function(){this.internalComponent&&this.setReact(this.componentProps)},beforeDestroy:function(){if(this.destroyOnUnmount){var e={};if(this.$$store)e=this.$$store.getState().registeredComponentsTimestamps;e[this.componentId]===this.$timestamp&&(this.removeComponent(this.componentId),this.internalComponent&&this.removeComponent(this.internalComponent))}},watch:{$attrs:{deep:!0,handler:function(e){var n=this,r=getValidPropsKeys(e);checkSomePropChange(e,this.savedComponentProps,r,(function(){n.updateComponentProps(n.componentId,e,t.componentType),n.updateComponentProps(n.internalComponent,e,t.componentType)}))}},react:function(e,t){var n=this;checkPropChange(e,t,(function(){return n.setReact(n.componentProps)}))}},methods:{setReact:function(e){var t=e.react,n=e.executeInitialQuery;if(this.internalComponent)if(t){var r=pushToAndClause(t,this.internalComponent);this.watchComponent(e.componentId,r,n)}else this.watchComponent(e.componentId,{and:this.internalComponent},n);else this.watchComponent(e.componentId,t,n)}},render:function(){return vue.h(e,null,this.$slots)}}},mapStateToProps=function(e,t){return{savedComponentProps:e.props[t.componentId]}},mapDispatchToProps={addComponent:addComponent,removeComponent:removeComponent,setQueryListener:setQueryListener,watchComponent:watchComponent,setComponentProps:setComponentProps,updateComponentProps:updateComponentProps},ComponentWrapper$1=function(e,t){return void 0===t&&(t={}),connect(mapStateToProps,mapDispatchToProps)(ComponentWrapper(e,t))},deepValue=function(e,t){return t.split(".").reduce((function(e,t){return e?e[t]:null}),e)},PreferencesConsumer=function PreferencesConsumer(component){return{name:"PreferencesConsumer",inject:{$searchPreferences:{default:null}},render:function render(){var _this=this,userProps=Object.keys(this.$attrs).reduce((function(e,t){var n;return _extends({},e,((n={})[getCamelCase(t)]=_this.$attrs[t],n))}),{}),context=this.$searchPreferences;if(!userProps||!userProps.componentId)throw Error("ReactiveSearch: componentId is required");var componentId=userProps.componentId,preferencesPath=userProps.preferencesPath,preferences;context&&(preferences=deepValue(context,preferencesPath||["componentSettings",componentId].join(".")));var componentProps=userProps;return preferences&&(componentProps=preferences.rsConfig?_extends({},preferences.rsConfig,componentProps):_extends({},preferences,componentProps),void 0!==preferences.enabled&&!preferences.enabled)?null:(Object.keys(componentProps).forEach((function(p){"string"==typeof componentProps[p]&&["defaultQuery","customQuery","setOption"].includes(p)&&(componentProps[p]=eval(componentProps[p]))})),vue.h(component,{attrs:componentProps},this.$slots))}}},_templateObject$2,Title=styled("h2")(_templateObject$2||(_templateObject$2=_taggedTemplateLiteralLoose(["\n\tmargin: 0 0 8px;\n\tfont-size: 1rem;\n\tcolor: ",";\n"])),(function(e){return e.theme.colors.titleColor})),_templateObject$3,_templateObject2$1,_templateObject3$1,container=css(_templateObject$3||(_templateObject$3=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 0;\n\tborder-radius: 0.25rem;\n\toverflow: hidden;\n"]))),smallImage="\n\twidth: 100px;\n\theight: 100px;\n",Image=styled("div")(_templateObject2$1||(_templateObject2$1=_taggedTemplateLiteralLoose(["\n\twidth: 160px;\n\theight: 160px;\n\t",";\n\tmargin: 0;\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tbackground-image: ",";\n"])),(function(e){return e.small?smallImage:null}),(function(e){return"url("+e.src+")"})),ListItem=styled("a")(_templateObject3$1||(_templateObject3$1=_taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\theight: auto;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 0;\n\tbackground-color: ",";\n\tdisplay: flex;\n\tflex-direction: row;\n\tmargin: 0;\n\tpadding: 10px;\n\tborder-bottom: 1px solid ",";\n\tcolor: ",";\n\t","; all 0.3s ease;\n\n\t&:hover, &:focus {\n\t\tbackground-color: ",";\n\t}\n\n\t&:last-child {\n\t\tborder: 0;\n\t}\n\n\th2 {\n\t\twidth: 100%;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 0 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\twidth: ",";\n\t\tpadding-left: ",";\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover, &:focus {\n\t\tbox-shadow: 0 0 0 0 rgba(0,0,0,0.10);\n\t}\n\n\t@media (max-width: 420px) {\n\t\tmin-width: 0;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover, &:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"])),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedLighten(.1,t.colors.backgroundColor):"#fff"}),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedLighten(.3,t.colors.backgroundColor):curriedLighten(.68,t.colors.textColor)}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null}),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedLighten(.2,t.colors.backgroundColor):"#fdfefd"}),(function(e){return e.image?e.small?"calc(100% - 100px)":"calc(100% - 160px)":"100%"}),(function(e){return e.image?"10px":0})),ResultListWrapper={name:"ResultListWrapper",functional:!0,render:function(e){return vue.createVNode("div",vue.mergeProps({className:container},e.$props),[e.$slots.default()])}},_templateObject$4,_templateObject2$2,_templateObject3$2;ResultListWrapper.install=function(e){e.component(ResultListWrapper.name,ResultListWrapper)};var container$1=css(_templateObject$4||(_templateObject$4=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\tflex-wrap: wrap;\n\tmargin: 0 -8px;\n\n\t@media (max-width: 420px) {\n\t\tmargin: 0;\n\t}\n"]))),Image$1=styled("div")(_templateObject2$2||(_templateObject2$2=_taggedTemplateLiteralLoose(["\n\twidth: calc(100% + 20px);\n\theight: 220px;\n\tmargin: -10px -10px 0;\n\tbackground-color: ",";\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n"])),(function(e){return e.theme.colors.backgroundColor||"#fcfcfc"})),Card=styled("a")(_templateObject3$2||(_templateObject3$2=_taggedTemplateLiteralLoose(["\n\twidth: auto;\n\tflex-grow: 1;\n\toutline: none;\n\ttext-decoration: none;\n\tmin-width: 240px;\n\tmax-width: 250px;\n\tborder-radius: 0.25rem;\n\tbackground-color: ",";\n\theight: 300px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tmargin: 8px;\n\tpadding: 10px;\n\toverflow: hidden;\n\tbox-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);\n\tcolor: ",";\n\t",";\n\ttransition: all 0.3s ease;\n\n\th2 {\n\t\twidth: 100%;\n\t\tfont-size: 0.9rem;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 10px 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\tflex-grow: 1;\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbox-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.3);\n\t}\n\n\t@media (max-width: 420px) {\n\t\twidth: 50%;\n\t\tmin-width: 0;\n\t\theight: 210px;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"])),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedLighten(.1,t.colors.backgroundColor):"#fff"}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null})),ResultCardsWrapper={name:"ResultCardsWrapper",functional:!0,render:function(e){return vue.createVNode("div",vue.mergeProps({className:container$1},e.$props),[e.$slots.default()])}},_templateObject$5;ResultCardsWrapper.install=function(e){e.component(ResultCardsWrapper.name,ResultCardsWrapper)};var leftLabel="\n\tflex-direction: row;\n\talign-items: center;\n",rightLabel="\n\tflex-direction: row-reverse;\n\talign-items: center;\n",topLabel="\n\tflex-direction: column;\n",bottomLabel="\n\tflex-direction: column-reverse;\n",border=function(e){var t=e.theme.colors;return"\n\tborder: 1px solid "+((void 0===t?{}:t).borderColor||"#ccc")+";\n"},Flex=styled("div")(_templateObject$5||(_templateObject$5=_taggedTemplateLiteralLoose(["\n\tdisplay: ",";\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t",";\n\t",";\n\n\t",";\n\t",";\n\t",";\n\n\tsvg.cancel-icon {\n\t\tcursor: pointer;\n\t\tfill: ",";\n\t\tflex-basis: 30px;\n\n\t\t&:hover {\n\t\t\tfill: ",";\n\t\t}\n\t}\n"])),(function(e){return e.inline?"inline-flex":"flex"}),(function(e){return("left"===e.labelPosition||"right"===e.iconPosition)&&leftLabel}),(function(e){return("right"===e.labelPosition||"left"===e.iconPosition)&&rightLabel}),(function(e){return"top"===e.labelPosition&&topLabel}),(function(e){return"bottom"===e.labelPosition&&bottomLabel}),(function(e){return e.showBorder&&border}),(function(e){return e.justifyContent&&"\n\t\t\tjustify-content: "+e.justifyContent+";\n\t\t"}),(function(e){return e.alignItems&&"\n\t\t\talign-items: "+e.alignItems+";\n\t\t"}),(function(e){return e.flex&&"\n\t\t\tflex: "+e.flex+";\n\t\t"}),(function(e){return e.direction&&"\n\t\t\tflex-direction: "+e.direction+";\n\t\t"}),(function(e){return e.basis&&"\n\t\t\tflex-basis: "+e.basis+";\n\t\t"}),(function(e){var t=e.theme.colors,n=void 0===t?{}:t;return n.borderColor||curriedLighten(.3,n.textColor||"#fff")}),(function(e){var t=e.theme;return t.colors?t.colors.textColor:""})),_templateObject$6,_templateObject2$3,resultStats=css(_templateObject$6||(_templateObject$6=_taggedTemplateLiteralLoose(["\n\tflex-grow: 1;\n\tfont-size: 0.82rem;\n"]))),sortOptions=css(_templateObject2$3||(_templateObject2$3=_taggedTemplateLiteralLoose(["\n\tcolor: #424242;\n\theight: 32px;\n\tfont-size: 0.82rem;\n\tpadding: 0 25px 0 10px;\n\tbackground: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+)\n\t\tno-repeat 95% 50%;\n\tbackground-color: #fff;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\tappearance: none;\n\t-webkit-border-radius: 0;\n\tborder-radius: 0;\n\tborder: 0;\n\toutline: 1px solid #ddd;\n\toutline-offset: -1px;\n"]))),recordImpressions=lib_5.recordImpressions,isEqual$1=lib_8.isEqual,debounce=function(e,t){clearTimeout(e._tId),e._tId=setTimeout((function(){e()}),t)},ImpressionTracker={name:"ImpressionTracker",inject:["$$store"],props:{hits:types.hits},created:function(){this.currentHits=[],this.trackedIds={},this.waitingToBeTracked={}},mounted:function(){this.setCurrentHits(this.hits),window&&window.addEventListener("scroll",this.tracker)},destroy:function(){this.clearTrackerInterval()},watch:{hits:function(e,t){if(e&&e!==t){var n=t.map((function(e){return e._id})),r=e.map((function(e){return e._id}));isEqual$1(r,n)||this.setCurrentHits(e)}}},methods:{inViewPort:function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},setCurrentHits:function(e){this.currentHits=e,this.trackedIds={},e&&e.length&&(this.tracker(),this.setTrackerInterval())},recordImpression:function(){var e=this;if(Object.keys(this.waitingToBeTracked).length){var t=_extends({},this.waitingToBeTracked);Object.keys(t).forEach((function(n){t[n]&&t[n].length&&(e.trackImpressions(n,t[n]),delete e.waitingToBeTracked[n])}))}},addToWaitingList:function(e){var t=this.getQueryId();if(e&&t){var n={id:e._id,index:e._index};this.waitingToBeTracked[t]?this.waitingToBeTracked[t].push(n):this.waitingToBeTracked[t]=[n]}},tracker:function(){var e=this;this.getHitIds().length?(window&&document&&this.getHitIds().forEach((function(t){var n=document.getElementById(t);if(n&&e.inViewPort(n)){var r=e.currentHits.find((function(e){return e._id===t}));e.trackedIds[t]=!0,e.addToWaitingList(r)}})),debounce(this.recordImpression,300)):this.clearTrackerInterval()},setTrackerInterval:function(){this.intervalID=setInterval(this.tracker,1e3)},clearTrackerInterval:function(){this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)},getQueryId:function(){var e=this.$$store?this.$$store.getState():null;return e?e.analytics.searchId:null},getHitIds:function(){var e=this;return this.currentHits.map((function(e){return e._id})).filter((function(t){return!e.trackedIds[t]}))}},render:function(){return this.$slots.default}},mapDispatchToProps$1={trackImpressions:recordImpressions},ImpressionTracker$1=connect((function(){return null}),mapDispatchToProps$1)(ImpressionTracker);function _isSlot$1(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var setQueryOptions=lib_5.setQueryOptions,updateQuery=lib_5.updateQuery,loadMore=lib_5.loadMore,setValue=lib_5.setValue,updateComponentProps$1=lib_5.updateComponentProps,setDefaultQuery=lib_5.setDefaultQuery,recordResultClick=lib_5.recordResultClick,isEqual$2=lib_8.isEqual,getQueryOptions=lib_8.getQueryOptions,getClassName$1=lib_8.getClassName,parseHits=lib_8.parseHits,getCompositeAggsQuery=lib_8.getCompositeAggsQuery,getResultStats=lib_8.getResultStats,extractQueryFromCustomQuery=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery=lib_8.getOptionsForCustomQuery,ReactiveList={name:"ReactiveList",components:{ResultListWrapper:ResultListWrapper,ResultCardsWrapper:ResultCardsWrapper},data:function(){var e=0,t=this.defaultPage||-1;return t>=0?e=t:this.currentPage&&(e=Math.max(this.currentPage-1,0)),this.__state={from:e*this.size,currentPageState:e},this.__state},created:function(){var e=this;this.pagination&&this.aggregationField&&console.warn("Pagination is not supported when aggregationField is present. The list will be rendered with infinite scroll");var t=this.defaultPage||-1;t>=0&&(this.currentPageState=t,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.sortOptionIndex=0,this.defaultSortOption&&this.sortOptions&&Array.isArray(this.sortOptions)&&(this.sortOptionIndex=this.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption}))),this.urlSortOption&&(this.sortOptionIndex=this.$props.sortOptions.findIndex((function(t){return t.label===e.urlSortOption}))||0),this.updateComponentProps(this.componentId,{from:this.from},constants_1$1.reactiveList),this.updateComponentProps(this.internalComponent,{from:this.from},constants_1$1.reactiveList)},props:{currentPage:Q.number.def(0),includeFields:types.includeFields,className:types.string,componentId:types.stringRequired,dataField:types.stringRequired,aggregationField:types.string,aggregationSize:Q.number,defaultQuery:types.func,defaultSortOption:types.string,excludeFields:types.excludeFields,innerClass:types.style,listClass:Q.string.def(""),loader:types.title,render:types.func,renderItem:types.func,renderNoResults:Q.any.def("No Results found."),renderError:types.title,renderResultStats:types.func,pages:Q.number.def(5),pagination:Q.bool.def(!1),infiniteScroll:Q.bool.def(!0),paginationAt:Q.oneOf(["top","bottom","both"]).def("bottom"),react:types.react,scrollOnChange:Q.bool.def(!0),showResultStats:Q.bool.def(!0),showEndPage:Q.bool.def(!1),size:Q.number.def(10),sortBy:types.sortBy,sortOptions:types.sortOptions,URLParams:Q.bool.def(!1),prevLabel:types.string,nextLabel:types.string,distinctField:types.string,distinctFieldConfig:types.props,index:Q.string,endpoint:types.endpointConfig},computed:{shouldRenderPagination:function(){return this.pagination&&!this.aggregationField},totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},hasPageChangeListener:function(){return this.$attrs&&this.$attrs.pageChange},hasResultStatsListener:function(){return this.$attrs&&this.$attrs.resultStats},stats:function(){return _extends({},getResultStats(this),{currentPage:this.currentPageState,displayedResults:this.data.length})},hasCustomRender:function(){return hasCustomRenderer(this)},showInfiniteScroll:function(){return this.infiniteScroll&&!this.shouldRenderPagination},data:function(){var e=parseHits(this.hits)||[],t=parseHits(this.promotedResults)||[],n=e;if(t.length){var r=t.map((function(e){return e._id})).filter(Boolean);r&&(n=n.filter((function(e){return!r.includes(e._id)}))),n=[].concat(t,n)}return helper_15(n)}},watch:{sortOptions:function(e,t){isEqual$2(t,e)||this.updateQueryOptions(this.$props)},sortBy:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},size:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},dataField:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},includeFields:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},excludeFields:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},defaultQuery:function(e,t){if(!isQueryIdentical(e,t,null,this.$props)){var n=getQueryOptions(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=extractQueryFromCustomQuery(this.$defaultQuery),o=getOptionsForCustomQuery(this.$defaultQuery);o&&(n=_extends({},n,o)),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props),this.setQueryOptions(this.$props.componentId,_extends({},n,this.getAggsQuery()),!r),this.updateQuery({componentId:this.internalComponent,query:r},!0),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){isEqual$2(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$2(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$2(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.shouldRenderPagination?this.isLoading&&(t||e)&&(this.hasPageChangeListener?(this.$emit("pageChange",this.currentPageState+1,this.totalPages),this.$emit("page-change",this.currentPageState+1,this.totalPages)):this.scrollOnChange&&window.scrollTo(0,0)):t&&e&&(t.length===e.length&&e.length!==this.$props.total||e.length<t.length&&(this.scrollOnChange&&window.scrollTo(0,0),this.from=0))},rawData:function(e,t){isEqual$2(e,t)||this.$emit("data",this.getData())},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},infiniteScroll:function(e,t){e!==t&&(e?window.removeEventListener("scroll",this.scrollHandler):window.addEventListener("scroll",this.scrollHandler))},defaultPage:function(e,t){this.currentPageState!==e&&t!==e&&this.setPage(e>=0?e:0)}},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,this.URLParams);var e=getQueryOptions(this.$props);if(e.from=this.$data.from,this.sortOptions&&this.sortOptions[this.sortOptionIndex]){var t,n=this.sortOptions[this.sortOptionIndex].dataField,r=this.sortOptions[this.sortOptionIndex].sortBy;e.sort=[(t={},t[n]={order:r},t)],this.updateComponentProps(this.componentId,{dataField:n,sortBy:r},constants_1$1.reactiveList)}else if(this.$props.sortBy){var o;e.sort=[(o={},o[this.$props.dataField]={order:this.$props.sortBy},o)]}this.$defaultQuery=null,this.$props.defaultQuery&&(this.$defaultQuery=this.$props.defaultQuery(),e=_extends({},e,getOptionsForCustomQuery(this.$defaultQuery)),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props));var a=extractQueryFromCustomQuery(this.$defaultQuery);this.setQueryOptions(this.$props.componentId,_extends({},e,this.getAggsQuery()),!1),this.$defaultQuery?this.updateQuery({componentId:this.internalComponent,query:a},!1):this.updateQuery({componentId:this.internalComponent,query:null},!1),this.showInfiniteScroll&&window.addEventListener("scroll",this.scrollHandler)},beforeUnmount:function(){this.showInfiniteScroll&&window.removeEventListener("scroll",this.scrollHandler)},render:function(){var e=this,t=this.$data.hits,n=parseHits(t)||[];return vue.createVNode("div",{style:this.$props.style,class:this.$props.className},[this.isLoading&&this.shouldRenderPagination&&this.showInfiniteScroll&&(this.$slots.loader||this.$props.loader),this.renderErrorComponent(),vue.createVNode(Flex,{labelPosition:this.sortOptions?"right":"left",class:getClassName$1(this.$props.innerClass,"resultsInfo")},{default:function(){return[e.sortOptions?e.renderSortOptions():null,e.$props.showResultStats&&n.length?e.renderStats():null]}}),!this.isLoading&&t&&0===t.length?this.renderNoResult():null,!this.shouldRenderPagination||"top"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:vue.createVNode(Pagination,{pages:this.$props.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.$props.innerClass,prevLabel:this.$props.prevLabel,nextLabel:this.$props.nextLabel},null),this.renderResults(),this.isLoading&&!this.shouldRenderPagination?this.$slots.loader||this.$props.loader||vue.createVNode("div",{style:{textAlign:"center",margin:"20px 0",color:"#666"}},[vue.createTextVNode("Loading...")]):null,!this.shouldRenderPagination||"bottom"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:vue.createVNode(Pagination,{pages:this.$props.pages,totalPages:Math.ceil(this.$data.total/this.$props.size),currentPage:this.currentPageState,setPage:this.setPage,showEndPage:this.$props.showEndPage,innerClass:this.$props.innerClass,prevLabel:this.$props.prevLabel,nextLabel:this.$props.nextLabel},null),this.url.endsWith("appbase.io")&&n.length?vue.createVNode(Flex,{direction:"row-reverse",class:getClassName$1(this.$props.innerClass,"poweredBy")},{default:function(){return[vue.createVNode(PoweredBy,null,null)]}}):null])},methods:{renderErrorComponent:function(){var e=this.$slots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?isFunction(e)?e(this.error):e:null},renderResults:function(){var e=this,t=this.$props.size,n=this.$slots.renderItem||this.$props.renderItem,r=this.hasCustomRender?this.getComponent():vue.createVNode("div",{class:this.$props.listClass+" "+getClassName$1(this.$props.innerClass,"list")},[this.data.map((function(r,o){return n({item:r,count:e.currentPageState*t+o+1,triggerClickAnalytics:function(){return e.triggerClickAnalytics(e.currentPageState*t+o)}})}))]);return this.analytics?vue.createVNode(ImpressionTracker$1,{hits:this.data},_isSlot$1(r)?r:{default:function(){return[r]}}):r},updateQueryOptions:function(e){var t=getQueryOptions(e);if(t.from=this.$data.from,e.sortOptions&&Array.isArray(e.sortOptions)){var n,r=e.defaultSortOption?e.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption})):0;if(e.sortOptions[r])t.sort=[(n={},n[e.sortOptions[r].dataField]={order:e.sortOptions[r].sortBy},n)]}else if(e.sortBy){var o;t.sort=[(o={},o[e.dataField]={order:e.sortBy},o)]}this.setQueryOptions(this.$props.componentId,_extends({},t,this.getAggsQuery()),!0)},getAggsQuery:function(){var e=this.$props,t=e.size,n=e.aggregationField,r=this.$data.afterKey,o={size:t};return n&&(o.aggs=getCompositeAggsQuery({props:this.$props,after:r||null,showTopHits:!0}).aggs),o},scrollHandler:function(){!this.isLoading&&window.innerHeight+window.pageYOffset+300>=document.body.scrollHeight&&this.loadMore()},loadMore:function(){if((!this.aggregationField||this.afterKey)&&this.hits&&!this.shouldRenderPagination&&this.total>this.hits.length){var e=this.$data.from+this.$props.size;if(this.hits.length<e)return;var t=_extends({},getQueryOptions(this.$props),this.getAggsQuery());this.from=e,updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props),this.loadMoreAction(this.$props.componentId,_extends({},t,{from:e}),!0,!!this.aggregationField)}},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.$props.size*e,n=getQueryOptions(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.$props.componentId,_extends({},n,{from:t}),!1),this.setPageURL(this.$props.componentId,e+1,this.$props.componentId,!1,this.URLParams)}},renderStats:function(){var e=this.$slots.renderResultStats||this.$props.renderResultStats;return e&&this.$data.total?e(this.stats):this.stats.numberOfResults?vue.createVNode("p",{class:resultStats+" "+getClassName$1(this.$props.innerClass,"resultStats")},[this.stats.numberOfResults,vue.createTextVNode(" results found in "),this.stats.time||0,vue.createTextVNode("ms")]):null},renderNoResult:function(){var e=this.$slots.renderNoResults||this.$props.renderNoResults;return this.$slots.renderNoResults?isFunction(e)?e():e:vue.createVNode("p",{class:getClassName$1(this.$props.innerClass,"noResults")||null},[isFunction(e)?e():e])},handleSortChange:function(e){var t=e.target.value;if(this.sortOptions&&this.sortOptions[t]){var n,r=getQueryOptions(this.$props);r.from=0;var o=this.sortOptions[t].dataField,a=this.sortOptions[t].sortBy;r.sort=[(n={},n[o]={order:a},n)],this.sortOptionIndex=t,this.updateComponentProps(this.componentId,{dataField:o,sortBy:a},constants_1$1.reactiveList),this.setQueryOptions(this.$props.componentId,r,!0),this.setPage(0),this.currentPageState=0,this.from=0;var s=this.$props.sortOptions[this.sortOptionIndex]?this.$props.sortOptions[this.sortOptionIndex].label:null;this.setPageURL(this.$props.componentId+"sortOption",s,this.$props.componentId+"sortOption",!1,this.$props.URLParams)}},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.getData().data.find((function(t){return t._click_id===e}));r&&r._id&&(n=r._id)}this.recordResultClick(e,n)},renderSortOptions:function(){return vue.createVNode("select",vue.mergeProps(babelHelperVueTransformOn({change:this.handleSortChange}),{class:sortOptions+" "+getClassName$1(this.$props.innerClass,"sortOptions"),name:"sort-options","aria-label":"Sort options",value:this.sortOptionIndex}),[this.sortOptions.map((function(e,t){return vue.createVNode("option",{key:e.label,value:t},[e.label])}))])},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return _extends({},e,{_click_id:t+n})}))},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.aggregationData,r=this.customData,o=this.currentPage,a=this.hits,s=o*e;return{results:parseHits(a)||[],customData:r||{},promotedResults:parseHits(t)||[],aggregationData:n,loadMore:this.loadMore,base:s,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData;return{data:this.data,aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t||[]),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=_extends({error:this.error,loading:this.isLoading||!1,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return getComponent(e,this)}}},mapStateToProps$1=function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1,urlSortOption:e.selectedValues[t.componentId+"sortOption"]&&e.selectedValues[t.componentId+"sortOption"].value,hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId],promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,analytics:e.config&&e.config.analytics,url:e.config.url,error:e.error[t.componentId],afterKey:e.aggregations[t.componentId]&&e.aggregations[t.componentId][t.aggregationField]&&e.aggregations[t.componentId][t.aggregationField].after_key,componentProps:e.props[t.componentId],isLoading:e.isLoading[t.componentId]}},mapDispatchtoProps={loadMoreAction:loadMore,setPageURL:setValue,setQueryOptions:setQueryOptions,updateQuery:updateQuery,updateComponentProps:updateComponentProps$1,setDefaultQuery:setDefaultQuery,recordResultClick:recordResultClick};ReactiveList.generateQueryOptions=function(e){var t=getQueryOptions(e),n=e.size,r=e.dataField,o=e.defaultSortOption,a=e.sortOptions,s=e.currentPage,i=e.sortBy;t.from=s?(s-1)*(n||10):0,t.size=n||10;if(a)t.sort=[function(){var e;if(o){var t,n=a.find((function(e){return e.label===o}));if(n)return(t={})[n.dataField]={order:n.sortBy},t}return(e={})[a[0].dataField]={order:a[0].sortBy},e}()];else if(i){var u;t.sort=[(u={},u[r]={order:i},u)]}return t},ReactiveList.hasInternalComponent=function(){return!0};var RLConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$1,mapDispatchtoProps)(ReactiveList),{componentType:constants_1$1.reactiveList,internalComponent:ReactiveList.hasInternalComponent()}));function URL$1(e){var t=RegExp("^(([^:/?#]*)?://)?(((.*)?@)?([^/?#]*)?)([^?#]*)(\\?([^#]*))?(#(.*))?"),n=e.match(t);return{protocol:n[2],auth:n[5],host:n[6],path:n[7],query:n[9],hash:n[11]}}RLConnected.name=ReactiveList.name,RLConnected.install=function(e){e.component(RLConnected.name,RLConnected),e.component(ResultListWrapper.name,ResultListWrapper),e.component(ResultCardsWrapper.name,ResultCardsWrapper)},RLConnected.componentType=constants_1$1.reactiveList;var urlParserLite=URL$1;function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var decode=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var i=e.length;s>0&&i>s&&(i=s);for(var u=0;u<i;++u){var l,c,p,d,h=e[u].replace(a,"%20"),f=h.indexOf(n);f>=0?(l=h.substr(0,f),c=h.substr(f+1)):(l=h,c=""),p=decodeURIComponent(l),d=decodeURIComponent(c),hasOwnProperty(o,p)?Array.isArray(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o},stringifyPrimitive=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},encode=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(stringifyPrimitive(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(stringifyPrimitive(e))})).join(t):o+encodeURIComponent(stringifyPrimitive(e[r]))})).filter(Boolean).join(t):r?encodeURIComponent(stringifyPrimitive(r))+n+encodeURIComponent(stringifyPrimitive(e)):""},querystring=createCommonjsModule((function(e,t){t.decode=t.parse=decode,t.encode=t.stringify=encode})),querystring_1=querystring.decode,querystring_2=querystring.parse,querystring_3=querystring.encode,querystring_4=querystring.stringify,browserPonyfill=createCommonjsModule((function(e,t){var n="undefined"!=typeof self?self:commonjsGlobal,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,s="ArrayBuffer"in e;if(s)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=l(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[l(e)]},d.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},d.prototype.set=function(e,t){this.map[l(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function $(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call($.prototype),$.prototype.clone=function(){return new $(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},$.error=function(){var e=new $(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];$.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new $(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function O(e,n){return new Promise((function(r,a){var s=new b(e,n);if(s.signal&&s.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var i=new XMLHttpRequest;function u(){i.abort()}i.onload=function(){var e,t,n={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;r(new $(o,n))},i.onerror=function(){a(new TypeError("Network request failed"))},i.ontimeout=function(){a(new TypeError("Network request failed"))},i.onabort=function(){a(new t.DOMException("Aborted","AbortError"))},i.open(s.method,s.url,!0),"include"===s.credentials?i.withCredentials=!0:"omit"===s.credentials&&(i.withCredentials=!1),"responseType"in i&&o&&(i.responseType="blob"),s.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),s.signal&&(s.signal.addEventListener("abort",u),i.onreadystatechange=function(){4===i.readyState&&s.signal.removeEventListener("abort",u)}),i.send(void 0===s._bodyInit?null:s._bodyInit)}))}O.polyfill=!0,e.fetch||(e.fetch=O,e.Headers=d,e.Request=b,e.Response=$),t.Headers=d,t.Request=b,t.Response=$,t.fetch=O,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})),fetch$1=unwrapExports(browserPonyfill),browserPonyfill_1=browserPonyfill.fetch,browserPonyfill_2=browserPonyfill.Headers,browserPonyfill_3=browserPonyfill.Request,browserPonyfill_4=browserPonyfill.Response,_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function contains(e,t){return-1!==e.indexOf(t)}function isAppbase(e){return contains(e,"scalr.api.appbase.io")}function btoa$1(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=t,o="",a=0,s=0,i=n;r.charAt(0|s)||(i="=",s%1);o+=i.charAt(63&a>>8-s%1*8)){if((e=r.charCodeAt(s+=3/4))>255)throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');a=a<<8|e}return o}function validateRSQuery(e){if(e&&"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<e.length;t+=1){var n=e[t];if(!n)return new Error("query object can not have an empty value");if(!n.id)return new Error("'id' field must be present in query object")}return!0}return new Error("invalid query value, 'query' value must be an array")}function validate(e,t){var n=[],r={object:null,string:"",number:0};Object.keys(t).forEach((function(o){var a=t[o].split("|").find((function(t){return _typeof$1(e[o])===t}));a&&e[o]!==r[a]||n.push(o)}));for(var o="",a=0;a<n.length;a+=1)o+=n[a]+", ";return!(n.length>0)||new Error("fields missing: "+o)}function removeUndefined(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e||0!==Object.keys(e).length||e.constructor!==Object?JSON.parse(JSON.stringify(e)):null}function encodeHeaders(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return t?Object.keys(e).forEach((function(t){n[t]=encodeURI(e[t])})):n=e,n}function getMongoRequest(e,t){var n={};return e&&(n.index=e),t&&(t.db&&(n.db=t.db),t.collection&&(n.collection=t.collection)),n}function getTelemetryHeaders(e,t){var n={};return t?(Object.assign(n,{"X-Search-Client":"Appbase JS"}),!1===e&&Object.assign(n,{"X-Enable-Telemetry":e}),n):n}var backendAlias={MONGODB:"mongodb",ELASTICSEARCH:"elasticsearch"},dataTypes={ARRAY:"array",FUNCTION:"function",OBJECT:"object",NUMBER:"number",BOOLEAN:"boolean",STRING:"string"},checkDataType=function(e){return(void 0===e?"undefined":_typeof$1(e))===dataTypes.OBJECT?Array.isArray(e)?dataTypes.ARRAY:dataTypes.OBJECT:void 0===e?"undefined":_typeof$1(e)};function validateSchema(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=Object.keys(e).filter((function(t){return!!e[t]})),o=Object.keys(t),a=[];o.forEach((function(e){t[e].required&&a.push(e)})),a.forEach((function(e){if(!r.includes(e))throw new Error(e+" is required when using the "+n+" Search backend.")})),r.forEach((function(r){if(!o.includes(r))throw new Error(r+" property isn't accepted property by "+n+" backend.");var a=Array.isArray(t[r].type)?t[r].type:[].concat(t[r].type),s=checkDataType(e[r]);if(!a.includes(s))throw new Error("The property "+r+" is expected with type(s) ["+a.join(", ")+"], but type was set as "+s+".")}))}function isValidHttpUrl(e){var t=void 0;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}var mongodb={url:{type:dataTypes.STRING,required:!0},app:{type:dataTypes.STRING,required:!1},credentials:{type:dataTypes.STRING,required:!1},enableTelemetry:{type:dataTypes.BOOLEAN,required:!1},mongodb:{type:dataTypes.OBJECT,required:!0},username:{type:dataTypes.STRING,required:!1},password:{type:dataTypes.STRING,required:!1}},elasticsearch={url:{type:dataTypes.STRING,required:!0},app:{type:dataTypes.STRING,required:!0},credentials:{type:dataTypes.STRING,required:!1},enableTelemetry:{type:dataTypes.BOOLEAN,required:!1},username:{type:dataTypes.STRING,required:!1},password:{type:dataTypes.STRING,required:!1}},SCHEMA={mongodb:mongodb,elasticsearch:elasticsearch};function AppBase(e){var t=urlParserLite((e.endpoint?e.endpoint.url:e.url)||""),n=t.auth,r=void 0===n?null:n,o=t.host,a=void 0===o?"":o,s=t.path,i=void 0===s?"":s,u=t.protocol,l=void 0===u?"":u,c=e.url;"/"===(c=a+i).slice(-1)&&(c=c.slice(0,-1));var p=backendAlias[e.mongodb?"MONGODB":"ELASTICSEARCH"],d=SCHEMA[p];if(e.endpoint&&isValidHttpUrl(e.endpoint.url)&&(d.url.required=!1,d.app.required=!1,d.credentials.required=!1),validateSchema({url:e.url,app:e.app,credentials:e.credentials,username:e.username,password:e.password,enableTelemetry:e.enableTelemetry,mongodb:e.mongodb},d,p),"string"!=typeof l||""===l)throw new Error("Protocol is not present in url. URL should be of the form https://appbase-demo-ansible-abxiydt-arc.searchbase.io");var h=r||null;if("string"==typeof e.credentials&&""!==e.credentials?h=e.credentials:"string"==typeof e.username&&""!==e.username&&"string"==typeof e.password&&""!==e.password&&(h=e.username+":"+e.password),!e.mongodb&&isAppbase(c)&&null===h)throw new Error("Authentication information is not present. Did you add credentials?");this.url=c,this.protocol=l,this.app=e.app,this.credentials=h,e.mongodb&&(this.mongodb=e.mongodb),"boolean"==typeof e.enableTelemetry&&(this.enableTelemetry=e.enableTelemetry)}function fetchRequest(e){var t=this;return new Promise((function(n,r){var o=removeUndefined(e);try{var a=o.method,s=o.path,i=o.params,u=o.body,l=o.isRSAPI,c=o.isSuggestionsAPI,p=o.isMongoRequest,d=void 0!==p&&p,h=c?".suggestions":t.app,f=u,m=s.endsWith("msearch")||s.endsWith("bulk")?"application/x-ndjson":"application/json",g=Object.assign({},{Accept:"application/json","Content-Type":m},e.headers,t.headers),y=Date.now();t.credentials&&(g.Authorization="Basic "+btoa$1(t.credentials));var v={method:a,headers:g};if(Array.isArray(f)){var b="";f.forEach((function(e){b+=JSON.stringify(e),b+="\n"})),f=b}else f=JSON.stringify(f)||{};0!==Object.keys(f).length&&(v.body=f);var _={},$="";i&&($="?"+querystring.stringify(i));var C=d?t.protocol+"://"+t.url:t.protocol+"://"+t.url+"/"+h+"/"+s+$;return function(e){if(t.transformRequest&&"function"==typeof t.transformRequest){var n=t.transformRequest(e);return n instanceof Promise?n:Promise.resolve(n)}return Promise.resolve(e)}(Object.assign({},{url:C},v)).then((function(e){var t=Object.assign({},e),o=t.url;return delete t.url,fetch$1(o||C,Object.assign({},t,{headers:l&&!d?Object.assign({},t.headers,{"x-timestamp":(new Date).getTime()}):t.headers})).then((function(e){return e.status>=500?r(e):(_=e.headers,e.json().then((function(t){if(e.status>=400)return r(e);if(t&&t.error)return r(t);if(l&&t&&"[object Object]"===Object.prototype.toString.call(t)&&u&&u.query&&u.query instanceof Array){var o=0,a=u.query.filter((function(e){return e.execute||void 0===e.execute})).length;if(t&&Object.keys(t).forEach((function(e){t[e]&&Object.prototype.hasOwnProperty.call(t[e],"error")&&t[e].error&&(o+=1)})),o>0&&a===o)return r(t)}if(t&&t.responses instanceof Array&&t.responses.length===t.responses.filter((function(e){return Object.prototype.hasOwnProperty.call(e,"error")})).length)return r(t);var s=Object.assign({},t,{_timestamp:y,_headers:_});return n(s)})).catch((function(e){return r(e)})))})).catch((function(e){return r(e)}))})).catch((function(e){return r(e)}))}catch(e){return r(e)}}))}function indexApi(e){var t=removeUndefined(e),n=validate(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,a=t.id,s=t.body;delete t.type,delete t.body,delete t.id;var i=void 0;return i=a?o?o+"/"+encodeURIComponent(a):encodeURIComponent(a):o,this.performFetchRequest({method:"POST",path:i,params:t,body:s})}function getApi(e){var t=removeUndefined(e),n=validate(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,a=t.id;delete t.type,delete t.id;var s=o+"/"+encodeURIComponent(a);return this.performFetchRequest({method:"GET",path:s,params:t})}function updateApi(e){var t=removeUndefined(e),n=validate(t,{id:"string|number",body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,a=t.id,s=t.body;delete t.type,delete t.id,delete t.body;var i=o+"/"+encodeURIComponent(a)+"/_update";return this.performFetchRequest({method:"POST",path:i,params:t,body:s})}function deleteApi(e){var t=removeUndefined(e),n=validate(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,a=t.id;delete t.type,delete t.id;var s=o+"/"+encodeURIComponent(a);return this.performFetchRequest({method:"DELETE",path:s,params:t})}function bulkApi(e){var t=removeUndefined(e),n=validate(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=t.body;delete t.type,delete t.body;var a=void 0;return a=r?r+"/_bulk":"_bulk",this.performFetchRequest({method:"POST",path:a,params:t,body:o})}function searchApi(e){var t=removeUndefined(e),n=validate(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var a=void 0;return a=r?r+"/_search":"_search",this.performFetchRequest({method:"POST",path:a,params:t,body:o})}function msearchApi(e){var t=removeUndefined(e),n=validate(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var a=void 0;return a=r?r+"/_msearch":"_msearch",this.performFetchRequest({method:"POST",path:a,params:t,body:o})}function reactiveSearchApi(e,t,n){var r=removeUndefined(t),o=validateRSQuery(e);if(!0!==o)throw o;var a={settings:r,query:e};return this.mongodb&&Object.assign(a,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch",body:a,headers:getTelemetryHeaders(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb,params:n})}function reactiveSearchv3Api(e,t,n){var r=removeUndefined(t),o=validateRSQuery(e);if(!0!==o)throw o;var a={settings:r,query:e};return this.mongodb&&Object.assign(a,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:a,headers:getTelemetryHeaders(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb,params:n})}function getMappings(){return this.performFetchRequest({method:"GET",path:"_mapping"})}function getSuggestionsv3Api(e,t){var n=removeUndefined(t),r=validateRSQuery(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,headers:getTelemetryHeaders(this.enableTelemetry),isRSAPI:!0,isSuggestionsAPI:!0,isMongoRequest:!!this.mongodb})}function appbasejs(e){var t=new AppBase(e);return AppBase.prototype.performFetchRequest=fetchRequest,AppBase.prototype.index=indexApi,AppBase.prototype.get=getApi,AppBase.prototype.update=updateApi,AppBase.prototype.delete=deleteApi,AppBase.prototype.bulk=bulkApi,AppBase.prototype.search=searchApi,AppBase.prototype.msearch=msearchApi,AppBase.prototype.reactiveSearch=reactiveSearchApi,AppBase.prototype.reactiveSearchv3=reactiveSearchv3Api,AppBase.prototype.getQuerySuggestions=getSuggestionsv3Api,AppBase.prototype.getMappings=getMappings,AppBase.prototype.setHeaders=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.headers=t?encodeHeaders(e):e},"undefined"!=typeof window&&(window.Appbase=t),t}function _extends$2(){return(_extends$2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function btoa$2(e){void 0===e&&(e="");for(var t,n=e,r="",o=0,a=0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.charAt(0|a)||(s="=",a%1);r+=s.charAt(63&o>>8-a%1*8)){if((t=n.charCodeAt(a+=3/4))>255)throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');o=o<<8|t}return r}function validateIndex(e){if(!e)throw new Error("appbase-analytics: A valid index must be present to record analytics events.")}function validateCredentials(e){if(!e)throw new Error("appbase-analytics: Auth credentials is missing.")}function validateURL(e){if(!e)throw new Error("appbase-analytics: URL is missing.")}function validateQuery(e,t){if(null==e&&!t)throw new Error("appbase-analytics: query or queryID must be present to register a click/conversion event")}function validateQueryID(e){if(!e)throw new Error("appbase-analytics: queryID must be present to save search/favorite")}function validateClickObjects(e){if(!e||Object.keys(e).length<1)throw new Error("appbase-analytics: at least one click object must be present to register a click event")}function validateConversionObjects(e){if(!e||Object.keys(e).length<1)throw new Error("appbase-analytics: at least one click object must be present to register a click event")}function initClient(e){void 0===e&&(e={});var t={credentials:e.credentials,index:e.index,url:e.url,userID:e.userID,globalCustomEvents:e.globalCustomEvents,queryID:"",headers:null,_request:function(e,n,r,o,a){var s=_extends$2({user_id:t.userID},r,{custom_events:_extends$2({},r&&r.custom_events,{},t.globalCustomEvents)}),i="";return o&&(i=Object.keys(o).map((function(e){return e+"="+o[e]})).join("&")),fetch$1(t.url+"/"+n+"?"+i,{method:e,headers:_extends$2({},t.headers,{"Content-Type":"application/json",Authorization:"Basic "+btoa$2(t.credentials)}),body:"GET"===e?null:JSON.stringify(s)}).then((function(e){a&&a(null,e)})).catch((function(e){a&&a(e,null)}))}};return validateIndex(t.index),validateCredentials(t.credentials),validateURL(t.url),t.search=function(e,n){validateQuery(e.query,e.queryID);if(t._request){var r={query:e.query,query_id:e.queryID,custom_events:e.customEvents,filters:e.filters,hits:e.hits,impressions:e.impressions};t._request("PUT",t.index+"/_analytics/search",r,null,(function(e,r){r?r.json().then((function(o){o&&o.query_id&&(t.queryID=o.query_id),n&&n(e,r)})).catch((function(e){n&&n(e,r)})):n&&n(e,r)}))}},t.click=function(e,n){if(validateQuery(e.query,e.queryID),validateClickObjects(e.objects),t._request){var r={click_on:e.objects,click_type:e.isSuggestionClick?"suggestion":"result",query:e.query,query_id:e.queryID,custom_events:e.customEvents,meta:e.meta};t._request("PUT",t.index+"/_analytics/click",r,null,n)}},t.conversion=function(e,n){if(validateQuery(null,e.queryID),validateConversionObjects(e.objects),t._request){var r={conversion_on:e.objects,query_id:e.queryID,meta:e.meta};t._request("PUT",t.index+"/_analytics/conversion",r,null,n)}},t.saveSearch=function(e,n){validateQueryID(e.queryID);var r={query_id:e.queryID,save_search_id:e.saveSearchID,save_search_meta:e.saveSearchMeta,user_id:e.userID,custom_events:e.customEvents};t._request("PUT","_analytics/save-search",r,null,n)},t.deleteSavedSearch=function(e,n){t._request("DELETE","_analytics/save-search/"+e,null,null,n)},t.getSavedSearches=function(e,n){t._request&&t._request("GET","_analytics/saved-searches",null,e,n)},t.favorite=function(e,n){if(validateQueryID(e.queryID),!e.favoriteOn||""===e.favoriteOn)throw new Error("appbase-analytics: favoriteOn property is required");if(!e.source)throw new Error("appbase-analytics: source property is required");var r={query_id:e.queryID,favorite_on:e.favoriteOn,source:e.source,id:e.id,meta:e.meta,user_id:e.userID,custom_events:e.customEvents};t._request("PUT","_analytics/favorite",r,null,n)},t.getFavorites=function(e,n){t._request&&t._request("GET","_analytics/favorites",null,e,n)},t.setUserID=function(e){t.userID=e},t.setGlobalCustomEvents=function(e){t.globalCustomEvents=e},t.setHeaders=function(e){t.headers=e},t.getQueryID=function(){return t.queryID},t}var index={init:initClient};
22
13
  /**
23
14
  *
24
15
  *
25
16
  * @author Jerry Bendy <jerry@icewingcc.com>
26
17
  * @licence MIT
27
18
  *
28
- */!function(e){var t,n=e.URLSearchParams&&e.URLSearchParams.prototype.get?e.URLSearchParams:null,r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),i=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),a=c.prototype,s=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&i)){a.append=function(e,t){g(this.__URLSearchParams__,e,t)},a.delete=function(e){delete this.__URLSearchParams__[e]},a.get=function(e){var t=this.__URLSearchParams__;return e in t?t[e][0]:null},a.getAll=function(e){var t=this.__URLSearchParams__;return e in t?t[e].slice(0):[]},a.has=function(e){return e in this.__URLSearchParams__},a.set=function(e,t){this.__URLSearchParams__[e]=[""+t]},a.toString=function(){var e,t,n,r,o=this.__URLSearchParams__,i=[];for(t in o)for(n=p(t),e=0,r=o[t];e<r.length;e++)i.push(n+"="+p(r[e]));return i.join("&")};var u=!!o&&n&&!r&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:u?new Proxy(n,{construct:function(e,t){return new e(new c(t[0]).toString())}}):c});var l=e.URLSearchParams.prototype;l.polyfill=!0,l.forEach=l.forEach||function(e,t){var n=f(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)},l.sort=l.sort||function(){var e,t,n,r=f(this.toString()),o=[];for(e in r)o.push(e);for(o.sort(),t=0;t<o.length;t++)this.delete(o[t]);for(t=0;t<o.length;t++){var i=o[t],a=r[i];for(n=0;n<a.length;n++)this.append(i,a[n])}},l.keys=l.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},l.values=l.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},l.entries=l.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},s&&(l[e.Symbol.iterator]=l[e.Symbol.iterator]||l.entries)}function c(e){((e=e||"")instanceof URLSearchParams||e instanceof c)&&(e=e.toString()),this.__URLSearchParams__=f(e)}function p(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function d(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(e){return decodeURIComponent(e)}))}function h(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return s&&(n[e.Symbol.iterator]=function(){return n}),n}function f(e){var t={};if("object"==typeof e)if(m(e))for(var n=0;n<e.length;n++){var r=e[n];if(!m(r)||2!==r.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");g(t,r[0],r[1])}else for(var o in e)e.hasOwnProperty(o)&&g(t,o,e[o]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),a=0;a<i.length;a++){var s=i[a],u=s.indexOf("=");-1<u?g(t,d(s.slice(0,u)),d(s.slice(u+1))):s&&g(t,d(s),"")}}return t}function g(e,t,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);t in e?e[t].push(r):e[t]=[r]}function m(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}}(void 0!==n?n:"undefined"!=typeof window?window:n);var Di,Fi={name:"Provider",props:{store:{type:Object,required:!0,validator:function(e){if(!e.dispatch&&!e.subscribe&&!e.getState)throw new Error("[reactivesearch-vue] - store provided is not a valid redux store");return!0}}},provide:function(){return{$$store:this.store}},render:function(e){return this.$slots.default.length>1?e("div",this.$slots.default):this.$slots.default[0]}},Ni=on({functional:!0,render:function(e,t){var n=t.data.attrs.as,r=void 0===n?"div":n,o=t.data,i=t.children;return delete o.attrs.as,e(r,oo([{},o]),[i])}})(Di||(Di=ft(["\n\tfont-family: ",";\n\tfont-size: ",";\n\tcolor: ",";\n\twidth: 100%;\n\n\tinput,\n\tbutton,\n\ttextarea,\n\tselect {\n\t\tfont-family: ",";\n\t}\n\n\t*,\n\t*:before,\n\t*:after {\n\t\tbox-sizing: border-box;\n\t}\n"])),(function(e){return e.theme.typography.fontFamily}),(function(e){return e.theme.typography.fontSize}),(function(e){return e.theme.colors.textColor}),(function(e){return e.theme.typography.fontFamily})),Ui=ot.setHeaders,qi=ot.setValue,Bi=at.isEqual,zi={name:"URLParamsProvider",props:{className:Jn.string,headers:Jn.headers,getSearchParams:Jn.func,setSearchParams:Jn.func,as:jt.string.def("div")},mounted:function(){var e=this;this.init(),window.onpopstate=function(){e.init();var t=Array.from(e.params.keys());Object.keys(e.currentSelectedState).filter((function(e){return!t.includes(e)})).forEach((function(t){e.setValue(t,null,void 0,void 0,void 0,void 0,void 0,void 0,"URL")})),Array.from(e.params.entries()).forEach((function(t){try{var n=t[0],r=t[1],o=e.selectedValues[n]||{label:n},i=o.label,a=o.showFilter,s=o.URLParams;e.setValue(n,JSON.parse(r),i,a,s,void 0,void 0,void 0,"URL")}catch(e){console.error(e)}}))}},watch:{$route:function(){this.checkForURLParamsChange()},selectedValues:function(e,t){var n=this;if(!Bi(e,t)){this.searchString=this.$props.getSearchParams?this.$props.getSearchParams():window.location.search,this.params=new URLSearchParams(this.searchString);var r=Object.keys(e),o=Array.from(this.params.keys()),i=!1;r.filter((function(t){return e[t].URLParams})).forEach((function(r){var a=e[r];n.hasValidValue(e[r])||n.hasValidValue(t[r])?a.URLParams?a.category?n.setURL(r,n.getValue({category:a.category,value:a.value}))&&(i=!0):n.setURL(r,n.getValue(a.value))&&(i=!0):(n.params.delete(r),i=!0):!n.hasValidValue(e[r])&&o.includes(r)&&(n.params.delete(r),i=!0)})),Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(e){n.params.delete(e),i=!0})),r.length||Array.from(this.params.keys()).forEach((function(e){n.searchComponents&&n.searchComponents.includes(e)&&(n.params.delete(e),i=!0)})),i&&this.pushToHistory()}},headers:function(e,t){Bi(t,e)||this.setHeaders(e)}},methods:{init:function(){this.searchString=this.$props.getSearchParams?this.$props.getSearchParams():window.location.search,this.params=new URLSearchParams(this.searchString),this.currentSelectedState=this.selectedValues||{}},checkForURLParamsChange:function(){var e;window&&((this.$props.getSearchParams?this.$props.getSearchParams():window.location.search)!==this.searchString&&("function"==typeof Event?e=new Event("popstate"):(e=document.createEvent("Event")).initEvent("popstate",!0,!0),window.dispatchEvent(e)))},hasValidValue:function(e){return!!e&&(Array.isArray(e.value)?!!e.value.length:!!e.value)},getValue:function(e){var t=this;return Array.isArray(e)&&e.length?e.map((function(e){return t.getValue(e)})):e&&"object"==typeof e?e.location||e.category?e:e.label||e.key||null:e},setURL:function(e,t){if(!t||"string"==typeof t&&""===t.trim()||Array.isArray(t)&&0===t.length)return this.params.delete(e),!0;var n=JSON.stringify(t);return n!==this.params.get(e)&&(this.params.set(e,n),!0)},pushToHistory:function(){var e=this.params.toString()?"?"+this.params.toString():"",t=""+window.location.href.split("?")[0]+e;this.$props.setSearchParams?this.$props.setSearchParams(t):window.history.pushState&&window.history.pushState({path:t},"",t),this.init()}},render:function(){var e=arguments[0],t=this.$slots.default;return e(Ni,{attrs:{as:this.$props.as},class:this.$props.className},[t])}},Hi={setHeaders:Ui,setValue:qi};zi.install=function(e){e.component(zi.name,zi)};var Gi=gr((function(e){return{selectedValues:e.selectedValues,searchComponents:e.components}}),Hi)(zi),Wi={fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Noto Sans", "Ubuntu", "Droid Sans", "Helvetica Neue", sans-serif',fontSize:"16px"},Zi={typography:Wi,colors:{textColor:"#424242",primaryTextColor:"#fff",primaryColor:"#0B6AFF",titleColor:"#424242",alertColor:"#d9534f",borderColor:"#595959"}},Ki={typography:Wi,colors:{textColor:"#fff",backgroundColor:"#212121",primaryTextColor:"#fff",primaryColor:"#2196F3",titleColor:"#fff",alertColor:"#d9534f",borderColor:"#666"}};var Yi={name:"ReactiveBase",data:function(){return this.state={key:"__REACTIVE_BASE__"},this.state},created:function(){this.setStore(this.$props)},mounted:function(){var e=this.analyticsConfig,t=this.enableAppbase,n=this.endpoint;void 0!==e&&console.warn("Warning(ReactiveSearch): The `analyticsConfig` prop has been marked as deprecated, please use the `appbaseConfig` prop instead."),!t&&n&&console.warn("Warning(ReactiveSearch): The `endpoint` prop works only when `enableAppbase` prop is set to true.")},props:{app:Jn.string,analytics:jt.bool,analyticsConfig:Jn.analyticsConfig,appbaseConfig:Jn.appbaseConfig,enableAppbase:jt.bool.def(!1),credentials:Jn.string,headers:Jn.headers,queryParams:Jn.string,theme:jt.object.def({}),themePreset:jt.string.def("light"),type:Jn.string,url:Jn.string,mapKey:Jn.string,initialQueriesSyncTime:Jn.number,className:Jn.string,initialState:jt.object.def({}),transformRequest:Jn.func,transformResponse:Jn.func,as:jt.string.def("div"),getSearchParams:Jn.func,setSearchParams:Jn.func,mongodb:Jn.mongodb,endpoint:Jn.endpointConfig},provide:function(){return{theme_reactivesearch:(n=this.$props.themePreset,e="light"===n?Zi:Ki,t=this.$props.theme,void 0===e&&(e={}),void 0===t&&(t={}),{typography:ct({},e.typography,t.typography),colors:ct({},e.colors,t.colors),component:ct({},e.component,t.component)}),store:this.store};var e,t,n},watch:{app:function(){this.updateState(this.$props)},url:function(){this.updateState(this.$props)},type:function(){this.updateState(this.$props)},credentials:function(){this.updateState(this.$props)},mapKey:function(){this.updateState(this.$props)},headers:function(){this.updateState(this.$props)},analyticsConfig:function(e,t){_e(e,t)||this.store&&this.store.dispatch(Xe(e))},appbaseConfig:function(e,t){_e(e,t)||this.store&&this.store.dispatch(Xe(e))},mongodb:function(){this.updateState(this.$props)}},computed:{getHeaders:function(){var e=this.$props,t=e.enableAppbase,n=e.headers,r=e.appbaseConfig,o=e.mongodb,i=e.endpoint,a=(r||{}).enableTelemetry;return ct({},t&&!o&&ct({"X-Search-Client":"ReactiveSearch Vue"},!1===a&&{"X-Enable-Telemetry":!1}),n,t&&i&&i.headers&&ct({},i.headers))}},methods:{updateState:function(e){this.setStore(e),this.key=this.state.key+"-0"},setStore:function(e){var t=e.url&&""!==e.url.trim()&&!e.credentials?null:e.credentials,n=ct({},e.analyticsConfig,e.appbaseConfig),r=e.url&&""!==e.url.trim()?e.url:"";if(e.enableAppbase&&e.endpoint){if(!e.endpoint.url)throw Error("Error(ReactiveSearch): The `endpoint` prop object requires `url` property.");r=e.endpoint.url}var o={url:r,app:e.app,credentials:t,type:e.type?e.type:"*",transformRequest:e.transformRequest,transformResponse:e.transformResponse,enableAppbase:e.enableAppbase,analytics:e.appbaseConfig?e.appbaseConfig.recordAnalytics:e.analytics,analyticsConfig:n,mongodb:e.mongodb,endpoint:e.endpoint},i="";i="undefined"!=typeof window?window.location.search:e.queryParams||"";var a=new URLSearchParams(i),s={},u={};Array.from(a.keys()).forEach((function(e){try{var t,n,r=JSON.parse(a.get(e)),o={};r.value?o.value=r.value:o.value=r,r.category&&(o.category=r.category),o.reference="URL",s=ct({},s,((t={})[e]=o,t)),u=ct({},u,((n={})[e]=o.value,n))}catch(e){}}));var l=e.themePreset,c=e.enableAppbase,p=e.endpoint,d=Vi(o);d.transformRequest=function(t){var n=c?Oe(t,p):t;return e.transformRequest?e.transformRequest(n):n},this.$props.transformResponse&&(d.transformResponse=this.$props.transformResponse);var h=ct({config:ct({},o,{initialQueriesSyncTime:e.initialQueriesSyncTime,initialTimestamp:(new Date).getTime(),mapKey:e.mapKey,themePreset:l}),appbaseRef:d,selectedValues:s,urlValues:u,headers:this.getHeaders},this.$props.initialState);this.store=rt(h)}},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.style,o=n.className;return e(Fi,{attrs:{store:this.store}},[e(Gi,{attrs:{as:this.$props.as,headers:this.getHeaders,className:o,getSearchParams:this.getSearchParams,setSearchParams:this.setSearchParams},style:r},[t])])},install:function(e){e.component(Yi.name,Yi)}},Xi="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Ji(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function ea(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function ta(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var na={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Xi?173:189,"=":Xi?61:187,";":Xi?59:186,"'":222,"[":219,"]":221,"\\":220},ra={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},oa={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ia={16:!1,18:!1,17:!1,91:!1},aa={},sa=1;sa<20;sa++)na["f".concat(sa)]=111+sa;var ua=[],la=!1,ca="all",pa=[],da=function(e){return na[e.toLowerCase()]||ra[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function ha(e){ca=e||"all"}function fa(){return ca||"all"}var ga=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,i=void 0===o?"+":o;ta(t).forEach((function(e){var t=e.split(i),o=t.length,a=t[o-1],s="*"===a?"*":da(a);if(aa[s]){n||(n=fa());var u=o>1?ea(ra,t):[];aa[s]=aa[s].filter((function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,i=0;i<n.length;i++)-1===r.indexOf(n[i])&&(o=!1);return o}(e.mods,u))}))}}))};function ma(e,t,n,r){var o;if(t.element===r&&(t.scope===n||"all"===t.scope)){for(var i in o=t.mods.length>0,ia)Object.prototype.hasOwnProperty.call(ia,i)&&(!ia[i]&&t.mods.indexOf(+i)>-1||ia[i]&&-1===t.mods.indexOf(+i))&&(o=!1);(0!==t.mods.length||ia[16]||ia[18]||ia[17]||ia[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function ya(e,t){var n=aa["*"],r=e.keyCode||e.which||e.charCode;if(va.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===ua.indexOf(r)&&229!==r&&ua.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=oa[t];e[t]&&-1===ua.indexOf(n)?ua.push(n):!e[t]&&ua.indexOf(n)>-1?ua.splice(ua.indexOf(n),1):"metaKey"===t&&e[t]&&3===ua.length&&(e.ctrlKey||e.shiftKey||e.altKey||(ua=ua.slice(ua.indexOf(n))))})),r in ia){for(var o in ia[r]=!0,ra)ra[o]===r&&(va[o]=!0);if(!n)return}for(var i in ia)Object.prototype.hasOwnProperty.call(ia,i)&&(ia[i]=e[oa[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===ua.indexOf(17)&&ua.push(17),-1===ua.indexOf(18)&&ua.push(18),ia[17]=!0,ia[18]=!0);var a=fa();if(n)for(var s=0;s<n.length;s++)n[s].scope===a&&("keydown"===e.type&&n[s].keydown||"keyup"===e.type&&n[s].keyup)&&ma(e,n[s],a,t);if(r in aa)for(var u=0;u<aa[r].length;u++)if(("keydown"===e.type&&aa[r][u].keydown||"keyup"===e.type&&aa[r][u].keyup)&&aa[r][u].key){for(var l=aa[r][u],c=l.splitKey,p=l.key.split(c),d=[],h=0;h<p.length;h++)d.push(da(p[h]));d.sort().join("")===ua.sort().join("")&&ma(e,l,a,t)}}}function va(e,t,n){ua=[];var r=ta(e),o=[],i="all",a=document,s=0,u=!1,l=!0,c="+",p=!1;for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(u=t.keyup),void 0!==t.keydown&&(l=t.keydown),void 0!==t.capture&&(p=t.capture),"string"==typeof t.splitKey&&(c=t.splitKey)),"string"==typeof t&&(i=t);s<r.length;s++)o=[],(e=r[s].split(c)).length>1&&(o=ea(ra,e)),(e="*"===(e=e[e.length-1])?"*":da(e))in aa||(aa[e]=[]),aa[e].push({keyup:u,keydown:l,scope:i,mods:o,shortcut:r[s],method:n,key:r[s],splitKey:c,element:a});void 0!==a&&!function(e){return pa.indexOf(e)>-1}(a)&&window&&(pa.push(a),Ji(a,"keydown",(function(e){ya(e,a)}),p),la||(la=!0,Ji(window,"focus",(function(){ua=[]}),p)),Ji(a,"keyup",(function(e){ya(e,a),function(e){var t=e.keyCode||e.which||e.charCode,n=ua.indexOf(t);if(n>=0&&ua.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&ua.splice(0,ua.length),93!==t&&224!==t||(t=91),t in ia)for(var r in ia[t]=!1,ra)ra[r]===t&&(va[r]=!1)}(e)}),p))}var ba,Oa={setScope:ha,getScope:fa,deleteScope:function(e,t){var n,r;for(var o in e||(e=fa()),aa)if(Object.prototype.hasOwnProperty.call(aa,o))for(n=aa[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;fa()===e&&ha(t||"all")},getPressedKeyCodes:function(){return ua.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=da(e)),-1!==ua.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(r=!1),r},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(aa).forEach((function(n){var r=aa[n].find((function(n){return n.scope===t&&n.shortcut===e}));r&&r.method&&r.method()}))},unbind:function(e){if(void 0===e)Object.keys(aa).forEach((function(e){return delete aa[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&ga(e)}));else if("object"==typeof e)e.key&&ga(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0],i=n[1];"function"==typeof o&&(i=o,o=""),ga({key:e,scope:o,method:i,splitKey:"+"})}},keyMap:na,modifier:ra,modifierMap:oa};for(var Ca in Oa)Object.prototype.hasOwnProperty.call(Oa,Ca)&&(va[Ca]=Oa[Ca]);if("undefined"!=typeof window){var wa=window.hotkeys;va.noConflict=function(e){return e&&window.hotkeys===va&&(window.hotkeys=wa),va},window.hotkeys=va}var Sa,$a=on("div")(ba||(ba=ft(["\n display: flex;\n align-items: stretch;\n width: 100%;\n"])));$a.defaultProps={className:"input-group"};var _a,ka,Pa,Ea,Ta,Ia,Aa,Ra,xa,La,ja,Ma,Qa,Va,Da,Fa,Na,Ua=on("span")(Sa||(Sa=ft(["\n flex: 1;\n position: relative;\n"]))),qa=on("span")(_a||(_a=ft(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid #ccc;\n border-radius: 2px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"])));qa.defaultProps={className:"input-addon"};var Ba,za,Ha,Ga,Wa,Za=function(e){var t=e.theme;return Jt(ka||(ka=ft(["\n\tborder: 1px solid ",";\n"])),t.colors.alertColor)},Ka=Jt(Pa||(Pa=ft(["\n\twidth: 100%;\n\tline-height: 1.5;\n\tmin-height: 42px;\n\tpadding: 8px 12px;\n\tborder: 1px solid #ccc;\n\tbackground-color: #fafafa;\n\tfont-size: 0.9rem;\n\toutline: none;\n\theight: 100%;\n\n\t&:focus {\n\t\tbackground-color: #fff;\n\t}\n"]))),Ya=function(e){return Jt(Ea||(Ea=ft(["\n\tborder-color: ",";\n"])),e.colors.borderColor)},Xa=on("input")(Ia||(Ia=ft(["\n\t",";\n\t",";\n\n\t",";\n\n\t",";\n\n\t",";\n\t",";\n\n\t",";\n\n\t",";\n\t",";\n\t",";\n\n\t",";\n"])),Ka,(function(e){var t=e.themePreset,n=e.theme;return"dark"===t&&function(e){var t=e.theme;return Jt(Ta||(Ta=ft(["\n\tbackground-color: ",";\n\tcolor: ",";\n\t",";\n\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor,t.colors.textColor,Ya(t),t.colors.backgroundColor)}({theme:n})}),(function(e){return e.showIcon&&"left"===e.iconPosition&&Jt(Aa||(Aa=ft(["\n\t\t\tpadding-left: 36px;\n\t\t"])))}),(function(e){return e.showIcon&&"right"===e.iconPosition&&Jt(Ra||(Ra=ft(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showClear&&Jt(xa||(xa=ft(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&Jt(La||(La=ft(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showClear&&e.showIcon&&"right"===e.iconPosition&&Jt(ja||(ja=ft(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&e.showIcon&&"right"===e.iconPosition&&Jt(Ma||(Ma=ft(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&e.showIcon&&Jt(Qa||(Qa=ft(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showClear&&e.showIcon&&e.showVoiceSearch&&"right"===e.iconPosition&&Jt(Va||(Va=ft(["\n\t\t\tpadding-right: 90px;\n\t\t"])))}),(function(e){return e.alert&&Za})),Ja=function(e,t){return Jt(Da||(Da=ft(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: min(100vh, 402px);\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tcursor: pointer;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbackground-color: #eee;\n\t\t}\n\t}\n\n\t",";\n"])),"dark"===e&&t&&Ya(t))},es=Jt(Fa||(Fa=ft(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"]))),ts=function(e,t){return Jt(Na||(Na=ft(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: 260px;\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t","\n"])),"dark"===e&&t&&Ya(t))},ns=on("div")(Ba||(Ba=ft(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgrid-gap: 6px;\n\tmargin: 0 10px;\n\theight: 100%;\n\n\t",";\n\n\t",";\n"])),(function(e){return"absolute"===e.positionType?Jt(za||(za=ft(["\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t"]))):null}),(function(e){var t=e.groupPosition;return Jt("right"===t?Ha||(Ha=ft(["\n\t\t\t\t\tright: 0;\n\t\t\t "])):Ga||(Ga=ft(["\n\t\t\t\t\tleft: 0;\n\t\t\t "])))})),rs=on("div")(Wa||(Wa=ft(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmax-width: 23px;\n\twidth: max-content;\n\tcursor: pointer;\n\theight: 100%;min-width:20px;\n\n\tsvg.search-icon {\n\t\tfill: ",";\n\t\ttransform:scale(1.5);\n\t}\n\n\tsvg.cancel-icon {\n\t\tfill: ",";\n\t}\n"])),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.borderColor||"#000"}));function os(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function is(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function as(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return is(n.overflowY,t)||is(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function ss(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var us,ls=function(e,t){null!==e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!os(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],p=e;os(p)&&u(p);){if((p=p.parentElement)===l){c.push(p);break}null!=p&&p===document.body&&as(p)&&!as(document.documentElement)||null!=p&&as(p,s)&&c.push(p)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),y=m.height,v=m.width,b=m.top,O=m.right,C=m.bottom,w=m.left,S="start"===o||"nearest"===o?b:"end"===o?C:b+y/2,$="center"===i?w+v/2:"end"===i?O:w,_=[],k=0;k<c.length;k++){var P=c[k],E=P.getBoundingClientRect(),T=E.height,I=E.width,A=E.top,R=E.right,x=E.bottom,L=E.left;if("if-needed"===r&&b>=0&&w>=0&&C<=h&&O<=d&&b>=A&&C<=x&&w>=L&&O<=R)return _;var j=getComputedStyle(P),M=parseInt(j.borderLeftWidth,10),Q=parseInt(j.borderTopWidth,10),V=parseInt(j.borderRightWidth,10),D=parseInt(j.borderBottomWidth,10),F=0,N=0,U="offsetWidth"in P?P.offsetWidth-P.clientWidth-M-V:0,q="offsetHeight"in P?P.offsetHeight-P.clientHeight-Q-D:0;if(l===P)F="start"===o?S:"end"===o?S-h:"nearest"===o?ss(g,g+h,h,Q,D,g+S,g+S+y,y):S-h/2,N="start"===i?$:"center"===i?$-d/2:"end"===i?$-d:ss(f,f+d,d,M,V,f+$,f+$+v,v),F=Math.max(0,F+g),N=Math.max(0,N+f);else{F="start"===o?S-A-Q:"end"===o?S-x+D+q:"nearest"===o?ss(A,x,T,Q,D+q,S,S+y,y):S-(A+T/2)+q/2,N="start"===i?$-L-M:"center"===i?$-(L+I/2)+U/2:"end"===i?$-R+V+U:ss(L,R,I,M,V+U,$,$+v,v);var B=P.scrollLeft,z=P.scrollTop;S+=z-(F=Math.max(0,Math.min(z+F,P.scrollHeight-T+q))),$+=B-(N=Math.max(0,Math.min(B+N,P.scrollWidth-I+U)))}_.push({el:P,top:F,left:N})}return _}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))},cs={props:["isOpen","inputValue","selectedItem","highlightedIndex","handleChange","itemToString","handleMouseup"],data:function(){return{isMouseDown:!1,internal_isOpen:!1,internal_inputValue:"",internal_selectedItem:null,internal_highlightedIndex:null}},computed:{mergedState:function(){var e=this;return Object.keys(this.$props).reduce((function(t,n){var r;return ct({},t,((r={})[n]=e.isControlledProp(n)?e.$props[n]:e["internal_"+n],r))}),{})},internalItemCount:function(){return this.items.length}},mounted:function(){window.addEventListener("mousedown",this.handleWindowMousedown),window.addEventListener("mouseup",this.handleWindowMouseup)},beforeDestroy:function(){window.removeEventListener("mousedown",this.handleWindowMousedown),window.removeEventListener("mouseup",this.handleWindowMouseup)},methods:{handleWindowMousedown:function(){this.isMouseDown=!0},handleWindowMouseup:function(e){this.isMouseDown=!1,e.target!==this.$refs.rootNode&&this.$refs.rootNode.contains(e.target)||!this.mergedState.isOpen||this.isMouseDown||(this.reset(),this.$props.handleMouseup&&this.$props.handleMouseup({isOpen:!1}))},keyDownArrowDown:function(e){e.preventDefault();var t=e.shiftKey?5:1;this.mergedState.isOpen?this.changeHighlightedIndex(t):(this.setState({isOpen:!0}),this.setHighlightedIndex())},keyDownArrowUp:function(e){e.preventDefault();var t=e.shiftKey?-5:-1;this.mergedState.isOpen?this.changeHighlightedIndex(t):(this.setState({isOpen:!0}),this.setHighlightedIndex())},keyDownEnter:function(e){this.mergedState.isOpen&&(e.preventDefault(),this.selectHighlightedItem())},keyDownEscape:function(e){e.preventDefault(),this.reset()},selectHighlightedItem:function(){return this.selectItemAtIndex(this.mergedState.highlightedIndex)},selectItemAtIndex:function(e){var t=this.items[e];null!=t&&this.selectItem(t)},selectItem:function(e){this.$props.handleChange&&this.$props.handleChange(e),this.setState({isOpen:!1,highlightedIndex:null,selectedItem:e,inputValue:function(){return this.isControlledProp("selectedItem")?"":"object"==typeof e?e.label||"":e}.call(this)})},changeHighlightedIndex:function(e){if(!(this.internalItemCount<0)){var t=this.mergedState.highlightedIndex;null===t&&(t=e>0?-1:this.internalItemCount+1);var n=t+e;n<0?n=this.internalItemCount:n>this.internalItemCount&&(n=0),this.setHighlightedIndex(n)}},setHighlightedIndex:function(e){void 0===e&&(e=null),this.setState({highlightedIndex:e});var t=document.getElementById("Downshift"+e);ls(t,this.rootNode)},reset:function(){var e=this.mergedState.selectedItem;this.setState({isOpen:!1,highlightedIndex:null,inputValue:e})},getItemProps:function(e){var t=e.index,n=e.item,r=t;return void 0===t?(this.$props.itemToString?this.items.push(this.$props.itemToString(n)):this.items.push(n),r=this.items.indexOf(n)):this.items[r]=n,{id:"Downshift"+r}},getItemEvents:function(e){var t=e.index,n=e.item,r=t;void 0===t&&(r=this.items.indexOf(n));var o=this;return{mouseenter:function(){o.setHighlightedIndex(r)},click:function(e){e.stopPropagation(),o.selectItemAtIndex(r)}}},getInputProps:function(e){var t=e.value,n=this.mergedState.inputValue;return t!==n&&this.setState({inputValue:t}),{value:n}},getButtonProps:function(e){var t=this,n=e.onClick,r=e.onKeyDown,o=e.onKeyUp,i=e.onBlur;return{click:function(e){t.setState({isOpen:!0,inputValue:e.target.value}),n&&n(e)},keydown:function(e){e.key&&t["keyDown"+e.key]&&t["keyDown"+e.key].call(t,e),r&&r(e)},keyup:function(e){o&&o(e)},blur:function(e){i&&i(e)}}},getInputEvents:function(e){var t=this,n=e.onInput,r=e.onBlur,o=e.onFocus,i=e.onKeyPress,a=e.onKeyDown,s=e.onKeyUp;return{input:function(e){t.setState({isOpen:!0,inputValue:e.target.value}),n&&n(e)},focus:function(e){o&&o(e)},keydown:function(e){e.key&&t["keyDown"+e.key]&&t["keyDown"+e.key].call(t,e),a&&a(e)},keypress:function(e){i&&i(e)},keyup:function(e){s&&s(e)},blur:function(e){r&&r(e)},click:e.onClick}},getHelpersAndState:function(){return ct({getItemProps:this.getItemProps,getItemEvents:this.getItemEvents,getInputProps:this.getInputProps,getInputEvents:this.getInputEvents,getButtonProps:this.getButtonProps,setHighlightedIndex:this.setHighlightedIndex},this.mergedState)},isControlledProp:function(e){return void 0!==this.$props[e]},setState:function(e){var t=this;Object.keys(e).forEach((function(n){t.isControlledProp(n)?(t.$emit(n+"Change",e[n]),t.$emit(n+"-change",e[n])):t["internal_"+n]=e[n]})),this.$emit("stateChange",this.mergedState),this.$emit("state-change",this.mergedState)}},render:function(){var e=arguments[0];return this.items=[],e("div",{ref:"rootNode"},[this.$scopedSlots.default&&this.$scopedSlots.default(ct({},this.getHelpersAndState()))])}},ps=on("div")(us||(us=ft(["\n\t",";\n"])),(function(e){return e.theme.component})),ds=at.getClassName,hs={name:"SuggestionWrapper",props:{innerClassName:Jn.string,themePreset:Jn.themePreset,innerClass:Jn.style},render:function(){var e=arguments[0],t=this.$props,n=t.themePreset,r=t.innerClass,o=t.innerClassName;return e("div",{class:ts(n)+" "+ds(r,o||"")},[e("li",[this.$scopedSlots.default()])])}},fs=o((function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,u=void 0===s?r:s,l=e.sanitize,c=e.searchWords,p=e.textToHighlight;return o({chunksToHighlight:n({chunks:u({autoEscape:t,caseSensitive:a,sanitize:l,searchWords:c,textToHighlight:p})}),totalLength:p?p.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var u=a.index,l=i.lastIndex;l>u&&e.push({highlight:!1,start:u,end:l}),a.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])}));r(fs);var gs=fs.findAll;
19
+ */!function(e){var t,n=e.URLSearchParams&&e.URLSearchParams.prototype.get?e.URLSearchParams:null,r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),a=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),s=c.prototype,i=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&a)){s.append=function(e,t){m(this.__URLSearchParams__,e,t)},s.delete=function(e){delete this.__URLSearchParams__[e]},s.get=function(e){var t=this.__URLSearchParams__;return e in t?t[e][0]:null},s.getAll=function(e){var t=this.__URLSearchParams__;return e in t?t[e].slice(0):[]},s.has=function(e){return e in this.__URLSearchParams__},s.set=function(e,t){this.__URLSearchParams__[e]=[""+t]},s.toString=function(){var e,t,n,r,o=this.__URLSearchParams__,a=[];for(t in o)for(n=p(t),e=0,r=o[t];e<r.length;e++)a.push(n+"="+p(r[e]));return a.join("&")};var u=!!o&&n&&!r&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:u?new Proxy(n,{construct:function(e,t){return new e(new c(t[0]).toString())}}):c});var l=e.URLSearchParams.prototype;l.polyfill=!0,l.forEach=l.forEach||function(e,t){var n=f(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)},l.sort=l.sort||function(){var e,t,n,r=f(this.toString()),o=[];for(e in r)o.push(e);for(o.sort(),t=0;t<o.length;t++)this.delete(o[t]);for(t=0;t<o.length;t++){var a=o[t],s=r[a];for(n=0;n<s.length;n++)this.append(a,s[n])}},l.keys=l.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},l.values=l.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},l.entries=l.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},i&&(l[e.Symbol.iterator]=l[e.Symbol.iterator]||l.entries)}function c(e){((e=e||"")instanceof URLSearchParams||e instanceof c)&&(e=e.toString()),this.__URLSearchParams__=f(e)}function p(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function d(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(e){return decodeURIComponent(e)}))}function h(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i&&(n[e.Symbol.iterator]=function(){return n}),n}function f(e){var t={};if("object"==typeof e)if(g(e))for(var n=0;n<e.length;n++){var r=e[n];if(!g(r)||2!==r.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");m(t,r[0],r[1])}else for(var o in e)e.hasOwnProperty(o)&&m(t,o,e[o]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var a=e.split("&"),s=0;s<a.length;s++){var i=a[s],u=i.indexOf("=");-1<u?m(t,d(i.slice(0,u)),d(i.slice(u+1))):i&&m(t,d(i),"")}}return t}function m(e,t,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);t in e?e[t].push(r):e[t]=[r]}function g(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}}(void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof window?window:commonjsGlobal);var Provider={name:"Provider",props:{store:{type:Object,required:!0,validator:function(e){if(!e.dispatch&&!e.subscribe&&!e.getState)throw new Error("[reactivesearch-vue] - store provided is not a valid redux store");return!0}},analyticsRef:{type:Object,required:!1}},provide:function(){return{$$store:this.store,$analytics:this.analyticsRef}},render:function(){return this.$slots.default().length>1?vue.h("div",this.$slots.default()):this.$slots.default()[0]}},_templateObject$7;function _isSlot$2(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var Base=function(e){var t=e.data.attrs.as,n=void 0===t?"div":t,r=e.data,o=e.children;return delete r.attrs.as,vue.createVNode(n,r,_isSlot$2(o)?o:{default:function(){return[o]}})},Base$1=styled(Base)(_templateObject$7||(_templateObject$7=_taggedTemplateLiteralLoose(["\n\tfont-family: ",";\n\tfont-size: ",";\n\tcolor: ",";\n\twidth: 100%;\n\n\tinput,\n\tbutton,\n\ttextarea,\n\tselect {\n\t\tfont-family: ",";\n\t}\n\n\t*,\n\t*:before,\n\t*:after {\n\t\tbox-sizing: border-box;\n\t}\n"])),(function(e){var t=e.theme;return t&&t.typography?t.typography.fontFamily:"unset"}),(function(e){var t=e.theme;return t&&t.typography?t.typography.fontSize:"unset"}),(function(e){var t=e.theme;return t&&t.colors?t.colors.textColor:"unset"}),(function(e){var t=e.theme;return t&&t.typography?t.typography.fontFamily:"unset"}));function _isSlot$3(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var setHeaders=lib_5.setHeaders,setValue$1=lib_5.setValue,isEqual$3=lib_8.isEqual,URLParamsProvider={name:"URLParamsProvider",props:{className:types.string,headers:types.headers,getSearchParams:types.func,setSearchParams:types.func,as:Q.string.def("div")},mounted:function(){var e=this;this.init(),window.onpopstate=function(){e.init();var t=Array.from(e.params.keys());Object.keys(e.currentSelectedState).filter((function(e){return!t.includes(e)})).forEach((function(t){e.setValue(t,null,void 0,void 0,void 0,void 0,void 0,void 0,"URL")})),Array.from(e.params.entries()).forEach((function(t){try{var n=t[0],r=t[1],o=e.selectedValues[n]||{label:n},a=o.label,s=o.showFilter,i=o.URLParams;e.setValue(n,JSON.parse(r),a,s,i,void 0,void 0,void 0,"URL")}catch(e){console.error(e)}}))}},watch:{$route:function(){this.checkForURLParamsChange()},selectedValues:function(e,t){var n=this;if(!isEqual$3(e,t)){this.searchString=this.$props.getSearchParams?this.$props.getSearchParams():window.location.search,this.params=new URLSearchParams(this.searchString);var r=Object.keys(e),o=Array.from(this.params.keys()),a=!1;r.filter((function(t){return e[t].URLParams})).forEach((function(r){var s=e[r];n.hasValidValue(e[r])||n.hasValidValue(t[r])?s.URLParams?s.category?n.setURL(r,n.getValue({category:s.category,value:s.value}))&&(a=!0):n.setURL(r,n.getValue(s.value))&&(a=!0):(n.params.delete(r),a=!0):!n.hasValidValue(e[r])&&o.includes(r)&&(n.params.delete(r),a=!0)})),Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(e){n.params.delete(e),a=!0})),r.length||Array.from(this.params.keys()).forEach((function(e){n.searchComponents&&n.searchComponents.includes(e)&&(n.params.delete(e),a=!0)})),a&&this.pushToHistory()}},headers:function(e,t){isEqual$3(t,e)||this.setHeaders(e)}},methods:{init:function(){this.searchString=this.$props.getSearchParams?this.$props.getSearchParams():window.location.search,this.params=new URLSearchParams(this.searchString),this.currentSelectedState=this.selectedValues||{}},checkForURLParamsChange:function(){var e;window&&((this.$props.getSearchParams?this.$props.getSearchParams():window.location.search)!==this.searchString&&("function"==typeof Event?e=new Event("popstate"):(e=document.createEvent("Event")).initEvent("popstate",!0,!0),window.dispatchEvent(e)))},hasValidValue:function(e){return!!e&&(Array.isArray(e.value)?!!e.value.length:!!e.value)},getValue:function(e){var t=this;return Array.isArray(e)&&e.length?e.map((function(e){return t.getValue(e)})):e&&"object"==typeof e?e.location||e.category?e:e.label||e.key||null:e},setURL:function(e,t){if(!t||"string"==typeof t&&""===t.trim()||Array.isArray(t)&&0===t.length)return this.params.delete(e),!0;var n=JSON.stringify(t);return n!==this.params.get(e)&&(this.params.set(e,n),!0)},pushToHistory:function(){var e=this.params.toString()?"?"+this.params.toString():"",t=""+window.location.href.split("?")[0]+e;this.$props.setSearchParams?this.$props.setSearchParams(t):window.history.pushState&&window.history.pushState({path:t},"",t),this.init()}},render:function(){var e=this.$slots.default();return vue.createVNode(Base$1,{as:this.$props.as,class:this.$props.className},_isSlot$3(e)?e:{default:function(){return[e]}})}},mapStateToProps$2=function(e){return{selectedValues:e.selectedValues,searchComponents:e.components}},mapDispatchtoProps$1={setHeaders:setHeaders,setValue:setValue$1};URLParamsProvider.install=function(e){e.component(URLParamsProvider.name,URLParamsProvider)};var URLParamsProvider$1=connect(mapStateToProps$2,mapDispatchtoProps$1)(URLParamsProvider),typography={fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Noto Sans", "Ubuntu", "Droid Sans", "Helvetica Neue", sans-serif',fontSize:"16px"},light={typography:typography,colors:{textColor:"#424242",primaryTextColor:"#fff",primaryColor:"#0B6AFF",titleColor:"#424242",alertColor:"#d9534f",borderColor:"#595959"}},dark={typography:typography,colors:{textColor:"#fff",backgroundColor:"#212121",primaryTextColor:"#fff",primaryColor:"#2196F3",titleColor:"#fff",alertColor:"#d9534f",borderColor:"#666"}};function getTheme(e){return"light"===e?light:dark}function _isSlot$4(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var ReactiveBase={name:"ReactiveBase",data:function(){return this.state={key:"__REACTIVE_BASE__"},this.state},created:function(){this.setStore(this.$props)},props:{app:types.string,analytics:Q.bool,reactivesearchAPIConfig:types.reactivesearchAPIConfig,credentials:types.string,headers:types.headers,queryParams:types.string,theme:Q.object.def({}),themePreset:Q.string.def("light"),type:types.string,url:types.string,mapKey:types.string,initialQueriesSyncTime:types.number,className:types.string,initialState:Q.object.def({}),transformRequest:types.func,transformResponse:types.func,as:Q.string.def("div"),getSearchParams:types.func,setSearchParams:types.func,mongodb:types.mongodb,endpoint:types.endpointConfig,preferences:Q.object},provide:function(){return{theme_reactivesearch:composeThemeObject(getTheme(this.$props.themePreset),this.$props.theme),store:this.store,$searchPreferences:this.preferences,$emotionCache:this.$parent&&this.$parent.$emotionCache||createCache({key:"css"})}},watch:{app:function(){this.updateState(this.$props)},url:function(){this.updateState(this.$props)},type:function(){this.updateState(this.$props)},credentials:function(){this.updateState(this.$props)},mapKey:function(){this.updateState(this.$props)},headers:function(){this.updateState(this.$props)},reactivesearchAPIConfig:function(e,t){helper_33(e,t)||this.store&&this.store.dispatch(analytics_3$1(e))},mongodb:function(){this.updateState(this.$props)}},computed:{getHeaders:function(){var e=this.$props,t=e.headers,n=e.reactivesearchAPIConfig,r=e.mongodb,o=e.endpoint,a=(n||{}).enableTelemetry;return _extends({},!r&&_extends({"X-Search-Client":X_SEARCH_CLIENT},!1===a&&{"X-Enable-Telemetry":!1}),t,o&&o.headers&&_extends({},o.headers))}},methods:{updateState:function(e){this.setStore(e),this.key=this.state.key+"-0"},setStore:function(e){var t=e.url&&""!==e.url.trim()&&!e.credentials?null:e.credentials,n=e.url&&""!==e.url.trim()?e.url:"";if(e.endpoint){if(!e.endpoint.url)throw Error("Error(ReactiveSearch): The `endpoint` prop object requires `url` property.");n=e.endpoint.url}var r={url:n,app:e.app,credentials:t,type:e.type?e.type:"*",transformRequest:e.transformRequest,transformResponse:e.transformResponse,enableAppbase:!0,analytics:e.reactivesearchAPIConfig?e.reactivesearchAPIConfig.recordAnalytics:e.analytics,analyticsConfig:e.reactivesearchAPIConfig,mongodb:e.mongodb,endpoint:e.endpoint},o="";o="undefined"!=typeof window?window.location.search:e.queryParams||"";var a=new URLSearchParams(o),s={},i={};Array.from(a.keys()).forEach((function(e){try{var t,n,r=JSON.parse(a.get(e)),o={};r.value?o.value=r.value:o.value=r,r.category&&(o.category=r.category),o.reference="URL",s=_extends({},s,((t={})[e]=o,t)),i=_extends({},i,((n={})[e]=o.value,n))}catch(e){}}));var u=e.themePreset,l=e.endpoint,c=appbasejs(r);c.transformRequest=function(t){var n=helper_1(t,l);return e.transformRequest?e.transformRequest(n):n},this.$props.transformResponse&&(c.transformResponse=this.$props.transformResponse);var p={url:n&&n.replace(/\/\/.*@/,"//"),credentials:c.credentials,index:c.app||"_default",globalCustomEvents:this.$props.reactivesearchAPIConfig&&this.$props.reactivesearchAPIConfig.customEvents};try{if(this.$props.endpoint&&this.$props.endpoint.url){p.url=this.$props.endpoint.url.replace(/\/\/(.*?)\/.*/,"//$1");var d=this.$props.endpoint.headers&&this.$props.endpoint.headers.Authorization;p.credentials=d&&d.replace("Basic ",""),p.credentials=p.credentials&&atob(p.credentials)}}catch(e){console.error("Endpoint not set correctly for analytics"),console.error(e)}var h=null;r.analytics&&(h=index.init(p));var f=_extends({config:_extends({},r,{initialQueriesSyncTime:e.initialQueriesSyncTime,initialTimestamp:(new Date).getTime(),mapKey:e.mapKey,themePreset:u}),appbaseRef:c,analyticsRef:h,selectedValues:s,urlValues:i,headers:this.getHeaders},this.$props.initialState);this.store=configureStore(f),this.analyticsRef=h}},render:function(){var e=this,t=this.$slots.default(),n=this.$props,r=n.style,o=n.className;return vue.createVNode(Provider,{store:this.store,analyticsRef:this.analyticsRef},{default:function(){return[vue.createVNode(URLParamsProvider$1,{as:e.$props.as,headers:e.getHeaders,style:r,className:o,getSearchParams:e.getSearchParams,setSearchParams:e.setSearchParams},_isSlot$4(t)?t:{default:function(){return[t]}})]}})},install:function(e){e.component(ReactiveBase.name,ReactiveBase)}},isff="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function addEvent(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function getMods(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function getKeys(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function compareArray(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,a=0;a<n.length;a++)-1===r.indexOf(n[a])&&(o=!1);return o}for(var _keyMap={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":isff?173:189,"=":isff?61:187,";":isff?59:186,"'":222,"[":219,"]":221,"\\":220},_modifier={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},modifierMap={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_mods={16:!1,18:!1,17:!1,91:!1},_handlers={},k$2=1;k$2<20;k$2++)_keyMap["f".concat(k$2)]=111+k$2;var _downKeys=[],winListendFocus=!1,_scope="all",elementHasBindEvent=[],code=function(e){return _keyMap[e.toLowerCase()]||_modifier[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)},getKey=function(e){return Object.keys(_keyMap).find((function(t){return _keyMap[t]===e}))},getModifier=function(e){return Object.keys(_modifier).find((function(t){return _modifier[t]===e}))};function setScope(e){_scope=e||"all"}function getScope(){return _scope||"all"}function getPressedKeyCodes(){return _downKeys.slice(0)}function getPressedKeyString(){return _downKeys.map((function(e){return getKey(e)||getModifier(e)||String.fromCharCode(e)}))}function filter(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(r=!1),r}function isPressed(e){return"string"==typeof e&&(e=code(e)),-1!==_downKeys.indexOf(e)}function deleteScope(e,t){var n,r;for(var o in e||(e=getScope()),_handlers)if(Object.prototype.hasOwnProperty.call(_handlers,o))for(n=_handlers[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;getScope()===e&&setScope(t||"all")}function clearModifier(e){var t=e.keyCode||e.which||e.charCode,n=_downKeys.indexOf(t);if(n>=0&&_downKeys.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&_downKeys.splice(0,_downKeys.length),93!==t&&224!==t||(t=91),t in _mods)for(var r in _mods[t]=!1,_modifier)_modifier[r]===t&&(hotkeys[r]=!1)}function unbind(e){if(void 0===e)Object.keys(_handlers).forEach((function(e){return delete _handlers[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&eachUnbind(e)}));else if("object"==typeof e)e.key&&eachUnbind(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0],a=n[1];"function"==typeof o&&(a=o,o=""),eachUnbind({key:e,scope:o,method:a,splitKey:"+"})}}var eachUnbind=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,a=void 0===o?"+":o;getKeys(t).forEach((function(e){var t=e.split(a),o=t.length,s=t[o-1],i="*"===s?"*":code(s);if(_handlers[i]){n||(n=getScope());var u=o>1?getMods(_modifier,t):[];_handlers[i]=_handlers[i].filter((function(e){return!((!r||e.method===r)&&e.scope===n&&compareArray(e.mods,u))}))}}))};function eventHandler(e,t,n,r){var o;if(t.element===r&&(t.scope===n||"all"===t.scope)){for(var a in o=t.mods.length>0,_mods)Object.prototype.hasOwnProperty.call(_mods,a)&&(!_mods[a]&&t.mods.indexOf(+a)>-1||_mods[a]&&-1===t.mods.indexOf(+a))&&(o=!1);(0!==t.mods.length||_mods[16]||_mods[18]||_mods[17]||_mods[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function dispatch(e,t){var n=_handlers["*"],r=e.keyCode||e.which||e.charCode;if(hotkeys.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===_downKeys.indexOf(r)&&229!==r&&_downKeys.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=modifierMap[t];e[t]&&-1===_downKeys.indexOf(n)?_downKeys.push(n):!e[t]&&_downKeys.indexOf(n)>-1?_downKeys.splice(_downKeys.indexOf(n),1):"metaKey"===t&&e[t]&&3===_downKeys.length&&(e.ctrlKey||e.shiftKey||e.altKey||(_downKeys=_downKeys.slice(_downKeys.indexOf(n))))})),r in _mods){for(var o in _mods[r]=!0,_modifier)_modifier[o]===r&&(hotkeys[o]=!0);if(!n)return}for(var a in _mods)Object.prototype.hasOwnProperty.call(_mods,a)&&(_mods[a]=e[modifierMap[a]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===_downKeys.indexOf(17)&&_downKeys.push(17),-1===_downKeys.indexOf(18)&&_downKeys.push(18),_mods[17]=!0,_mods[18]=!0);var s=getScope();if(n)for(var i=0;i<n.length;i++)n[i].scope===s&&("keydown"===e.type&&n[i].keydown||"keyup"===e.type&&n[i].keyup)&&eventHandler(e,n[i],s,t);if(r in _handlers)for(var u=0;u<_handlers[r].length;u++)if(("keydown"===e.type&&_handlers[r][u].keydown||"keyup"===e.type&&_handlers[r][u].keyup)&&_handlers[r][u].key){for(var l=_handlers[r][u],c=l.splitKey,p=l.key.split(c),d=[],h=0;h<p.length;h++)d.push(code(p[h]));d.sort().join("")===_downKeys.sort().join("")&&eventHandler(e,l,s,t)}}}function isElementBind(e){return elementHasBindEvent.indexOf(e)>-1}function hotkeys(e,t,n){_downKeys=[];var r=getKeys(e),o=[],a="all",s=document,i=0,u=!1,l=!0,c="+",p=!1;for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(a=t.scope),t.element&&(s=t.element),t.keyup&&(u=t.keyup),void 0!==t.keydown&&(l=t.keydown),void 0!==t.capture&&(p=t.capture),"string"==typeof t.splitKey&&(c=t.splitKey)),"string"==typeof t&&(a=t);i<r.length;i++)o=[],(e=r[i].split(c)).length>1&&(o=getMods(_modifier,e)),(e="*"===(e=e[e.length-1])?"*":code(e))in _handlers||(_handlers[e]=[]),_handlers[e].push({keyup:u,keydown:l,scope:a,mods:o,shortcut:r[i],method:n,key:r[i],splitKey:c,element:s});void 0!==s&&!isElementBind(s)&&window&&(elementHasBindEvent.push(s),addEvent(s,"keydown",(function(e){dispatch(e,s)}),p),winListendFocus||(winListendFocus=!0,addEvent(window,"focus",(function(){_downKeys=[]}),p)),addEvent(s,"keyup",(function(e){dispatch(e,s),clearModifier(e)}),p))}function trigger(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(_handlers).forEach((function(n){_handlers[n].filter((function(n){return n.scope===t&&n.shortcut===e})).forEach((function(e){e&&e.method&&e.method()}))}))}var _api={getPressedKeyString:getPressedKeyString,setScope:setScope,getScope:getScope,deleteScope:deleteScope,getPressedKeyCodes:getPressedKeyCodes,isPressed:isPressed,filter:filter,trigger:trigger,unbind:unbind,keyMap:_keyMap,modifier:_modifier,modifierMap:modifierMap},_templateObject$8;for(var a$2 in _api)Object.prototype.hasOwnProperty.call(_api,a$2)&&(hotkeys[a$2]=_api[a$2]);if("undefined"!=typeof window){var _hotkeys=window.hotkeys;hotkeys.noConflict=function(e){return e&&window.hotkeys===hotkeys&&(window.hotkeys=_hotkeys),hotkeys},window.hotkeys=hotkeys}var InputGroup=styled("div")(_templateObject$8||(_templateObject$8=_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: stretch;\n width: 100%;\n"]))),_templateObject$9;InputGroup.defaultProps={className:"input-group"};var InputWrapper=styled("span")(_templateObject$9||(_templateObject$9=_taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"]))),_templateObject$a,InputAddon=styled("span")(_templateObject$a||(_templateObject$a=_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid #ccc;\n border-radius: 2px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"]))),_templateObject$b,_templateObject2$4,_templateObject3$3,_templateObject4$1;InputAddon.defaultProps={className:"input-addon"};var alertBorder=function(e){return"\n\tborder: 1px solid "+e.theme.colors.alertColor+";\n"},input="\n\twidth: 100%;\n\tline-height: 1.5;\n\tmin-height: 42px;\n\tpadding: 8px 12px;\n\tborder: 1px solid #ccc;\n\tbackground-color: #fafafa;\n\tfont-size: 0.9rem;\n\toutline: none;\n\theight: 100%;\n\n\t&:focus {\n\t\tbackground-color: #fff;\n\t}\n",dark$1=function(e){return"\n\tborder-color: "+e.colors.borderColor+";\n"},darkInput=function(e){var t=e.theme;return"\n\tbackground-color: "+t.colors.backgroundColor+";\n\tcolor: "+t.colors.textColor+";\n\t"+dark$1(t)+";\n\n\t&:focus {\n\t\tbackground-color: "+t.colors.backgroundColor+";\n\t}\n"},Input=styled("input")(_templateObject$b||(_templateObject$b=_taggedTemplateLiteralLoose(["\n\t",";\n\n\t&:focus {\n\t\tbackground-color: #fff;\n\t}\n\t",";\n\n\t",";\n\n\t",";\n\n\t",";\n\t",";\n\n\t",";\n\n\t",";\n\t",";\n\t",";\n\n\t",";\n"])),input,(function(e){var t=e.themePreset,n=e.theme;return"dark"===t&&darkInput({theme:n})}),(function(e){return e.showIcon&&"left"===e.iconPosition&&"\n\t\t\tpadding-left: 36px;\n\t\t"}),(function(e){return e.showIcon&&"right"===e.iconPosition&&"\n\t\t\tpadding-right: 36px;\n\t\t"}),(function(e){return e.showClear&&"\n\t\t\tpadding-right: 36px;\n\t\t"}),(function(e){return e.showVoiceSearch&&"\n\t\t\tpadding-right: 36px;\n\t\t"}),(function(e){return e.showClear&&e.showIcon&&"right"===e.iconPosition&&"\n\t\t\tpadding-right: 66px;\n\t\t"}),(function(e){return e.showVoiceSearch&&e.showIcon&&"right"===e.iconPosition&&"\n\t\t\tpadding-right: 66px;\n\t\t"}),(function(e){return e.showVoiceSearch&&e.showIcon&&"\n\t\t\tpadding-right: 66px;\n\t\t"}),(function(e){return e.showClear&&e.showIcon&&e.showVoiceSearch&&"right"===e.iconPosition&&"\n\t\t\tpadding-right: 90px;\n\t\t"}),(function(e){return e.alert&&alertBorder})),suggestions$1=function(e,t){return css(_templateObject2$4||(_templateObject2$4=_taggedTemplateLiteralLoose(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: min(100vh, 402px);\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tcursor: pointer;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbackground-color: #eee;\n\t\t}\n\t}\n\n\t",";\n"])),"dark"===e&&t&&dark$1(t))},suggestionsContainer=css(_templateObject3$3||(_templateObject3$3=_taggedTemplateLiteralLoose(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"]))),noSuggestions=function(e,t){return css(_templateObject4$1||(_templateObject4$1=_taggedTemplateLiteralLoose(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: 260px;\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t","\n"])),"dark"===e&&t&&dark$1(t))},_templateObject$c,IconGroup=styled("div")(_templateObject$c||(_templateObject$c=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgrid-gap: 6px;\n\tmargin: 0 10px;\n\theight: 100%;\n\n\t",";\n\n\t",";\n"])),(function(e){return"absolute"===e.positionType?"\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t":null}),(function(e){return"right"===e.groupPosition?"\n\t\t\t\t\tright: 0;\n\t\t\t ":"\n\t\t\t\t\tleft: 0;\n\t\t\t "})),_templateObject$d,IconWrapper=styled("div")(_templateObject$d||(_templateObject$d=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmax-width: 23px;\n\twidth: max-content;\n\tcursor: pointer;\n\theight: 100%;\n\tmin-width: 20px;\n\n\tsvg.search-icon {\n\t\tfill: ",";\n\t\ttransform: scale(1.5);\n\t}\n\n\tsvg.cancel-icon {\n\t\tfill: ",";\n\t}\n"])),(function(e){var t=e.theme,n=void 0===t?{}:t;return n.colors?n.colors.primaryColor:"unset"}),(function(e){var t=e.theme,n=void 0===t?{}:t;return n.colors?n.colors.borderColor:"#000"}));function t$1(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function e$1(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function n$2(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return e$1(n.overflowY,t)||e$1(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function r$2(e,t,n,r,o,a,s,i){return a<e&&s>t||a>e&&s<t?0:a<=e&&i<=n||s>=t&&i>=n?a-e-r:s>t&&i<n||a<e&&i>n?s-t+o:0}var i$2=function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,s=t.boundary,i=t.skipOverflowHiddenElements,u="function"==typeof s?s:function(e){return e!==s};if(!t$1(e))throw new TypeError("Invalid target");for(var l,c,p=document.scrollingElement||document.documentElement,d=[],h=e;t$1(h)&&u(h);){if((h=null==(c=(l=h).parentElement)?l.getRootNode().host||null:c)===p){d.push(h);break}null!=h&&h===document.body&&n$2(h)&&!n$2(document.documentElement)||null!=h&&n$2(h,i)&&d.push(h)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),b=v.height,_=v.width,$=v.top,C=v.right,O=v.bottom,S=v.left,w="start"===o||"nearest"===o?$:"end"===o?O:$+b/2,T="center"===a?S+_/2:"end"===a?C:S,P=[],E=0;E<d.length;E++){var k=d[E],R=k.getBoundingClientRect(),x=R.height,Q=R.width,I=R.top,A=R.right,L=R.bottom,V=R.left;if("if-needed"===r&&$>=0&&S>=0&&O<=m&&C<=f&&$>=I&&O<=L&&S>=V&&C<=A)return P;var j=getComputedStyle(k),M=parseInt(j.borderLeftWidth,10),N=parseInt(j.borderTopWidth,10),D=parseInt(j.borderRightWidth,10),F=parseInt(j.borderBottomWidth,10),q=0,U=0,B="offsetWidth"in k?k.offsetWidth-k.clientWidth-M-D:0,H="offsetHeight"in k?k.offsetHeight-k.clientHeight-N-F:0,z="offsetWidth"in k?0===k.offsetWidth?0:Q/k.offsetWidth:0,G="offsetHeight"in k?0===k.offsetHeight?0:x/k.offsetHeight:0;if(p===k)q="start"===o?w:"end"===o?w-m:"nearest"===o?r$2(y,y+m,m,N,F,y+w,y+w+b,b):w-m/2,U="start"===a?T:"center"===a?T-f/2:"end"===a?T-f:r$2(g,g+f,f,M,D,g+T,g+T+_,_),q=Math.max(0,q+y),U=Math.max(0,U+g);else{q="start"===o?w-I-N:"end"===o?w-L+F+H:"nearest"===o?r$2(I,L,x,N,F+H,w,w+b,b):w-(I+x/2)+H/2,U="start"===a?T-V-M:"center"===a?T-(V+Q/2)+B/2:"end"===a?T-A+D+B:r$2(V,A,Q,M,D+B,T,T+_,_);var W=k.scrollLeft,K=k.scrollTop;w+=K-(q=Math.max(0,Math.min(K+q/G,k.scrollHeight-x/G+H))),T+=W-(U=Math.max(0,Math.min(W+U/z,k.scrollWidth-Q/z+B)))}P.push({el:k,top:q,left:U})}return P},scrollIntoView=function(e,t){null!==e&&i$2(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))},Downshift={props:["isOpen","inputValue","selectedItem","highlightedIndex","handleChange","itemToString","handleMouseup"],data:function(){return{isMouseDown:!1,internal_isOpen:!1,internal_inputValue:"",internal_selectedItem:null,internal_highlightedIndex:null}},computed:{mergedState:function(){var e=this;return Object.keys(this.$props).reduce((function(t,n){var r;return _extends({},t,((r={})[n]=e.isControlledProp(n)?e.$props[n]:e["internal_"+n],r))}),{})},internalItemCount:function(){return this.items.length}},mounted:function(){window.addEventListener("mousedown",this.handleWindowMousedown),window.addEventListener("mouseup",this.handleWindowMouseup)},beforeUnmount:function(){window.removeEventListener("mousedown",this.handleWindowMousedown),window.removeEventListener("mouseup",this.handleWindowMouseup)},methods:{handleWindowMousedown:function(){this.isMouseDown=!0},handleWindowMouseup:function(e){this.isMouseDown=!1,e.target!==this.$refs.rootNode&&this.$refs.rootNode.contains(e.target)||!this.mergedState.isOpen||this.isMouseDown||(this.reset(),this.$props.handleMouseup&&this.$props.handleMouseup({isOpen:!1}))},keyDownArrowDown:function(e){e.preventDefault();var t=e.shiftKey?5:1;this.mergedState.isOpen?this.changeHighlightedIndex(t):(this.setState({isOpen:!0}),this.setHighlightedIndex())},keyDownArrowUp:function(e){e.preventDefault();var t=e.shiftKey?-5:-1;this.mergedState.isOpen?this.changeHighlightedIndex(t):(this.setState({isOpen:!0}),this.setHighlightedIndex())},keyDownEnter:function(e){this.mergedState.isOpen&&(e.preventDefault(),this.selectHighlightedItem())},keyDownEscape:function(e){e.preventDefault(),this.reset()},selectHighlightedItem:function(){return this.selectItemAtIndex(this.mergedState.highlightedIndex)},selectItemAtIndex:function(e){var t=this.items[e];null!=t&&this.selectItem(t)},selectItem:function(e){this.$props.handleChange&&this.$props.handleChange(e),this.setState({isOpen:!1,highlightedIndex:null,selectedItem:e,inputValue:function(){return this.isControlledProp("selectedItem")?"":"object"==typeof e?e.label||"":e}.call(this)})},changeHighlightedIndex:function(e){if(!(this.internalItemCount<0)){var t=this.mergedState.highlightedIndex;null===t&&(t=e>0?-1:this.internalItemCount+1);var n=t+e;n<0?n=this.internalItemCount:n>this.internalItemCount&&(n=0),this.setHighlightedIndex(n)}},setHighlightedIndex:function(e){void 0===e&&(e=null),this.setState({highlightedIndex:e});var t=document.getElementById("Downshift"+e);scrollIntoView(t,this.rootNode)},reset:function(){var e=this.mergedState.selectedItem;this.setState({isOpen:!1,highlightedIndex:null,inputValue:e})},getItemProps:function(e){var t=e.index,n=e.item,r=t;return void 0===t?(this.$props.itemToString?this.items.push(this.$props.itemToString(n)):this.items.push(n),r=this.items.indexOf(n)):this.items[r]=n,{id:"Downshift"+r}},getItemEvents:function(e){var t=e.index,n=e.item,r=t;void 0===t&&(r=this.items.indexOf(n));var o=this;return{mouseenter:function(){o.setHighlightedIndex(r)},click:function(e){e.stopPropagation(),o.selectItemAtIndex(r)}}},getInputProps:function(e){var t=e.value,n=this.mergedState.inputValue;return t!==n&&this.setState({inputValue:t}),{value:n}},getButtonProps:function(e){var t=this,n=e.onClick,r=e.onKeyDown,o=e.onKeyUp,a=e.onBlur;return{click:function(e){t.setState({isOpen:!0,inputValue:e.target.value}),n&&n(e)},keydown:function(e){e.key&&t["keyDown"+e.key]&&t["keyDown"+e.key].call(t,e),r&&r(e)},keyup:function(e){o&&o(e)},blur:function(e){a&&a(e)}}},getInputEvents:function(e){var t=this,n=e.onInput,r=e.onBlur,o=e.onFocus,a=e.onKeyPress,s=e.onKeyDown,i=e.onKeyUp;return{input:function(e){t.setState({isOpen:!0,inputValue:e.target.value}),n&&n(e)},focus:function(e){o&&o(e)},keydown:function(e){e.key&&t["keyDown"+e.key]&&t["keyDown"+e.key].call(t,e),s&&s(e)},keypress:function(e){a&&a(e)},keyup:function(e){i&&i(e)},blur:function(e){r&&r(e)},click:e.onClick}},getHelpersAndState:function(){return _extends({getItemProps:this.getItemProps,getItemEvents:this.getItemEvents,getInputProps:this.getInputProps,getInputEvents:this.getInputEvents,getButtonProps:this.getButtonProps,setHighlightedIndex:this.setHighlightedIndex},this.mergedState)},isControlledProp:function(e){return void 0!==this.$props[e]},setState:function(e){var t=this;Object.keys(e).forEach((function(n){t.isControlledProp(n)?(t.$emit(n+"Change",e[n]),t.$emit(n+"-change",e[n])):t["internal_"+n]=e[n]})),this.$emit("stateChange",this.mergedState),this.$emit("state-change",this.mergedState)}},render:function(){return this.items=[],vue.createVNode("div",{ref:"rootNode"},[this.$slots.default&&this.$slots.default(_extends({},this.getHelpersAndState()))])}},_templateObject$e,Container=styled("div")(_templateObject$e||(_templateObject$e=_taggedTemplateLiteralLoose(["\n\t",";\n"])),(function(e){return e.theme.component})),getClassName$2=lib_8.getClassName,SuggestionWrapper={name:"SuggestionWrapper",props:{innerClassName:types.string,themePreset:types.themePreset,innerClass:types.style},render:function(){var e=this.$props,t=e.themePreset,n=e.innerClass,r=e.innerClassName;return vue.createVNode("div",{class:noSuggestions(t)+" "+getClassName$2(n,r||"")},[vue.createVNode("li",null,[this.$slots.default()])])}},dist=createCommonjsModule((function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,a=e.caseSensitive,s=void 0!==a&&a,i=e.findChunks,u=void 0===i?r:i,l=e.sanitize,c=e.searchWords,p=e.textToHighlight;return o({chunksToHighlight:n({chunks:u({autoEscape:t,caseSensitive:s,sanitize:l,searchWords:c,textToHighlight:p})}),totalLength:p?p.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?a:r,s=e.searchWords,i=e.textToHighlight;return i=o(i),s.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var a=new RegExp(r,n?"g":"gi"),s=void 0;s=a.exec(i);){var u=s.index,l=a.lastIndex;l>u&&e.push({highlight:!1,start:u,end:l}),s.index===a.lastIndex&&a.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var a=0;t.forEach((function(e){o(a,e.start,!1),o(e.start,e.end,!0),a=e.end})),o(a,n,!1)}return r};function a(e){return e}}])}));unwrapExports(dist);var dist_1=dist.findAll;
29
20
  /*!
30
21
  * vue-highlight-words © Yichang Liu, 2019
31
22
  *
@@ -35,7 +26,7 @@ function vt(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t)
35
26
  *
36
27
  * https://github.com/Astray-git/vue-highlight-words
37
28
  *
38
- */function ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ys,vs,bs={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Object,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(e){return e.every((function(e){return"string"==typeof e}))},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(e,t){var n,r=t.props,o=r.activeClassName,i=void 0===o?"":o,a=r.activeIndex,s=void 0===a?-1:a,u=r.activeStyle,l=r.autoEscape,c=r.caseSensitive,p=void 0!==c&&c,d=r.findChunks,h=r.highlightClassName,f=void 0===h?"":h,g=r.highlightStyle,m=void 0===g?{}:g,y=r.highlightTag,v=void 0===y?"mark":y,b=r.sanitize,O=r.searchWords,C=r.textToHighlight,w=r.unhighlightClassName,S=void 0===w?"":w,$=r.unhighlightStyle,_=t.data,k=gs({autoEscape:l,caseSensitive:p,findChunks:d,sanitize:b,searchWords:O,textToHighlight:C}),P=v,E=-1,T="";return e("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ms(e,t,n[t])}))}return e}({},_),k.map((function(t,r){var o=C.substr(t.start,t.end-t.start);if(t.highlight){var a=++E===+s;T="".concat(f," ").concat(a?i:""),n=!0===a&&null!=u?Object.assign({},m,u):m;var l={class:T,key:r,style:n};return"string"!=typeof P&&(l.props={highlightIndex:E}),_.scopedSlots?e(P,l,[_.scopedSlots.default({children:o,highlightIndex:E})]):e(P,l,o)}return e("span",{class:S,key:r,style:$},o)})))}},Os={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},Cs=on("span")(ys||(ys=ft(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),ws={name:"SuggestionItem",props:{currentValue:Jn.string,suggestion:Jn.any},render:function(){var e=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,i=t.description,a=t.image,s=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?e("div",{class:"trim"},[l||!s&&!u?e(bs,{attrs:{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:Os}}):e(Cs,{domProps:{innerHTML:n}})]):n:o||a||i?e(Lo,{attrs:{alignItems:"center",css:{width:"100%"}}},[a&&e("div",{attrs:{css:{margin:"auto",marginRight:10}}},[e("img",{attrs:{src:a,alt:" ",height:"50px",width:"50px",css:{objectFit:"contain"}}})]),e(Lo,{attrs:{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(bs,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:Os},class:Jt({fontSize:"1rem"})})]),i&&e("div",{class:Kt("trim",Jt({marginTop:3}))},[e(bs,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:i,highlightStyle:Os}})])])]):r}},Ss={name:"SearchSvg",props:["styles"],render:function(){var e=arguments[0];return e("svg",{attrs:{alt:"Search",height:"12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15"},class:"search-icon",style:ct({transform:"scale(1.35)",position:"relative"},this.$props.styles?this.$props.styles:{})},[e("title",["Search"]),e("path",{attrs:{d:"M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,0,0,1,6.02945,10.20327Zm9.69195,4.2199L10.8989,9.59979A5.88021,5.88021,0,0,0,12.058,6.02856,6.00467,6.00467,0,1,0,9.59979,10.8989l4.82338,4.82338a.89729.89729,0,0,0,1.29912,0,.89749.89749,0,0,0-.00087-1.29909Z"}})])}},$s={functional:!0,render:function(e){return e("svg",{attrs:{alt:"Clear",xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 24 24",width:"20px"},class:"cancel-icon"},[e("title",["Clear"]),e("path",{attrs:{d:"M0 0h24v24H0V0z",fill:"none"}}),e("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}})])}};Xt(vs||(vs=ft(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"])));var _s,ks={name:"MicSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_xS0FRzQjJ",width:28,height:28,className:this.$props.className},style:{transform:"scale(1.5)"}},[e("g",{attrs:{id:"el_TvxDfTAtKp",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_D93PK3GbmJ",fillRule:"nonzero"},style:{fill:"#595959"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uly3EwA2O3"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_tnDbR4ytu4"}})])])])}};Xt(_s||(_s=ft(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"])));var Ps,Es={name:"MuteSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{style:{transform:"scale(1.5)"},attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_D1rEpH2zj",width:28,height:28,className:this.$props.className}},[e("g",{attrs:{id:"el_X81iT9kZYo",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_gMpyalCphp"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_c7H-3u-D4l",fillRule:"nonzero"},style:{fill:"#595959"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_qhFcdAAFwo",fillRule:"nonzero"},style:{fill:"#595959"}}),e("path",{attrs:{d:"M11.5,206.5 L142.5,12.5",id:"el_M8X8g37WOI",strokeLinecap:"round",strokeLinejoin:"round"}})])])])}};Xt(Ps||(Ps=ft(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"])));var Ts,Is,As,Rs={name:"ListenSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"el_hiibMG0x-",width:28,height:29,className:this.$props.className},style:{transform:"scale(1.5)"}},[e("defs",[e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-1"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-3"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-5"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-7"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-9"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-11"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-13"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-15"}})]),e("g",{attrs:{id:"el_QJeJ_2CDw5",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_UYYCfubTRf"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uzZNtK32Zi",fillRule:"nonzero"},style:{fill:"#0B6AFF"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,0 76.9864699,0 C55.8825877,0 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_EYKQ2N9Kgy",fillRule:"nonzero"}}),e("g",{attrs:{id:"el_6SDP2LAgKC"}},[e("mask",{attrs:{id:"mask-2",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-1"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_-Vm65Ltfy7",fillRule:"nonzero",mask:"url(#mask-2)"}}),e("rect",{attrs:{id:"el_q04iZcSim4",mask:"url(#mask-2)",x:"0.279",width:"77",height:"130"}})]),e("g",{attrs:{id:"el_6WKby7wXqV"}},[e("mask",{attrs:{id:"mask-4",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-3"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_9bggsfQOtU",fillRule:"nonzero",mask:"url(#mask-4)"}}),e("rect",{attrs:{id:"el_NKxqi9eIym",mask:"url(#mask-4)",x:"0.279",width:"77",height:"115"}})]),e("g",{attrs:{id:"el_Wi-my975tM"}},[e("mask",{attrs:{id:"mask-6",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-5"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_zclQ34fvf7",fillRule:"nonzero",mask:"url(#mask-6)"}}),e("rect",{attrs:{id:"el_1OsvRT8HkeZ",mask:"url(#mask-6)",x:"0.279",width:"77",height:"100"}})]),e("g",{attrs:{id:"el_DkfFFTaFxy8"}},[e("mask",{attrs:{id:"mask-8",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-7"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_aa9sjx4H0vA",fillRule:"nonzero",mask:"url(#mask-8)"}}),e("rect",{attrs:{id:"el_tea114vWg0J",mask:"url(#mask-8)",x:"0.279",width:"77",height:"85"}})]),e("g",{attrs:{id:"el_34IgwiMB5rf"}},[e("mask",{attrs:{id:"mask-10",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-9"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_z5u6RAFhx7d",fillRule:"nonzero",mask:"url(#mask-10)"}}),e("rect",{attrs:{id:"el_7nfuWmA5Uhy",mask:"url(#mask-10)",x:"0.279",width:"77",height:"70"}})]),e("g",{attrs:{id:"el_DeebuCsPTGA"}},[e("mask",{attrs:{id:"mask-12",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-11"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el__ZcqlS20zcw",fillRule:"nonzero",mask:"url(#mask-12)"}}),e("rect",{attrs:{id:"el_8DnEQnD7VWV",mask:"url(#mask-12)",x:"0.279",width:"77",height:"55"}})]),e("g",{attrs:{id:"el_ZOjjrPTvyrv"}},[e("mask",{attrs:{id:"mask-14",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-13"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_FYYKCI_u24e",fillRule:"nonzero",mask:"url(#mask-14)"}}),e("rect",{attrs:{id:"el_XZty4MnTp5Y",mask:"url(#mask-14)",x:"0.279",width:"77",height:"40"}})]),e("g",{attrs:{id:"el_2FATegVmf0K"}},[e("mask",{attrs:{id:"mask-16",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-15"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_RMT1KUfbdF8",fillRule:"nonzero",mask:"url(#mask-16)"}}),e("rect",{attrs:{id:"el_RgLcovvFiO1",mask:"url(#mask-16)",x:"0.279",width:"77",height:"25"}})])])])])}},xs="INACTIVE",Ls="STOPPED",js="ACTIVE",Ms="DENIED",Qs={name:"Mic",props:{children:Jn.title,lang:jt.string.def("en-US"),iconPosition:jt.string.def("left"),handleResult:Jn.func,onNoMatch:Jn.func,onError:Jn.func,getInstance:Jn.func,render:Jn.func,className:Jn.string,applyClearStyle:jt.bool,showIcon:jt.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return vr(t,this)},stopMic:function(){this.instance&&(this.status=xs,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===js&&(this.status=xs);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,i=t.lang,a=t.getInstance,s=window.SpeechRecognition;if(this.instance&&this.status!==Ms)return this.status=xs,this.instance.stop(),void(this.instance=null);this.instance=new s,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=i,a&&a(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=js},this.instance.onresult=function(t){var r=t.results,o=t.timeStamp;e.stopMic(),n&&n({results:r,timeStamp:o}),e.results.push({results:r,timeStamp:o})},this.instance.onnomatch=function(e){return r?r(e):console.warn(e)},this.instance.onerror=function(t){"no-speech"===t.error||"audio-capture"===t.error?e.status=xs:"not-allowed"===t.error&&(e.status=Ms),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=xs},this.instance.onaudioend=function(){e.status=xs}}}},computed:{hasCustomRenderer:function(){return br(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case js:return e(Rs,{attrs:{className:n},nativeOn:{click:this.handleClick}});case Ls:case Ms:return e(Es,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(ks,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:xs}},created:function(){this.results=[],"undefined"!=typeof window&&(window.SpeechRecognition=window.webkitSpeechRecognition||window.SpeechRecognition||null,window.SpeechRecognition||console.error("SpeechRecognition is not supported in this browser. Please check the browser compatibility at https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition#Browser_compatibility."))},render:function(){var e=arguments[0];return this.hasCustomRenderer?this.getComponent():e(rs,[this.Icon])}},Vs={name:"CustomSvg",props:{className:String,icon:Function,type:String},data:function(){return{customIcon:this.$props.icon&&"function"==typeof this.$props.icon?this.$props.icon():null}},render:function(){var e=arguments[0];return this.customIcon?e("div",{class:this.$props.className},[this.customIcon]):"recent-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Recent Search",height:"20",width:"20",viewBox:"0 0 24 24"},style:{fill:"#707070"},class:this.$props.className},[e("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}})]):"promoted-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",alt:"promoted search",height:"20",viewBox:"0 0 24 24"},class:this.$props.className,style:{fill:"#707070"}},[e("path",{attrs:{d:"M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z"}})]):"popular-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Popular Search",height:"20",width:"20",viewBox:"0 0 24 24"},style:{fill:"#707070"},class:this.$props.className},[e("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}})]):e(Ss,{attrs:{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}}})}},Ds=on("div")(Ts||(Ts=ft(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),Fs=on("span")(Is||(Is=ft(["\n\tcursor: default;\n\tbox-sizing: border-box;\n\tmargin: 0 4px 4px 0;\n\tcolor: #000000d9;\n\tfont-size: 14px;\n\tfont-variant: tabular-nums;\n\tline-height: 1.5715;\n\tlist-style: none;\n\tfont-feature-settings: 'tnum';\n\tdisplay: inline-block;\n\theight: auto;\n\tpadding: 0 2px 0 7px;\n\tfont-size: 12px;\n\tline-height: 22px;\n\twhite-space: nowrap;\n\tbackground: #fafafa;\n\tborder: 1px solid #d9d9d9;\n\tborder-radius: 2px;\n\topacity: 1;\n\ttransition: all 0.3s;\n\n\tspan.close-icon {\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\theight: 15px;\n\t\t\tposition: relative;\n\t\t\ttop: 4px;\n\t\t\tfill: #262626;\n\t\t}\n\t}\n"]))),Ns=ot.updateQuery,Us=ot.setQueryOptions,qs=ot.setCustomQuery,Bs=ot.setDefaultQuery,zs=ot.setCustomHighlightOptions,Hs=ot.recordSuggestionClick,Gs=ot.loadPopularSuggestions,Ws=ot.getRecentSearches,Zs=ot.resetStoreForComponent,Ks=at.debounce,Ys=at.checkValueChange,Xs=at.getClassName,Js=at.extractQueryFromCustomQuery,eu=at.getOptionsForCustomQuery,tu=at.isEqual,nu=at.getCompositeAggsQuery,ru=at.withClickIds,ou=at.getResultStats,iu=at.handleOnSuggestions,au=at.getTopSuggestions,su=at.normalizeDataField,uu={name:"DataSearch",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[],isPending:!1},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.enableQuerySuggestions,n=e.renderQuerySuggestions,r=e.enableRecentSearches,o=e.distinctField,i=e.distinctFieldConfig,a=e.index;e.mode===j.TAG&&(this.$options.isTagsMode=!0),t&&console.warn("Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead."),n&&console.warn("Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead."),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!o&&!i||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&a&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue="",this.$options.isTagsMode&&(this.currentValue=""),(this.$props.enableDefaultSuggestions||this.currentValue)&&(this.loadPopularSuggestions(this.$props.componentId),r&&this.getRecentSearches()),this.handleTextChange=Ks(this.handleText,this.$props.debounce),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},computed:{suggestionsList:function(){var e=[];return!this.$data.currentValue&&this.$props.defaultSuggestions&&this.$props.defaultSuggestions.length?e=this.$props.defaultSuggestions:this.$data.currentValue&&(e=this.normalizedSuggestions),ru(e)},topSuggestions:function(){return this.currentValue&&(this.enableQuerySuggestions||this.enablePopularSuggestions)?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return au(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enableQuerySuggestions||this.enablePopularSuggestions;if(this.currentValue||!this.enableDefaultSuggestions)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return ct({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return ct({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return au(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return br(this)},stats:function(){return ou(this)}},props:{options:Jn.options,autoFocus:jt.bool,autosuggest:jt.bool.def(!0),beforeValueChange:Jn.func,className:jt.string.def(""),clearIcon:Jn.children,componentId:Jn.stringRequired,customHighlight:Jn.func,customQuery:Jn.func,defaultQuery:Jn.func,dataField:jt.oneOfType([jt.string,jt.shape({field:jt.string,weight:jt.number}),jt.arrayOf(jt.string),jt.arrayOf({field:jt.string,weight:jt.number})]),aggregationField:Jn.string,aggregationSize:jt.number,size:jt.number,debounce:jt.number.def(0),defaultValue:Jn.string,excludeFields:Jn.excludeFields,value:jt.oneOfType([jt.arrayOf(jt.string),Jn.value]),defaultSuggestions:Jn.suggestions,enableSynonyms:jt.bool.def(!0),enableQuerySuggestions:jt.bool.def(!1),enablePopularSuggestions:jt.bool.def(!1),enableRecentSearches:jt.bool.def(!1),fieldWeights:Jn.fieldWeights,filterLabel:Jn.string,fuzziness:Jn.fuzziness,highlight:jt.bool,highlightField:Jn.stringOrArray,icon:Jn.children,iconPosition:jt.oneOf(["left","right"]).def("left"),includeFields:Jn.includeFields,innerClass:Jn.style,innerRef:jt.string.def("searchInputField"),render:Jn.func,renderQuerySuggestions:Jn.func,renderPopularSuggestions:Jn.func,parseSuggestion:Jn.func,renderNoSuggestion:Jn.title,renderError:Jn.title,placeholder:jt.string.def("Search"),queryFormat:jt.oneOf(["and","or"]).def("or"),react:Jn.react,showClear:jt.bool.def(!0),showDistinctSuggestions:jt.bool.def(!0),showFilter:jt.bool.def(!0),showIcon:jt.bool.def(!0),title:Jn.title,theme:Jn.style,URLParams:jt.bool.def(!1),strictSelection:jt.bool.def(!1),nestedField:Jn.string,enablePredictiveSuggestions:jt.bool.def(!1),recentSearchesIcon:jt.any,popularSearchesIcon:jt.any,showVoiceSearch:jt.bool.def(!1),getMicInstance:Jn.func,renderMic:Jn.func,distinctField:Jn.string,distinctFieldConfig:Jn.props,focusShortcuts:jt.arrayOf(jt.oneOfType([jt.string,jt.number])).def(["/"]),addonBefore:jt.any,addonAfter:jt.any,expandSuggestionsContainer:jt.bool.def(!0),index:jt.string,enableDefaultSuggestions:jt.bool.def(!0),mode:jt.oneOf(["select","tag"]).def("select"),renderSelectedTags:jt.any,endpoint:Jn.endpointConfig},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=uu.highlightQuery(this.$props)||{};this.queryOptions=ct({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)}else this.queryOptions=this.getBasicQueryOptions(),this.setQueryOptions(this.$props.componentId,this.queryOptions);this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{highlight:function(){this.updateQueryOptions()},dataField:function(){this.updateQueryOptions(),this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},highlightField:function(){this.updateQueryOptions()},fieldWeights:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},fuzziness:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},queryFormat:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){tu(e,t)||(this.isPending&&this.$options.isTagsMode&&Array.isArray(e)&&(this.isPending=!1),this.setValue(e,!0,this.$props,void 0,!1,"string"!=typeof e&&this.$options.isTagsMode))},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)},suggestions:function(e){Array.isArray(e)&&this.$data.currentValue.trim().length&&(this.$emit("suggestions",e),this.normalizedSuggestions=this.onSuggestions(e))},selectedValue:function(e,t){tu(e,t)||(this.$options.isTagsMode?tu(this.$data.selectedTags,e):this.$data.currentValue===e)||(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",it.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]),this.setValue(e||"",!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandler(e,this.$props):this.updateQueryHandler(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=uu.name,t="dataField supplied to "+e+" is required. Validation failed.",n=this.$props.dataField;if(!this.enableAppbase){if(!n)return void console.error(t);if("string"!=typeof n&&"object"!=typeof n&&!Array.isArray(n))return void console.error("Invalid dataField supplied to "+e+". Validation failed.");Array.isArray(n)&&0===n.length&&console.error(t)}},updateQueryOptions:function(){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=uu.highlightQuery(this.$props)||{};this.queryOptions=ct({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)},getComponent:function(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.suggestionsList,promotedData:this.promotedResults,aggregationData:this.aggregationData,rawData:this.rawData,customData:this.customData,value:n,triggerClickAnalytics:this.triggerClickAnalytics,resultStats:this.stats,querySuggestions:this.normalizedPopularSuggestions,popularSuggestions:this.normalizedPopularSuggestions};return t?function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.$scopedSlots||t.$props,r=n.renderQuerySuggestions,o=n.renderPopularSuggestions||r;return o?o(e):null}({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):vr(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=ke(this.$props);return e&&(t.aggs=nu({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return iu(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,it.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,i){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===i&&(i=this.$options.isTagsMode);Ys(n.componentId,e,n.beforeValueChange,(function(){if(!i||!tu(e,a.selectedTags)){if(e||!1!==n.enableDefaultSuggestions?!e&&a.currentValue&&a.enableRecentSearches&&a.getRecentSearches():a.resetStoreForComponent(n.componentId),i){if(Array.isArray(a.selectedTags)&&a.selectedTags.length){if("string"==typeof e&&a.selectedTags.includes(e))return void(a.isOpen=!1);if(a.selectedTags=[].concat(a.selectedTags),"string"==typeof e&&e)a.selectedTags.push(e);else if(Array.isArray(e)&&!tu(a.selectedTags,e)){var s=Array.from(new Set([].concat(a.selectedTags,e)));a.selectedTags=s}}else e&&(a.selectedTags="string"!=typeof e?e:[].concat(e));a.currentValue=""}else a.currentValue=e;var u=e;i&&(u=Array.isArray(a.selectedTags)&&a.selectedTags.length?a.selectedTags:void 0),t?(a.$props.autosuggest&&(o&&(a.isOpen=!1),"string"==typeof e&&a.updateDefaultQueryHandler(e,a.$props)),n.strictSelection?r===it.SUGGESTION_SELECT||(a.$options.isTagsMode?0===a.selectedTags.length:""===e)?a.updateQueryHandler(n.componentId,u,n):a.setValue("",!0):a.updateQueryHandler(n.componentId,u,n)):a.handleTextChange(e),a.$emit("valueChange",e),a.$emit("value-change",e),e===a.lastUsedQuery?(a.suggestions=a.onSuggestions(a.suggestions),a.$emit("suggestions",a.suggestions)):e||(a.suggestions=[],a.$emit("suggestions",a.suggestions))}}))},updateDefaultQueryHandler:function(e,t){if(e||!1!==t.enableDefaultSuggestions){var n,r=uu.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{},i=Js(o);i&&(r=i),n=eu(o),wr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,ct({},this.queryOptions,n),!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:x.dataSearch})}else this.resetStoreForComponent(t.componentId)},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,i=n.filterLabel,a=n.showFilter,s=n.URLParams,u=uu.defaultQuery(t,n);if(o){var l=o(t,n),c=Js(l);c&&(u=c),r=eu(l),Sr(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,ct({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:i,showFilter:a,URLParams:s,componentType:"DATASEARCH"})},handleFocus:function(e){this.isOpen=!0,this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&(this.isPending=!1,this.setValue(t[0][0].transcript.trim(),!0))},triggerQuery:function(e){var t=(void 0!==e&&e).isOpen,n=void 0!==t&&t;void 0!==this.$props.value&&(this.isPending=!1,this.setValue(this.$props.value,!n))},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.suggestionsList.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.isPending=!1,this.setValue("",!0),this.onValueSelectedHandler("",it.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0!==this.$props.value&&(this.isPending=!0),"Enter"===e.key&&null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,it.ENTER_PRESS)),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=this,n=e.target.value;this.$data.isOpen||(this.isOpen=!0);var r=this.$props,o=r.value,i=r.autosuggest;void 0===o?this.setValue(n,!1,this.$props,void 0,!0,!1):(this.isPending=!0,this.$emit("change",n,(function(e){var n=(void 0===e?{}:e).isOpen,r=void 0!==n&&n;if(t.$options.isTagsMode&&i)return t.currentValue=o,t.isOpen=r,void t.updateDefaultQueryHandler(t.currentValue,t.$props);t.triggerQuery({isOpen:r})}),e))},onSuggestionSelected:function(e){var t=this.$props.value;if(this.triggerClickAnalytics(e._click_id),void 0===t)this.setValue(e.value,!0,this.$props,it.SUGGESTION_SELECT);else if(this.$options.isTagsMode){var n=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[];if(this.selectedTags.includes(e.value))return void(this.isOpen=!1);n.push(e.value),this.setValue(n,!0,this.$props,it.SUGGESTION_SELECT,!0),this.$emit("change",n,this.triggerQuery)}else this.$emit("change",e.value,this.triggerQuery);this.isPending=!1,this.onValueSelectedHandler(e.value,it.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(Ss):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(hs,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[mr(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e($s):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,s=this.$data,u=s.isOpen,l=s.currentValue;return!i||!u||e.length||this.isLoading||!l||a&&this.error?null:t(hs,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(qa,[t()]):null},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(Fs,{class:Xs(r,"selected-tag")||""},[n("span",[e]),n("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:function(){return t.clearTag(e)}}},[n($s)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this,t=this.$createElement;if(!Array.isArray(this.selectedTags))return null;var n=[].concat(this.selectedTags),r=n.length>1,o=this.$scopedSlots.renderSelectedTags||this.$props.renderSelectedTags;return o?o({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):t(Ds,[n.map((function(t){return e.renderTag(t)})),r&&t(Fs,{class:Xs(this.$props.innerClass,"selected-tag")||""},[t("span",["Clear All"]),t("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:this.clearAllTags}},[t($s)])])])},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(qa,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,a=t.showVoiceSearch,s=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(ns,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(rs,{on:{click:this.clearValue},attrs:{showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Qs,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:Xs(o,"mic")||null}}),"right"===n&&s&&e(rs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(ns,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&s&&e(rs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;kr(n)||(va(Tr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),va("*",(function(t){var r=Ar(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(va[r[o]]){e.focusSearchBox(t);break}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,i=n.expandSuggestionsContainer,a=n.enableDefaultSuggestions,s=this.$scopedSlots,u=s.recentSearchesIcon,l=s.popularSearchesIcon,c=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return!1!==a||this.currentValue||(c=!1),t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:Xs(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(cs,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var a=n.getInputEvents,s=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&c?t("ul",{class:Ja(e.themePreset,r)+" "+Xs(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:ct({},p({item:n})),on:ct({},d({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(ws,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:ct({},p({item:n})),on:ct({},d({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[n.source&&n.source._recent_search&&t(Vs,{attrs:{className:Xs(e.$props.innerClass,"recent-search-icon")||null,icon:u,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(Vs,{attrs:{className:Xs(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ws,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),_r(e)?e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:ct({},p({item:n})),on:ct({},d({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[t(Vs,{attrs:{className:Xs(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ws,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:es},[t($a,[e.renderInputAddonBefore(),t(Ua,[t(Xa,{attrs:{id:e.$props.componentId+"-input",showIcon:e.$props.showIcon,showClear:e.$props.showClear,iconPosition:e.$props.iconPosition,placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus,themePreset:e.themePreset,autocomplete:"off"},ref:e.$props.innerRef,class:Xs(e.$props.innerClass,"input"),on:ct({},a({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:ct({},s({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!i&&m()])," ",e.renderInputAddonAfter()]),i&&m(),e.renderTags()])}}}):t("div",{class:es},[t($a,[this.renderInputAddonBefore(),t(Ua,[t(Xa,{class:Xs(this.$props.innerClass,"input")||"",attrs:{placeholder:this.$props.placeholder,iconPosition:this.$props.iconPosition,showIcon:this.$props.showIcon,showClear:this.$props.showClear,themePreset:this.themePreset},on:ct({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:function(t){e.$emit("keyDown",t,e.triggerQuery),e.$emit("key-down",t,e.triggerQuery)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:ct({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=su(t.dataField,t.fieldWeights);n={bool:{should:uu.shouldQuery(e,r,t),minimum_should_match:"1"}}}return""===e&&(n=null),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)},highlightQuery:function(e){if(e.customHighlight)return e.customHighlight(e);if(!e.highlight)return null;var t={},n=e.highlightField?e.highlightField:e.dataField;return"string"==typeof n?t[n]={}:Array.isArray(n)&&n.forEach((function(e){t[e]={}})),{highlight:ct({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}},hasInternalComponent:function(){return!0}},lu=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],isLoading:!!e.isLoading[t.componentId+"_active"],themePreset:e.config.themePreset,error:e.error[t.componentId],analytics:e.analytics,enableAppbase:e.config.enableAppbase,headers:e.appbaseRef.headers,promotedResults:e.promotedResults[t.componentId]||[],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,popularSuggestions:e.querySuggestions[t.componentId],defaultPopularSuggestions:e.defaultPopularSuggestions[t.componentId],componentProps:e.props[t.componentId],lastUsedQuery:e.queryToHits[t.componentId],recentSearches:e.recentSearches.data}}),{setQueryOptions:Us,updateQuery:Ns,setCustomQuery:qs,setDefaultQuery:Bs,setCustomHighlightOptions:zs,recordSuggestionClick:Hs,loadPopularSuggestions:Gs,getRecentSearches:Ws,resetStoreForComponent:Zs})(uu),{componentType:x.dataSearch,internalComponent:uu.hasInternalComponent()});uu.install=function(e){e.component(uu.name,lu)},uu.componentType=x.dataSearch;var cu,pu,du,hu,fu,gu,mu=on("button")(As||(As=ft(["\n\tdisplay: flex;\n\tmargin-left: auto;\n\tposition: relative;\n\tright: -3px;\n\tborder: none;\n\toutline: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tz-index: 111000;\n\n\tsvg {\n\t\tcursor: pointer;\n\t\tfill: #707070;\n\t\theight: 20px;\n\t}\n\n\t&:hover {\n\t\tsvg {\n\t\t\tfill: #1c1a1a;\n\t\t}\n\t}\n"]))),yu={name:"AutoFillSvg",render:function(){var e=arguments[0];return e(mu,{on:{click:this.$listeners.click}},[e("svg",{attrs:{viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M8 17v-7.586l8.293 8.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-8.293-8.293h7.586c0.552 0 1-0.448 1-1s-0.448-1-1-1h-10c-0.552 0-1 0.448-1 1v10c0 0.552 0.448 1 1 1s1-0.448 1-1z"}})])])},methods:{clicked:function(e){e.stopPropagation(),window.console.log("hey",e)}}},vu=ot.updateQuery,bu=ot.setCustomQuery,Ou=ot.setDefaultQuery,Cu=ot.recordSuggestionClick,wu=at.debounce,Su=at.checkValueChange,$u=at.getClassName,_u=at.isEqual,ku=at.getCompositeAggsQuery,Pu=at.withClickIds,Eu=at.getResultStats,Tu=at.normalizeDataField,Iu={name:"SearchBox",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[]},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.distinctField,n=e.distinctFieldConfig,r=e.index;e.mode===j.TAG&&(this.$options.isTagsMode=!0),this.$options.isTagsMode&&console.warn("Warning(ReactiveSearch): The `categoryField` prop is not supported when `mode` prop is set to `tag`"),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!t&&!n||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&r&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue=Rr(this.selectedValue||this.value||this.defaultValue||""),this.$options.isTagsMode&&(this.currentValue=""),this.handleTextChange=wu(this.handleText,this.$props.debounce),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue)},computed:{hasCustomRenderer:function(){return br(this)},stats:function(){return Eu(this)}},props:{autoFocus:jt.bool,autosuggest:jt.bool.def(!0),beforeValueChange:Jn.func,className:jt.string.def(""),clearIcon:Jn.children,componentId:Jn.stringRequired,customHighlight:Jn.func,customQuery:Jn.func,defaultQuery:Jn.func,dataField:jt.oneOfType([jt.string,jt.shape({field:jt.string,weight:jt.number}),jt.arrayOf(jt.string),jt.arrayOf({field:jt.string,weight:jt.number})]),aggregationField:Jn.string,aggregationSize:jt.number,size:jt.number,debounce:jt.number.def(0),defaultValue:Jn.string,excludeFields:Jn.excludeFields,value:jt.oneOfType([jt.arrayOf(jt.string),Jn.value]),defaultSuggestions:Jn.suggestions,enableSynonyms:jt.bool.def(!0),enableQuerySuggestions:jt.bool.def(!1),enablePopularSuggestions:jt.bool.def(!1),enableRecentSuggestions:jt.bool.def(!1),fieldWeights:Jn.fieldWeights,filterLabel:Jn.string,fuzziness:Jn.fuzziness,highlight:jt.bool,highlightField:Jn.stringOrArray,icon:Jn.children,iconPosition:jt.oneOf(["left","right"]).def("left"),includeFields:Jn.includeFields,innerClass:Jn.style,innerRef:jt.string.def("searchInputField"),render:Jn.func,renderNoSuggestion:Jn.title,renderError:Jn.title,placeholder:jt.string.def("Search"),queryFormat:jt.oneOf(["and","or"]).def("or"),react:Jn.react,showClear:jt.bool.def(!0),showDistinctSuggestions:jt.bool.def(!0),showFilter:jt.bool.def(!0),showIcon:jt.bool.def(!0),title:Jn.title,theme:Jn.style,URLParams:jt.bool.def(!1),strictSelection:jt.bool.def(!1),nestedField:Jn.string,enablePredictiveSuggestions:jt.bool.def(!1),recentSearchesIcon:jt.any,popularSearchesIcon:jt.any,showVoiceSearch:jt.bool.def(!1),getMicInstance:Jn.func,renderMic:Jn.func,distinctField:Jn.string,distinctFieldConfig:Jn.props,focusShortcuts:jt.arrayOf(jt.oneOfType([jt.string,jt.number])).def(["/"]),addonBefore:jt.any,addonAfter:jt.any,expandSuggestionsContainer:jt.bool.def(!0),index:jt.string,popularSuggestionsConfig:jt.object,recentSuggestionsConfig:jt.object,applyStopwords:jt.bool,customStopwords:Jn.stringArray,onData:Jn.func,renderItem:Jn.func,enterButton:jt.bool.def(!1),renderEnterButton:jt.any,mode:jt.oneOf(["select","tag"]).def("select"),renderSelectedTags:jt.any,searchboxId:jt.string,endpoint:Jn.endpointConfig},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{dataField:function(e,t){_u(e,t)||this.triggerCustomQuery(this.$data.currentValue)},fieldWeights:function(){this.triggerCustomQuery(this.$data.currentValue)},fuzziness:function(){this.triggerCustomQuery(this.$data.currentValue)},queryFormat:function(){this.triggerCustomQuery(this.$data.currentValue)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){_u(e,t)||this.setValue(e,!0,this.$props,""===e?it.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(Pu(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(Pu(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){if(!_u(e,t)&&(this.$options.isTagsMode?!_u(this.$data.selectedTags,e):this.$data.currentValue!==e)){!e&&this.$data.currentValue&&this.onValueSelectedHandler("",it.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]);var n=e?void 0:it.CLEAR_VALUE;this.$options.isTagsMode&&(n=it.SUGGESTION_SELECT),this.setValue(e||"",!0,this.$props,n)}},focusShortcuts:function(){this.listenForFocusShortcuts()},rawData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:e,aggregationData:this.aggregationData,loading:this.isLoading,error:this.isError})},aggregationData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:e,loading:this.isLoading,error:this.isError})},loading:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:e,error:this.isError})},error:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:this.isLoading,error:e})},debounce:function(e,t){_u(e,t)||(this.handleTextChange=wu(this.handleText,e))}},methods:{handleText:function(e,t){t===it.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},validateDataField:function(){var e=Iu.name,t="dataField supplied to "+e+" is required. Validation failed.",n=this.$props.dataField;if(!this.enableAppbase){if(!n)return void console.error(t);if("string"!=typeof n&&"object"!=typeof n&&!Array.isArray(n))return void console.error("Invalid dataField supplied to "+e+". Validation failed.");Array.isArray(n)&&0===n.length&&console.error(t)}},getComponent:function(e){void 0===e&&(e={});var t=this.$data.currentValue,n={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.normalizedSuggestions,rawData:this.rawData,value:t,resultStats:this.stats};return vr(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=ke(this.$props);return e&&(t.aggs=ku({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,it.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,i){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===i&&(i=void 0);Su(n.componentId,e,n.beforeValueChange,(function(){if(!a.$options.isTagsMode||!_u(e,a.selectedTags)){if(a.$options.isTagsMode&&r===it.SUGGESTION_SELECT){if(Array.isArray(a.selectedTags)&&a.selectedTags.length){if("string"==typeof e&&a.selectedTags.includes(e))return void(a.isOpen=!1);if(a.selectedTags=[].concat(a.selectedTags),"string"==typeof e&&e)a.selectedTags.push(e);else if(Array.isArray(e)&&!_u(a.selectedTags,e)){var s=Array.from(new Set([].concat(a.selectedTags,e)));a.selectedTags=s}}else e&&(a.selectedTags="string"!=typeof e?e:[].concat(e));a.currentValue=""}else a.currentValue=Rr(e);var u=e;a.$options.isTagsMode&&r===it.SUGGESTION_SELECT&&(u=Array.isArray(a.selectedTags)&&a.selectedTags.length?a.selectedTags:void 0),t?(a.$props.autosuggest&&(o&&(a.isOpen=!1),"string"==typeof a.currentValue&&a.triggerDefaultQuery(a.currentValue)),n.strictSelection?r===it.SUGGESTION_SELECT||(a.$options.isTagsMode?0===a.selectedTags.length:""===e)?a.triggerCustomQuery(u,a.$options.isTagsMode?void 0:i):a.setValue("",!0):void 0!==n.value&&r!==it.SUGGESTION_SELECT&&r!==it.CLEAR_VALUE||a.triggerCustomQuery(u,a.$options.isTagsMode?void 0:i)):a.handleTextChange(e,r),a.$emit("valueChange",e),a.$emit("value-change",e)}}))},triggerDefaultQuery:function(e){if(this.$props.autosuggest){var t="string"!=typeof e?this.currentValue:e,n=Iu.defaultQuery(t,this.$props);if(this.defaultQuery){var r=this.defaultQuery(t,this.$props)||{};r.query&&(n=r.query),wr(this.$props.componentId,this.setDefaultQuery,this.$props,t)}this.updateQuery({componentId:this.internalComponent,query:n,value:t,componentType:x.searchBox})}},triggerCustomQuery:function(e,t){void 0===t&&(t=void 0);var n=this.$props,r=n.customQuery,o=n.filterLabel,i=n.showFilter,a=n.URLParams,s="string"!=typeof e?this.$data.currentValue:e;this.$options.isTagsMode&&(s=e);var u=Iu.defaultQuery(s+(t?" in "+t:""),this.$props);if(r){var l=r(s,this.$props).query;l&&(u=l),Sr(this.$props.componentId,this.setCustomQuery,this.$props,s)}this.updateQuery({componentId:this.$props.componentId,query:u,value:s,label:o,showFilter:i,URLParams:a,componentType:x.searchBox,category:t})},handleFocus:function(e){this.$props.autosuggest&&(this.isOpen=!0),this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&this.setValue(t[0][0].transcript.trim(),!0)},triggerQuery:function(e){var t=e.isOpen,n=void 0===t?void 0:t,r=e.customQuery,o=void 0===r||r,i=e.defaultQuery,a=void 0===i||i,s=e.value,u=void 0===s?void 0:s,l=e.categoryValue,c=void 0===l?void 0:l;"boolean"==typeof n&&(this.isOpen=n),o&&this.triggerCustomQuery(u,c),a&&this.triggerDefaultQuery(u)},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.normalizedSuggestions.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.setValue("",!1,this.$props,it.CLEAR_VALUE,!1),this.onValueSelectedHandler("",it.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0===t&&(t=null),"Enter"===e.key&&(!1===this.$props.autosuggest?this.enterButtonOnClick():null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,it.ENTER_PRESS))),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=this,n=e.target.value;!this.$data.isOpen&&this.$props.autosuggest&&(this.isOpen=!0),void 0===this.$props.value?this.setValue(n,!1,this.$props,""===n?it.CLEAR_VALUE:void 0):this.$emit("change",n,(function(e){var r=e.isOpen;return t.triggerQuery({defaultQuery:!0,customQuery:!0,value:n,isOpen:r})}),e)},onSuggestionSelected:function(e){var t=this;this.isOpen=!1;var n=this.$props.value;if(this.triggerClickAnalytics(e._click_id),void 0===n)this.setValue(e.value,!0,this.$props,it.SUGGESTION_SELECT,!1,e._category);else{var r=e.value;if(this.$options.isTagsMode){if(r=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[],this.selectedTags.includes(e.value))return void(this.isOpen=!1);r.push(e.value)}this.setValue(r,!0,this.$props,it.SUGGESTION_SELECT,!1,e._category),this.$emit("change",r,(function(n){var o=n.isOpen;return t.triggerQuery(ct({isOpen:o,value:r},!t.$options.isTagsMode&&{categoryValue:e._category}))}))}this.onValueSelectedHandler(e.value,it.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(Ss):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(hs,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[mr(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e($s):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,s=this.$data,u=s.isOpen,l=s.currentValue;return!i||!u||e.length||this.isLoading||!l||a&&this.error?null:t(hs,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(qa,{class:"addon-before"},[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(qa,{class:"addon-after"},[t()]):null},enterButtonOnClick:function(){this.triggerQuery({isOpen:!1,value:this.currentValue,customQuery:!0})},renderEnterButtonElement:function(){var e=this,t=this.$createElement,n=this.$props,r=n.enterButton,o=n.innerClass,i=this.$scopedSlots.renderEnterButton;if(r){return t("div",{class:"enter-button-wrapper"},[i?i(e.enterButtonOnClick):t(Kn,{class:"enter-btn "+$u(o,"enter-button"),attrs:{primary:!0},on:{click:e.enterButtonOnClick}},["Search"])])}return null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,a=t.showVoiceSearch,s=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(ns,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(rs,{on:{click:this.clearValue},attrs:{showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Qs,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:$u(o,"mic")||null}}),"right"===n&&s&&e(rs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(ns,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&s&&e(rs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;kr(n)||(va(Tr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),va("*",(function(t){var r=Ar(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(va[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=Rr(t),this.triggerDefaultQuery(t)},renderAutoFill:function(e){var t=this,n=this.$createElement;return e._category?null:n(yu,{on:{click:function(n){n.stopPropagation(),t.onAutofillClick(e)}}})},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(Fs,{class:$u(r,"selected-tag")||""},[n("span",[e]),n("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:function(){return t.clearTag(e)}}},[n($s)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this,t=this.$createElement;if(!Array.isArray(this.selectedTags))return null;var n=[].concat(this.selectedTags),r=n.length>1,o=this.$scopedSlots.renderSelectedTags||this.$props.renderSelectedTags;return o?o({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):t(Ds,[n.map((function(t){return e.renderTag(t)})),r&&t(Fs,{class:$u(this.$props.innerClass,"selected-tag")||""},[t("span",["Clear All"]),t("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:this.clearAllTags}},[t($s)])])])}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.expandSuggestionsContainer,i=this.$scopedSlots,a=i.recentSearchesIcon,s=i.popularSearchesIcon,u=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,l=this.$scopedSlots.renderItem||this.$props.renderItem;return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:$u(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.autosuggest?t(cs,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var i=n.getInputEvents,c=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){var n=function(e){switch(e){case Ce.Recent:return a;case Ce.Popular:return s;default:return null}};return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&u?t("ul",{class:Ja(e.themePreset,r)+" "+$u(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(r,o){return t("li",{domProps:ct({},p({item:r})),on:ct({},d({item:r})),key:o+1+"-"+r.value,style:{backgroundColor:e.getBackgroundColor(f,o),justifyContent:"flex-start",alignItems:"center"}},l?[l(r)]:[t("div",{style:{padding:"0 10px 0 0",display:"flex"}},[t(Vs,{attrs:{className:$u(e.$props.innerClass,r._suggestion_type+"-search-icon")||null,icon:n(r._suggestion_type),type:r._suggestion_type+"-search-icon"}})]),t(ws,{attrs:{currentValue:e.currentValue,suggestion:r}}),e.renderAutoFill(r)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return t("div",{class:es},[t($a,[e.renderInputAddonBefore(),t(Ua,[t(Xa,{attrs:{id:e.$props.componentId+"-input",showIcon:e.$props.showIcon,showClear:e.$props.showClear,iconPosition:e.$props.iconPosition,placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus,themePreset:e.themePreset,autocomplete:"off"},ref:e.$props.innerRef,class:$u(e.$props.innerClass,"input"),on:ct({},i({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:ct({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!o&&m()]),e.renderInputAddonAfter(),e.renderEnterButtonElement()]),o&&m(),e.renderTags()])}}}):t("div",{class:es},[t($a,[this.renderInputAddonBefore(),t(Ua,[t(Xa,{class:$u(this.$props.innerClass,"input")||"",attrs:{placeholder:this.$props.placeholder,iconPosition:this.$props.iconPosition,showIcon:this.$props.showIcon,showClear:this.$props.showClear,themePreset:this.themePreset},on:ct({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:this.handleKeyDown,keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:ct({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter(),this.renderEnterButtonElement()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n,r=Tu(t.dataField,t.fieldWeights);return(n={bool:{should:Iu.shouldQuery(e,r,t),minimum_should_match:"1"}})&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)}},Au=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,selectedCategory:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].category||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],themePreset:e.config.themePreset,isLoading:!!e.isLoading[t.componentId+"_active"],error:e.error[t.componentId],enableAppbase:e.config.enableAppbase,time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{updateQuery:vu,setCustomQuery:bu,setDefaultQuery:Ou,recordSuggestionClick:Cu})(Iu),{componentType:x.searchBox,internalComponent:!0});Iu.install=function(e){e.component(Iu.name,Au)},Iu.componentType=x.searchBox;var Ru="15px",xu="15px",Lu="4px",ju=Jt(cu||(cu=ft(["\n\tborder: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tposition: absolute;\n\twidth: 1px;\n\twhite-space: nowrap;\n"]))),Mu=Jt(pu||(pu=ft(["\n\t+ label {\n\t\tpadding-left: 0;\n\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder: 0;\n\t\t\tmargin: 0;\n\t\t\tvisibility: hidden;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n"]))),Qu=function(e){var t=e.theme;return Jt(du||(du=ft(["\n\t",";\n\n\t&:focus {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tbox-shadow: 0 0 0 2px ",";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:hover {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:active {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\ttransition-duration: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t+ label {\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\n\t\t&::before {\n\t\t\tbackground-color: #fff;\n\t\t\tborder: 1px solid ",";\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tcolor: ",";\n\t\t\tmargin-right: calc("," * 0.5);\n\t\t\ttop: 50%;\n\t\t\tleft: 0;\n\t\t\twidth: ",";\n\t\t\theight: ",";\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&::after {\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tbackground-color: ",";\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 2);\n\t\t\twidth: calc("," - ",");\n\t\t\theight: calc("," - ",");\n\t\t\tmargin-top: calc("," / -2 - "," / -2);\n\t\t\ttransform: scale(0);\n\t\t\ttransform-origin: 50%;\n\t\t\ttransition: transform 200ms ease-out;\n\t\t}\n\t}\n"])),ju,qn(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||qn(.1,t.colors.textColor),t.colors.primaryColor,Ru,Ru,xu,t.colors.primaryColor,Lu,Ru,Lu,xu,Lu,xu,Lu)},Vu=on("input")(hu||(hu=ft(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t+ label {\n\t\t\t\tcolor: ",";\n\n\t\t\t\t&::before {\n\t\t\t\t\tanimation: none;\n\t\t\t\t\tfilter: none;\n\t\t\t\t\ttransition: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tanimation: none;\n\t\t\t\tbackground-color: #fff;\n\t\t\t\tborder-color: ",";\n\t\t}\n\n\t\t&::after {\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n"])),Qu,(function(e){return e.show?null:Mu}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Du=on("input")(fu||(fu=ft(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 0;\n\t\t}\n\n\t\t&::after {\n\t\t\tbackground-color: transparent;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 5);\n\t\t\twidth: calc("," / 2);\n\t\t\theight: calc("," / 5);\n\t\t\tmargin-top: calc("," / -2 / 2 * 0.8);\n\t\t\tborder-style: solid;\n\t\t\tborder-color: ",";\n\t\t\tborder-width: 0 0 2px 2px;\n\t\t\tborder-radius: 0;\n\t\t\tborder-image: none;\n\t\t\ttransform: rotate(-45deg) scale(0);\n\t\t\ttransition: none;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\ttransform: rotate(-45deg) scale(1);\n\t\t\t\ttransition: transform 200ms ease-out;\n\t\t\t}\n\t\t}\n\t}\n"])),Qu,(function(e){return e.show?null:Mu}),Ru,Ru,Ru,xu,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Fu=on("ul")(gu||(gu=ft(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 240px;\n\tposition: relative;\n\toverflow-y: auto;\n\tpadding-bottom: 12px;\n\n\tli {\n\t\theight 30px;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tpadding-left: 2px;\n\t}\n"]))),Nu=at.getAggsOrder,Uu=function(e,t){var n,r=e,o=t.dataField,i=t.size,a=t.sortBy,s=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:ct({field:o,size:i,order:Nu(a||"count")},s?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),ct({},r,function(e){var t={};if(e.defaultQuery){var n=e.defaultQuery([],e);n&&(n.query&&(t.query=n.query),n.aggs&&(t.aggs=n.aggs))}return t}(t))},qu=ot.updateQuery,Bu=ot.setQueryOptions,zu=ot.setCustomQuery,Hu=ot.setDefaultQuery,Gu=at.getQueryOptions,Wu=at.checkValueChange,Zu=at.getClassName,Ku=at.isEqual,Yu=at.extractQueryFromCustomQuery,Xu=at.getOptionsForCustomQuery,Ju={name:"SingleList",props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,dataField:Jn.stringRequired,defaultValue:Jn.string,value:Jn.value,defaultQuery:Jn.func,filterLabel:Jn.string,innerClass:Jn.style,placeholder:jt.string.def("Search"),react:Jn.react,render:Jn.func,renderItem:Jn.func,renderNoResults:jt.any,transformData:Jn.func,selectAllLabel:Jn.string,showCount:jt.bool.def(!0),showFilter:jt.bool.def(!0),showRadio:jt.bool.def(!0),showSearch:jt.bool.def(!0),size:jt.number,sortBy:jt.oneOf(["asc","desc","count"]).def("count"),title:Jn.title,URLParams:jt.bool.def(!1),showMissing:jt.bool.def(!1),missingLabel:jt.string.def("N/A"),nestedField:Jn.string,index:jt.string,enableStrictSelection:jt.bool.def(!1),endpoint:Jn.endpointConfig},data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryHandlerOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){Ku(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return mr(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||ve(String(t.key)).toLowerCase().includes(ve(e.$data.searchTerm.toLowerCase())))}));return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:Zu(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Fu,{class:Zu(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(Vu,{class:Zu(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,show:this.$props.showRadio},on:{click:this.handleClick},domProps:ct({},{checked:this.$data.currentValue===r})}),t("label",{class:Zu(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.currentValue===String(n.key)?"active":""},[t(Vu,{class:Zu(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,readOnly:!0,type:"radio",show:e.$props.showRadio},on:{click:e.handleClick},domProps:ct({},{checked:e.currentValue===String(n.key)})}),t("label",{class:Zu(e.$props.innerClass,"label")||null,attrs:{for:e.$props.componentId+"-"+n.key}},[a?a({label:n.key,count:n.doc_count,isChecked:e.currentValue===String(n.key)}):t("span",[n.key,e.$props.showCount&&t("span",{class:Zu(e.$props.innerClass,"count")||null},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r=e;e===this.$data.currentValue&&(r="");Wu(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateDefaultQueryHandler:function(e,t){var n=Ju.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Yu(r);o&&(n=o),wr(t.componentId,this.setDefaultQuery,t,e);var i=Xu(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:x.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Ju.defaultQuery(e,t);if(n){var o=n(e,t);r=Yu(o);var i=Xu(o);Sr(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.singleList})},generateQueryOptions:function(e){var t=Gu(e);return Uu(t,e)},updateQueryHandlerOptions:function(e){var t=Ju.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=Xu(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,ct({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){var e=this.$createElement;return this.$props.showSearch?e(Xa,{class:Zu(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return vr(i,this)},handleClick:function(e){var t=e;return Cr(e)&&(t=e.target.value),(!this.enableStrictSelection||t!==this.currentValue)&&(void 0===this.$props.value?this.setValue(t):this.$emit("change",t),!0)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:Zu(this.$props.innerClass,"noResults")||null},[mr(t)?t():t])}},computed:{hasCustomRenderer:function(){return br(this)}},generateQueryOptions:function(e){var t=Gu(e);return Uu(t,e)},defaultQuery:function(e,t){var n,r=null;(t.selectAllLabel&&t.selectAllLabel===e&&(t.showMissing&&(r={match_all:{}}),r={exists:{field:t.dataField}}),e)&&(r={term:(n={},n[t.dataField]=e,n)},t.showMissing&&t.missingLabel===e&&(r={bool:{must_not:{exists:{field:t.dataField}}}}));return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},hasInternalComponent:function(){return!0}},el=Br(gr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Bu,updateQuery:qu,setCustomQuery:zu,setDefaultQuery:Hu})(Ju),{componentType:x.singleList,internalComponent:Ju.hasInternalComponent()});Ju.install=function(e){e.component(Ju.name,el)},Ju.componentType=x.singleList;var tl=ot.updateQuery,nl=ot.setQueryOptions,rl=ot.setCustomQuery,ol=ot.setDefaultQuery,il=at.isEqual,al=at.getQueryOptions,sl=at.checkValueChange,ul=at.getClassName,ll=at.extractQueryFromCustomQuery,cl=at.getOptionsForCustomQuery,pl={name:"MultiList",props:{defaultValue:Jn.stringArray,value:Jn.stringArray,queryFormat:jt.oneOf(["and","or"]).def("or"),showCheckbox:jt.bool.def(!0),beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,dataField:Jn.stringRequired,defaultQuery:Jn.func,filterLabel:Jn.string,innerClass:Jn.style,placeholder:jt.string.def("Search"),react:Jn.react,render:Jn.func,renderItem:Jn.func,renderError:Jn.title,renderNoResults:jt.any,transformData:Jn.func,selectAllLabel:Jn.string,showCount:jt.bool.def(!0),showFilter:jt.bool.def(!0),showSearch:jt.bool.def(!0),size:jt.number,sortBy:jt.oneOf(["asc","desc","count"]).def("count"),title:Jn.title,URLParams:jt.bool.def(!1),showMissing:jt.bool.def(!1),missingLabel:jt.string.def("N/A"),nestedField:Jn.string,index:jt.string,endpoint:Jn.endpointConfig},data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryHandlerOptions(this.$props);var e=this.selectedValue||this.$props.value||this.$props.defaultValue;this.setValue(e,!this.selectedValue)},mounted:function(){var e=Object.keys(this.$data.currentValue);void 0===this.$props.value||il(this.$props.value,e)||this.$emit("change",e)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},value:function(e,t){il(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){il(t,e)||this.setValue(e,!0)},selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),il(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return mr(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||ve(String(t.key)).toLowerCase().includes(ve(e.$data.searchTerm).toLowerCase()))}));return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:ul(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Fu,{class:ul(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(Du,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:ul(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:ct({},{checked:!!this.currentValue[r]})}),t("label",{class:ul(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.$data.currentValue[n.key]?"active":""},[t(Du,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:ul(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:ct({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:ul(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.key}},[a?a({label:n.key,count:n.doc_count,isChecked:!!e.$data.currentValue[n.key]}):t("span",[n.key,e.$props.showCount&&t("span",{class:ul(e.$props.innerClass,"count")},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},e&&e.length&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],ht(s,[o].map(yt)));i=ct({},u)}}else{if(i[e]){var l=i,c=(l[e],ht(l,[e].map(yt)));i=ct({},c)}else Array.isArray(e)?e.forEach((function(e){i[e]=!0})):i[e]=!0;if(o&&o in i){var p=i,d=(p[o],ht(p,[o].map(yt)));i=ct({},d)}a=Object.keys(i)}sl(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},i),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=pl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=ll(r);o&&(n=o),wr(t.componentId,this.setDefaultQuery,t,e);var i=cl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:x.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=pl.defaultQuery(e,t);if(n){var o=n(e,t);r=ll(o),Sr(t.componentId,this.setCustomQuery,t,e);var i=cl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.multiList})},generateQueryOptions:function(e){var t=al(e);return Uu(t,e)},updateQueryHandlerOptions:function(e){var t=pl.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=cl(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,ct({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){var e=this.$createElement;return this.$props.showSearch?e(Xa,{class:ul(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},handleClick:function(e){var t=e;Cr(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=yr(n||[],t);this.$emit("change",r)}},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return vr(i,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:ul(this.$props.innerClass,"noResults")||null},[mr(t)?t():t])}},computed:{hasCustomRenderer:function(){return br(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var a,s,u=e.includes(t.missingLabel),l=[(s={},s[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),s)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),i=p}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=al(e);return Uu(t,e)}},dl={setQueryOptions:nl,updateQuery:tl,setCustomQuery:rl,setDefaultQuery:ol};pl.hasInternalComponent=function(){return!0};var hl,fl,gl,ml,yl=Br(gr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),dl)(pl),{componentType:x.multiList,internalComponent:pl.hasInternalComponent()});pl.install=function(e){e.component(pl.name,yl)},pl.componentType=x.multiList;var vl,bl,Ol=Jt(hl||(hl=ft(["\n\tmin-height: 0;\n\theight: 30px;\n\tborder: 0;\n\tbox-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;\n\tborder-radius: 2px;\n"]))),Cl=function(e){var t=e.theme;return Jt(fl||(fl=ft(["\n\tbackground-color: ",";\n\tborder-color: ",";\n\tcolor: ",";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor,t.colors.borderColor,t.colors.textColor,t.colors.backgroundColor)},wl=on("button")(gl||(gl=ft(["\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmin-height: 42px;\n\tborder-radius: 0;\n\toutline: none;\n\tpadding: 5px 12px;\n\tfont-size: 0.9rem;\n\tline-height: 1.2rem;\n\tbackground-color: #fff;\n\tborder: 1px solid #ccc;\n\tcolor: #424242;\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t",";\n\n\t& > div {\n\t\twidth: calc(100% - 24px);\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\ttext-align: left;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: #fcfcfc;\n\t}\n\n\t",";\n"])),(function(e){return e.small?Ol:null}),(function(e){return"dark"===e.themePreset&&Cl})),Sl=on("span")(ml||(ml=ft(["\n\twidth: 16px;\n\theight: 16px;\n\tdisplay: inline-block;\n\tposition: relative;\n\tuser-select: none;\n\talign-items: center;\n\n\t&::after {\n\t\tbox-sizing: content-box;\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tbackground-color: transparent;\n\t\ttop: 50%;\n\t\tleft: 0;\n\t\twidth: 8px;\n\t\theight: 4px;\n\t\tmargin-top: -4px;\n\t\tborder-style: solid;\n\t\tborder-color: ",";\n\t\tborder-width: 0 0 2px 2px;\n\t\tborder-radius: 0;\n\t\tborder-image: none;\n\t\ttransform: rotate(-45deg) scale(1);\n\t\ttransition: all 200ms ease-out;\n\t}\n"])),(function(e){return e.theme.colors.primaryColor})),$l=Jt(vl||(vl=ft(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),_l=on("span")(bl||(bl=ft(["\n\t&::before {\n\t\tcontent: '';\n\t\tborder-style: solid;\n\t\tborder-width: 0.15em 0.15em 0 0;\n\t\tdisplay: inline-block;\n\t\theight: 0.45em;\n\t\tposition: relative;\n\t\ttop: 0.35em;\n\t\tleft: 0;\n\t\ttransform: rotate(135deg);\n\t\tvertical-align: top;\n\t\twidth: 0.45em;\n\n\t\t",";\n\t}\n"])),(function(e){return e.open?$l:null})),kl=at.getClassName,Pl={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:Jn.style,items:Jn.data,keyField:jt.string.def("key"),labelField:jt.string.def("label"),multi:jt.bool,placeholder:Jn.string,returnsObject:jt.bool,customLabelRenderer:Jn.func,hasCustomRenderer:jt.bool,customRenderer:Jn.func,renderItem:Jn.func,renderNoResults:jt.any,handleChange:Jn.func,transformData:Jn.func,selectedItem:Jn.selectedValue,showCount:jt.bool,single:jt.bool,small:jt.bool.def(!1),themePreset:Jn.themePreset,showSearch:jt.bool,showClear:jt.bool,searchPlaceholder:jt.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,i=n.placeholder,a=n.labelField,s=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,p=n.footer,d=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,g=r;c&&(g=c(g));var m=g.filter((function(t){return!!String(t[a]).length&&(!e.$props.showSearch||!e.$data.searchTerm||ve(String(t[a])).toLowerCase().includes(ve(e.$data.searchTerm.toLowerCase())))}));return t(cs,{attrs:{isOpen:this.$data.isOpen,selectedItem:o,handleChange:this.onChange,handleMouseup:this.handleStateChange},scopedSlots:{default:function(n){var r=n.getItemProps,c=n.isOpen,y=n.highlightedIndex,v=n.getButtonProps,b=n.getItemEvents,O=n.getInputEvents;return t("div",{class:es},[t(wl,{on:ct({},ct({},v({onClick:e.toggle}))),class:kl(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):i,small:e.$props.small,themePreset:e.$props.themePreset}},[d?d(o):t("div",[o?e.renderToString(o):i]),t(_l,{attrs:{open:c}})]),h?f(g,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:b}):c&&g.length?t("ul",{class:Ja(u,e.theme)+" "+(e.$props.small?"small":"")+" "+kl(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:O({onInput:e.handleInputChange}).input}}):null,h||0!==m.length?m.map((function(n,i){var u=e.$props.multi&&(o&&!!o[n[s]]||Array.isArray(o)&&o.find((function(e){return e[a]===n[a]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:ct({},r({item:n})),on:ct({},b({item:n})),key:n[s],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===i,u)}},[l?l({label:n[a],count:n.doc_count,isChecked:u&&e.$props.multi}):t("div",["string"==typeof n[a]?t("span",{domProps:{innerHTML:n[a]}}):n[a],e.$props.showCount&&n.doc_count&&t("span",{class:kl(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(Sl,{class:kl(e.$props.innerClass,"icon")||""}):null])})):e.renderNoResult(),p]):null])}}})},methods:{toggle:function(){this.isOpen=!this.$data.isOpen},close:function(){this.isOpen=!1},onChange:function(e){this.$props.returnsObject?this.$props.handleChange(e):this.$props.handleChange(e[this.$props.keyField]),this.$props.multi||(this.isOpen=!1,this.searchTerm="")},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){var n="dark"===this.$props.themePreset;return e?n?"#555":"#eee":t?n?"#686868":"#fafafa":n?"#424242":"#fff"},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},clearSearchTerm:function(){this.searchTerm=""},renderToString:function(e){var t=this,n=this.$props.customLabelRenderer;if(n){var r=n(e);if("string"==typeof r)return r}return Array.isArray(e)&&e.length?e.map((function(e){return t.renderToString(e)})).join(", "):e&&"object"==typeof e?e[this.$props.labelField]?e[this.$props.labelField]:Object.keys(e).length?this.renderToString(Object.keys(e)):this.$props.placeholder:e},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:kl(this.$props.innerClass,"noResults")||null},[mr(t)?t():t])},renderSearchbox:function(e){var t=this.$createElement,n=this.$props,r=n.componentId,o=n.searchPlaceholder,i=n.showClear,a=n.themePreset,s=n.innerClass,u=t(Xa,oo([{attrs:{id:r+"-input",showIcon:!1,showClear:i,placeholder:o,value:this.$data.searchTerm,themePreset:a},style:{border:0,borderBottom:"1px solid #ddd"},class:kl(s,"input")},e]));return i?t(Ua,[u,this.searchTerm&&t(ns,{attrs:{groupPosition:"right",positionType:"absolute"}},[t(rs,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[t($s)])])]):u}}},El=ot.updateQuery,Tl=ot.setQueryOptions,Il=ot.setCustomQuery,Al=ot.setDefaultQuery,Rl=at.getQueryOptions,xl=at.checkValueChange,Ll=at.checkPropChange,jl=at.getClassName,Ml=at.isEqual,Ql=at.getCompositeAggsQuery,Vl=at.extractQueryFromCustomQuery,Dl=at.getOptionsForCustomQuery,Fl={name:"SingleDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,dataField:Jn.stringRequired,defaultQuery:Jn.func,defaultValue:Jn.string,value:Jn.value,filterLabel:Jn.string,innerClass:Jn.style,placeholder:jt.string.def("Select a value"),react:Jn.react,renderLabel:Jn.func,render:Jn.func,renderItem:Jn.func,renderError:Jn.title,renderNoResults:jt.any,transformData:Jn.func,selectAllLabel:Jn.string,showCount:jt.bool.def(!0),showFilter:jt.bool.def(!0),size:jt.number,sortBy:jt.oneOf(["asc","desc","count"]).def("count"),title:Jn.title,URLParams:jt.bool.def(!1),showMissing:jt.bool.def(!1),missingLabel:jt.string.def("N/A"),showSearch:jt.bool.def(!1),showClear:jt.bool.def(!1),showLoadMore:jt.bool.def(!1),loadMoreLabel:jt.oneOfType([jt.string,jt.any]).def("Load More"),nestedField:Jn.string,index:jt.string,searchPlaceholder:jt.string.def("Type here to search..."),endpoint:Jn.endpointConfig},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e,t){var n=this;e&&Ll(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){Ml(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||i,p=this.$scopedSlots.renderLabel||a,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?mr(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel}]),e(ps,{class:this.$props.className},[this.$props.title&&e(io,{class:jl(this.$props.innerClass,"title")||""},[this.$props.title]),e(Pl,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return ct({},e,{key:String(e.key)})}))),handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",showCount:this.$props.showCount,hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,renderItem:l,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,themePreset:this.themePreset,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!s&&e("div",{attrs:{css:Yn}},[e(Kn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:p}})])):d&&mr(d)?e("div",[d()]):d&&!mr(d)?d:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);xl(t.componentId,e,t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler(e,t),n.$emit("valueChange",e),n.$emit("value-change",e)}))},handleChange:function(e){void 0===this.$props.value?this.setValue(e):this.$emit("change",e)},updateDefaultQueryHandler:function(e,t){var n=Fl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Vl(r);o&&(n=o),wr(t.componentId,this.setDefaultQuery,t,e);var i=Dl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:x.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Fl.defaultQuery(e,t);if(n){var o=n(e,t);r=Vl(o),Sr(t.componentId,this.setCustomQuery,t,e);var i=Dl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.singleDropdownList})},generateQueryOptions:function(e,t){var n=Rl(e);return e.showLoadMore?Ql({query:n,props:e,after:t}):Uu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Fl.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=Dl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,ct({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return vr(r,this)}},computed:{hasCustomRenderer:function(){return br(this)}},defaultQuery:function(e,t){var n=null;if(t.selectAllLabel&&t.selectAllLabel===e)t.showMissing&&(n={match_all:{}}),n={exists:{field:t.dataField}};else if(e){var r;t.showMissing&&t.missingLabel===e&&(n={bool:{must_not:{exists:{field:t.dataField}}}}),n={term:(r={},r[t.dataField]=e,r)}}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Rl(e);return e.showLoadMore?Ql({query:n,props:e,after:t}):Uu(n,e)},hasInternalComponent:function(){return!0}},Nl=Br(gr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Tl,updateQuery:El,setCustomQuery:Il,setDefaultQuery:Al})(Fl),{componentType:x.singleDropdownList,internalComponent:Fl.hasInternalComponent()});Fl.install=function(e){e.component(Fl.name,Nl)},Fl.componentType=x.singleDropdownList;var Ul=ot.updateQuery,ql=ot.setQueryOptions,Bl=ot.setCustomQuery,zl=ot.setDefaultQuery,Hl=at.isEqual,Gl=at.getQueryOptions,Wl=at.checkValueChange,Zl=at.checkPropChange,Kl=at.getClassName,Yl=at.getCompositeAggsQuery,Xl=at.extractQueryFromCustomQuery,Jl=at.getOptionsForCustomQuery,ec={name:"MultiDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,dataField:Jn.stringRequired,defaultValue:Jn.stringArray,value:Jn.stringArray,defaultQuery:Jn.func,filterLabel:Jn.string,innerClass:Jn.style,placeholder:jt.string.def("Select values"),queryFormat:jt.oneOf(["and","or"]).def("or"),react:Jn.react,renderLabel:Jn.func,render:Jn.func,renderItem:Jn.func,renderError:Jn.title,renderNoResults:jt.any,transformData:Jn.func,selectAllLabel:Jn.string,showCount:jt.bool.def(!0),showFilter:jt.bool.def(!0),size:jt.number,sortBy:jt.oneOf(["asc","desc","count"]).def("count"),title:Jn.title,URLParams:jt.bool.def(!1),showMissing:jt.bool.def(!1),missingLabel:jt.string.def("N/A"),showSearch:jt.bool.def(!1),showClear:jt.bool.def(!1),showLoadMore:jt.bool.def(!1),loadMoreLabel:jt.oneOfType([jt.string,jt.any]).def("Load More"),nestedField:Jn.string,index:jt.string,searchPlaceholder:jt.string.def("Type here to search..."),endpoint:Jn.endpointConfig},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),wr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue,!0):this.$props.value?this.setValue(this.$props.value,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},watch:{selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),Hl(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&Zl(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0)},value:function(e,t){Hl(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||i,l=this.$scopedSlots.renderLabel||a,c=this.$data.isLastBucket,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,d=[];return u&&this.error?mr(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(d=[{key:this.$props.selectAllLabel}]),e(ps,{class:this.$props.className},[this.$props.title&&e(io,{class:Kl(this.$props.innerClass,"title")||""},[this.$props.title]),e(Pl,{attrs:{innerClass:this.$props.innerClass,items:[].concat(d,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return ct({},e,{key:String(e.key)})}))),hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",multi:!0,showCount:this.$props.showCount,themePreset:this.themePreset,renderItem:s,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!c&&e("div",{attrs:{css:Yn}},[e(Kn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):p&&mr(p)?e("div",[p()]):p&&!mr(p)?p:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=yr(this.currentValue,e);this.$emit("change",t)}},setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&e.includes(o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},Array.isArray(e)&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],ht(s,[o].map(yt)));i=ct({},u)}}else{if(i[e]){var l=i,c=(l[e],ht(l,[e].map(yt)));i=ct({},c)}else i[e]=!0;if(o&&o in i){var p=i,d=(p[o],ht(p,[o].map(yt)));i=ct({},d)}a=Object.keys(i)}Wl(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=ct({},i),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=ec.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Xl(r);o&&(n=o),wr(t.componentId,this.setDefaultQuery,t,e);var i=Jl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:x.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=ec.defaultQuery(e,t);if(n){var o=n(e,t);r=Xl(o),Sr(t.componentId,this.setCustomQuery,t,e);var i=Jl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.multiDropdownList})},generateQueryOptions:function(e,t){var n=Gl(e);return e.showLoadMore?Yl({query:n,props:e,after:t}):Uu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=ec.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=Jl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,ct({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return vr(r,this)}},computed:{hasCustomRenderer:function(){return br(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var a,s,u=e.includes(t.missingLabel),l=[(s={},s[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),s)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),i=p}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Gl(e);return e.showLoadMore?Yl({query:n,props:e,after:t}):Uu(n,e)},hasInternalComponent:function(){return!0}},tc=Br(gr((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:ql,updateQuery:Ul,setCustomQuery:Bl,setDefaultQuery:zl})(ec),{componentType:x.multiDropdownList,internalComponent:ec.hasInternalComponent()});ec.install=function(e){e.component(ec.name,tc)},ec.componentType=x.multiDropdownList;var nc=ot.updateQuery,rc=ot.setQueryOptions,oc=ot.setCustomQuery,ic=at.isEqual,ac=at.checkValueChange,sc=at.getClassName,uc=at.getOptionsFromQuery,lc=at.handleA11yAction,cc={name:"ToggleButton",props:{componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.any,value:Jn.stringOrArray,filterLabel:Jn.string,nestedField:Jn.string,innerClass:Jn.style,multiSelect:jt.bool,react:Jn.react,showFilter:jt.bool,title:Jn.title,URLParams:jt.bool,renderItem:Jn.func,index:jt.string,enableStrictSelection:jt.bool,endpoint:Jn.endpointConfig},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=cc.parseValue(t,e);this.setValue(n),this.$data.currentValue.length&&this.handleToggle(this.$data.currentValue,!0,e,!1)},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(cc.parseValue(e,this.$props))},dataField:function(){this.updateQuery(this.$data.currentValue,this.$props)},nestedField:function(){this.updateQuery(this.$data.currentValue,this.$props)},value:function(e,t){ic(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)ic(this.$data.currentValue,e)||ic(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;ic(n,this.selectedValue)||ic(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQuery(this.$data.currentValue,this.$props)}},methods:{handleToggle:function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!0);var o=this.$data.currentValue,i=e,a=[];a=t?cc.parseValue(i,n):this.$props.multiSelect?o.some((function(e){return e.value===i.value}))?o.filter((function(e){return e.value!==i.value})):o.concat(i):o.some((function(e){return e.value===i.value}))?[]:[i],this.setValue(a,n,r)},setReact:function(e){e.react&&this.watchComponent(e.componentId,e.react)},setValue:function(e,t,n){var r=this;void 0===t&&(t=this.$props),void 0===n&&(n=!0);ac(t.componentId,t.multiSelect?e:e[0],t.beforeValueChange,(function(){var o=function(){r.updateQuery(e,t),r.$emit("valueChange",e),r.$emit("value-change",e)};n?(r.currentValue=e,o()):o()}))},updateQuery:function(e,t){var n=e;t.multiSelect||(n=e[0]?e[0].value:null);var r=t.customQuery,o=cc.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,uc(r(e,t)),!1),Sr(t.componentId,this.setCustomQuery,t,e));this.updateQueryHandler({componentId:t.componentId,query:o,value:n,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return ic(e,t)})))&&(void 0===this.$props.value?this.handleToggle(e):this.$emit("change",e.value),!0)},renderButton:function(e){var t=this,n=this.$createElement,r=this.$scopedSlots.renderItem||this.renderItem,o=this.$data.currentValue.some((function(t){return t.value===e.value}));return r?r({item:e,isSelected:o,handleClick:function(){return t.handleClick(e)}}):n(Kn,{class:sc(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return lc(n,(function(){return t.handleClick(e)}))}},key:e.value,attrs:{primary:o,large:!0,tabIndex:o?"-1":"0"}},[e.label])}},render:function(){var e=this,t=arguments[0];return t(ps,{class:Hn},[this.$props.title&&t(io,{class:sc(this.$props.innerClass,"title")},[this.$props.title]),this.$props.data.map((function(t){return e.renderButton(t)}))])},parseValue:function(e,t){return Array.isArray(e)?"string"==typeof e[0]?t.data.filter((function(t){return e.includes(t.value)})):e:t.data.filter((function(t){return t.value===e}))},defaultQuery:function(e,t){var n=null;return e&&e.length&&(n={bool:{boost:1,minimum_should_match:1,should:e.map((function(e){var n;return{term:(n={},n[t.dataField]=e.value,n)}}))}}),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n}},pc=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQueryHandler:nc,setQueryOptions:rc,setCustomQuery:oc})(cc),{componentType:x.toggleButton});cc.install=function(e){e.component(cc.name,pc)},cc.componentType=x.toggleButton;var dc=["options"],hc=ot.updateQuery,fc=ot.setQueryOptions,gc=ot.setCustomQuery,mc=ot.setDefaultQuery,yc=at.parseHits,vc=at.isEqual,bc=at.getCompositeAggsQuery,Oc=at.getResultStats,Cc=at.extractQueryFromCustomQuery,wc=at.getOptionsForCustomQuery,Sc={name:"ReactiveComponent",props:{componentId:Jn.stringRequired,aggregationField:Jn.string,aggregationSize:jt.number,size:jt.number,defaultQuery:Jn.func,customQuery:Jn.func,filterLabel:Jn.string,react:Jn.react,showFilter:jt.bool.def(!0),URLParams:jt.bool.def(!1),distinctField:Jn.string,distinctFieldConfig:Jn.props,index:jt.string,endpoint:Jn.endpointConfig},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,Sr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,i=t.showFilter,a=t.URLParams,s=t.distinctField,u=t.distinctFieldConfig,l=t.index;if(this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!s&&!u||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&l&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),n){var c=n(this.selectedValue,t),p=Cc(c),d=c?wc(c):null;d?this.setQueryOptions(r,ct({},d,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:p,value:this.selectedValue||null,label:o,showFilter:i,URLParams:a})}if(this.setQuery=function(n){var r=n.options,o=ht(n,dc),i=o.query;i&&i.query&&(i=i.query);var a=ct({},r,{query:i}),s=a;i&&i.id&&(s=i),e.setCustomQuery(t.componentId,s),r&&e.setQueryOptions(t.componentId,ct({},e.getAggsQuery(),r),!1),e.updateQuery(ct({},o,{query:a.query,componentId:t.componentId,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams}))},t.defaultQuery&&(this.internalComponent=t.componentId+"__internal"),this.internalComponent&&this.$props.defaultQuery){wr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var h=Cc(this.$defaultQuery),f=wc(this.$defaultQuery);f?this.setQueryOptions(this.internalComponent,ct({},f,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:h})}},watch:{hits:function(e,t){vc(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){vc(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){vc(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){vc(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){vc(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){vc(e,t)||this.$emit("data",this.getData())},total:function(e,t){vc(e,t)||this.$emit("data",this.getData())},time:function(e,t){vc(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!$r(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=Cc(this.$defaultQuery),r=wc(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,ct({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),wr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!$r(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=Cc(this.$customQuery),o=wc(this.$customQuery);o?this.setQueryOptions(n,ct({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),Sr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue),this.updateQuery({componentId:n,query:r})}}},render:function(){var e=arguments[0];try{var t=this.$scopedSlots.default,n=this.error,r=this.isLoading,o=this.selectedValue,i=ct({error:n,loading:r},this.getData(),{value:o,setQuery:this.setQuery});return e("div",[t(i)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:bc({props:this.$props,showTopHits:!0,value:this.selectedValue}).aggs}:{}},getData:function(){var e=this.hits,t=this.aggregations,n=this.aggregationData,r=this.promotedResults,o=this.rawData,i=yc(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(i=i.filter((function(e){return!a.includes(e._id)}))),i=[].concat(r,i)}return{data:i,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return Oc(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},$c=Br(gr((function(e,t){return{aggregations:e.aggregations[t.componentId]&&e.aggregations[t.componentId]||null,aggregationData:e.compositeAggregations[t.componentId]||[],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits||[],rawData:e.rawData[t.componentId],error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,promotedResults:e.promotedResults[t.componentId]||[],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:fc,updateQuery:hc,setCustomQuery:gc,setDefaultQuery:mc})(Sc),{componentType:x.reactiveComponent});Sc.install=function(e){e.component(Sc.name,$c)},Sc.componentType=x.reactiveComponent;var _c=ot.setValue,kc=ot.clearValues,Pc=ot.resetValuesToDefault,Ec=at.getClassName,Tc=at.handleA11yAction,Ic={name:"SelectedFilters",props:{className:jt.string.def(""),clearAllLabel:jt.string.def("Clear All"),innerClass:Jn.style,showClearAll:jt.bool.def(!0),title:Jn.title,resetToDefault:jt.bool.def(!1),clearAllBlacklistComponents:jt.array,resetToValues:jt.object},inject:{theme:{from:"theme_reactivesearch"}},render:function(){var e=this,t=arguments[0];if(this.$scopedSlots.default)return this.$scopedSlots.default({components:this.components,selectedValues:this.selectedValues,clearValues:this.clearValues,clearValue:this.clearValue,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var n=this.renderFilters(),r=!!n.length;return t(ps,{class:Bn(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(io,{class:Ec(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r&&n.length>1?t(Kn,{class:Ec(this.$props.innerClass,"button")||"",on:ct({},{click:this.clearValues,keypress:function(t){return Tc(t,(function(){return e.clearValues()}))}}),attrs:{tabIndex:"0"}},[this.$props.clearAllLabel]):null])},methods:{remove:function(e,t){void 0===t&&(t=null),this.setValue(e,null),this.$emit("clear",e,t)},clearValues:function(){var e=this.resetToDefault,t=this.resetToValues,n=this.clearAllBlacklistComponents;e?this.resetValuesToDefault(n):this.clearValuesAction(t,n),this.$emit("clear",t)},clearValue:function(e){var t=this.resetToDefault,n=this.resetToValues;t?this.resetValuesToDefault(this.components.filter((function(t){return t!==e}))):this.setValue(e,(null==n?void 0:n[e])||null),this.$emit("clear",null==n?void 0:n[e])},renderValue:function(e,t){var n=this;if(t&&e.length)return e.map((function(e){return n.renderValue(e)})).join(", ");if(e&&"object"==typeof e){var r=("string"==typeof e.label?e.label:e.value)||e.key||e.distance||null;return e.location&&(r=e.location+" - "+r),r}return e},renderFilterButton:function(e,t,n,r){var o=this.$createElement;return o(Kn,{class:Ec(this.$props.innerClass,"button")||"",key:t,on:ct({},{click:n,keypress:function(e){return Tc(e,n)}}),attrs:{tabIndex:"0"}},[o("span",[r]),o("span",["✕"])])},renderFilters:function(){var e=this,t=this.selectedValues;return Object.keys(t).filter((function(n){return e.components.includes(n)&&t[n].showFilter})).map((function(n,r){var o=t[n],i=o.label,a=o.value,s=Array.isArray(a);if(i&&(s&&a.length||!s&&a)){var u=e.renderValue(a,s);return e.renderFilterButton(n,n+"-"+(r+1),(function(){return e.remove(n,a)}),t[n].label+": "+Rr(u))}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},Ac=gr((function(e){return{components:e.components,selectedValues:e.selectedValues}}),{clearValuesAction:kc,setValue:_c,resetValuesToDefault:Pc})(Ic);Ic.install=function(e){e.component(Ic.name,Ac)};var Rc=ot.updateQuery,xc=ot.setQueryOptions,Lc=ot.setCustomQuery,jc=at.isEqual,Mc=at.checkValueChange,Qc=at.getClassName,Vc=at.getOptionsFromQuery,Dc={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.string,value:Jn.value,filterLabel:Jn.string,innerClass:Jn.style,react:Jn.react,showFilter:jt.bool.def(!0),showRadio:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),nestedField:Jn.string,index:jt.string,endpoint:Jn.endpointConfig},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){jc(e,t)||this.setValue(e)},selectedValue:function(e){jc(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0];return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:Qc(this.$props.innerClass,"title")},[this.$props.title]),t(Fu,{class:Qc(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(Vu,{class:Qc(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"radio",checked:r,show:e.$props.showRadio},on:{change:e.handleChange}}),t("label",{class:Qc(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r="string"==typeof e?Dc.parseValue(e,t):e;Mc(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Dc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Vc(n(e,t));Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.singleRange})},handleChange:function(e){void 0===this.$props.value?this.setValue(e.target.value):this.$emit("change",e.target.value)}},parseValue:function(e,t){return t.data.find((function(t){return t.label===e}))||null},defaultQuery:function(e,t){var n,r=null;e&&(r={range:(n={},n[t.dataField]={gte:e.start,lte:e.end,boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r}},Fc=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Rc,setQueryOptions:xc,setCustomQuery:Lc})(Dc),{componentType:x.singleRange});Dc.install=function(e){e.component(Dc.name,Fc)},Dc.componentType=x.singleRange;var Nc=ot.updateQuery,Uc=ot.setQueryOptions,qc=ot.setCustomQuery,Bc=at.isEqual,zc=at.checkValueChange,Hc=at.getClassName,Gc=at.getOptionsFromQuery,Wc={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:Jn.func,className:jt.string.def(""),componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.stringArray,value:Jn.stringArray,filterLabel:Jn.string,innerClass:Jn.style,react:Jn.react,showFilter:jt.bool.def(!0),showCheckbox:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),nestedField:Jn.string,index:jt.string,endpoint:Jn.endpointConfig},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=yr(this.selectedValues,e.target.value);this.$emit("change",t)}},selectItem:function(e,t,n,r){var o=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!1);var i=this.currentValue,a=this.selectedValues;if(e)if(t){i=Wc.parseValue(e,n);var s={};i.forEach((function(e){s[[e.label]]=!0})),a=r?s:ct({},a,s)}else if(a[e]){i=i.filter((function(t){return t.label!==e}));var u=a,l=(u[e],ht(u,[e].map(yt)));a=l}else{var c,p=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));i=[].concat(i,p),a=ct({},a,((c={})["object"==typeof e?e.label:e]=!0,c))}else i=[],a={};zc(n.componentId,i,n.beforeValueChange,(function(){o.currentValue=i,o.selectedValues=a,o.updateQueryHandler(i,n),o.$emit("valueChange",Object.keys(a)),o.$emit("value-change",Object.keys(a))}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Wc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Gc(n(e,t));Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:x.multiRange})}},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.selectItem(e,!0,void 0,!0)},value:function(e,t){Bc(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){Bc(this.$data.currentValue,e)||this.selectItem(e,!0,void 0,!0)},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.selectItem(this.selectedValue,!0):this.$props.value?this.selectItem(this.$props.value,!0):this.$props.defaultValue&&this.selectItem(this.$props.defaultValue,!0)},render:function(){var e=this,t=arguments[0];return t(ps,{class:this.$props.className},[this.$props.title&&t(io,{class:Hc(this.$props.innerClass,"title")},[this.$props.title]),t(Fu,{class:Hc(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(Du,{class:Hc(e.$props.innerClass,"checkbox"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"Checkbox",show:e.$props.showCheckbox},domProps:ct({},{checked:e.selectedValues[n.label]}),on:ct({},{click:e.handleClick})}),t("label",{class:Hc(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},parseValue:function(e,t){return e?t.data.filter((function(t){return e.includes(t.label)})):null},defaultQuery:function(e,t){var n,r,o=null;return e&&e.length&&(o={bool:{should:(n=t.dataField,r=e,r.length>0?r.map((function(e){var t;return{range:(t={},t[n]={gte:e.start,lte:e.end,boost:2},t)}})):null),minimum_should_match:1,boost:1}}),o&&t.nestedField?{query:{nested:{path:t.nestedField,query:o}}}:o}},Zc=Br(gr((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Nc,setQueryOptions:Uc,setCustomQuery:qc})(Wc),{componentType:x.multiRange});Wc.install=function(e){e.component(Wc.name,Zc)},Wc.componentType=x.multiRange;var Kc,Yc={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(io,oo([{},this.$props]),[t])},install:function(e){e.component(Yc.name,Yc)}},Xc=["src"],Jc={name:"ResultCardImage",props:{src:jt.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=ht(t,Xc);return e($o,oo([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(Jc.name,Jc)}},ep={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",oo([{},n]),[r])},install:function(e){e.component(ep.name,ep)}},tp=["href","target"],np={name:"ResultCard",components:{ResultCardTitle:Yc,ResultCardImage:Jc,ResultCardDescription:ep},props:{target:jt.string.def("_blank"),href:Jn.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,i=ht(n,tp);return e(_o,oo([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},i]),[t])},install:function(e){e.component(np.name,np),e.component(Yc.name,Yc),e.component(Jc.name,Jc),e.component(ep.name,ep)}},rp={name:"ResultListContent",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",oo([{},n]),[r])},install:function(e){e.component(rp.name,rp)}},op={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",oo([{},n]),[r])},install:function(e){e.component(op.name,op)}},ip=["src","small"],ap={name:"ResultListImage",props:{src:jt.string.isRequired,small:jt.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=ht(t,ip);return e(uo,oo([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(ap.name,ap)}},sp={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(io,oo([{},this.$props]),[t])},install:function(e){e.component(sp.name,sp)}},up=["href","target"],lp={name:"ResultList",props:{href:Jn.string,target:jt.string.def("_blank")},components:{ResultListContent:rp,ResultListDescription:op,ResultListImage:ap,ResultListTitle:sp},data:function(){return this.__state={hasImage:!1,isSmall:!1},this.__state},mounted:function(){var e=this.$slots.default.find((function(e){return e.componentOptions&&e.componentOptions.tag===ap.name}));e&&e.componentOptions&&e.componentOptions.propsData&&(this.hasImage=!0,e.componentOptions.propsData.small&&(this.isSmall=!0))},render:function(){var e=arguments[0],t=this.$props,n=t.href,r=t.target,o=ht(t,up),i=this.hasImage,a=this.isSmall,s=this.$slots.default;return e(lo,oo([{attrs:{href:n,image:i,small:a,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[s])},install:function(e){e.component(lp.name,lp),e.component(rp.name,rp),e.component(op.name,op),e.component(ap.name,ap),e.component(sp.name,sp)}},cp={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,i=r(),a=i.default;void 0===a&&(a=[]);var s=i.placeholder;return n._isMounted?a:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||s)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||s):a.length>0?a.map((function(){return e(!1)})):e(!1))}},pp=on("div")(Kc||(Kc=ft(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"]))),dp=function(){var e={NoSSR:cp};try{var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js"),t.onload=function(){var t=Mt["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}catch(e){console.error("Unable to load vue-slider",e)}return e},hp=ot.updateQuery,fp=ot.setQueryOptions,gp=ot.setCustomQuery,mp=at.checkValueChange,yp=at.getClassName,vp=at.getOptionsFromQuery,bp=at.isEqual,Op={name:"RangeSlider",components:dp(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:Jn.func,className:jt.string.def(""),range:jt.shape({start:jt.integer.def(0),end:jt.integer.def(10)}),rangeLabels:Jn.rangeLabels,componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.range,value:Jn.range,filterLabel:Jn.string,innerClass:Jn.style,react:Jn.react,showFilter:jt.bool.def(!0),showCheckbox:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),sliderOptions:jt.object.def({}),nestedField:Jn.string,index:jt.string,endpoint:Jn.endpointConfig},methods:{handleSliderChange:function(e){void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleSlider:function(){var e=this.$refs.slider.getValue();this.handleSliderChange(e)},handleChange:function(e,t){var n=this;void 0===t&&(t=this.$props);mp(t.componentId,{start:e[0],end:e[1]},t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler([e[0],e[1]],t),n.$emit("valueChange",{start:e[0],end:e[1]}),n.$emit("value-change",{start:e[0],end:e[1]})}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Op.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=vp(n(e,t));Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}var i=t.showFilter,a=t.range,s=a.start,u=a.end,l=e[0],c=e[1],p=l===s&&c===u;this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:i&&!p,URLParams:t.URLParams,componentType:x.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(Op.parseValue(e,this.$props))},value:function(e,t){bp(e,t)||this.handleChange(Op.parseValue(e,this.$props))},selectedValue:function(e){bp(this.$data.currentValue,e)||(this.handleChange(Op.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){this.$props.range||console.error("%crange is not defined. Read more about this at https://opensource.appbase.io/reactive-manual/vue/range-components/rangeslider.html#props","font-size: 12.5px;"),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){var e=this.$props,t=e.value,n=e.defaultValue,r=this.selectedValue;this.$props.range&&(Array.isArray(r)?this.handleChange(r):r?this.handleChange(Op.parseValue(r,this.$props)):t?this.handleChange(Op.parseValue(t,this.$props)):n&&this.handleChange(Op.parseValue(n,this.$props)))},render:function(){var e=arguments[0];return e(ps,{class:this.$props.className},[this.$props.title&&e(io,{class:yp(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(cp,[e(pp,{class:yp(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:this.currentValue,min:this.$props.range.start,max:this.$props.range.end,dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:ct({},this.$props.sliderOptions)}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:yp(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:yp(this.$props.innerClass,"label")||"range-label-right"},[this.$props.rangeLabels.end])])])]):null])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e,t){return e?Array.isArray(e)?e:[e.start,e.end]:t.range?[t.range.start,t.range.end]:[]}},Cp=Br(gr((function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:hp,setQueryOptions:fp,setCustomQuery:gp})(Op),{componentType:x.rangeSlider});Op.install=function(e){e.component(Op.name,Cp)},Op.componentType=x.rangeSlider;var wp=ot.addComponent,Sp=ot.removeComponent,$p=ot.watchComponent,_p=ot.updateQuery,kp=ot.setQueryListener,Pp=ot.setQueryOptions,Ep=ot.setComponentProps,Tp=ot.setCustomQuery,Ip=ot.updateComponentProps,Ap=at.checkValueChange,Rp=at.getClassName,xp=at.isEqual,Lp=at.checkSomePropChange,jp=at.extractQueryFromCustomQuery,Mp=at.getOptionsForCustomQuery,Qp={name:"DynamicRangeSlider",components:dp(),props:{beforeValueChange:Jn.func,className:jt.string.def(""),rangeLabels:Jn.func,componentId:Jn.stringRequired,customQuery:Jn.func,data:Jn.data,dataField:Jn.stringRequired,defaultValue:Jn.func,filterLabel:Jn.string,innerClass:Jn.style,react:Jn.react,showFilter:jt.bool.def(!0),destroyOnUnmount:jt.bool,showCheckbox:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),sliderOptions:jt.object.def({}),nestedField:Jn.string,index:jt.string,value:Jn.range,endpoint:Jn.endpointConfig},data:function(){return this.internalRangeComponent=this.$props.componentId+"__range__internal",{currentValue:null,stats:[]}},created:function(){var e=this;this.setQueryListener(this.$props.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),null),this.setComponentProps(this.componentId,this.$props,x.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,x.dynamicRangeSlider),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),Sr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},mounted:function(){this.setReact()},beforeMount:function(){var e=[];this.$$store&&(e=this.$$store.getState().components);var t=this.$props.value;(this.destroyOnUnmount||-1===e.indexOf(this.componentId))&&(this.addComponent(this.componentId),this.addComponent(this.internalRangeComponent),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue?this.handleChange(Qp.parseValue(this.selectedValue,this.$props)):t&&this.handleChange(Qp.parseValue(t,this.$props)),this.updateRangeQueryOptions())},beforeUpdate:function(){this.currentValue||this.setDefaultValue(this.range)},beforeDestroy:function(){this.destroyOnUnmount&&(this.removeComponent(this.$props.componentId),this.removeComponent(this.internalRangeComponent))},methods:{isControlled:function(){return!(!this.$props.value||!this.$listeners)},setDefaultValue:function(e){var t=e.start,n=e.end;if(this.$props.defaultValue){var r=this.$props.defaultValue(t,n),o=r.start,i=r.end;this.handleChange([o,i])}else this.isControlled()?this.handleChange(Qp.parseValue(this.$props.value),"change"):this.currentValue=[t,n]},setReact:function(){this.$props.react?(this.watchComponent(this.internalRangeComponent,this.$props.react),this.watchComponent(this.$props.componentId,this.$props.react)):(this.watchComponent(this.internalRangeComponent,{}),this.watchComponent(this.$props.componentId,{}))},rangeQuery:function(){return{min:{min:{field:this.$props.dataField}},max:{max:{field:this.$props.dataField}}}},updateRangeQueryOptions:function(){var e,t={};this.$props.nestedField?((e={})[this.$props.nestedField]={nested:{path:this.$props.nestedField},aggs:this.rangeQuery()},t=e):t=this.rangeQuery();this.setQueryOptions(this.internalRangeComponent,{aggs:t})},handleSlider:function(){var e=this.$refs.slider.getValue();void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleChange:function(e){var t=this,n=[this.range?Math.max(this.range.start,e[0]):e[0],this.range?Math.min(this.range.end,e[1]):e[1]];Ap(this.$props.componentId,{start:n[0],end:n[1]},this.$props.beforeValueChange,(function(){t.currentValue=n,t.updateQueryHandler(n,t.$props),t.$emit("valueChange",{start:n[0],end:n[1]}),t.$emit("value-change",{start:n[0],end:n[1]})}))},updateQueryHandler:function(e){var t=Qp.defaultQuery(e,this.$props);if(this.$props.customQuery){var n=this.$props.customQuery(e,this.$props),r=jp(n);r&&(t=r);var o=Mp(n);Sr(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var i=this.range||{start:e[0],end:e[1]},a=i.start,s=i.end,u=e[0],l=e[1],c=u===a&&l===s;this.updateQuery({componentId:this.$props.componentId,query:t,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!c,URLParams:this.$props.URLParams,componentType:x.dynamicRangeSlider})}},computed:{labels:function(){return this.rangeLabels?this.rangeLabels(this.range.start,this.range.end):null}},watch:{$props:{deep:!0,handler:function(e){var t=this,n=Or(e);Lp(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,x.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,x.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!xp(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.$emit("change",t),this.handleChange(Qp.parseValue(t,this.$props))}},range:function(e,t){if(!xp(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],i=t||{},a=i.start,s=i.end,u=r===a?e.start:r,l=o===s?e.end:o;this.handleChange([u,l])}},customQuery:function(e,t){$r(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)},value:function(e,t){xp(e,t)||this.handleChange(Qp.parseValue(e,this.$props))}},render:function(){var e=arguments[0];if(!this.range||!this.currentValue)return null;var t=this.range,n=t.start,r=t.end;return e(ps,{class:this.$props.className},[this.$props.title&&e(io,{class:Rp(this.$props.innerClass,"title")},[this.$props.title]),e(cp,[e(pp,{class:Rp(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:[Math.floor(Math.max(n,this.currentValue[0])),Math.ceil(Math.min(r,this.currentValue[1]))],min:Math.floor(Math.min(n,this.currentValue[0])),max:Math.ceil(Math.max(r,this.currentValue[1])),dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:ct({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:Rp(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:Rp(this.$props.innerClass,"label")||"range-label-right"},[this.labels.end])]):null])])])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e){return e?Array.isArray(e)?e:[e.start,e.end]:[]},hasInternalComponent:function(){return!0}},Vp=gr((function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],i=e.aggregations[t.componentId+"__range__internal"];return t.nestedField?(o=o&&n[t.dataField][t.nestedField]&&n[t.dataField][t.nestedField].buckets?n[t.dataField][t.nestedField].buckets:[],i=i&&r[t.nestedField].min?{start:r[t.nestedField].min.value,end:r[t.nestedField].max.value}:null):(o=o&&n[t.dataField].buckets?n[t.dataField].buckets:[],i=i&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:i,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{addComponent:wp,removeComponent:Sp,updateQuery:_p,watchComponent:$p,setQueryListener:kp,setQueryOptions:Pp,setComponentProps:Ep,setCustomQuery:Tp,updateComponentProps:Ip})(Qp);Qp.install=function(e){e.component(Qp.name,Vp)},Qp.componentType=x.dynamicRangeSlider;var Dp=at.getSearchState,Fp=function(e){return void 0===e&&(e={}),ct({},e,{props:e.componentProps})},Np=function(e,t){void 0===t&&(t={});var n=t,r=n.componentIds,o=n.excludeComponentIds;if(r){var i;if("string"==typeof r)return(i={})[r]=e[r],i;if(Array.isArray(r)&&r.length){var a={};return r.forEach((function(t){a[t]=e[t]})),a}}var s={};return t.includeInternalComponents?s=e:Object.keys(e).forEach((function(t){t.endsWith("internal")||t.endsWith("active")||t.endsWith("timestamp")||(s[t]=e[t])})),o&&("string"==typeof o&&Object.keys(e).forEach((function(e){e===o&&delete s[e]})),Array.isArray(o)&&o.length&&Object.keys(e).forEach((function(e){o.includes(e)&&delete s[e]}))),s},Up=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return ct({},n,((o={})[r]=Object.keys(e[r]).filter((function(e){return t.includes(e)})).reduce((function(t,n){return t[n]=e[r][n],t}),{}),o))}),{})},qp={name:"StateProvider",props:{onChange:jt.func,componentIds:jt.oneOfType([jt.string,jt.arrayOf(jt.string)]),includeKeys:jt.arrayOf(jt.string).def(["hits","value","aggregations","error"]),strict:jt.bool.def(!0),includeInternalComponents:jt.bool.def(!1),excludeComponentIds:jt.oneOfType([jt.string,jt.arrayOf(jt.string)])},data:function(){return this.__state={searchState:null},this.__state},created:function(){this.searchState=Up(Dp(Fp(this.searchStateProps)),this.includeKeys)},computed:{searchStateProps:function(){return{selectedValues:this.selectedValues||{},queryLog:this.queryLog||{},dependencyTree:this.dependencyTree||{},componentProps:this.componentProps||{},hits:this.hits||{},aggregations:this.aggregations||{},isLoading:this.isLoading||{},error:this.error||{},promotedResults:this.promotedResults||{},rawData:this.rawData||{}}}},watch:{searchState:function(e,t){null!=t&&this.isStateChanged(e,t)&&this.$emit("change",t,e)},selectedValues:function(e,t){this.calculateSearchState(e,t)},queryLog:function(e,t){this.calculateSearchState(e,t)},dependencyTree:function(e,t){this.calculateSearchState(e,t)},componentProps:function(e,t){this.calculateSearchState(e,t)},hits:function(e,t){this.calculateSearchState(e,t)},aggregations:function(e,t){this.calculateSearchState(e,t)},isLoading:function(e,t){this.calculateSearchState(e,t)},error:function(e,t){this.calculateSearchState(e,t)},componentIds:function(e,t){this.calculateSearchState(e,t)},excludeComponentIds:function(e,t){this.calculateSearchState(e,t)},includeKeys:function(e,t){this.calculateSearchState(e,t)},promotedResults:function(e,t){this.calculateSearchState(e,t)},rawData:function(e,t){this.calculateSearchState(e,t)},customData:function(e,t){this.calculateSearchState(e,t)},settings:function(e,t){this.calculateSearchState(e,t)}},methods:{isStateChanged:function(e,t){return JSON.stringify(t)!==JSON.stringify(e)},calculateSearchState:function(e,t){this.isStateChanged(e,t)&&(this.searchState=Up(Dp(Fp(this.searchStateProps)),this.includeKeys))},setSearchState:function(e){void 0===e&&(e={});var t=this.components,n={};t.filter((function(e){return!Ve(e)})).forEach((function(t){n[t]=t in e?e[t]:null})),this.setValues(n)}},render:function(){var e=this.searchState,t=this.$scopedSlots.default;return t?t({searchState:e,setSearchState:this.setSearchState}):null}},Bp=gr((function(e,t){return{selectedValues:Np(e.selectedValues,t),queryLog:Np(e.queryLog,t),dependencyTree:Np(e.dependencyTree,t),componentProps:Np(e.props,t),hits:Np(e.hits,t),aggregations:Np(e.aggregations,t),isLoading:Np(e.isLoading,t),error:Np(e.error,t),promotedResults:Np(e.promotedResults,t),customData:Np(e.customData,t),settings:Np(e.settings,t),rawData:Np(e.rawData,t),components:Np(e.components,t)}}),{setValues:Ue})(qp);function zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zp(Object(n),!0).forEach((function(t){Wp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gp(e){return(Gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zp(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}function Kp(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Yp(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Xp(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}function Jp(e){var t=e.addEventListener?e.addEventListener:e.attachEvent;function n(n,r){if("keydown"===n){var o=r;r=function(t){var n=document?document.getElementsByClassName("pac-item-selected").length>0:null;if(13===t.which&&!n){var r=document.createEvent("Event");r.keyCode=40,r.which=40,o.apply(e,[r])}o.apply(e,[t])}}t.apply(e,[n,r])}e.addEventListener=n,e.attachEvent=n}function ed(e){var t=0;e((function(){t+=1}),(function(){t=Math.max(0,t-1)}),(function(){return 0===t}))}function td(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;function i(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,i,{immediate:r})}))}function nd(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],i=o.twoWay,a=o.type,s=o.trackProperties;if(!o.noBind){var u="set".concat(Kp(r)),l="get".concat(Kp(r)),c="".concat(r.toLowerCase(),"_changed"),p=e[r];if(void 0===t[u])throw new Error("".concat(u," is not a method of (the Maps object corresponding to) ").concat(e.$options._componentTag));a===Object&&s?td(e,s.map((function(e){return"".concat(r,".").concat(e)})),(function(){t[u](e[r])}),void 0!==e[r]):e.$watch(r,(function(){var n=e[r];t[u](n)}),{immediate:void 0!==p,deep:a===Object}),i&&(e.$gmapOptions.autoBindAllEvents||e.$listeners[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}qp.install=function(e){e.component(qp.name,Bp)};var rd={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},od={circleOptions:{type:Object,twoWay:!1,noBind:!0},markerOptions:{type:Object,twoWay:!1,noBind:!0},polygonOptions:{type:Object,twoWay:!1,noBind:!0},polylineOptions:{type:Object,twoWay:!1,noBind:!0},rectangleOptions:{type:Object,twoWay:!1,noBind:!0}},id={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},ad={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},sd={clickable:{type:Boolean,twoWay:!0,noBind:!0},map:{type:Object,twoWay:!0},preserveViewport:{type:Boolean,twoWay:!0,noBind:!0},screenOverlays:{type:Boolean,twoWay:!0,noBind:!0},suppressInfoWindows:{type:Boolean,twoWay:!0,noBind:!0},url:{type:String,twoWay:!1},zIndex:{type:Number,twoWay:!0},options:{type:Object,default:function(){return{}}}},ud={center:{required:!0,twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},ld={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}},cd={zoom:{twoWay:!0,type:Number},pov:{twoWay:!0,type:Object,trackProperties:["pitch","heading"]},position:{twoWay:!0,type:Object,noBind:!0},pano:{twoWay:!0,type:String},motionTracking:{twoWay:!1,type:Boolean},visible:{twoWay:!0,type:Boolean,default:!0},options:{twoWay:!1,type:Object,default:function(){return{}}}},pd={clickable:{type:Boolean,noBind:!0},draggable:{type:Boolean},editable:{type:Boolean},fillColor:{type:String,noBind:!0},fillOpacity:{type:Number,noBind:!0},strokeColor:{type:String,noBind:!0},strokeOpacity:{type:Number,noBind:!0},strokePosition:{type:Number,noBind:!0},strokeWeight:{type:Number,noBind:!0},visible:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},dd={clickable:{type:Boolean,noBind:!0},draggable:{type:Boolean},editable:{type:Boolean},strokeColor:{type:String,noBind:!0},strokeOpacity:{type:Number,noBind:!0},strokeWeight:{type:Number,noBind:!0},visible:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},hd={bounds:{type:Object,twoWay:!0},clickable:{type:Boolean,noBind:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,noBind:!0},fillOpacity:{type:Number,noBind:!0},strokeColor:{type:String,noBind:!0},strokeOpacity:{type:Number,noBind:!0},strokePosition:{type:Number,noBind:!0},strokeWeight:{type:Number,noBind:!0},visible:{type:Boolean},options:{type:Object,twoWay:!1}},fd={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},clickable:{type:Boolean,noBind:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,noBind:!0},fillOpacity:{type:Number,noBind:!0},strokeColor:{type:String,noBind:!0},strokeOpacity:{type:Number,noBind:!0},strokePosition:{type:Number,noBind:!0},strokeWeight:{type:Number,noBind:!0},visible:{type:Boolean},options:{type:Object,twoWay:!1}},gd={bounds:{type:Object},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:function(){return[]}},placeholder:{required:!1,type:String},className:{required:!1,type:String},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}},md={algorithm:{type:Object},onClusterClick:{type:Function},renderer:{type:Object},options:{type:Object}};function yd(e,t,n,r,o,i,a,s,u,l){"boolean"!=typeof a&&(u=s,s=a,a=!1);var c,p="function"==typeof n?n.options:n;if(e&&e.render&&(p.render=e.render,p.staticRenderFns=e.staticRenderFns,p._compiled=!0,o&&(p.functional=!0)),r&&(p._scopeId=r),i?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,u(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},p._ssrRegister=c):t&&(c=a?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),c)if(p.functional){var d=p.render;p.render=function(e,t){return c.call(t),d(e,t)}}else{var h=p.beforeCreate;p.beforeCreate=h?[].concat(h,c):[c]}return n}var vd=yd({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._t("default",(function(){return[n("input",e._g(e._b({ref:"input"},"input",e.$attrs,!1),e.$listeners))]}),{attrs:e.$attrs,listeners:e.$listeners})],2)},staticRenderFns:[]},void 0,{name:"AutocompleteInput",props:{bounds:{type:Object,default:void 0},componentRestrictions:{type:Object,default:void 0},types:{type:Array,default:void 0},selectFirstOnEnter:{required:!1,type:Boolean,default:!1},slotRefName:{required:!1,type:String,default:"input"},childRefName:{required:!1,type:String,default:"input"},options:{type:Object,default:void 0},setFieldsTo:{required:!1,type:Array,default:null}},watch:{componentRestrictions:function(e){void 0!==e&&this.$autocomplete.setComponentRestrictions(e)}},mounted:function(){var e=this;return function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ut(i,r,o,a,s,"next",e)}function s(e){ut(i,r,o,a,s,"throw",e)}a(void 0)}))}}(st().mark((function t(){var n,r;return st().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$gmapApiPromiseLazy();case 2:if(n=null,!e.$scopedSlots.default){t.next=9;break}if(Object.keys(e.$scopedSlots.default()[0].context.$refs).length){t.next=6;break}throw new Error("If you use the slot input you must add a ref to the element that you will use as the input, and if you use a vue component, eg: v-text-field, etc, you need to set the childRefName indicating what is the ref name of the html input elemnt behind your component.");case 6:(n=e.$scopedSlots.default()[0].context.$refs[e.slotRefName])&&n.$refs&&(n=n.$refs[e.childRefName]),n&&(e.$refs.input=n);case 9:if(e.selectFirstOnEnter&&Jp(e.$refs.input),"function"==typeof google.maps.places.Autocomplete){t.next=12;break}throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");case 12:r=ct({},Yp(e,rd),e.options),e.$autocomplete=new google.maps.places.Autocomplete(e.$refs.input,r),nd(e,e.$autocomplete,rd),e.setFieldsTo&&e.$autocomplete.setFields(e.setFieldsTo),e.$autocomplete.addListener("place_changed",(function(){e.$emit("place_changed",e.$autocomplete.getPlace())}));case 17:case"end":return t.stop()}}),t)})))()},destroyed:function(){this.$$autocomplete&&this.$$autocomplete.setMap&&this.$$autocomplete.setMap(null)}},void 0,!1,void 0,!1,void 0,void 0,void 0),bd={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then((function(t){e.$map=t})),{}}},Od=["options"],Cd=yd({},void 0,{name:"CircleShape",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,fd)),o=(r.options,ht(r,Od));return e.$circleObject=new google.maps.Circle(o),nd(e,e.$circleObject,fd),Zp(e,e.$circleObject,t),e.$circleObject})).catch((function(e){throw e}));return this.$circlePromise=n,{$circlePromise:n}},props:{center:{type:Object,required:!0},radius:{type:Number,default:10},clickable:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,default:""},fillOpacity:{type:Number,default:1},strokeColor:{type:String,default:""},strokeOpacity:{type:Number,default:1},strokePosition:{type:Number,default:0},strokeWeight:{type:Number,default:1},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0}},destroyed:function(){this.$circleObject&&this.$circleObject.setMap&&this.$circleObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0);function wd(e,t,n,r,o,i){if(!(o-r<=n)){var a=r+o>>1;!function e(t,n,r,o,i,a){for(;i>o;){if(i-o>600){var s=i-o+1,u=r-o+1,l=Math.log(s),c=.5*Math.exp(2*l/3),p=.5*Math.sqrt(l*c*(s-c)/s)*(u-s/2<0?-1:1),d=Math.max(o,Math.floor(r-u*c/s+p)),h=Math.min(i,Math.floor(r+(s-u)*c/s+p));e(t,n,r,d,h,a)}var f=n[2*r+a],g=o,m=i;for(Sd(t,n,o,r),n[2*i+a]>f&&Sd(t,n,o,i);g<m;){for(Sd(t,n,g,m),g++,m--;n[2*g+a]<f;)g++;for(;n[2*m+a]>f;)m--}n[2*o+a]===f?Sd(t,n,o,m):(m++,Sd(t,n,m,i)),m<=r&&(o=m+1),r<=m&&(i=m-1)}}(e,t,a,r,o,i%2),wd(e,t,n,r,a-1,i+1),wd(e,t,n,a+1,o,i+1)}}function Sd(e,t,n,r){$d(e,n,r),$d(t,2*n,2*r),$d(t,2*n+1,2*r+1)}function $d(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _d(e,t,n,r){var o=e-n,i=t-r;return o*o+i*i}var kd,Pd=function(e){return e[0]},Ed=function(e){return e[1]},Td=function(){function e(e,t,n,r,o){void 0===t&&(t=Pd),void 0===n&&(n=Ed),void 0===r&&(r=64),void 0===o&&(o=Float64Array),this.nodeSize=r,this.points=e;for(var i=e.length<65536?Uint16Array:Uint32Array,a=this.ids=new i(e.length),s=this.coords=new o(2*e.length),u=0;u<e.length;u++)a[u]=u,s[2*u]=t(e[u]),s[2*u+1]=n(e[u]);wd(a,s,r,0,a.length-1,0)}var t=e.prototype;return t.range=function(e,t,n,r){return function(e,t,n,r,o,i,a){for(var s,u,l=[0,e.length-1,0],c=[];l.length;){var p=l.pop(),d=l.pop(),h=l.pop();if(d-h<=a)for(var f=h;f<=d;f++)s=t[2*f],u=t[2*f+1],s>=n&&s<=o&&u>=r&&u<=i&&c.push(e[f]);else{var g=Math.floor((h+d)/2);s=t[2*g],u=t[2*g+1],s>=n&&s<=o&&u>=r&&u<=i&&c.push(e[g]);var m=(p+1)%2;(0===p?n<=s:r<=u)&&(l.push(h),l.push(g-1),l.push(m)),(0===p?o>=s:i>=u)&&(l.push(g+1),l.push(d),l.push(m))}}return c}(this.ids,this.coords,e,t,n,r,this.nodeSize)},t.within=function(e,t,n){return function(e,t,n,r,o,i){for(var a=[0,e.length-1,0],s=[],u=o*o;a.length;){var l=a.pop(),c=a.pop(),p=a.pop();if(c-p<=i)for(var d=p;d<=c;d++)_d(t[2*d],t[2*d+1],n,r)<=u&&s.push(e[d]);else{var h=Math.floor((p+c)/2),f=t[2*h],g=t[2*h+1];_d(f,g,n,r)<=u&&s.push(e[h]);var m=(l+1)%2;(0===l?n-o<=f:r-o<=g)&&(a.push(p),a.push(h-1),a.push(m)),(0===l?n+o>=f:r+o>=g)&&(a.push(h+1),a.push(c),a.push(m))}}return s}(this.ids,this.coords,e,t,n,this.nodeSize)},e}(),Id={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},Ad=Math.fround||(kd=new Float32Array(1),function(e){return kd[0]=+e,kd[0]}),Rd=function(){function e(e){this.options=Vd(Object.create(Id),e),this.trees=new Array(this.options.maxZoom+1)}var t=e.prototype;return t.load=function(e){var t=this.options,n=t.log,r=t.minZoom,o=t.maxZoom,i=t.nodeSize;n&&console.time("total time");var a="prepare "+e.length+" points";n&&console.time(a),this.points=e;for(var s,u,l,c,p,d=[],h=0;h<e.length;h++)e[h].geometry&&d.push((s=e[h],u=h,l=void 0,c=void 0,p=void 0,l=s.geometry.coordinates,c=l[0],p=l[1],{x:Ad(Md(c)),y:Ad(Qd(p)),zoom:1/0,index:u,parentId:-1}));this.trees[o+1]=new Td(d,Dd,Fd,i,Float32Array),n&&console.timeEnd(a);for(var f=o;f>=r;f--){var g=+Date.now();d=this._cluster(d,f),this.trees[f]=new Td(d,Dd,Fd,i,Float32Array),n&&console.log("z%d: %d clusters in %dms",f,d.length,+Date.now()-g)}return n&&console.timeEnd("total time"),this},t.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),o=180===e[2]?180:((e[2]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){var a=this.getClusters([n,r,180,i],t),s=this.getClusters([-180,r,o,i],t);return a.concat(s)}for(var u,l=this.trees[this._limitZoom(t)],c=[],p=mt(l.range(Md(n),Qd(i),Md(o),Qd(r)));!(u=p()).done;){var d=u.value,h=l.points[d];c.push(h.numPoints?Ld(h):this.points[h.index])}return c},t.getChildren=function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var i=o.points[t];if(!i)throw new Error(r);for(var a,s=this.options.radius/(this.options.extent*Math.pow(2,n-1)),u=[],l=mt(o.within(i.x,i.y,s));!(a=l()).done;){var c=a.value,p=o.points[c];p.parentId===e&&u.push(p.numPoints?Ld(p):this.points[p.index])}if(0===u.length)throw new Error(r);return u},t.getLeaves=function(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r},t.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],o=Math.pow(2,e),i=this.options,a=i.extent,s=i.radius/a,u=(n-s)/o,l=(n+1+s)/o,c={features:[]};return this._addTileFeatures(r.range((t-s)/o,u,(t+1+s)/o,l),r.points,t,n,o,c),0===t&&this._addTileFeatures(r.range(1-s/o,u,1,l),r.points,o,n,o,c),t===o-1&&this._addTileFeatures(r.range(0,u,s/o,l),r.points,-1,n,o,c),c.features.length?c:null},t.getClusterExpansionZoom=function(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},t._appendLeaves=function(e,t,n,r,o){for(var i,a=mt(this.getChildren(t));!(i=a()).done;){var s=i.value,u=s.properties;if(u&&u.cluster?o+u.point_count<=r?o+=u.point_count:o=this._appendLeaves(e,u.cluster_id,n,r,o):o<r?o++:e.push(s),e.length===n)break}return o},t._addTileFeatures=function(e,t,n,r,o,i){for(var a,s=mt(e);!(a=s()).done;){var u=t[a.value],l=u.numPoints,c=void 0,p=void 0,d=void 0;if(l)c=jd(u),p=u.x,d=u.y;else{var h=this.points[u.index];c=h.properties,p=Md(h.geometry.coordinates[0]),d=Qd(h.geometry.coordinates[1])}var f={type:1,geometry:[[Math.round(this.options.extent*(p*o-n)),Math.round(this.options.extent*(d*o-r))]],tags:c},g=void 0;l?g=u.id:this.options.generateId?g=u.index:this.points[u.index].id&&(g=this.points[u.index].id),void 0!==g&&(f.id=g),i.features.push(f)}},t._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))},t._cluster=function(e,t){for(var n=[],r=this.options,o=r.radius,i=r.extent,a=r.reduce,s=r.minPoints,u=o/(i*Math.pow(2,t)),l=0;l<e.length;l++){var c=e[l];if(!(c.zoom<=t)){c.zoom=t;for(var p,d=this.trees[t+1],h=d.within(c.x,c.y,u),f=c.numPoints||1,g=f,m=mt(h);!(p=m()).done;){var y=p.value,v=d.points[y];v.zoom>t&&(g+=v.numPoints||1)}if(g>f&&g>=s){for(var b,O=c.x*f,C=c.y*f,w=a&&f>1?this._map(c,!0):null,S=(l<<5)+(t+1)+this.points.length,$=mt(h);!(b=$()).done;){var _=b.value,k=d.points[_];if(!(k.zoom<=t)){k.zoom=t;var P=k.numPoints||1;O+=k.x*P,C+=k.y*P,k.parentId=S,a&&(w||(w=this._map(c,!0)),a(w,this._map(k)))}}c.parentId=S,n.push(xd(O/g,C/g,S,g,w))}else if(n.push(c),g>1)for(var E,T=mt(h);!(E=T()).done;){var I=E.value,A=d.points[I];A.zoom<=t||(A.zoom=t,n.push(A))}}}return n},t._getOriginId=function(e){return e-this.points.length>>5},t._getOriginZoom=function(e){return(e-this.points.length)%32},t._map=function(e,t){if(e.numPoints)return t?Vd({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?Vd({},r):r},e}();function xd(e,t,n,r,o){return{x:Ad(e),y:Ad(t),zoom:1/0,id:n,parentId:-1,numPoints:r,properties:o}}function Ld(e){return{type:"Feature",id:e.id,properties:jd(e),geometry:{type:"Point",coordinates:[(r=e.x,360*(r-.5)),(t=e.y,n=(180-360*t)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var t,n,r}function jd(e){var t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return Vd(Vd({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function Md(e){return e/360+.5}function Qd(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function Vd(e,t){for(var n in t)e[n]=t[n];return e}function Dd(e){return e.x}function Fd(e){return e.y}var Nd=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};
29
+ */function _defineProperty$1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_defineProperty$1(e,t,n[t])}))}return e}var VueHighlightWords={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Object,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(e){return e.every((function(e){return"string"==typeof e}))},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(e,t){var n,r=t.props,o=r.activeClassName,a=void 0===o?"":o,s=r.activeIndex,i=void 0===s?-1:s,u=r.activeStyle,l=r.autoEscape,c=r.caseSensitive,p=void 0!==c&&c,d=r.findChunks,h=r.highlightClassName,f=void 0===h?"":h,m=r.highlightStyle,g=void 0===m?{}:m,y=r.highlightTag,v=void 0===y?"mark":y,b=r.sanitize,_=r.searchWords,$=r.textToHighlight,C=r.unhighlightClassName,O=void 0===C?"":C,S=r.unhighlightStyle,w=t.data,T=dist_1({autoEscape:l,caseSensitive:p,findChunks:d,sanitize:b,searchWords:_,textToHighlight:$}),P=v,E=-1,k="";return e("span",_objectSpread({},w),T.map((function(t,r){var o=$.substr(t.start,t.end-t.start);if(t.highlight){var s=++E===+i;k="".concat(f," ").concat(s?a:""),n=!0===s&&null!=u?Object.assign({},g,u):g;var l={class:k,key:r,style:n};return"string"!=typeof P&&(l.props={highlightIndex:E}),w.scopedSlots?e(P,l,[w.scopedSlots.default({children:o,highlightIndex:E})]):e(P,l,o)}return e("span",{class:O,key:r,style:S},o)})))}},_templateObject$f,highlightStyle={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},PredictiveSuggestion=styled("span")(_templateObject$f||(_templateObject$f=_taggedTemplateLiteralLoose(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),SuggestionItem={name:"SuggestionItem",props:{currentValue:types.string,suggestion:types.any},render:function(){var e=this,t=this.suggestion,n=t.label,r=t.value,o=t.title,a=t.description,s=t.image,i=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?vue.createVNode("div",{class:"trim"},[l||!i&&!u?vue.createVNode(VueHighlightWords,{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:highlightStyle},null):vue.createVNode(PredictiveSuggestion,{innerHTML:n},null)]):n:o||s||a?vue.createVNode(Flex,{alignItems:"center",css:{width:"100%"}},{default:function(){return[s&&vue.createVNode("div",{css:{margin:"auto",marginRight:10}},[vue.createVNode("img",{src:s,alt:" ",height:"50px",width:"50px",css:{objectFit:"contain"}},null)]),vue.createVNode(Flex,{direction:"column",css:{width:s?"calc(100% - 60px)":"100%"}},{default:function(){return[o&&vue.createVNode("div",{class:"trim"},[vue.createVNode(VueHighlightWords,{searchWords:e.currentValue.split(" "),textToHighlight:o,highlightStyle:highlightStyle,class:css({fontSize:"1rem"})},null)]),a&&vue.createVNode("div",{class:cx("trim",css({marginTop:3}))},[vue.createVNode(VueHighlightWords,{searchWords:e.currentValue.split(" "),textToHighlight:a,highlightStyle:highlightStyle},null)])]}})]}}):r}},SearchSvg={name:"SearchSvg",props:["styles"],render:function(){return vue.createVNode("svg",{alt:"Search",class:"search-icon",height:"12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15",style:_extends({transform:"scale(1.35)",position:"relative"},this.$props.styles?this.$props.styles:{})},[vue.createVNode("title",null,[vue.createTextVNode("Search")]),vue.createVNode("path",{d:"M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,0,0,1,6.02945,10.20327Zm9.69195,4.2199L10.8989,9.59979A5.88021,5.88021,0,0,0,12.058,6.02856,6.00467,6.00467,0,1,0,9.59979,10.8989l4.82338,4.82338a.89729.89729,0,0,0,1.29912,0,.89749.89749,0,0,0-.00087-1.29909Z"},null)])}},CancelSvg=function(){return vue.createVNode("svg",{alt:"Clear",class:"cancel-icon",xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 24 24",width:"20px"},[vue.createVNode("title",null,[vue.createTextVNode("Clear")]),vue.createVNode("path",{d:"M0 0h24v24H0V0z",fill:"none"},null),vue.createVNode("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},null)])},_templateObject$g;createGlobalStyle(_templateObject$g||(_templateObject$g=_taggedTemplateLiteralLoose(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"])));var MicSvg={name:"MicSvg",props:["className"],render:function(){return vue.createVNode("svg",{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_xS0FRzQjJ",width:28,height:28,className:this.$props.className,style:{transform:"scale(1.5)"}},[vue.createVNode("g",{id:"el_TvxDfTAtKp",fillRule:"evenodd"},[vue.createVNode("g",{id:"el_D93PK3GbmJ",fillRule:"nonzero",style:{fill:"#595959"}},[vue.createVNode("path",{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uly3EwA2O3"},null),vue.createVNode("path",{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_tnDbR4ytu4"},null)])])])}},_templateObject$h;createGlobalStyle(_templateObject$h||(_templateObject$h=_taggedTemplateLiteralLoose(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"])));var MuteSvg={name:"MuteSvg",props:["className"],render:function(){return vue.createVNode("svg",{style:{transform:"scale(1.5)"},viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_D1rEpH2zj",width:28,height:28,className:this.$props.className},[vue.createVNode("g",{id:"el_X81iT9kZYo",fillRule:"evenodd"},[vue.createVNode("g",{id:"el_gMpyalCphp"},[vue.createVNode("path",{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_c7H-3u-D4l",fillRule:"nonzero",style:{fill:"#595959"}},null),vue.createVNode("path",{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_qhFcdAAFwo",fillRule:"nonzero",style:{fill:"#595959"}},null),vue.createVNode("path",{d:"M11.5,206.5 L142.5,12.5",id:"el_M8X8g37WOI",strokeLinecap:"round",strokeLinejoin:"round"},null)])])])}},_templateObject$i;createGlobalStyle(_templateObject$i||(_templateObject$i=_taggedTemplateLiteralLoose(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"])));var ListenSvg={name:"ListenSvg",props:["className"],render:function(){return vue.createVNode("svg",{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"el_hiibMG0x-",width:28,height:29,className:this.$props.className,style:{transform:"scale(1.5)"}},[vue.createVNode("defs",null,[vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-1"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-3"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-5"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-7"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-9"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-11"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-13"},null),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-15"},null)]),vue.createVNode("g",{id:"el_QJeJ_2CDw5",fillRule:"evenodd"},[vue.createVNode("g",{id:"el_UYYCfubTRf"},[vue.createVNode("path",{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uzZNtK32Zi",fillRule:"nonzero",style:{fill:"#0B6AFF"}},null),vue.createVNode("path",{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,0 76.9864699,0 C55.8825877,0 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_EYKQ2N9Kgy",fillRule:"nonzero"},null),vue.createVNode("g",{id:"el_6SDP2LAgKC"},[vue.createVNode("mask",{id:"mask-2",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-1"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_-Vm65Ltfy7",fillRule:"nonzero",mask:"url(#mask-2)"},null),vue.createVNode("rect",{id:"el_q04iZcSim4",mask:"url(#mask-2)",x:"0.279",width:"77",height:"130"},null)]),vue.createVNode("g",{id:"el_6WKby7wXqV"},[vue.createVNode("mask",{id:"mask-4",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-3"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_9bggsfQOtU",fillRule:"nonzero",mask:"url(#mask-4)"},null),vue.createVNode("rect",{id:"el_NKxqi9eIym",mask:"url(#mask-4)",x:"0.279",width:"77",height:"115"},null)]),vue.createVNode("g",{id:"el_Wi-my975tM"},[vue.createVNode("mask",{id:"mask-6",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-5"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_zclQ34fvf7",fillRule:"nonzero",mask:"url(#mask-6)"},null),vue.createVNode("rect",{id:"el_1OsvRT8HkeZ",mask:"url(#mask-6)",x:"0.279",width:"77",height:"100"},null)]),vue.createVNode("g",{id:"el_DkfFFTaFxy8"},[vue.createVNode("mask",{id:"mask-8",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-7"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_aa9sjx4H0vA",fillRule:"nonzero",mask:"url(#mask-8)"},null),vue.createVNode("rect",{id:"el_tea114vWg0J",mask:"url(#mask-8)",x:"0.279",width:"77",height:"85"},null)]),vue.createVNode("g",{id:"el_34IgwiMB5rf"},[vue.createVNode("mask",{id:"mask-10",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-9"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_z5u6RAFhx7d",fillRule:"nonzero",mask:"url(#mask-10)"},null),vue.createVNode("rect",{id:"el_7nfuWmA5Uhy",mask:"url(#mask-10)",x:"0.279",width:"77",height:"70"},null)]),vue.createVNode("g",{id:"el_DeebuCsPTGA"},[vue.createVNode("mask",{id:"mask-12",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-11"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el__ZcqlS20zcw",fillRule:"nonzero",mask:"url(#mask-12)"},null),vue.createVNode("rect",{id:"el_8DnEQnD7VWV",mask:"url(#mask-12)",x:"0.279",width:"77",height:"55"},null)]),vue.createVNode("g",{id:"el_ZOjjrPTvyrv"},[vue.createVNode("mask",{id:"mask-14",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-13"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_FYYKCI_u24e",fillRule:"nonzero",mask:"url(#mask-14)"},null),vue.createVNode("rect",{id:"el_XZty4MnTp5Y",mask:"url(#mask-14)",x:"0.279",width:"77",height:"40"},null)]),vue.createVNode("g",{id:"el_2FATegVmf0K"},[vue.createVNode("mask",{id:"mask-16",fill:"#fff"},[vue.createVNode("use",{"xlink:href":"#path-15"},null)]),vue.createVNode("path",{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_RMT1KUfbdF8",fillRule:"nonzero",mask:"url(#mask-16)"},null),vue.createVNode("rect",{id:"el_RgLcovvFiO1",mask:"url(#mask-16)",x:"0.279",width:"77",height:"25"},null)])])])])}},STATUS={inactive:"INACTIVE",stopped:"STOPPED",active:"ACTIVE",denied:"DENIED"},Mic={name:"Mic",props:{children:types.title,lang:Q.string.def("en-US"),iconPosition:Q.string.def("left"),handleResult:types.func,onNoMatch:types.func,onError:types.func,getInstance:types.func,render:types.func,className:types.string,applyClearStyle:Q.bool,showIcon:Q.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return getComponent(t,this)},stopMic:function(){this.instance&&(this.status=STATUS.inactive,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===STATUS.active&&(this.status=STATUS.inactive);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,a=t.lang,s=t.getInstance,i=window.SpeechRecognition;if(this.instance&&this.status!==STATUS.denied)return this.status=STATUS.inactive,this.instance.stop(),void(this.instance=null);this.instance=new i,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=a,s&&s(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=STATUS.active},this.instance.onresult=function(t){var r=t.results,o=t.timeStamp;e.stopMic(),n&&n({results:r,timeStamp:o}),e.results.push({results:r,timeStamp:o})},this.instance.onnomatch=function(e){return r?r(e):console.warn(e)},this.instance.onerror=function(t){"no-speech"===t.error||"audio-capture"===t.error?e.status=STATUS.inactive:"not-allowed"===t.error&&(e.status=STATUS.denied),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=STATUS.inactive},this.instance.onaudioend=function(){e.status=STATUS.inactive}}}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)},Icon:function(){var e=this.$data.status,t=this.$props.className;switch(e){case STATUS.active:return vue.createVNode(ListenSvg,{className:t,nativeOnClick:this.handleClick},null);case STATUS.stopped:case STATUS.denied:return vue.createVNode(MuteSvg,{className:t,nativeOnClick:this.handleClick},null);default:return vue.createVNode(MicSvg,{className:t,nativeOnClick:this.handleClick},null)}}},data:function(){return{status:STATUS.inactive}},created:function(){this.results=[],"undefined"!=typeof window&&(window.SpeechRecognition=window.webkitSpeechRecognition||window.SpeechRecognition||null,window.SpeechRecognition||console.error("SpeechRecognition is not supported in this browser. Please check the browser compatibility at https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition#Browser_compatibility."))},render:function(){var e=this;return this.hasCustomRenderer?this.getComponent():vue.createVNode(IconWrapper,null,{default:function(){return[e.Icon]}})}},CustomSvg={name:"CustomSvg",props:{className:String,icon:Function,type:String},data:function(){return{customIcon:this.$props.icon&&"function"==typeof this.$props.icon?this.$props.icon():null}},render:function(){return this.customIcon?vue.createVNode("div",{class:this.$props.className},[this.customIcon]):"recent-search-icon"===this.$props.type?vue.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",alt:"Recent Search",height:"20",width:"20",viewBox:"0 0 24 24",style:{fill:"#707070"},class:this.$props.className},[vue.createVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null),vue.createVNode("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"},null)]):"promoted-search-icon"===this.$props.type?vue.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",alt:"promoted search",height:"20",viewBox:"0 0 24 24",class:this.$props.className,style:{fill:"#707070"}},[vue.createVNode("path",{d:"M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z"},null)]):"popular-search-icon"===this.$props.type?vue.createVNode("svg",{xmlns:"http://www.w3.org/2000/svg",alt:"Popular Search",height:"20",width:"20",viewBox:"0 0 24 24",style:{fill:"#707070"},class:this.$props.className},[vue.createVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null),vue.createVNode("path",{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"},null)]):vue.createVNode(SearchSvg,{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}},null)}},_templateObject$j,AutofillSvgIcon=styled("button")(_templateObject$j||(_templateObject$j=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tmargin-left: auto;\n\tposition: relative;\n\tright: -3px;\n\tborder: none;\n\toutline: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tz-index: 111000;\n\n\tsvg {\n\t\tcursor: pointer;\n\t\tfill: #707070;\n\t\theight: 20px;\n\t}\n\n\t&:hover {\n\t\tsvg {\n\t\t\tfill: #1c1a1a;\n\t\t}\n\t}\n"]))),AutoFillSvg={name:"AutoFillSvg",render:function(){return vue.createVNode(AutofillSvgIcon,{onClick:this.$attrs.click},{default:function(){return[vue.createVNode("svg",{viewBox:"0 0 24 24"},[vue.createVNode("path",{d:"M8 17v-7.586l8.293 8.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-8.293-8.293h7.586c0.552 0 1-0.448 1-1s-0.448-1-1-1h-10c-0.552 0-1 0.448-1 1v10c0 0.552 0.448 1 1 1s1-0.448 1-1z"},null)])]}})},methods:{clicked:function(e){e.stopPropagation(),window.console.log("hey",e)}}},_templateObject$k,_templateObject2$5,TagsContainer=styled("div")(_templateObject$k||(_templateObject$k=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),TagItem=styled("span")(_templateObject2$5||(_templateObject2$5=_taggedTemplateLiteralLoose(["\n\tcursor: default;\n\tbox-sizing: border-box;\n\tmargin: 0 4px 4px 0;\n\tcolor: #000000d9;\n\tfont-size: 14px;\n\tfont-variant: tabular-nums;\n\tline-height: 1.5715;\n\tlist-style: none;\n\tfont-feature-settings: 'tnum';\n\tdisplay: inline-block;\n\theight: auto;\n\tpadding: 0 2px 0 7px;\n\tfont-size: 12px;\n\tline-height: 22px;\n\twhite-space: nowrap;\n\tbackground: #fafafa;\n\tborder: 1px solid #d9d9d9;\n\tborder-radius: 2px;\n\topacity: 1;\n\ttransition: all 0.3s;\n\n\tspan.close-icon {\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\theight: 15px;\n\t\t\tposition: relative;\n\t\t\ttop: 4px;\n\t\t\tfill: #262626;\n\t\t}\n\t}\n"])));function _isSlot$5(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var updateQuery$1=lib_5.updateQuery,setCustomQuery=lib_5.setCustomQuery,setDefaultQuery$1=lib_5.setDefaultQuery,recordSuggestionClick=lib_5.recordSuggestionClick,_debounce=lib_8.debounce,checkValueChange=lib_8.checkValueChange,getClassName$3=lib_8.getClassName,isEqual$4=lib_8.isEqual,getCompositeAggsQuery$1=lib_8.getCompositeAggsQuery,withClickIds=lib_8.withClickIds,getResultStats$1=lib_8.getResultStats,SearchBox=vue.defineComponent({name:"SearchBox",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],isOpen:!1,normalizedSuggestions:[]},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){this.$props.mode===constants_5$1.TAG&&(this.$options.isTagsMode=!0),this.$options.isTagsMode&&console.warn("Warning(ReactiveSearch): The `categoryField` prop is not supported when `mode` prop is set to `tag`"),this.currentValue=decodeHtml(this.selectedValue||this.value||this.defaultValue||""),this.$options.isTagsMode&&(this.currentValue=""),this.handleTextChange=_debounce(this.handleText,this.$props.debounce),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue)},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)},stats:function(){return getResultStats$1(this)}},props:{autoFocus:Q.bool,autosuggest:Q.bool.def(!0),beforeValueChange:types.func,className:Q.string.def(""),clearIcon:types.children,componentId:types.stringRequired,customHighlight:types.func,customQuery:types.func,defaultQuery:types.func,dataField:Q.oneOfType([Q.string,Q.shape({field:Q.string,weight:Q.number}),Q.arrayOf(Q.string),Q.arrayOf({field:Q.string,weight:Q.number})]),aggregationField:types.string,aggregationSize:Q.number,size:Q.number,debounce:Q.number.def(0),defaultValue:types.string,excludeFields:types.excludeFields,value:Q.oneOfType([Q.arrayOf(Q.string),types.value]),defaultSuggestions:types.suggestions,enableSynonyms:Q.bool.def(!0),enableQuerySuggestions:Q.bool.def(!1),enablePopularSuggestions:Q.bool.def(!1),enableRecentSuggestions:Q.bool.def(!1),fieldWeights:types.fieldWeights,filterLabel:types.string,fuzziness:types.fuzziness,highlight:Q.bool,highlightField:types.stringOrArray,icon:types.children,iconPosition:Q.oneOf(["left","right"]).def("left"),includeFields:types.includeFields,innerClass:types.style,innerRef:Q.string.def("searchInputField"),render:types.func,renderNoSuggestion:types.title,renderError:types.title,placeholder:Q.string.def("Search"),queryFormat:Q.oneOf(["and","or"]).def("or"),react:types.react,showClear:Q.bool.def(!0),showDistinctSuggestions:Q.bool.def(!0),showFilter:Q.bool.def(!0),showIcon:Q.bool.def(!0),title:types.title,theme:types.style,URLParams:Q.bool.def(!1),strictSelection:Q.bool.def(!1),nestedField:types.string,enablePredictiveSuggestions:Q.bool.def(!1),recentSearchesIcon:Q.any,popularSearchesIcon:Q.any,showVoiceSearch:Q.bool.def(!1),getMicInstance:types.func,renderMic:types.func,distinctField:types.string,distinctFieldConfig:types.props,focusShortcuts:Q.arrayOf(Q.oneOfType([Q.string,Q.number])).def(["/"]),addonBefore:Q.any,addonAfter:Q.any,expandSuggestionsContainer:Q.bool.def(!0),index:Q.string,popularSuggestionsConfig:Q.object,recentSuggestionsConfig:Q.object,applyStopwords:Q.bool,customStopwords:types.stringArray,onData:types.func,renderItem:types.func,enterButton:Q.bool.def(!1),renderEnterButton:Q.any,mode:Q.oneOf(["select","tag"]).def("select"),renderSelectedTags:Q.any,searchboxId:Q.string,endpoint:types.endpointConfig},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{dataField:function(e,t){isEqual$4(e,t)||this.triggerCustomQuery(this.$data.currentValue)},fieldWeights:function(){this.triggerCustomQuery(this.$data.currentValue)},fuzziness:function(){this.triggerCustomQuery(this.$data.currentValue)},queryFormat:function(){this.triggerCustomQuery(this.$data.currentValue)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){isEqual$4(e,t)||this.setValue(e,!0,this.$props,""===e?lib_7.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(withClickIds(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(withClickIds(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){if(!isEqual$4(e,t)&&(this.$options.isTagsMode?!isEqual$4(this.$data.selectedTags,e):this.$data.currentValue!==e)){!e&&this.$data.currentValue&&this.onValueSelectedHandler("",lib_7.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]);var n=e?void 0:lib_7.CLEAR_VALUE;this.$options.isTagsMode&&(n=lib_7.SUGGESTION_SELECT),this.setValue(e||"",!0,this.$props,n)}},focusShortcuts:function(){this.listenForFocusShortcuts()},rawData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:e,aggregationData:this.aggregationData,loading:this.isLoading,error:this.isError})},aggregationData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:e,loading:this.isLoading,error:this.isError})},loading:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:e,error:this.isError})},error:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:this.isLoading,error:e})},debounce:function(e,t){isEqual$4(e,t)||(this.handleTextChange=_debounce(this.handleText,e))}},methods:{handleText:function(e,t){t===lib_7.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},getComponent:function(e){void 0===e&&(e={});var t=this.$data.currentValue,n={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.normalizedSuggestions,rawData:this.rawData,value:t,resultStats:this.stats};return getComponent(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=helper_36(this.$props);return e&&(t.aggs=getCompositeAggsQuery$1({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,lib_7.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,a){var s=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===a&&(a=void 0);checkValueChange(n.componentId,e,n.beforeValueChange,(function(){if(!s.$options.isTagsMode||!isEqual$4(e,s.selectedTags)){if(s.$options.isTagsMode&&r===lib_7.SUGGESTION_SELECT){if(Array.isArray(s.selectedTags)&&s.selectedTags.length){if("string"==typeof e&&s.selectedTags.includes(e))return void(s.isOpen=!1);s.selectedTags=[].concat(s.selectedTags),"string"==typeof e&&e?s.selectedTags.push(e):Array.isArray(e)&&!isEqual$4(s.selectedTags,e)&&(s.selectedTags=e)}else e&&(s.selectedTags="string"!=typeof e?e:[].concat(e));s.currentValue=""}else s.currentValue=decodeHtml(e);var i=e;s.$options.isTagsMode&&r===lib_7.SUGGESTION_SELECT&&(i=Array.isArray(s.selectedTags)&&s.selectedTags.length?s.selectedTags:void 0),t?(s.$props.autosuggest&&(o&&(s.isOpen=!1),"string"==typeof s.currentValue&&s.triggerDefaultQuery(s.currentValue)),n.strictSelection?r===lib_7.SUGGESTION_SELECT||(s.$options.isTagsMode?0===s.selectedTags.length:""===e)?s.triggerCustomQuery(i,s.$options.isTagsMode?void 0:a):s.setValue("",!0):void 0!==n.value&&r!==lib_7.SUGGESTION_SELECT&&r!==lib_7.CLEAR_VALUE||s.triggerCustomQuery(i,s.$options.isTagsMode?void 0:a)):s.handleTextChange(e,r),s.$emit("valueChange",e),s.$emit("value-change",e)}}))},triggerDefaultQuery:function(e){if(this.$props.autosuggest){var t="string"!=typeof e?this.currentValue:e,n=SearchBox.defaultQuery(t,this.$props);if(this.defaultQuery){var r=this.defaultQuery(t,this.$props)||{};r.query&&(n=r.query),updateDefaultQuery(this.$props.componentId,this.setDefaultQuery,this.$props,t)}this.updateQuery({componentId:this.internalComponent,query:n,value:t,componentType:constants_1$1.searchBox})}},triggerCustomQuery:function(e,t){void 0===t&&(t=void 0);var n=this.$props,r=n.customQuery,o=n.filterLabel,a=n.showFilter,s=n.URLParams,i="string"!=typeof e?this.$data.currentValue:e;this.$options.isTagsMode&&(i=e);var u=SearchBox.defaultQuery(i+(t?" in "+t:""),this.$props);if(r){var l=r(i,this.$props).query;l&&(u=l),updateCustomQuery(this.$props.componentId,this.setCustomQuery,this.$props,i)}this.updateQuery({componentId:this.$props.componentId,query:u,value:i,label:o,showFilter:a,URLParams:s,componentType:constants_1$1.searchBox,category:t})},handleFocus:function(e){this.$props.autosuggest&&(this.isOpen=!0),this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&this.setValue(t[0][0].transcript.trim(),!0)},triggerQuery:function(e){var t=e.isOpen,n=void 0===t?void 0:t,r=e.customQuery,o=void 0===r||r,a=e.defaultQuery,s=void 0===a||a,i=e.value,u=void 0===i?void 0:i,l=e.categoryValue,c=void 0===l?void 0:l;"boolean"==typeof n&&(this.isOpen=n),o&&this.triggerCustomQuery(u,c),s&&this.triggerDefaultQuery(u)},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.normalizedSuggestions.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.setValue("",!1,this.$props,lib_7.CLEAR_VALUE,!1),this.onValueSelectedHandler("",lib_7.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0===t&&(t=null),"Enter"===e.key&&(!1===this.$props.autosuggest?this.enterButtonOnClick():null===t&&(this.setValue(e.target.value,!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,lib_7.ENTER_PRESS))),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=this,n=e.target.value;!this.$data.isOpen&&this.$props.autosuggest&&(this.isOpen=!0),void 0===this.$props.value?this.setValue(n,!1,this.$props,""===n?lib_7.CLEAR_VALUE:void 0):this.$emit("change",n,(function(e){var r=e.isOpen;return t.triggerQuery({defaultQuery:!0,customQuery:!0,value:n,isOpen:r})}),e)},onSuggestionSelected:function(e){var t=this;this.isOpen=!1;var n=this.$props.value;if(this.triggerClickAnalytics(e._click_id),void 0===n)this.setValue(e.value,!0,this.$props,lib_7.SUGGESTION_SELECT,!1,e._category);else{var r=e.value;if(this.$options.isTagsMode){if(r=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[],this.selectedTags.includes(e.value))return void(this.isOpen=!1);r.push(e.value)}this.setValue(r,!0,this.$props,lib_7.SUGGESTION_SELECT,!1,e._category),this.$emit("change",r,(function(n){var o=n.isOpen;return t.triggerQuery(_extends({isOpen:o,value:r},!t.$options.isTagsMode&&{categoryValue:e._category}))}))}this.onValueSelectedHandler(e.value,lib_7.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){return this.$props.showIcon?this.$props.icon||vue.createVNode(SearchSvg,null,null):null},renderErrorComponent:function(){var e=this,t=this.$slots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?vue.createVNode(SuggestionWrapper,{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset},{default:function(){return[isFunction(t)?t(e.error):t]}}):null},renderCancelIcon:function(){return this.$props.showClear?this.$props.clearIcon||vue.createVNode(CancelSvg,null,null):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$props,n=t.theme,r=t.innerClass,o=this.$slots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$slots.renderError||this.$props.renderError,s=this.$data,i=s.isOpen,u=s.currentValue;return!o||!i||e.length||this.isLoading||!u||a&&this.error?null:vue.createVNode(SuggestionWrapper,{innerClass:r,themePreset:this.themePreset,theme:n,innerClassName:"noSuggestion"},{default:function(){return"function"==typeof o?o(u):o}})},renderInputAddonBefore:function(){var e,t=this.$slots.addonBefore;return t?vue.createVNode(InputAddon,{class:"addon-before"},_isSlot$5(e=t())?e:{default:function(){return[e]}}):null},renderInputAddonAfter:function(){var e,t=this.$slots.addonAfter;return t?vue.createVNode(InputAddon,{class:"addon-after"},_isSlot$5(e=t())?e:{default:function(){return[e]}}):null},enterButtonOnClick:function(){this.triggerQuery({isOpen:!1,value:this.currentValue,customQuery:!0})},renderEnterButtonElement:function(){var e=this,t=this.$props,n=t.enterButton,r=t.innerClass,o=this.$slots.renderEnterButton;if(n){return vue.createVNode("div",{class:"enter-button-wrapper"},[o?o(e.enterButtonOnClick):vue.createVNode(Button,{class:"enter-btn "+getClassName$3(r,"enter-button"),primary:!0,onClick:e.enterButtonOnClick},{default:function(){return[vue.createTextVNode("Search")]}})])}return null},renderIcons:function(){var e,t,n,r=this,o=this.$props,a=o.iconPosition,s=o.showClear,i=o.innerClass,u=o.getMicInstance,l=o.showVoiceSearch,c=o.showIcon,p=this.$slots.renderMic||this.$props.renderMic,d=this.$data.currentValue;return vue.createVNode("div",null,[vue.createVNode(IconGroup,{groupPosition:"right",positionType:"absolute"},{default:function(){return[d&&s&&vue.createVNode(IconWrapper,{onClick:r.clearValue,showIcon:c,isClearIcon:!0},_isSlot$5(e=r.renderCancelIcon())?e:{default:function(){return[e]}}),l&&vue.createVNode(Mic,{getInstance:u,render:p,handleResult:r.handleVoiceResults,className:getClassName$3(i,"mic")||null},null),"right"===a&&c&&vue.createVNode(IconWrapper,{onClick:r.handleSearchIconClick},_isSlot$5(t=r.renderIcon())?t:{default:function(){return[t]}})]}}),vue.createVNode(IconGroup,{groupPosition:"left",positionType:"absolute"},{default:function(){return["left"===a&&c&&vue.createVNode(IconWrapper,{onClick:r.handleSearchIconClick},_isSlot$5(n=r.renderIcon())?n:{default:function(){return[n]}})]}})])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;isEmpty(n)||(hotkeys(parseFocusShortcuts(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hotkeys("*",(function(t){var r=extractModifierKeysFromFocusShortcuts(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hotkeys[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=decodeHtml(t),this.triggerDefaultQuery(t)},renderAutoFill:function(e){var t=this;return e._category?null:vue.createVNode(AutoFillSvg,{onClick:function(n){n.stopPropagation(),t.onAutofillClick(e)}},null)},renderTag:function(e){var t=this,n=this.$props.innerClass;return vue.createVNode(TagItem,{class:getClassName$3(n,"selected-tag")||""},{default:function(){return[vue.createVNode("span",null,[e]),vue.createVNode("span",{role:"img","aria-label":"delete-tag",class:"close-icon",onClick:function(){return t.clearTag(e)}},[vue.createVNode(CancelSvg,null,null)])]}})},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,lib_7.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,lib_7.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this;if(!Array.isArray(this.selectedTags))return null;var t=[].concat(this.selectedTags),n=t.length>1,r=this.$slots.renderSelectedTags||this.$props.renderSelectedTags;return r?r({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):vue.createVNode(TagsContainer,null,{default:function(){return[t.map((function(t){return e.renderTag(t)})),n&&vue.createVNode(TagItem,{class:getClassName$3(e.$props.innerClass,"selected-tag")||""},{default:function(){return[vue.createVNode("span",null,[vue.createTextVNode("Clear All")]),vue.createVNode("span",{role:"img","aria-label":"delete-tag",class:"close-icon",onClick:e.clearAllTags},[vue.createVNode(CancelSvg,null,null)])]}})]}})}},render:function(){var e=this,t=this.$props,n=t.theme,r=t.expandSuggestionsContainer,o=this.$slots,a=o.recentSearchesIcon,s=o.popularSearchesIcon,i=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,u=this.$slots.renderItem||this.$props.renderItem;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$3(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),e.$props.autosuggest?vue.createVNode(Downshift,{id:e.$props.componentId+"-downshift",handleChange:e.onSuggestionSelected,handleMouseup:e.handleStateChange,isOpen:e.$data.isOpen},{default:function(t){var o=t.getInputEvents,l=t.getInputProps,c=t.getItemProps,p=t.getItemEvents,d=t.isOpen,h=t.highlightedIndex,f=t.setHighlightedIndex,m=function(){var t=function(e){switch(e){case helper_13.Recent:return a;case helper_13.Popular:return s;default:return null}};return vue.createVNode("div",null,[e.hasCustomRenderer&&e.getComponent({isOpen:d,getItemProps:c,getItemEvents:p,highlightedIndex:h}),e.renderErrorComponent(),!e.hasCustomRenderer&&d&&i?vue.createVNode("ul",{class:suggestions$1(e.themePreset,n)+" "+getClassName$3(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(n,r){return u?vue.createVNode("li",vue.mergeProps(c({item:n}),p({item:n}),{key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(h,r),justifyContent:"flex-start",alignItems:"center"}}),[u(n)]):vue.createVNode("li",vue.mergeProps(c({item:n}),babelHelperVueTransformOn(p({item:n})),{key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(h,r),justifyContent:"flex-start",alignItems:"center"}}),[vue.createVNode("div",{style:{padding:"0 10px 0 0",display:"flex"}},[vue.createVNode(CustomSvg,{className:getClassName$3(e.$props.innerClass,n._suggestion_type+"-search-icon")||null,icon:t(n._suggestion_type),type:n._suggestion_type+"-search-icon"},null)]),vue.createVNode(SuggestionItem,{currentValue:e.currentValue,suggestion:n},null),e.renderAutoFill(n)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return vue.createVNode("div",{class:suggestionsContainer},[vue.createVNode(InputGroup,null,{default:function(){return[e.renderInputAddonBefore(),vue.createVNode(InputWrapper,null,{default:function(){return[vue.createVNode(Input,vue.mergeProps(babelHelperVueTransformOn(o({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,h)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){f(null)}})),{id:e.$props.componentId+"-input",showIcon:e.$props.showIcon,showClear:e.$props.showClear,iconPosition:e.$props.iconPosition,ref:e.$props.innerRef,class:getClassName$3(e.$props.innerClass,"input"),placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus},l({value:null===e.$data.currentValue?"":e.$data.currentValue}),{themePreset:e.themePreset,autocomplete:"off"}),null),e.renderIcons(),!r&&m()]}}),e.renderInputAddonAfter(),e.renderEnterButtonElement()]}}),r&&m(),e.renderTags()])}}):vue.createVNode("div",{class:suggestionsContainer},[vue.createVNode(InputGroup,null,{default:function(){return[e.renderInputAddonBefore(),vue.createVNode(InputWrapper,null,{default:function(){return[vue.createVNode(Input,vue.mergeProps(babelHelperVueTransformOn({blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:e.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:e.handleKeyDown,keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),{class:getClassName$3(e.$props.innerClass,"input")||"",placeholder:e.$props.placeholder,autofocus:e.$props.autoFocus,value:e.$data.currentValue?e.$data.currentValue:"",iconPosition:e.$props.iconPosition,showIcon:e.$props.showIcon,showClear:e.$props.showClear,ref:e.$props.innerRef,themePreset:e.themePreset}),null),e.renderIcons()]}}),e.renderInputAddonAfter(),e.renderEnterButtonElement()]}})])]}})},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)}});SearchBox.defaultQuery=function(e,t){var n;return(n={bool:{should:SearchBox.shouldQuery(e,t),minimum_should_match:"1"}})&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},SearchBox.shouldQuery=function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,queryString:t.queryString,searchOperators:t.searchOperators}}};var mapStateToProps$3=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,selectedCategory:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].category||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],themePreset:e.config.themePreset,isLoading:!!e.isLoading[t.componentId+"_active"],error:e.error[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}},mapDispatchToProps$2={updateQuery:updateQuery$1,setCustomQuery:setCustomQuery,setDefaultQuery:setDefaultQuery$1,recordSuggestionClick:recordSuggestionClick},SBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$3,mapDispatchToProps$2)(SearchBox),{componentType:constants_1$1.searchBox,internalComponent:!0})),_templateObject$l,_templateObject2$6,_templateObject3$4;SBConnected.name=SearchBox.name,SBConnected.install=function(e){e.component(SBConnected.name,SBConnected)},SBConnected.componentType=constants_1$1.searchBox;var item={width:"15px",height:"15px",scale:"4px"},vh="\n\tborder: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tposition: absolute;\n\twidth: 1px;\n\twhite-space: nowrap;\n",hideInputControl="\n\t+ label {\n\t\tpadding-left: 0;\n\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder: 0;\n\t\t\tmargin: 0;\n\t\t\tvisibility: hidden;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n",formItem=function(e){var t=e.theme,n=void 0===t?{}:t;return"\n\t"+vh+";\n\n\t&:focus {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tbox-shadow: 0 0 0 2px "+curriedLighten(.4,n.colors.primaryColor)+";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:hover {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: "+n.colors.primaryColor+";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:active {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\ttransition-duration: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t+ label {\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\n\t\t&::before {\n\t\t\tbackground-color: #fff;\n\t\t\tborder: 1px solid "+(n.colors.borderColor||curriedLighten(.1,n.colors.textColor))+";\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tcolor: "+n.colors.primaryColor+";\n\t\t\tmargin-right: calc("+item.width+" * 0.5);\n\t\t\ttop: 50%;\n\t\t\tleft: 0;\n\t\t\twidth: "+item.width+";\n\t\t\theight: "+item.height+";\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&::after {\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tbackground-color: "+n.colors.primaryColor+";\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "+item.scale+" / 2);\n\t\t\twidth: calc("+item.width+" - "+item.scale+");\n\t\t\theight: calc("+item.height+" - "+item.scale+");\n\t\t\tmargin-top: calc("+item.height+" / -2 - "+item.scale+" / -2);\n\t\t\ttransform: scale(0);\n\t\t\ttransform-origin: 50%;\n\t\t\ttransition: transform 200ms ease-out;\n\t\t}\n\t}\n"},Radio=styled("input")(_templateObject$l||(_templateObject$l=_taggedTemplateLiteralLoose(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t+ label {\n\t\t\t\tcolor: ",";\n\n\t\t\t\t&::before {\n\t\t\t\t\tanimation: none;\n\t\t\t\t\tfilter: none;\n\t\t\t\t\ttransition: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tanimation: none;\n\t\t\t\tbackground-color: #fff;\n\t\t\t\tborder-color: ",";\n\t\t}\n\n\t\t&::after {\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n"])),formItem,(function(e){return e.show?null:hideInputControl}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Checkbox=styled("input")(_templateObject2$6||(_templateObject2$6=_taggedTemplateLiteralLoose(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 0;\n\t\t}\n\n\t\t&::after {\n\t\t\tbackground-color: transparent;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 5);\n\t\t\twidth: calc("," / 2);\n\t\t\theight: calc("," / 5);\n\t\t\tmargin-top: calc("," / -2 / 2 * 0.8);\n\t\t\tborder-style: solid;\n\t\t\tborder-color: ",";\n\t\t\tborder-width: 0 0 2px 2px;\n\t\t\tborder-radius: 0;\n\t\t\tborder-image: none;\n\t\t\ttransform: rotate(-45deg) scale(0);\n\t\t\ttransition: none;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\ttransform: rotate(-45deg) scale(1);\n\t\t\t\ttransition: transform 200ms ease-out;\n\t\t\t}\n\t\t}\n\t}\n"])),formItem,(function(e){return e.show?null:hideInputControl}),item.width,item.width,item.width,item.height,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),UL=styled("ul")(_templateObject3$4||(_templateObject3$4=_taggedTemplateLiteralLoose(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 240px;\n\tposition: relative;\n\toverflow-y: auto;\n\tpadding-bottom: 12px;\n\n\tli {\n\t\theight: 30px;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tpadding-left: 2px;\n\t}\n"]))),getAggsOrder=lib_8.getAggsOrder,extractQuery=function(e){var t={};if(e.defaultQuery){var n=e.defaultQuery([],e);n&&(n.query&&(t.query=n.query),n.aggs&&(t.aggs=n.aggs))}return t},getAggsQuery=function(e,t){var n,r=e,o=t.dataField,a=t.size,s=t.sortBy,i=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:_extends({field:o,size:a,order:getAggsOrder(s||"count")},i?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),_extends({},r,extractQuery(t))},updateQuery$2=lib_5.updateQuery,setQueryOptions$1=lib_5.setQueryOptions,setCustomQuery$1=lib_5.setCustomQuery,setDefaultQuery$2=lib_5.setDefaultQuery,getQueryOptions$1=lib_8.getQueryOptions,checkValueChange$1=lib_8.checkValueChange,getClassName$4=lib_8.getClassName,isEqual$5=lib_8.isEqual,extractQueryFromCustomQuery$1=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$1=lib_8.getOptionsForCustomQuery,SingleList={name:"SingleList",props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.string,value:types.value,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:Q.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderNoResults:Q.any,transformData:types.func,selectAllLabel:types.string,showCount:Q.bool.def(!0),showFilter:Q.bool.def(!0),showRadio:Q.bool.def(!0),showSearch:Q.bool.def(!0),size:Q.number,sortBy:Q.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:Q.bool.def(!1),showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A"),nestedField:types.string,index:Q.string,enableStrictSelection:Q.bool.def(!1),endpoint:types.endpointConfig},data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryHandlerOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){isEqual$5(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=this.$props,n=t.selectAllLabel,r=t.renderItem,o=t.renderError,a=this.$slots.renderItem||r,s=this.$slots.renderError||o;if(s&&this.error)return isFunction(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var i=this.$data.modifiedOptions;this.$props.transformData&&(i=this.$props.transformData(i));var u=i.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm.toLowerCase())))}));return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$4(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),e.renderSearch(),e.hasCustomRenderer?e.getComponent():vue.createVNode(UL,{class:getClassName$4(e.$props.innerClass,"list")||""},{default:function(){return[n?vue.createVNode("li",{key:n,class:e.$data.currentValue===n?"active":""},[vue.createVNode(Radio,{class:getClassName$4(e.$props.innerClass,"radio"),id:e.$props.componentId+"-"+n,name:e.$props.componentId,value:n,onClick:e.handleClick,readOnly:!0,type:"radio",show:e.$props.showRadio,checked:e.$data.currentValue===n},null),vue.createVNode("label",{class:getClassName$4(e.$props.innerClass,"label")||null,for:e.$props.componentId+"-"+n},[vue.createVNode("span",null,[n,e.$props.showCount&&vue.createVNode("span",{class:getClassName$4(e.$props.innerClass,"count")||null},[vue.createTextVNode(" ("),e.totalDocumentCount,vue.createTextVNode(")")])])])]):null,e.hasCustomRenderer||0!==u.length||e.isLoading?u.map((function(t){return vue.createVNode("li",{key:t.key,class:e.currentValue===String(t.key)?"active":""},[vue.createVNode(Radio,{class:getClassName$4(e.$props.innerClass,"radio"),id:e.$props.componentId+"-"+t.key,name:e.$props.componentId,value:t.key,readOnly:!0,onClick:e.handleClick,type:"radio",show:e.$props.showRadio,checked:e.currentValue===String(t.key)},null),vue.createVNode("label",{class:getClassName$4(e.$props.innerClass,"label")||null,for:e.$props.componentId+"-"+t.key},[a?a({label:t.key,count:t.doc_count,isChecked:e.currentValue===String(t.key)}):vue.createVNode("span",null,[t.key,e.$props.showCount&&vue.createVNode("span",{class:getClassName$4(e.$props.innerClass,"count")||null},[vue.createTextVNode(" ("),t.doc_count,vue.createTextVNode(")")])])])])})):e.renderNoResult()]}})]}})},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r=e;e===this.$data.currentValue&&(r="");checkValueChange$1(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateDefaultQueryHandler:function(e,t){var n=SingleList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$1(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var a=getOptionsForCustomQuery$1(r);this.setQueryOptions(this.internalComponent,a,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$1(o);var a=getOptionsForCustomQuery$1(o);updateCustomQuery(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,a,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleList})},generateQueryOptions:function(e){var t=getQueryOptions$1(e);return getAggsQuery(t,e)},updateQueryHandlerOptions:function(e){var t=SingleList.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=getOptionsForCustomQuery$1(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,_extends({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){return this.$props.showSearch?vue.createVNode(Input,{class:getClassName$4(this.$props.innerClass,"input")||"",onInput:this.handleInputChange,value:this.$data.searchTerm,placeholder:this.$props.placeholder,style:{margin:"0 0 8px"},themePreset:this.$props.themePreset},null):null},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var a={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(a,this)},handleClick:function(e){var t=e;return isEvent(e)&&(t=e.target.value),(!this.enableStrictSelection||t!==this.currentValue)&&(void 0===this.$props.value?this.setValue(t):this.$emit("change",t),!0)},renderNoResult:function(){var e=this.$slots.renderNoResults||this.$props.renderNoResults;return vue.createVNode("p",{class:getClassName$4(this.$props.innerClass,"noResults")||null},[isFunction(e)?e():e])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},generateQueryOptions:function(e){var t=getQueryOptions$1(e);return getAggsQuery(t,e)},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing}}},hasInternalComponent:function(){return!0}},mapStateToProps$4=function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId]}},mapDispatchtoProps$2={setQueryOptions:setQueryOptions$1,updateQuery:updateQuery$2,setCustomQuery:setCustomQuery$1,setDefaultQuery:setDefaultQuery$2},ListConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$4,mapDispatchtoProps$2)(SingleList),{componentType:constants_1$1.singleList,internalComponent:SingleList.hasInternalComponent()}));ListConnected.name=SingleList.name,ListConnected.install=function(e){e.component(ListConnected.name,ListConnected)},ListConnected.componentType=constants_1$1.singleList;var updateQuery$3=lib_5.updateQuery,setQueryOptions$2=lib_5.setQueryOptions,setCustomQuery$2=lib_5.setCustomQuery,setDefaultQuery$3=lib_5.setDefaultQuery,isEqual$6=lib_8.isEqual,getQueryOptions$2=lib_8.getQueryOptions,checkValueChange$2=lib_8.checkValueChange,getClassName$5=lib_8.getClassName,extractQueryFromCustomQuery$2=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$2=lib_8.getOptionsForCustomQuery,MultiList={name:"MultiList",props:{defaultValue:types.stringArray,value:types.stringArray,queryFormat:Q.oneOf(["and","or"]).def("or"),showCheckbox:Q.bool.def(!0),beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:Q.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:Q.any,transformData:types.func,selectAllLabel:types.string,showCount:Q.bool.def(!0),showFilter:Q.bool.def(!0),showSearch:Q.bool.def(!0),size:Q.number,sortBy:Q.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:Q.bool.def(!1),showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A"),nestedField:types.string,index:Q.string,endpoint:types.endpointConfig},data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryHandlerOptions(this.$props);var e=this.selectedValue||this.$props.value||this.$props.defaultValue;this.setValue(e,!this.selectedValue)},mounted:function(){var e=Object.keys(this.$data.currentValue);void 0===this.$props.value||isEqual$6(this.$props.value,e)||this.$emit("change",e)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},value:function(e,t){isEqual$6(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){isEqual$6(t,e)||this.setValue(e,!0)},selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),isEqual$6(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=this.$props,n=t.selectAllLabel,r=t.renderItem,o=t.renderError,a=this.$slots.renderItem||r,s=this.$slots.renderError||o;if(s&&this.error)return isFunction(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var i=this.$data.modifiedOptions;this.$props.transformData&&(i=this.$props.transformData(i));var u=i.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm).toLowerCase()))}));return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$5(e.$props.innerClass,"title")},{default:function(){return[e.$props.title]}}),e.renderSearch(),e.hasCustomRenderer?e.getComponent():vue.createVNode(UL,null,{default:function(){return[n?vue.createVNode("li",{key:n,class:e.currentValue[n]?"active":""},[vue.createVNode(Checkbox,{type:"checkbox",class:getClassName$5(e.$props.innerClass,"checkbox"),id:e.$props.componentId+"-"+n,name:n,value:n,onClick:e.handleClick,checked:!!e.currentValue[n],show:e.$props.showCheckbox},null),vue.createVNode("label",{class:getClassName$5(e.$props.innerClass,"label"),for:e.$props.componentId+"-"+n},[vue.createVNode("span",null,[n,e.$props.showCount&&vue.createVNode("span",{class:getClassName$5(e.$props.innerClass,"count")},[vue.createTextVNode(" ("),e.totalDocumentCount,vue.createTextVNode(")")])])])]):null,e.hasCustomRenderer||0!==u.length||e.isLoading?u.map((function(t){return vue.createVNode("li",{key:t.key,class:e.$data.currentValue[t.key]?"active":""},[vue.createVNode(Checkbox,{type:"checkbox",class:getClassName$5(e.$props.innerClass,"checkbox"),id:e.$props.componentId+"-"+t.key,name:e.$props.componentId,value:t.key,onClick:e.handleClick,show:e.$props.showCheckbox,checked:!!e.$data.currentValue[t.key]},null),vue.createVNode("label",{class:getClassName$5(e.$props.innerClass,"label"),for:e.$props.componentId+"-"+t.key},[a?a({label:t.key,count:t.doc_count,isChecked:!!e.$data.currentValue[t.key]}):vue.createVNode("span",null,[t.key,e.$props.showCount&&vue.createVNode("span",{class:getClassName$5(e.$props.innerClass,"count")},[vue.createTextVNode(" ("),t.doc_count,vue.createTextVNode(")")])])])])})):e.renderNoResult()]}})]}})},methods:{setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,a=this.$data.currentValue,s=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))a[o]?(a={},s=[]):(this.$data.modifiedOptions.forEach((function(e){a[e.key]=!0})),a[o]=!0,s=[o]);else if(t){if(s=e,a={},e&&e.length&&e.forEach((function(e){a[e]=!0})),o&&o in a){var i=a,u=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey$1)));a=_extends({},u)}}else{if(a[e]){var l=a,c=(l[e],_objectWithoutPropertiesLoose(l,[e].map(_toPropertyKey$1)));a=_extends({},c)}else Array.isArray(e)?e.forEach((function(e){a[e]=!0})):a[e]=!0;if(o&&o in a){var p=a,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey$1)));a=_extends({},d)}s=Object.keys(a)}checkValueChange$2(n.componentId,s,n.beforeValueChange,(function(){r.currentValue=Object.assign({},a),r.updateQueryHandler(s,n),r.$emit("valueChange",s),r.$emit("value-change",s)}))},updateDefaultQueryHandler:function(e,t){var n=MultiList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$2(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var a=getOptionsForCustomQuery$2(r);this.setQueryOptions(this.internalComponent,a,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$2(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var a=getOptionsForCustomQuery$2(o);this.setQueryOptions(t.componentId,a,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiList})},generateQueryOptions:function(e){var t=getQueryOptions$2(e);return getAggsQuery(t,e)},updateQueryHandlerOptions:function(e){var t=MultiList.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=getOptionsForCustomQuery$2(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,_extends({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){return this.$props.showSearch?vue.createVNode(Input,{class:getClassName$5(this.$props.innerClass,"input")||"",onInput:this.handleInputChange,value:this.$data.searchTerm,placeholder:this.$props.placeholder,style:{margin:"0 0 8px"},themePreset:this.$props.themePreset},null):null},handleClick:function(e){var t=e;isEvent(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=parseValueArray(n||[],t);this.$emit("change",r)}},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var a={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(a,this)},renderNoResult:function(){var e=this.$slots.renderNoResults||this.$props.renderNoResults;return vue.createVNode("p",{class:getClassName$5(this.$props.innerClass,"noResults")||null},[isFunction(e)?e():e])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing}}},generateQueryOptions:function(e){var t=getQueryOptions$2(e);return getAggsQuery(t,e)}},mapStateToProps$5=function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,error:e.error[t.componentId],componentProps:e.props[t.componentId]}},mapDispatchtoProps$3={setQueryOptions:setQueryOptions$2,updateQuery:updateQuery$3,setCustomQuery:setCustomQuery$2,setDefaultQuery:setDefaultQuery$3};MultiList.hasInternalComponent=function(){return!0};var ListConnected$1=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$5,mapDispatchtoProps$3)(MultiList),{componentType:constants_1$1.multiList,internalComponent:MultiList.hasInternalComponent()})),_templateObject$m,_templateObject2$7;ListConnected$1.name=MultiList.name,ListConnected$1.install=function(e){e.component(ListConnected$1.name,ListConnected$1)},ListConnected$1.componentType=constants_1$1.multiList;var small="\n\tmin-height: 0;\n\theight: 30px;\n\tborder: 0;\n\tbox-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;\n\tborder-radius: 2px;\n",dark$2=function(e){var t=e.theme;return"\n\tbackground-color: "+(t.colors?t.colors.backgroundColor:"")+";\n\tborder-color: "+(t.colors?t.colors.borderColor:"")+";\n\tcolor: "+(t.colors?t.colors.textColor:"")+";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: "+(t.colors?t.colors.backgroundColor:"")+";\n\t}\n"},Select=styled("button")(_templateObject$m||(_templateObject$m=_taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmin-height: 42px;\n\tborder-radius: 0;\n\toutline: none;\n\tpadding: 5px 12px;\n\tfont-size: 0.9rem;\n\tline-height: 1.2rem;\n\tbackground-color: #fff;\n\tborder: 1px solid #ccc;\n\tcolor: #424242;\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t",";\n\n\t& > div {\n\t\twidth: calc(100% - 24px);\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\ttext-align: left;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: #fcfcfc;\n\t}\n\n\t",";\n"])),(function(e){return e.small?small:null}),(function(e){return"dark"===e.themePreset&&dark$2})),Tick=styled("span")(_templateObject2$7||(_templateObject2$7=_taggedTemplateLiteralLoose(["\n\twidth: 16px;\n\theight: 16px;\n\tdisplay: inline-block;\n\tposition: relative;\n\tuser-select: none;\n\talign-items: center;\n\n\t&::after {\n\t\tbox-sizing: content-box;\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tbackground-color: transparent;\n\t\ttop: 50%;\n\t\tleft: 0;\n\t\twidth: 8px;\n\t\theight: 4px;\n\t\tmargin-top: -4px;\n\t\tborder-style: solid;\n\t\tborder-color: ",";\n\t\tborder-width: 0 0 2px 2px;\n\t\tborder-radius: 0;\n\t\tborder-image: none;\n\t\ttransform: rotate(-45deg) scale(1);\n\t\ttransition: all 200ms ease-out;\n\t}\n"])),(function(e){return e.theme.colors.primaryColor})),_templateObject$n,open="\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n",Chevron=styled("span")(_templateObject$n||(_templateObject$n=_taggedTemplateLiteralLoose(["\n\t&::before {\n\t\tcontent: '';\n\t\tborder-style: solid;\n\t\tborder-width: 0.15em 0.15em 0 0;\n\t\tdisplay: inline-block;\n\t\theight: 0.45em;\n\t\tposition: relative;\n\t\ttop: 0.35em;\n\t\tleft: 0;\n\t\ttransform: rotate(135deg);\n\t\tvertical-align: top;\n\t\twidth: 0.45em;\n\n\t\t",";\n\t}\n"])),(function(e){return e.open?open:null})),getClassName$6=lib_8.getClassName,Dropdown={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:types.style,items:types.data,keyField:Q.string.def("key"),labelField:Q.string.def("label"),multi:Q.bool,placeholder:types.string,returnsObject:Q.bool,customLabelRenderer:types.func,hasCustomRenderer:Q.bool,customRenderer:types.func,renderItem:types.func,renderNoResults:Q.any,handleChange:types.func,transformData:types.func,selectedItem:types.selectedValue,showCount:Q.bool,single:Q.bool,small:Q.bool.def(!1),themePreset:types.themePreset,showSearch:Q.bool,showClear:Q.bool,searchPlaceholder:Q.string.def("Type here to search...")},render:function(){var e=this,t=this.$props,n=t.items,r=t.selectedItem,o=t.placeholder,a=t.labelField,s=t.keyField,i=t.themePreset,u=t.renderItem,l=t.transformData,c=t.footer,p=t.customLabelRenderer,d=t.hasCustomRenderer,h=t.customRenderer,f=n;l&&(f=l(f));var m=f.filter((function(t){return!!String(t[a]).length&&(!e.$props.showSearch||!e.$data.searchTerm||suggestions_1(String(t[a])).toLowerCase().includes(suggestions_1(e.$data.searchTerm.toLowerCase())))}));return vue.createVNode(Downshift,{isOpen:this.$data.isOpen,selectedItem:r,handleChange:this.onChange,handleMouseup:this.handleStateChange},{default:function(t){var n=t.getItemProps,l=t.isOpen,g=t.highlightedIndex,y=t.getButtonProps,v=t.getItemEvents,b=t.getInputEvents;return vue.createVNode("div",{class:suggestionsContainer},[vue.createVNode(Select,vue.mergeProps(babelHelperVueTransformOn(y({onClick:e.toggle})),{class:getClassName$6(e.$props.innerClass,"select")||"",title:r?e.renderToString(r):o,small:e.$props.small,themePreset:e.$props.themePreset}),{default:function(){return[p?p(r):vue.createVNode("div",null,[r?e.renderToString(r):o]),vue.createVNode(Chevron,{open:l},null)]}}),d?h(f,{getItemProps:n,isOpen:l,highlightedIndex:g,getButtonProps:y,getItemEvents:v}):l&&f.length?vue.createVNode("ul",{class:suggestions$1(i,e.theme)+" "+(e.$props.small?"small":"")+" "+getClassName$6(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:b({onInput:e.handleInputChange}).input}}):null,d||0!==m.length?m.map((function(t,o){var i=e.$props.multi&&(r&&!!r[t[s]]||Array.isArray(r)&&r.find((function(e){return e[a]===t[a]})));return e.$props.multi||(i=t.key===r),vue.createVNode("li",vue.mergeProps(n({item:t}),babelHelperVueTransformOn(v({item:t})),{key:t[s],class:i?"active":"",style:{backgroundColor:e.getBackgroundColor(g===o,i)}}),[u?u({label:t[a],count:t.doc_count,isChecked:i&&e.$props.multi}):vue.createVNode("div",null,["string"==typeof t[a]?vue.createVNode("span",{innerHTML:t[a]},null):t[a],e.$props.showCount&&t.doc_count&&vue.createVNode("span",{class:getClassName$6(e.$props.innerClass,"count")||""},[vue.createTextVNode(" ("),t.doc_count,vue.createTextVNode(")")])]),i&&e.$props.multi?vue.createVNode(Tick,{class:getClassName$6(e.$props.innerClass,"icon")||""},null):null])})):e.renderNoResult(),c]):null])}})},methods:{toggle:function(){this.isOpen=!this.$data.isOpen},close:function(){this.isOpen=!1},onChange:function(e){this.$props.returnsObject?this.$props.handleChange(e):this.$props.handleChange(e[this.$props.keyField]),this.$props.multi||(this.isOpen=!1,this.searchTerm="")},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){var n="dark"===this.$props.themePreset;return e?n?"#555":"#eee":t?n?"#686868":"#fafafa":n?"#424242":"#fff"},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},clearSearchTerm:function(){this.searchTerm=""},renderToString:function(e){var t=this,n=this.$props.customLabelRenderer;if(n){var r=n(e);if("string"==typeof r)return r}return Array.isArray(e)&&e.length?e.map((function(e){return t.renderToString(e)})).join(", "):e&&"object"==typeof e?e[this.$props.labelField]?e[this.$props.labelField]:Object.keys(e).length?this.renderToString(Object.keys(e)):this.$props.placeholder:e},renderNoResult:function(){var e=this.$slots.renderNoResults||this.$props.renderNoResults;return vue.createVNode("p",{class:getClassName$6(this.$props.innerClass,"noResults")||null},[isFunction(e)?e():e])},renderSearchbox:function(e){var t=this,n=this.$props,r=n.componentId,o=n.searchPlaceholder,a=n.showClear,s=n.themePreset,i=n.innerClass,u=vue.createVNode(Input,vue.mergeProps({id:r+"-input",style:{border:0,borderBottom:"1px solid #ddd"},showIcon:!1,showClear:a,class:getClassName$6(i,"input"),placeholder:o,value:this.$data.searchTerm,themePreset:s},e),null);return a?vue.createVNode(InputWrapper,null,{default:function(){return[u,t.searchTerm&&vue.createVNode(IconGroup,{groupPosition:"right",positionType:"absolute"},{default:function(){return[vue.createVNode(IconWrapper,{onClick:t.clearSearchTerm,isClearIcon:!0},{default:function(){return[vue.createVNode(CancelSvg,null,null)]}})]}})]}}):u}}};function _isSlot$6(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var updateQuery$4=lib_5.updateQuery,setQueryOptions$3=lib_5.setQueryOptions,setCustomQuery$3=lib_5.setCustomQuery,setDefaultQuery$4=lib_5.setDefaultQuery,getQueryOptions$3=lib_8.getQueryOptions,checkValueChange$3=lib_8.checkValueChange,checkPropChange$1=lib_8.checkPropChange,getClassName$7=lib_8.getClassName,isEqual$7=lib_8.isEqual,getCompositeAggsQuery$2=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$3=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$3=lib_8.getOptionsForCustomQuery,SingleDropdownList={name:"SingleDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,defaultValue:types.string,value:types.value,filterLabel:types.string,innerClass:types.style,placeholder:Q.string.def("Select a value"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:Q.any,transformData:types.func,selectAllLabel:types.string,showCount:Q.bool.def(!0),showFilter:Q.bool.def(!0),size:Q.number,sortBy:Q.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:Q.bool.def(!1),showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A"),showSearch:Q.bool.def(!1),showClear:Q.bool.def(!1),showLoadMore:Q.bool.def(!1),loadMoreLabel:Q.oneOfType([Q.string,Q.nullable]).def("Load More"),nestedField:types.string,index:Q.string,searchPlaceholder:Q.string.def("Type here to search..."),endpoint:types.endpointConfig},created:function(){var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e,t){var n=this;e&&checkPropChange$1(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,a=n.$data.modifiedOptions;if(r){var s=e[o].buckets,i=[].concat(a,s.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!s.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=i}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){isEqual$7(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,a=t.renderError,s=t.renderLabel,i=this.$data.isLastBucket,u=[],l=this.$slots.renderItem||o,c=this.$slots.renderError||a,p=this.$slots.renderLabel||s,d=this.$slots.renderNoResults||this.$props.renderNoResults;return c&&this.error?isFunction(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel,doc_count:this.totalDocumentCount}]),vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$7(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),vue.createVNode(Dropdown,{innerClass:e.$props.innerClass,items:[].concat(u,e.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},e,{key:String(e.key)})}))),handleChange:e.handleChange,selectedItem:e.$data.currentValue,placeholder:e.$props.placeholder,labelField:"key",showCount:e.$props.showCount,hasCustomRenderer:e.hasCustomRenderer,customRenderer:e.getComponent,renderItem:l,renderNoResults:e.$slots.renderNoResults||e.$props.renderNoResults,themePreset:e.themePreset,showSearch:e.$props.showSearch,showClear:e.$props.showClear,searchPlaceholder:e.$props.searchPlaceholder,transformData:e.$props.transformData,footer:n&&!i&&vue.createVNode("div",{css:loadMoreContainer},[vue.createVNode(Button,{onClick:e.handleLoadMore},_isSlot$6(r)?r:{default:function(){return[r]}})]),customLabelRenderer:p},null)]}})):d&&isFunction(d)?vue.createVNode("div",null,[d()]):d&&!isFunction(d)?d:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);checkValueChange$3(t.componentId,e,t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler(e,t),n.$emit("valueChange",e),n.$emit("value-change",e)}))},handleChange:function(e){void 0===this.$props.value?this.setValue(e):this.$emit("change",e)},updateDefaultQueryHandler:function(e,t){var n=SingleDropdownList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$3(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var a=getOptionsForCustomQuery$3(r);this.setQueryOptions(this.internalComponent,a,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleDropdownList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$3(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var a=getOptionsForCustomQuery$3(o);this.setQueryOptions(t.componentId,a,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleDropdownList})},generateQueryOptions:function(e,t){var n=getQueryOptions$3(e);return e.showLoadMore?getCompositeAggsQuery$2({query:n,props:e,after:t}):getAggsQuery(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=SingleDropdownList.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=getOptionsForCustomQuery$3(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,_extends({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return getComponent(r,this)}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing}}},generateQueryOptions:function(e,t){var n=getQueryOptions$3(e);return e.showLoadMore?getCompositeAggsQuery$2({query:n,props:e,after:t}):getAggsQuery(n,e)},hasInternalComponent:function(){return!0}},mapStateToProps$6=function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId]}},mapDispatchtoProps$4={setQueryOptions:setQueryOptions$3,updateQuery:updateQuery$4,setCustomQuery:setCustomQuery$3,setDefaultQuery:setDefaultQuery$4},ListConnected$2=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$6,mapDispatchtoProps$4)(SingleDropdownList),{componentType:constants_1$1.singleDropdownList,internalComponent:SingleDropdownList.hasInternalComponent()}));function _isSlot$7(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}ListConnected$2.name=SingleDropdownList.name,ListConnected$2.install=function(e){e.component(ListConnected$2.name,ListConnected$2)},ListConnected$2.componentType=constants_1$1.singleDropdownList;var updateQuery$5=lib_5.updateQuery,setQueryOptions$4=lib_5.setQueryOptions,setCustomQuery$4=lib_5.setCustomQuery,setDefaultQuery$5=lib_5.setDefaultQuery,isEqual$8=lib_8.isEqual,getQueryOptions$4=lib_8.getQueryOptions,checkValueChange$4=lib_8.checkValueChange,checkPropChange$2=lib_8.checkPropChange,getClassName$8=lib_8.getClassName,getCompositeAggsQuery$3=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$4=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$4=lib_8.getOptionsForCustomQuery,MultiDropdownList={name:"MultiDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.stringArray,value:types.stringArray,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:Q.string.def("Select values"),queryFormat:Q.oneOf(["and","or"]).def("or"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:Q.any,transformData:types.func,selectAllLabel:types.string,showCount:Q.bool.def(!0),showFilter:Q.bool.def(!0),size:Q.number,sortBy:Q.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:Q.bool.def(!1),showMissing:Q.bool.def(!1),missingLabel:Q.string.def("N/A"),showSearch:Q.bool.def(!1),showClear:Q.bool.def(!1),showLoadMore:Q.bool.def(!1),loadMoreLabel:Q.oneOfType([Q.string,Q.nullable]).def("Load More"),nestedField:types.string,index:Q.string,searchPlaceholder:Q.string.def("Type here to search..."),endpoint:types.endpointConfig},created:function(){var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue,!0):this.$props.value?this.setValue(this.$props.value,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},watch:{selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),isEqual$8(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&checkPropChange$2(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,a=n.$data.modifiedOptions;if(r){var s=e[o].buckets,i=[].concat(a,s.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!s.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=i}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0)},value:function(e,t){isEqual$8(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,a=t.renderError,s=t.renderLabel,i=this.$slots.renderItem||o,u=this.$slots.renderError||a,l=this.$slots.renderLabel||s,c=this.$data.isLastBucket,p=this.$slots.renderNoResults||this.$props.renderNoResults,d=[];return u&&this.error?isFunction(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(d=[{key:this.$props.selectAllLabel,doc_count:this.totalDocumentCount}]),vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$8(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),vue.createVNode(Dropdown,{innerClass:e.$props.innerClass,items:[].concat(d,e.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},e,{key:String(e.key)})}))),hasCustomRenderer:e.hasCustomRenderer,customRenderer:e.getComponent,handleChange:e.handleChange,selectedItem:e.$data.currentValue,placeholder:e.$props.placeholder,labelField:"key",multi:!0,showCount:e.$props.showCount,themePreset:e.themePreset,renderItem:i,renderNoResults:e.$slots.renderNoResults||e.$props.renderNoResults,showSearch:e.$props.showSearch,showClear:e.$props.showClear,searchPlaceholder:e.$props.searchPlaceholder,transformData:e.$props.transformData,footer:n&&!c&&vue.createVNode("div",{css:loadMoreContainer},[vue.createVNode(Button,{onClick:e.handleLoadMore},_isSlot$7(r)?r:{default:function(){return[r]}})]),customLabelRenderer:l},null)]}})):p&&isFunction(p)?vue.createVNode("div",null,[p()]):p&&!isFunction(p)?p:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=parseValueArray(this.currentValue,e);this.$emit("change",t)}},setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,a=this.$data.currentValue,s=null;if(o&&e.includes(o))a[o]?(a={},s=[]):(this.$data.modifiedOptions.forEach((function(e){a[e.key]=!0})),a[o]=!0,s=[o]);else if(t){if(s=e,a={},Array.isArray(e)&&e.forEach((function(e){a[e]=!0})),o&&o in a){var i=a,u=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey$1)));a=_extends({},u)}}else{if(a[e]){var l=a,c=(l[e],_objectWithoutPropertiesLoose(l,[e].map(_toPropertyKey$1)));a=_extends({},c)}else a[e]=!0;if(o&&o in a){var p=a,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey$1)));a=_extends({},d)}s=Object.keys(a)}checkValueChange$4(n.componentId,s,n.beforeValueChange,(function(){r.currentValue=_extends({},a),r.updateQueryHandler(s,n),r.$emit("valueChange",s),r.$emit("value-change",s)}))},updateDefaultQueryHandler:function(e,t){var n=MultiDropdownList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$4(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var a=getOptionsForCustomQuery$4(r);this.setQueryOptions(this.internalComponent,a,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:constants_1$1.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiDropdownList.defaultQuery(e,t);if(n){var o=n(e,t);r=extractQueryFromCustomQuery$4(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var a=getOptionsForCustomQuery$4(o);this.setQueryOptions(t.componentId,a,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiDropdownList})},generateQueryOptions:function(e,t){var n=getQueryOptions$4(e);return e.showLoadMore?getCompositeAggsQuery$3({query:n,props:e,after:t}):getAggsQuery(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=MultiDropdownList.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=getOptionsForCustomQuery$4(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,_extends({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return getComponent(r,this)}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing}}},generateQueryOptions:function(e,t){var n=getQueryOptions$4(e);return e.showLoadMore?getCompositeAggsQuery$3({query:n,props:e,after:t}):getAggsQuery(n,e)},hasInternalComponent:function(){return!0}},mapStateToProps$7=function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId]}},mapDispatchtoProps$5={setQueryOptions:setQueryOptions$4,updateQuery:updateQuery$5,setCustomQuery:setCustomQuery$4,setDefaultQuery:setDefaultQuery$5},ListConnected$3=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$7,mapDispatchtoProps$5)(MultiDropdownList),{componentType:constants_1$1.multiDropdownList,internalComponent:MultiDropdownList.hasInternalComponent()}));ListConnected$3.name=MultiDropdownList.name,ListConnected$3.install=function(e){e.component(ListConnected$3.name,ListConnected$3)},ListConnected$3.componentType=constants_1$1.multiDropdownList;var updateQuery$6=lib_5.updateQuery,setQueryOptions$5=lib_5.setQueryOptions,setCustomQuery$5=lib_5.setCustomQuery,isEqual$9=lib_8.isEqual,checkValueChange$5=lib_8.checkValueChange,getClassName$9=lib_8.getClassName,getOptionsFromQuery=lib_8.getOptionsFromQuery,handleA11yAction$1=lib_8.handleA11yAction,ToggleButton={name:"ToggleButton",props:{componentId:types.stringRequired,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.any,value:types.stringOrArray,filterLabel:types.string,nestedField:types.string,innerClass:types.style,multiSelect:Q.bool,react:types.react,showFilter:Q.bool,title:types.title,URLParams:Q.bool,renderItem:types.func,index:Q.string,enableStrictSelection:Q.bool,endpoint:types.endpointConfig},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=ToggleButton.parseValue(t,e);this.setValue(n),this.$data.currentValue.length&&this.handleToggle(this.$data.currentValue,!0,e,!1)},created:function(){updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(ToggleButton.parseValue(e,this.$props))},dataField:function(){this.updateQuery(this.$data.currentValue,this.$props)},nestedField:function(){this.updateQuery(this.$data.currentValue,this.$props)},value:function(e,t){isEqual$9(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)isEqual$9(this.$data.currentValue,e)||isEqual$9(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;isEqual$9(n,this.selectedValue)||isEqual$9(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQuery(this.$data.currentValue,this.$props)}},methods:{handleToggle:function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!0);var o=this.$data.currentValue,a=e,s=[];s=t?ToggleButton.parseValue(a,n):this.$props.multiSelect?o.some((function(e){return e.value===a.value}))?o.filter((function(e){return e.value!==a.value})):o.concat(a):o.some((function(e){return e.value===a.value}))?[]:[a],this.setValue(s,n,r)},setReact:function(e){e.react&&this.watchComponent(e.componentId,e.react)},setValue:function(e,t,n){var r=this;void 0===t&&(t=this.$props),void 0===n&&(n=!0);checkValueChange$5(t.componentId,t.multiSelect?e:e[0],t.beforeValueChange,(function(){var o=function(){r.updateQuery(e,t),r.$emit("valueChange",e),r.$emit("value-change",e)};n?(r.currentValue=e,o()):o()}))},updateQuery:function(e,t){var n=e;t.multiSelect||(n=e[0]?e[0].value:null);var r=t.customQuery,o=ToggleButton.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,getOptionsFromQuery(r(e,t)),!1),updateCustomQuery(t.componentId,this.setCustomQuery,t,e));this.updateQueryHandler({componentId:t.componentId,query:o,value:n,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return isEqual$9(e,t)})))&&(void 0===this.$props.value?this.handleToggle(e):this.$emit("change",e.value),!0)},renderButton:function(e){var t=this,n=this.$slots.renderItem||this.renderItem,r=this.$data.currentValue.some((function(t){return t.value===e.value}));return n?n({item:e,isSelected:r,handleClick:function(){return t.handleClick(e)}}):vue.createVNode(Button,{class:getClassName$9(this.$props.innerClass,"button")+" "+(r?"active":""),onClick:function(){return t.handleClick(e)},key:e.value,primary:r,large:!0,tabIndex:r?"-1":"0",onKeypress:function(n){return handleA11yAction$1(n,(function(){return t.handleClick(e)}))}},{default:function(){return[e.label]}})}},render:function(){var e=this;return vue.createVNode(Container,{class:toggleButtons},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$9(e.$props.innerClass,"title")},{default:function(){return[e.$props.title]}}),e.$props.data.map((function(t){return e.renderButton(t)}))]}})},parseValue:function(e,t){return Array.isArray(e)?"string"==typeof e[0]?t.data.filter((function(t){return e.includes(t.value)})):e:t.data.filter((function(t){return t.value===e}))},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,nestedField:t.nestedField,selectAllLabel:t.selectAllLabel,showMissing:t.showMissing,multiSelect:t.multiSelect}}}},mapStateToProps$8=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$6={updateQueryHandler:updateQuery$6,setQueryOptions:setQueryOptions$5,setCustomQuery:setCustomQuery$5},TBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$8,mapDispatchtoProps$6)(ToggleButton),{componentType:constants_1$1.toggleButton}));TBConnected.name=ToggleButton.name,TBConnected.install=function(e){e.component(TBConnected.name,TBConnected)},TBConnected.componentType=constants_1$1.toggleButton;var NoSSR=vue.defineComponent({props:{isShow:{type:Boolean,default:void 0}},setup:function(e,t){var n=t.slots,r=vue.ref(!1),o=vue.computed((function(){return(void 0===e.isShow||!!e.isShow)&&r.value}));vue.onMounted((function(){r.value=!0}));var a=n.default?vue.h((function(){return n.default&&n.default()})):vue.createCommentVNode("Client only rendering with empty default slot"),s=n.placeholder?vue.h((function(){return n.placeholder&&n.placeholder()})):vue.createCommentVNode("Client only rendering component placeholder");return function(){return o.value?a:s}}}),_templateObject$o,Slider=styled("div")(_templateObject$o||(_templateObject$o=_taggedTemplateLiteralLoose(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"]))),getComponents=function(){var e={NoSSR:NoSSR};try{var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js"),t.onload=function(){var t=global$1["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}catch(e){console.error("Unable to load vue-slider",e)}return e},addComponent$1=lib_5.addComponent,removeComponent$1=lib_5.removeComponent,watchComponent$1=lib_5.watchComponent,updateQuery$7=lib_5.updateQuery,setQueryListener$1=lib_5.setQueryListener,setQueryOptions$6=lib_5.setQueryOptions,setComponentProps$1=lib_5.setComponentProps,setCustomQuery$6=lib_5.setCustomQuery,updateComponentProps$2=lib_5.updateComponentProps,checkValueChange$6=lib_8.checkValueChange,getClassName$a=lib_8.getClassName,isEqual$a=lib_8.isEqual,checkSomePropChange$1=lib_8.checkSomePropChange,extractQueryFromCustomQuery$5=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$5=lib_8.getOptionsForCustomQuery,DynamicRangeSlider={name:"DynamicRangeSlider",components:getComponents(),props:{beforeValueChange:types.func,className:Q.string.def(""),rangeLabels:types.func,componentId:types.stringRequired,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.func,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:Q.bool.def(!0),destroyOnUnmount:Q.bool,showCheckbox:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),sliderOptions:Q.object.def({}),nestedField:types.string,index:Q.string,value:types.range,endpoint:types.endpointConfig},data:function(){return this.internalRangeComponent=this.$props.componentId+"__range__internal",{currentValue:null,stats:[]}},created:function(){var e=this;this.setQueryListener(this.$props.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),null),this.setComponentProps(this.componentId,this.$props,constants_1$1.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,constants_1$1.dynamicRangeSlider),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},mounted:function(){this.setReact()},beforeMount:function(){var e=[];this.$$store&&(e=this.$$store.getState().components);var t=this.$props.value;(this.destroyOnUnmount||-1===e.indexOf(this.componentId))&&(this.addComponent(this.componentId),this.addComponent(this.internalRangeComponent),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue?this.handleChange(DynamicRangeSlider.parseValue(this.selectedValue,this.$props)):t&&this.handleChange(DynamicRangeSlider.parseValue(t,this.$props)),this.updateRangeQueryOptions())},beforeUpdate:function(){this.currentValue||this.setDefaultValue(this.range)},beforeUnmount:function(){this.destroyOnUnmount&&(this.removeComponent(this.$props.componentId),this.removeComponent(this.internalRangeComponent))},methods:{isControlled:function(){return!(!this.$props.value||!this.$attrs)},setDefaultValue:function(e){var t=e.start,n=e.end;if(this.$props.defaultValue){var r=this.$props.defaultValue(t,n),o=r.start,a=r.end;this.handleChange([o,a])}else this.isControlled()?this.handleChange(DynamicRangeSlider.parseValue(this.$props.value),"change"):this.currentValue=[t,n]},setReact:function(){this.$props.react?(this.watchComponent(this.internalRangeComponent,this.$props.react),this.watchComponent(this.$props.componentId,this.$props.react)):(this.watchComponent(this.internalRangeComponent,{}),this.watchComponent(this.$props.componentId,{}))},rangeQuery:function(){return{min:{min:{field:this.$props.dataField}},max:{max:{field:this.$props.dataField}}}},updateRangeQueryOptions:function(){var e,t={};this.$props.nestedField?((e={})[this.$props.nestedField]={nested:{path:this.$props.nestedField},aggs:this.rangeQuery()},t=e):t=this.rangeQuery();this.setQueryOptions(this.internalRangeComponent,{aggs:t})},handleSlider:function(){var e=this.$refs.slider.getValue();void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleChange:function(e){var t=this,n=[this.range?Math.max(this.range.start,e[0]):e[0],this.range?Math.min(this.range.end,e[1]):e[1]];checkValueChange$6(this.$props.componentId,{start:n[0],end:n[1]},this.$props.beforeValueChange,(function(){t.currentValue=n,t.updateQueryHandler(n,t.$props),t.$emit("valueChange",{start:n[0],end:n[1]}),t.$emit("value-change",{start:n[0],end:n[1]})}))},updateQueryHandler:function(e){var t=DynamicRangeSlider.defaultQuery(e,this.$props);if(this.$props.customQuery){var n=this.$props.customQuery(e,this.$props),r=extractQueryFromCustomQuery$5(n);r&&(t=r);var o=getOptionsForCustomQuery$5(n);updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var a=this.range||{start:e[0],end:e[1]},s=a.start,i=a.end,u=e[0],l=e[1],c=u===s&&l===i;this.updateQuery({componentId:this.$props.componentId,query:t,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!c,URLParams:this.$props.URLParams,componentType:constants_1$1.dynamicRangeSlider})}},computed:{labels:function(){return this.rangeLabels?this.rangeLabels(this.range.start,this.range.end):null}},watch:{$props:{deep:!0,handler:function(e){var t=this,n=getValidPropsKeys(e);checkSomePropChange$1(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,constants_1$1.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,constants_1$1.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!isEqual$a(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.$emit("change",t),this.handleChange(DynamicRangeSlider.parseValue(t,this.$props))}},range:function(e,t){if(!isEqual$a(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],a=t||{},s=a.start,i=a.end,u=r===s?e.start:r,l=o===i?e.end:o;this.handleChange([u,l])}},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)},value:function(e,t){isEqual$a(e,t)||this.handleChange(DynamicRangeSlider.parseValue(e,this.$props))}},render:function(){var e=this;if(!this.range||!this.currentValue)return null;var t=this.range,n=t.start,r=t.end;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$a(e.$props.innerClass,"title")},{default:function(){return[e.$props.title]}}),vue.createVNode(NoSSR,null,{default:function(){return[vue.createVNode(Slider,{class:getClassName$a(e.$props.innerClass,"slider")},{default:function(){return[vue.createVNode(vue.resolveComponent("vue-slider-component"),vue.mergeProps({ref:"slider",modelValue:[Math.floor(Math.max(n,e.currentValue[0])),Math.ceil(Math.min(r,e.currentValue[1]))],min:Math.floor(Math.min(n,e.currentValue[0])),max:Math.ceil(Math.max(r,e.currentValue[1])),"onDrag-end":e.handleSlider,dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},e.$props.sliderOptions),null),e.labels?vue.createVNode("div",{class:"label-container"},[vue.createVNode("label",{class:getClassName$a(e.$props.innerClass,"label")||"range-label-left"},[e.labels.start]),vue.createVNode("label",{class:getClassName$a(e.$props.innerClass,"label")||"range-label-right"},[e.labels.end])]):null]}})]}})]}})},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,showMissing:t.showMissing}}},parseValue:function(e){return e?Array.isArray(e)?e:[e.start,e.end]:[]},hasInternalComponent:function(){return!0}},mapStateToProps$9=function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],a=e.aggregations[t.componentId+"__range__internal"];return t.nestedField?(o=o&&n[t.dataField][t.nestedField]&&n[t.dataField][t.nestedField].buckets?n[t.dataField][t.nestedField].buckets:[],a=a&&r[t.nestedField].min?{start:r[t.nestedField].min.value,end:r[t.nestedField].max.value}:null):(o=o&&n[t.dataField].buckets?n[t.dataField].buckets:[],a=a&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:a,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$7={addComponent:addComponent$1,removeComponent:removeComponent$1,updateQuery:updateQuery$7,watchComponent:watchComponent$1,setQueryListener:setQueryListener$1,setQueryOptions:setQueryOptions$6,setComponentProps:setComponentProps$1,setCustomQuery:setCustomQuery$6,updateComponentProps:updateComponentProps$2},RangeConnected=PreferencesConsumer(connect(mapStateToProps$9,mapDispatchtoProps$7)(DynamicRangeSlider));function _isSlot$8(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}RangeConnected.name=DynamicRangeSlider.name,RangeConnected.install=function(e){e.component(RangeConnected.name,RangeConnected)},RangeConnected.componentType=constants_1$1.dynamicRangeSlider;var updateQuery$8=lib_5.updateQuery,setQueryOptions$7=lib_5.setQueryOptions,setCustomQuery$7=lib_5.setCustomQuery,isEqual$b=lib_8.isEqual,checkValueChange$7=lib_8.checkValueChange,getClassName$b=lib_8.getClassName,getOptionsFromQuery$1=lib_8.getOptionsFromQuery,SingleRange={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.string,value:types.value,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:Q.bool.def(!0),showRadio:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),nestedField:types.string,index:Q.string,endpoint:types.endpointConfig},created:function(){updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){isEqual$b(e,t)||this.setValue(e)},selectedValue:function(e){isEqual$b(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e,t=this;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[t.$props.title&&vue.createVNode(Title,{class:getClassName$b(t.$props.innerClass,"title")},{default:function(){return[t.$props.title]}}),vue.createVNode(UL,{class:getClassName$b(t.$props.innerClass,"list")},_isSlot$8(e=t.$props.data.map((function(e){var n=!!t.$data.currentValue&&t.$data.currentValue.label===e.label;return vue.createVNode("li",{key:e.label,class:n?"active":""},[vue.createVNode(Radio,vue.mergeProps(babelHelperVueTransformOn({change:t.handleChange}),{class:getClassName$b(t.$props.innerClass,"radio"),id:t.$props.componentId+"-"+e.label,name:t.$props.componentId,value:e.label,type:"radio",checked:n,show:t.$props.showRadio}),null),vue.createVNode("label",{class:getClassName$b(t.$props.innerClass,"label"),for:t.$props.componentId+"-"+e.label},[e.label])])})))?e:{default:function(){return[e]}})]}})},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r="string"==typeof e?SingleRange.parseValue(e,t):e;checkValueChange$7(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=SingleRange.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=getOptionsFromQuery$1(n(e,t));updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.singleRange})},handleChange:function(e){void 0===this.$props.value?this.setValue(e.target.value):this.$emit("change",e.target.value)}},parseValue:function(e,t){return t.data.find((function(t){return t.label===e}))||null},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,showMissing:t.showMissing}}}},mapStateToProps$a=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$8={updateQuery:updateQuery$8,setQueryOptions:setQueryOptions$7,setCustomQuery:setCustomQuery$7},RangeConnected$1=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$a,mapDispatchtoProps$8)(SingleRange),{componentType:constants_1$1.singleRange}));function _isSlot$9(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}RangeConnected$1.name=SingleRange.name,RangeConnected$1.install=function(e){e.component(RangeConnected$1.name,RangeConnected$1)},RangeConnected$1.componentType=constants_1$1.singleRange;var updateQuery$9=lib_5.updateQuery,setQueryOptions$8=lib_5.setQueryOptions,setCustomQuery$8=lib_5.setCustomQuery,isEqual$c=lib_8.isEqual,checkValueChange$8=lib_8.checkValueChange,getClassName$c=lib_8.getClassName,getOptionsFromQuery$2=lib_8.getOptionsFromQuery,MultiRange={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:types.func,className:Q.string.def(""),componentId:types.stringRequired,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.stringArray,value:types.stringArray,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:Q.bool.def(!0),showCheckbox:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),nestedField:types.string,index:Q.string,endpoint:types.endpointConfig},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=parseValueArray(this.selectedValues,e.target.value);this.$emit("change",t)}},selectItem:function(e,t,n,r){var o=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!1);var a=this.currentValue,s=this.selectedValues;if(e)if(t){a=MultiRange.parseValue(e,n);var i={};a.forEach((function(e){i[[e.label]]=!0})),s=r?i:_extends({},s,i)}else if(s[e]){a=a.filter((function(t){return t.label!==e}));var u=s,l=(u[e],_objectWithoutPropertiesLoose(u,[e].map(_toPropertyKey$1)));s=l}else{var c,p=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));a=[].concat(a,p),s=_extends({},s,((c={})["object"==typeof e?e.label:e]=!0,c))}else a=[],s={};checkValueChange$8(n.componentId,a,n.beforeValueChange,(function(){o.currentValue=a,o.selectedValues=s,o.updateQueryHandler(a,n),o.$emit("valueChange",Object.keys(s)),o.$emit("value-change",Object.keys(s))}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=MultiRange.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=getOptionsFromQuery$2(n(e,t));updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:constants_1$1.multiRange})}},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.selectItem(e,!0,void 0,!0)},value:function(e,t){isEqual$c(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){if(!isEqual$c(this.$data.currentValue,e)){var t=e?e.map((function(e){return"object"==typeof e&&"label"in e?e.label:e})):null;this.selectItem(t,!0,void 0,!0)}},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.selectItem(this.selectedValue,!0):this.$props.value?this.selectItem(this.$props.value,!0):this.$props.defaultValue&&this.selectItem(this.$props.defaultValue,!0)},render:function(){var e,t=this;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[t.$props.title&&vue.createVNode(Title,{class:getClassName$c(t.$props.innerClass,"title")},{default:function(){return[t.$props.title]}}),vue.createVNode(UL,{class:getClassName$c(t.$props.innerClass,"list")},_isSlot$9(e=t.$props.data.map((function(e){var n=!!t.$data.currentValue&&t.$data.currentValue.label===e.label;return vue.createVNode("li",{key:e.label,class:n?"active":""},[vue.createVNode(Checkbox,vue.mergeProps(babelHelperVueTransformOn({click:t.handleClick}),{class:getClassName$c(t.$props.innerClass,"checkbox"),id:t.$props.componentId+"-"+e.label,name:t.$props.componentId,value:e.label,type:"Checkbox",show:t.$props.showCheckbox,checked:t.selectedValues[e.label]}),null),vue.createVNode("label",{class:getClassName$c(t.$props.innerClass,"label"),for:t.$props.componentId+"-"+e.label},[e.label])])})))?e:{default:function(){return[e]}})]}})},parseValue:function(e,t){return e?t.data.filter((function(t){return e.includes(t.label)})):null},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,showMissing:t.showMissing}}}},mapStateToProps$b=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$9={updateQuery:updateQuery$9,setQueryOptions:setQueryOptions$8,setCustomQuery:setCustomQuery$8},RangeConnected$2=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$b,mapDispatchtoProps$9)(MultiRange),{componentType:constants_1$1.multiRange}));RangeConnected$2.name=MultiRange.name,RangeConnected$2.install=function(e){e.component(RangeConnected$2.name,RangeConnected$2)},RangeConnected$2.componentType=constants_1$1.multiRange;var updateQuery$a=lib_5.updateQuery,setQueryOptions$9=lib_5.setQueryOptions,setCustomQuery$9=lib_5.setCustomQuery,checkValueChange$9=lib_8.checkValueChange,getClassName$d=lib_8.getClassName,getOptionsFromQuery$3=lib_8.getOptionsFromQuery,isEqual$d=lib_8.isEqual,RangeSlider={name:"RangeSlider",components:getComponents(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:types.func,className:Q.string.def(""),range:Q.shape({start:Q.integer.def(0),end:Q.integer.def(10)}),rangeLabels:types.rangeLabels,componentId:types.stringRequired,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.range,value:types.range,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:Q.bool.def(!0),showCheckbox:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),sliderOptions:Q.object.def({}),nestedField:types.string,index:Q.string,endpoint:types.endpointConfig},methods:{handleSliderChange:function(e){void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleSlider:function(){var e=this.$refs.slider.getValue();this.handleSliderChange(e)},handleChange:function(e,t){var n=this;void 0===t&&(t=this.$props);checkValueChange$9(t.componentId,{start:e[0],end:e[1]},t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler([e[0],e[1]],t),n.$emit("valueChange",{start:e[0],end:e[1]}),n.$emit("value-change",{start:e[0],end:e[1]})}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=RangeSlider.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=getOptionsFromQuery$3(n(e,t));updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}var a=t.showFilter,s=t.range,i=s.start,u=s.end,l=e[0],c=e[1],p=l===i&&c===u;this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:a&&!p,URLParams:t.URLParams,componentType:constants_1$1.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(RangeSlider.parseValue(e,this.$props))},value:function(e,t){isEqual$d(e,t)||this.handleChange(RangeSlider.parseValue(e,this.$props))},selectedValue:function(e){isEqual$d(this.$data.currentValue,e)||(this.handleChange(RangeSlider.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){this.$props.range||console.error("%crange is not defined. Read more about this at https://opensource.appbase.io/reactive-manual/vue/range-components/rangeslider.html#props","font-size: 12.5px;"),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){var e=this.$props,t=e.value,n=e.defaultValue,r=this.selectedValue;this.$props.range&&(Array.isArray(r)?this.handleChange(r):r?this.handleChange(RangeSlider.parseValue(r,this.$props)):t?this.handleChange(RangeSlider.parseValue(t,this.$props)):n&&this.handleChange(RangeSlider.parseValue(n,this.$props)))},render:function(){var e=this;return vue.createVNode(Container,{class:this.$props.className},{default:function(){return[e.$props.title&&vue.createVNode(Title,{class:getClassName$d(e.$props.innerClass,"title")},{default:function(){return[e.$props.title]}}),e.$props.range?vue.createVNode(NoSSR,null,{default:function(){return[vue.createVNode(Slider,{class:getClassName$d(e.$props.innerClass,"slider")},{default:function(){return[vue.createVNode(vue.resolveComponent("vue-slider-component"),vue.mergeProps({ref:"slider",modelValue:e.currentValue,min:e.$props.range.start,max:e.$props.range.end,dotSize:20,height:4,"enable-cross":!1,"onDrag-end":e.handleSlider,tooltip:"always"},e.$props.sliderOptions),null),e.$props.rangeLabels&&vue.createVNode("div",{class:"label-container"},[vue.createVNode("label",{class:getClassName$d(e.$props.innerClass,"label")||"range-label-left"},[e.$props.rangeLabels.start]),vue.createVNode("label",{class:getClassName$d(e.$props.innerClass,"label")||"range-label-right"},[e.$props.rangeLabels.end])])]}})]}}):null]}})},defaultQuery:function(e,t){return{query:{queryFormat:t.queryFormat,dataField:t.dataField,value:e,showMissing:t.showMissing}}},parseValue:function(e,t){return e?Array.isArray(e)?e:[e.start,e.end]:t.range?[t.range.start,t.range.end]:[]}},mapStateToProps$c=function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId]}},mapDispatchtoProps$a={updateQuery:updateQuery$a,setQueryOptions:setQueryOptions$9,setCustomQuery:setCustomQuery$9},RangeConnected$3=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$c,mapDispatchtoProps$a)(RangeSlider),{componentType:constants_1$1.rangeSlider})),_templateObject$p;RangeConnected$3.name=RangeSlider.name,RangeConnected$3.install=function(e){e.component(RangeConnected$3.name,RangeConnected$3)},RangeConnected$3.componentType=constants_1$1.rangeSlider;var alert=function(e){return"\n\tcolor: "+e.theme.colors.alertColor+";\n"},Content=styled("div")(_templateObject$p||(_templateObject$p=_taggedTemplateLiteralLoose(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&alert})),getClassName$e=lib_8.getClassName,isEqual$e=lib_8.isEqual,RangeInput={name:"RangeInput",components:{RangeSlider:RangeConnected$3},inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:{start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10},isStartValid:!0,isEndValid:!0}},props:{className:{types:types.string,default:""},defaultValue:types.range,validateRange:types.func,value:types.range,dataField:types.stringRequired,innerClass:types.style,range:{types:types.range,default:function(){return{start:0,end:10}}},rangeLabels:types.rangeLabels,stepValue:types.number,componentStyle:types.style,componentId:types.stringRequired,includeNullValues:Q.bool,beforeValueChange:types.func,customQuery:types.func,data:types.data,filterLabel:types.string,react:types.react,showFilter:Q.bool.def(!0),showCheckbox:Q.bool.def(!0),title:types.title,URLParams:Q.bool.def(!1),sliderOptions:Q.object.def({}),nestedField:types.string,endpoint:types.endpointConfig},methods:{shouldUpdate:function(e){var t=this.$props.validateRange;return t&&e?t([e.start,e.end]):!!e&&e.start<=e.end},isControlled:function(){return!(!this.$props.value||!this.$attrs)},handleChange:function(e,t){var n=e;if(this.shouldUpdate(e)&&!isEqual$e(e,this.currentValue))switch(t){case"change":e||(n={start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10}),this.currentValue=n,this.$emit("change",this.currentValue);break;case"value-change":this.$emit("valueChange",this.currentValue),this.$emit("value-change",this.currentValue);break;default:this.currentValue=_extends({},n)}},handleOnChange:function(e){this.handleChange(e||this.$props.range,"change")},handleValueChange:function(e){this.handleChange(e,"value-change")},handleInputChange:function(e){var t=e.target,n=t.name,r=t.value;Number.isNaN(r)?"start"===n?this.isStartValid=!1:this.isEndValid=!1:"start"!==n||this.isStartValid?"end"!==n||this.isEndValid||(this.isEndValid=!0):this.isStartValid=!0,this.isStartValid&&this.isEndValid&&("start"===n?this.handleChange({start:Number(r),end:this.currentValue.end},"change"):this.handleChange({start:this.currentValue.start,end:Number(r)},"change"))}},watch:{defaultValue:function(e,t){t.start===e.start&&t.end===e.end||this.handleChange(e)},value:function(e,t){isEqual$e(e,t)||this.isControlled()&&this.handleChange(e,"change")}},created:function(){this.$props.defaultValue&&this.$props.defaultValue.start&&this.$props.defaultValue.end&&this.handleChange(this.$props.defaultValue),this.isControlled()&&this.handleChange(this.$props.value,"change")},render:function(){var e=this,t=this.$props,n=t.className,r=t.dataField,o=t.range,a=t.rangeLabels,s=t.componentId,i=t.innerClass,u=t.stepValue,l=t.componentStyle,c=t.themePreset,p=t.includeNullValues,d=t.beforeValueChange,h=t.customQuery,f=t.data,m=t.filterLabel,g=t.react,y=t.showFilter,v=t.showCheckbox,b=t.title,_=t.URLParams,$=t.sliderOptions,C=t.nestedField;return vue.createVNode(Container,{style:l,class:n},{default:function(){return[vue.createVNode(RangeConnected$3,vue.mergeProps(babelHelperVueTransformOn({change:e.handleOnChange,"value-change":e.handleValueChange}),{componentId:s,value:{start:e.currentValue.start,end:e.currentValue.end},range:o,dataField:r,rangeLabels:a,includeNullValues:p,beforeValueChange:d,customQuery:h,data:f,filterLabel:m,react:g,showFilter:y,showCheckbox:v,title:b,URLParams:_,sliderOptions:$,nestedField:C}),null),vue.createVNode(Flex,{class:getClassName$e(i,"input-container")||""},{default:function(){return[vue.createVNode(Flex,{direction:"column",flex:2},{default:function(){return[vue.createVNode(Input,vue.mergeProps(babelHelperVueTransformOn({change:e.handleInputChange}),{key:s+"-start-value",name:"start",type:"number",step:u,themePreset:c,"aria-label":s+"-start-input",min:e.$props.range?e.$props.range.start:0,class:getClassName$e(i,"input")||"",alert:!e.isStartValid,value:e.currentValue.start||0}),null),!e.isStartValid&&vue.createVNode(Content,{alert:!0},{default:function(){return[vue.createTextVNode("Input range is invalid")]}})]}}),vue.createVNode(Flex,{justifyContent:"center",alignItems:"center",flex:1},{default:function(){return[vue.createTextVNode("-")]}}),vue.createVNode(Flex,{direction:"column",flex:2},{default:function(){return[vue.createVNode(Input,vue.mergeProps(babelHelperVueTransformOn({change:e.handleInputChange}),{key:s+"-end-value",name:"end",type:"number",step:u,themePreset:c,"aria-label":s+"-end-input",max:e.$props.range?e.$props.range.end:10,class:getClassName$e(i,"input")||"",alert:!e.isEndValid,value:e.currentValue.end||0}),null),!e.isEndValid&&vue.createVNode(Content,{alert:!0},{default:function(){return[vue.createTextVNode("Input range is invalid")]}})]}})]}})]}})}},mapStateToProps$d=function(e){return{themePreset:e.config.themePreset}},RangeConnected$4=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$d,{})(RangeInput),{componentType:constants_1$1.rangeInput}));RangeConnected$4.name=RangeInput.name,RangeConnected$4.install=function(e){e.component(RangeConnected$4.name,RangeConnected$4)},RangeConnected$4.componentType=constants_1$1.rangeInput;var _excluded$1=["options"],updateQuery$b=lib_5.updateQuery,setQueryOptions$a=lib_5.setQueryOptions,setCustomQuery$a=lib_5.setCustomQuery,setDefaultQuery$6=lib_5.setDefaultQuery,parseHits$1=lib_8.parseHits,isEqual$f=lib_8.isEqual,getCompositeAggsQuery$4=lib_8.getCompositeAggsQuery,getResultStats$2=lib_8.getResultStats,extractQueryFromCustomQuery$6=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$6=lib_8.getOptionsForCustomQuery,ReactiveComponent={name:"ReactiveComponent",props:{componentId:types.stringRequired,aggregationField:types.string,aggregationSize:Q.number,size:Q.number,defaultQuery:types.func,customQuery:types.func,filterLabel:types.string,react:types.react,showFilter:Q.bool.def(!0),URLParams:Q.bool.def(!1),distinctField:types.string,distinctFieldConfig:types.props,index:Q.string,endpoint:types.endpointConfig},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,a=t.showFilter,s=t.URLParams;if(n){var i=n(this.selectedValue,t),u=extractQueryFromCustomQuery$6(i),l=i?getOptionsForCustomQuery$6(i):null;l?this.setQueryOptions(r,_extends({},l,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:u,value:this.selectedValue||null,label:o,showFilter:a,URLParams:s})}if(this.setQuery=function(n){var r=n.options,o=_objectWithoutPropertiesLoose(n,_excluded$1),a=o.query;a&&a.query&&(a=a.query);var s=_extends({},r,{query:a}),i=s;a&&a.id&&(i=a),e.setCustomQuery(t.componentId,i),r&&e.setQueryOptions(t.componentId,_extends({},e.getAggsQuery(),r),!1),e.updateQuery(_extends({},o,{query:s.query,componentId:t.componentId,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams}))},t.defaultQuery&&(this.internalComponent=t.componentId+"__internal"),this.internalComponent&&this.$props.defaultQuery){updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var c=extractQueryFromCustomQuery$6(this.$defaultQuery),p=getOptionsForCustomQuery$6(this.$defaultQuery);p?this.setQueryOptions(this.internalComponent,_extends({},p,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:c})}},watch:{hits:function(e,t){isEqual$f(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){isEqual$f(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){isEqual$f(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){isEqual$f(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){isEqual$f(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$f(e,t)||this.$emit("data",this.getData())},total:function(e,t){isEqual$f(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$f(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!isQueryIdentical(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=extractQueryFromCustomQuery$6(this.$defaultQuery),r=getOptionsForCustomQuery$6(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,_extends({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!isQueryIdentical(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=extractQueryFromCustomQuery$6(this.$customQuery),o=getOptionsForCustomQuery$6(this.$customQuery);o?this.setQueryOptions(n,_extends({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.selectedValue),this.updateQuery({componentId:n,query:r})}}},render:function(){try{var e=this.$slots.default,t=this.error,n=this.isLoading,r=this.selectedValue,o=_extends({error:t,loading:n},this.getData(),{value:r,setQuery:this.setQuery});return vue.createVNode("div",null,[e(o)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:getCompositeAggsQuery$4({props:this.$props,showTopHits:!0,value:this.selectedValue}).aggs}:{}},getData:function(){var e=this.hits,t=this.aggregations,n=this.aggregationData,r=this.promotedResults,o=this.rawData,a=parseHits$1(e);if(r.length){var s=r.map((function(e){return e._id})).filter(Boolean);s&&(a=a.filter((function(e){return!s.includes(e._id)}))),a=[].concat(r,a)}return{data:a,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return getResultStats$2(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},mapStateToProps$e=function(e,t){return{aggregations:e.aggregations[t.componentId]&&e.aggregations[t.componentId]||null,aggregationData:e.compositeAggregations[t.componentId]||[],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits||[],rawData:e.rawData[t.componentId],error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,promotedResults:e.promotedResults[t.componentId]||[],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,componentProps:e.props[t.componentId]}},mapDispatchtoProps$b={setQueryOptions:setQueryOptions$a,updateQuery:updateQuery$b,setCustomQuery:setCustomQuery$a,setDefaultQuery:setDefaultQuery$6},ConnectedComponent=ComponentWrapper$1(connect(mapStateToProps$e,mapDispatchtoProps$b)(ReactiveComponent),{componentType:constants_1$1.reactiveComponent}),RcConnected=PreferencesConsumer({name:"RcConnected",render:function(){var e=ConnectedComponent;switch(this.$attrs.componentType){case constants_1$1.reactiveList:e=RLConnected;break;case constants_1$1.searchBox:e=SBConnected;break;case constants_1$1.singleList:e=ListConnected;break;case constants_1$1.multiList:e=ListConnected$1;break;case constants_1$1.singleDropdownList:e=ListConnected$2;break;case constants_1$1.multiDropdownList:e=ListConnected$3;break;case constants_1$1.toggleButton:e=TBConnected;break;case constants_1$1.dynamicRangeSlider:e=RangeConnected;break;case constants_1$1.singleRange:e=RangeConnected$1;break;case constants_1$1.multiRange:e=RangeConnected$2;break;case constants_1$1.rangeSlider:e=RangeConnected$3;break;case constants_1$1.rangeInput:e=RangeConnected$4}return vue.h(e,null,this.$slots)}});RcConnected.name=ReactiveComponent.name,RcConnected.install=function(e){e.component(RcConnected.name,RcConnected)},RcConnected.componentType=constants_1$1.reactiveComponent;var setValue$2=lib_5.setValue,clearValues=lib_5.clearValues,resetValuesToDefault=lib_5.resetValuesToDefault,getClassName$f=lib_8.getClassName,handleA11yAction$2=lib_8.handleA11yAction,SelectedFilters={name:"SelectedFilters",props:{className:Q.string.def(""),clearAllLabel:Q.string.def("Clear All"),innerClass:types.style,showClearAll:Q.bool.def(!0),title:types.title,resetToDefault:Q.bool.def(!1),clearAllBlacklistComponents:Q.array,resetToValues:Q.object},inject:{theme:{from:"theme_reactivesearch"}},render:function(){var e=this;if(this.$slots.default)return this.$slots.default({components:this.components,selectedValues:this.selectedValues,clearValues:this.clearValues,clearValue:this.clearValue,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var t=this.renderFilters(),n=!!t.length;return vue.createVNode(Container,{class:filters(this.theme)+" "+(this.$props.className||"")},{default:function(){return[e.$props.title&&n&&vue.createVNode(Title,{class:getClassName$f(e.$props.innerClass,"title")||""},{default:function(){return[e.$props.title]}}),t,e.$props.showClearAll&&n&&t.length>1?vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:e.clearValues,keypress:function(t){return handleA11yAction$2(t,(function(){return e.clearValues()}))}}),{class:getClassName$f(e.$props.innerClass,"button")||"",tabIndex:"0"}),{default:function(){return[e.$props.clearAllLabel]}}):null]}})},methods:{remove:function(e,t){void 0===t&&(t=null),this.setValue(e,null),this.$emit("clear",e,t)},clearValues:function(){var e=this.resetToDefault,t=this.resetToValues,n=this.clearAllBlacklistComponents;e?this.resetValuesToDefault(n):this.clearValuesAction(t,n),this.$emit("clear",t)},clearValue:function(e){var t=this.resetToDefault,n=this.resetToValues;t?this.resetValuesToDefault(this.components.filter((function(t){return t!==e}))):this.setValue(e,(null==n?void 0:n[e])||null),this.$emit("clear",null==n?void 0:n[e])},renderValue:function(e,t){var n=this;if(t&&e.length)return e.map((function(e){return n.renderValue(e)})).join(", ");if(e&&"object"==typeof e){var r=("string"==typeof e.label?e.label:e.value)||e.key||e.distance||null;return e.location&&(r=e.location+" - "+r),r}return e},renderFilterButton:function(e,t,n,r){return vue.createVNode(Button,vue.mergeProps(babelHelperVueTransformOn({click:n,keypress:function(e){return handleA11yAction$2(e,n)}}),{class:getClassName$f(this.$props.innerClass,"button")||"",key:t,tabIndex:"0"}),{default:function(){return[vue.createVNode("span",null,[r]),vue.createVNode("span",null,[vue.createTextVNode("✕")])]}})},renderFilters:function(){var e=this,t=this.selectedValues;return Object.keys(t).filter((function(n){return e.components.includes(n)&&t[n].showFilter})).map((function(n,r){var o=t[n],a=o.label,s=o.value,i=Array.isArray(s);if(a&&(i&&s.length||!i&&s)){var u=e.renderValue(s,i);return e.renderFilterButton(n,n+"-"+(r+1),(function(){return e.remove(n,s)}),t[n].label+": "+decodeHtml(u))}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},mapStateToProps$f=function(e){return{components:e.components,selectedValues:e.selectedValues}},mapDispatchtoProps$c={clearValuesAction:clearValues,setValue:setValue$2,resetValuesToDefault:resetValuesToDefault},RcConnected$1=connect(mapStateToProps$f,mapDispatchtoProps$c)(SelectedFilters);function _isSlot$a(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}RcConnected$1.name=SelectedFilters.name,RcConnected$1.install=function(e){e.component(RcConnected$1.name,RcConnected$1)};var ResultCardTitle={name:"ResultCardTitle",render:function(){var e,t=this.$slots.default;return vue.createVNode(Title,this.$props,_isSlot$a(e=t())?e:{default:function(){return[e]}})},install:function(e){e.component(ResultCardTitle.name,ResultCardTitle)}},_excluded$2=["src"],ResultCardImage={name:"ResultCardImage",props:{src:Q.string.isRequired},render:function(){var e=this.$props,t=e.src,n=_objectWithoutPropertiesLoose(e,_excluded$2);return vue.createVNode(Image$1,vue.mergeProps({style:{backgroundImage:"url("+t+")"}},n),null)},install:function(e){e.component(ResultCardImage.name,ResultCardImage)}},ResultCardDescription={name:"ResultCardDescription",functional:!0,render:function(e){return vue.createVNode("article",e.$props,[e.$slots.default()])},install:function(e){e.component(ResultCardDescription.name,ResultCardDescription)}},_excluded$3=["href","target"];function _isSlot$b(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var ResultCard={name:"ResultCard",components:{ResultCardTitle:ResultCardTitle,ResultCardImage:ResultCardImage,ResultCardDescription:ResultCardDescription},props:{target:Q.string.def("_blank"),href:types.string},render:function(){var e,t=this.$slots.default,n=this.$props,r=n.href,o=n.target,a=_objectWithoutPropertiesLoose(n,_excluded$3);return vue.createVNode(Card,vue.mergeProps({href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null},a),_isSlot$b(e=t())?e:{default:function(){return[e]}})},install:function(e){e.component(ResultCard.name,ResultCard),e.component(ResultCardTitle.name,ResultCardTitle),e.component(ResultCardImage.name,ResultCardImage),e.component(ResultCardDescription.name,ResultCardDescription)}},ResultListContent={name:"ResultListContent",functional:!0,render:function(e){return vue.createVNode("article",e.$props,[e.$slots.default()])},install:function(e){e.component(ResultListContent.name,ResultListContent)}},ResultListDescription={name:"ResultListDescription",functional:!0,render:function(e){return vue.createVNode("div",e.$props,[e.$slots.default()])},install:function(e){e.component(ResultListDescription.name,ResultListDescription)}},_excluded$4=["src","small"],ResultListImage={name:"ResultListImage",props:{src:Q.string.isRequired,small:Q.bool.def(!1)},render:function(){var e=this.$props,t=e.src,n=e.small,r=_objectWithoutPropertiesLoose(e,_excluded$4);return vue.createVNode(Image,vue.mergeProps({src:t,small:n},r),null)}};function _isSlot$c(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}ResultListImage.install=function(e){e.component(ResultListImage.name,ResultListImage)};var ResultListTitle={name:"ResultListTitle",render:function(){var e,t=this.$slots.default;return vue.createVNode(Title,this.$props,_isSlot$c(e=t())?e:{default:function(){return[e]}})},install:function(e){e.component(ResultListTitle.name,ResultListTitle)}},_excluded$5=["href","target"];function _isSlot$d(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!vue.isVNode(e)}var ResultList={name:"ResultList",props:{href:types.string,target:Q.string.def("_blank")},components:{ResultListContent:ResultListContent,ResultListDescription:ResultListDescription,ResultListImage:ResultListImage,ResultListTitle:ResultListTitle},data:function(){return this.__state={hasImage:!1,isSmall:!1},this.__state},mounted:function(){var e=this.$slots.default().find((function(e){return e.type&&e.type.name===ResultListImage.name}));e&&e.props&&(this.hasImage=!0,e.props.small&&(this.isSmall=!0))},render:function(){var e,t=this.$props,n=t.href,r=t.target,o=_objectWithoutPropertiesLoose(t,_excluded$5),a=this.hasImage,s=this.isSmall,i=this.$slots.default;return vue.createVNode(ListItem,vue.mergeProps({href:n,image:a,small:s,target:r,rel:"_blank"===r?"noopener noreferrer":null},o),_isSlot$d(e=i())?e:{default:function(){return[e]}})},install:function(e){e.component(ResultList.name,ResultList),e.component(ResultListContent.name,ResultListContent),e.component(ResultListDescription.name,ResultListDescription),e.component(ResultListImage.name,ResultListImage),e.component(ResultListTitle.name,ResultListTitle)}},setSearchState=lib_5.setSearchState,getSearchState=lib_8.getSearchState,defaultKeys=["hits","value","aggregations","error"],filterProps=function(e){return void 0===e&&(e={}),_extends({},e,{props:e.componentProps})},convertArrayLike=function(e){for(var t=[],n=0;e[n];)t[n]=e[n],n+=1;return t},filterByComponentIds=function(e,t){void 0===t&&(t={});var n=t,r=n.componentIds,o=n.excludeComponentIds;if(r){var a;if("string"==typeof r)return(a={})[r]=e[r],a;if(Array.isArray(r)&&r.length){var s={};return r.forEach((function(t){s[t]=e[t]})),s}}var i={};return t.includeInternalComponents?i=e:Object.keys(e).forEach((function(t){t.endsWith("internal")||t.endsWith("active")||t.endsWith("timestamp")||(i[t]=e[t])})),o&&("string"==typeof o&&Object.keys(e).forEach((function(e){e===o&&delete i[e]})),Array.isArray(o)&&o.length&&Object.keys(e).forEach((function(e){o.includes(e)&&delete i[e]}))),i},filterByKeys=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return _extends({},n,((o={})[r]=Object.keys(e[r]).filter((function(e){return t.includes(e)})).reduce((function(t,n){return t[n]=e[r][n],t}),{}),o))}),{})},StateProvider={name:"StateProvider",props:{onChange:Q.func,componentIds:Q.oneOfType([Q.string,Q.arrayOf(Q.string)]),includeKeys:Q.arrayOf(Q.string).def(defaultKeys),strict:Q.bool.def(!0),includeInternalComponents:Q.bool.def(!1),excludeComponentIds:Q.oneOfType([Q.string,Q.arrayOf(Q.string)])},data:function(){return this.__state={searchState:null},this.__state},created:function(){this.searchState=filterByKeys(getSearchState(filterProps(this.searchStateProps)),this.includeKeys)},computed:{searchStateProps:function(){return{selectedValues:this.selectedValues||{},queryLog:this.queryLog||{},dependencyTree:this.dependencyTree||{},componentProps:this.componentProps||{},hits:this.hits||{},aggregations:this.aggregations||{},isLoading:this.isLoading||{},error:this.error||{},promotedResults:this.promotedResults||{},rawData:this.rawData||{}}}},watch:{searchState:function(e,t){null!=t&&this.isStateChanged(e,t)&&this.$emit("change",t,e)},selectedValues:function(e,t){this.calculateSearchState(e,t)},queryLog:function(e,t){this.calculateSearchState(e,t)},dependencyTree:function(e,t){this.calculateSearchState(e,t)},componentProps:function(e,t){this.calculateSearchState(e,t)},hits:function(e,t){this.calculateSearchState(e,t)},aggregations:function(e,t){this.calculateSearchState(e,t)},isLoading:function(e,t){this.calculateSearchState(e,t)},error:function(e,t){this.calculateSearchState(e,t)},componentIds:function(e,t){this.calculateSearchState(e,t)},excludeComponentIds:function(e,t){this.calculateSearchState(e,t)},includeKeys:function(e,t){this.calculateSearchState(e,t)},promotedResults:function(e,t){this.calculateSearchState(e,t)},rawData:function(e,t){this.calculateSearchState(e,t)},customData:function(e,t){this.calculateSearchState(e,t)},settings:function(e,t){this.calculateSearchState(e,t)}},methods:{isStateChanged:function(e,t){return JSON.stringify(t)!==JSON.stringify(e)},calculateSearchState:function(e,t){this.isStateChanged(e,t)&&(this.searchState=filterByKeys(getSearchState(filterProps(this.searchStateProps)),this.includeKeys))},setSearchState:function(e){var t=this;void 0===e&&(e={});var n=this.components,r={};convertArrayLike(n).filter((function(e){return!transform_12(e)})).forEach((function(n){r[n]=n in e?{value:e[n],componentProps:t.componentProps[n]}:{value:null,componentProps:t.componentProps[n]}})),this.setSearchStateFn(r)}},render:function(){var e=this.searchState,t=this.$slots.default;return t?t({searchState:e,setSearchState:this.setSearchState}):null}},mapStateToProps$g=function(e,t){return{selectedValues:filterByComponentIds(e.selectedValues,t),queryLog:filterByComponentIds(e.queryLog,t),dependencyTree:filterByComponentIds(e.dependencyTree,t),componentProps:filterByComponentIds(e.props,t),hits:filterByComponentIds(e.hits,t),aggregations:filterByComponentIds(e.aggregations,t),isLoading:filterByComponentIds(e.isLoading,t),error:filterByComponentIds(e.error,t),promotedResults:filterByComponentIds(e.promotedResults,t),customData:filterByComponentIds(e.customData,t),settings:filterByComponentIds(e.settings,t),rawData:filterByComponentIds(e.rawData,t),components:e.components}},mapDispatchtoProps$d={setSearchStateFn:setSearchState},StateProviderConnected=connect(mapStateToProps$g,mapDispatchtoProps$d)(StateProvider);StateProviderConnected.name=StateProvider.name,StateProviderConnected.install=function(e){e.component(StateProviderConnected.name,StateProviderConnected)};var lazy=function(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}},Env=function(){function e(){}return e.isServer=function(){return"undefined"==typeof document},e}();function createMapScript(e){var t=document.createElement("SCRIPT");if("object"!=typeof e)throw new Error("options should be an object");Array.prototype.isPrototypeOf(e.libraries)&&(e.libraries=e.libraries.join(",")),e.callback="vueGoogleMapsInit";var n="https://maps.googleapis.com/maps/api/js?"+Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&");return t.setAttribute("src",n),t.setAttribute("async",""),t.setAttribute("defer",""),t}var isApiSetUp=!1;function loadGMapApi(e){if(!Env.isServer()){if(isApiSetUp)throw new Error("You already started the loading of google maps");isApiSetUp=!0;var t=createMapScript(e);document.head.appendChild(t)}}var bindEvents=function(e,t,n){for(var r,o=function(){var n=r.value,o=("on"+n.charAt(0).toUpperCase()+n.slice(1)).replace(/[-_]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}));(e.$props[o]||e.$attrs[o]||e.$gmapOptions.autobindAllEvents||e.$attrs[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))},a=_createForOfIteratorHelperLoose(n);!(r=a()).done;)o()};function WatchPrimitiveProperties(e,t,n,r){void 0===r&&(r=!1);var o=!1;function a(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}for(var s,i=_createForOfIteratorHelperLoose(t);!(s=i()).done;){var u=s.value;e.$watch(u,a,{immediate:r})}}var Str=function(){function e(){}return e.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e}();function getPropsValues(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function bindProps(e,t,n){var r=function(r){var o=n[r],a=o.twoWay,s=o.type,i=o.trackProperties;if(o.noBind)return"continue";var u="set"+Str.capitalizeFirstLetter(r),l="get"+Str.capitalizeFirstLetter(r),c=r.toLowerCase()+"_changed",p=e[r];if(void 0===t[u])throw new Error(u+" is not a method of (the Maps object corresponding to) "+e.$options._componentTag);s===Object&&i?WatchPrimitiveProperties(e,i.map((function(e){return r+"."+e})),(function(){t[u](e[r])}),void 0!==e[r]):e.$watch(r,(function(){var n=e[r];t[u](n)}),{immediate:void 0!==p,deep:s===Object}),a&&(e.$gmapOptions.autobindAllEvents||e.$attrs[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))};for(var o in n)r(o)}var MapElementMixin={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then((function(t){e.$map=t})),{}}},_excluded$6=["mappedProps","name","ctr","ctrArgs","events","beforeCreate","afterCreate","props"];function buildComponent(e){var t=e.mappedProps,n=e.name,r=e.ctr,o=e.ctrArgs,a=e.events,s=e.beforeCreate,i=e.afterCreate,u=e.props,l=_objectWithoutPropertiesLoose(e,_excluded$6),c="$"+n+"Promise",p="$"+n+"Object";return assert(!(l.props instanceof Array),"`props` should be an object, not Array"),_extends({},"undefined"!=typeof GENERATE_DOC?{$vgmOptions:e}:{},{mixins:[MapElementMixin],props:_extends({},u,mappedPropsToVueProps(t)),render:function(){return""},provide:function(){var e,n=this,l=this.$mapPromise.then((function(e){n.$map=e;var r=_extends({},n.options,{map:e},getPropsValues(n,t));if(delete r.options,s){var o=s.bind(n)(r);if(o instanceof Promise)return o.then((function(){return{options:r}}))}return{options:r}})).then((function(e){var s,l=e.options,c=r();return n[p]=o?new((s=Function.prototype.bind).call.apply(s,[c,null].concat(o(l,getPropsValues(n,u||{}))))):new c(l),bindProps(n,n[p],t),bindEvents(n,n[p],a),i&&i.bind(n)(n[p]),n[p]}));return this[c]=l,(e={})[c]=l,e},unmounted:function(){this[p]&&this[p].setMap&&this[p].setMap(null)}},l)}function assert(e,t){if(!e)throw new Error(t)}function mappedPropsToVueProps(e){return Object.entries(e).map((function(e){var t=e[0],n=e[1],r={};return"type"in n&&(r.type=n.type),"default"in n&&(r.default=n.default),"required"in n&&(r.required=n.required),[t,r]})).reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})}var props$1={draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},events=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],Polyline=buildComponent({mappedProps:props$1,props:{deepWatch:{type:Boolean,default:!1}},events:events,name:"polyline",ctr:function(){return google.maps.Polyline},afterCreate:function(){var e=this,t=function(){};this.$watch("path",(function(n){if(n){t(),e.$polylineObject.setPath(n);var r=e.$polylineObject.getPath(),o=[],a=function(){e.$emit("path_changed",e.$polylineObject.getPath())};o.push([r,r.addListener("insert_at",a)]),o.push([r,r.addListener("remove_at",a)]),o.push([r,r.addListener("set_at",a)]),t=function(){o.map((function(e){e[0];var t=e[1];return google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}}),props$2={draggable:{type:Boolean},editable:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},events$1=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],Polygon=buildComponent({props:{deepWatch:{type:Boolean,default:!1}},events:events$1,mappedProps:props$2,name:"polygon",ctr:function(){return google.maps.Polygon},beforeCreate:function(e){e.path||delete e.path,e.paths||delete e.paths},afterCreate:function(e){var t=this,n=function(){};this.$watch("paths",(function(r){if(r){n(),e.setPaths(r);for(var o=function(){t.$emit("paths_changed",e.getPaths())},a=[],s=e.getPaths(),i=0;i<s.getLength();i++){var u=s.getAt(i);a.push([u,u.addListener("insert_at",o)]),a.push([u,u.addListener("remove_at",o)]),a.push([u,u.addListener("set_at",o)])}a.push([s,s.addListener("insert_at",o)]),a.push([s,s.addListener("remove_at",o)]),a.push([s,s.addListener("set_at",o)]),n=function(){a.map((function(e){e[0];var t=e[1];return google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0}),this.$watch("path",(function(r){if(r){n(),e.setPaths(r);var o=e.getPath(),a=[],s=function(){t.$emit("path_changed",e.getPath())};a.push([o,o.addListener("insert_at",s)]),a.push([o,o.addListener("remove_at",s)]),a.push([o,o.addListener("set_at",s)]),n=function(){a.map((function(e){e[0];var t=e[1];return google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}}),props$3={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},events$2=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],Circle=buildComponent({mappedProps:props$3,name:"circle",ctr:function(){return google.maps.Circle},events:events$2}),props$4={bounds:{type:Object,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},events$3=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],Rectangle=buildComponent({mappedProps:props$4,name:"rectangle",ctr:function(){return google.maps.Rectangle},events:events$3}),props$5={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}},events$4=["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],script=buildComponent({mappedProps:props$5,events:events$4,name:"marker",ctr:function(){return google.maps.Marker},inject:{$clusterPromise:{default:null}},emits:events$4,unmounted:function(){this.$markerObject&&(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject.setMap(null))},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},afterCreate:function(e){var t=this;events$4.forEach((function(n){e.addListener(n,(function(e){t.$emit(n,e)}))})),this.$clusterPromise&&this.$clusterPromise.then((function(n){t.$clusterObject=n,n.addMarker(e)}))}});function render(e,t,n,r,o,a){return vue.openBlock(),vue.createElementBlock("div",{onClick:t[0]||(t[0]=function(){e.console.log("sdfsd")})},[vue.renderSlot(e.$slots,"default")])}script.render=render,script.__file="node_modules/vue-google-maps-community-fork/src/components/marker.vue";var fastDeepEqual=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!=o--;){var s=a[o];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n};function sortKD(e,t,n,r,o,a){if(!(o-r<=n)){var s=r+o>>1;select(e,t,s,r,o,a%2),sortKD(e,t,n,r,s-1,a+1),sortKD(e,t,n,s+1,o,a+1)}}function select(e,t,n,r,o,a){for(;o>r;){if(o-r>600){var s=o-r+1,i=n-r+1,u=Math.log(s),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(s-l)/s)*(i-s/2<0?-1:1);select(e,t,n,Math.max(r,Math.floor(n-i*l/s+c)),Math.min(o,Math.floor(n+(s-i)*l/s+c)),a)}var p=t[2*n+a],d=r,h=o;for(swapItem(e,t,r,n),t[2*o+a]>p&&swapItem(e,t,r,o);d<h;){for(swapItem(e,t,d,h),d++,h--;t[2*d+a]<p;)d++;for(;t[2*h+a]>p;)h--}t[2*r+a]===p?swapItem(e,t,r,h):swapItem(e,t,++h,o),h<=n&&(r=h+1),n<=h&&(o=h-1)}}function swapItem(e,t,n,r){swap(e,n,r),swap(t,2*n,2*r),swap(t,2*n+1,2*r+1)}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function range(e,t,n,r,o,a,s){for(var i,u,l=[0,e.length-1,0],c=[];l.length;){var p=l.pop(),d=l.pop(),h=l.pop();if(d-h<=s)for(var f=h;f<=d;f++)i=t[2*f],u=t[2*f+1],i>=n&&i<=o&&u>=r&&u<=a&&c.push(e[f]);else{var m=Math.floor((h+d)/2);i=t[2*m],u=t[2*m+1],i>=n&&i<=o&&u>=r&&u<=a&&c.push(e[m]);var g=(p+1)%2;(0===p?n<=i:r<=u)&&(l.push(h),l.push(m-1),l.push(g)),(0===p?o>=i:a>=u)&&(l.push(m+1),l.push(d),l.push(g))}}return c}function within(e,t,n,r,o,a){for(var s=[0,e.length-1,0],i=[],u=o*o;s.length;){var l=s.pop(),c=s.pop(),p=s.pop();if(c-p<=a)for(var d=p;d<=c;d++)sqDist(t[2*d],t[2*d+1],n,r)<=u&&i.push(e[d]);else{var h=Math.floor((p+c)/2),f=t[2*h],m=t[2*h+1];sqDist(f,m,n,r)<=u&&i.push(e[h]);var g=(l+1)%2;(0===l?n-o<=f:r-o<=m)&&(s.push(p),s.push(h-1),s.push(g)),(0===l?n+o>=f:r+o>=m)&&(s.push(h+1),s.push(c),s.push(g))}}return i}function sqDist(e,t,n,r){var o=e-n,a=t-r;return o*o+a*a}var defaultGetX=function(e){return e[0]},defaultGetY=function(e){return e[1]},KDBush=function(){function e(e,t,n,r,o){void 0===t&&(t=defaultGetX),void 0===n&&(n=defaultGetY),void 0===r&&(r=64),void 0===o&&(o=Float64Array),this.nodeSize=r,this.points=e;for(var a=e.length<65536?Uint16Array:Uint32Array,s=this.ids=new a(e.length),i=this.coords=new o(2*e.length),u=0;u<e.length;u++)s[u]=u,i[2*u]=t(e[u]),i[2*u+1]=n(e[u]);sortKD(s,i,r,0,s.length-1,0)}var t=e.prototype;return t.range=function(e,t,n,r){return range(this.ids,this.coords,e,t,n,r,this.nodeSize)},t.within=function(e,t,n){return within(this.ids,this.coords,e,t,n,this.nodeSize)},e}(),defaultOptions={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},fround=Math.fround||(tmp=new Float32Array(1),function(e){return tmp[0]=+e,tmp[0]}),tmp,Supercluster=function(){function e(e){this.options=extend(Object.create(defaultOptions),e),this.trees=new Array(this.options.maxZoom+1)}var t=e.prototype;return t.load=function(e){var t=this.options,n=t.log,r=t.minZoom,o=t.maxZoom,a=t.nodeSize;n&&console.time("total time");var s="prepare "+e.length+" points";n&&console.time(s),this.points=e;for(var i=[],u=0;u<e.length;u++)e[u].geometry&&i.push(createPointCluster(e[u],u));this.trees[o+1]=new KDBush(i,getX,getY,a,Float32Array),n&&console.timeEnd(s);for(var l=o;l>=r;l--){var c=+Date.now();i=this._cluster(i,l),this.trees[l]=new KDBush(i,getX,getY,a,Float32Array),n&&console.log("z%d: %d clusters in %dms",l,i.length,+Date.now()-c)}return n&&console.timeEnd("total time"),this},t.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),o=180===e[2]?180:((e[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,o=180;else if(n>o){var s=this.getClusters([n,r,180,a],t),i=this.getClusters([-180,r,o,a],t);return s.concat(i)}for(var u,l=this.trees[this._limitZoom(t)],c=[],p=_createForOfIteratorHelperLoose(l.range(lngX(n),latY(a),lngX(o),latY(r)));!(u=p()).done;){var d=u.value,h=l.points[d];c.push(h.numPoints?getClusterJSON(h):this.points[h.index])}return c},t.getChildren=function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",o=this.trees[n];if(!o)throw new Error(r);var a=o.points[t];if(!a)throw new Error(r);for(var s,i=this.options.radius/(this.options.extent*Math.pow(2,n-1)),u=[],l=_createForOfIteratorHelperLoose(o.within(a.x,a.y,i));!(s=l()).done;){var c=s.value,p=o.points[c];p.parentId===e&&u.push(p.numPoints?getClusterJSON(p):this.points[p.index])}if(0===u.length)throw new Error(r);return u},t.getLeaves=function(e,t,n){t=t||10,n=n||0;var r=[];return this._appendLeaves(r,e,t,n,0),r},t.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],o=Math.pow(2,e),a=this.options,s=a.extent,i=a.radius/s,u=(n-i)/o,l=(n+1+i)/o,c={features:[]};return this._addTileFeatures(r.range((t-i)/o,u,(t+1+i)/o,l),r.points,t,n,o,c),0===t&&this._addTileFeatures(r.range(1-i/o,u,1,l),r.points,o,n,o,c),t===o-1&&this._addTileFeatures(r.range(0,u,i/o,l),r.points,-1,n,o,c),c.features.length?c:null},t.getClusterExpansionZoom=function(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},t._appendLeaves=function(e,t,n,r,o){for(var a,s=_createForOfIteratorHelperLoose(this.getChildren(t));!(a=s()).done;){var i=a.value,u=i.properties;if(u&&u.cluster?o+u.point_count<=r?o+=u.point_count:o=this._appendLeaves(e,u.cluster_id,n,r,o):o<r?o++:e.push(i),e.length===n)break}return o},t._addTileFeatures=function(e,t,n,r,o,a){for(var s,i=_createForOfIteratorHelperLoose(e);!(s=i()).done;){var u=t[s.value],l=u.numPoints,c=void 0,p=void 0,d=void 0;if(l)c=getClusterProperties(u),p=u.x,d=u.y;else{var h=this.points[u.index];c=h.properties,p=lngX(h.geometry.coordinates[0]),d=latY(h.geometry.coordinates[1])}var f={type:1,geometry:[[Math.round(this.options.extent*(p*o-n)),Math.round(this.options.extent*(d*o-r))]],tags:c},m=void 0;l?m=u.id:this.options.generateId?m=u.index:this.points[u.index].id&&(m=this.points[u.index].id),void 0!==m&&(f.id=m),a.features.push(f)}},t._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))},t._cluster=function(e,t){for(var n=[],r=this.options,o=r.radius,a=r.extent,s=r.reduce,i=r.minPoints,u=o/(a*Math.pow(2,t)),l=0;l<e.length;l++){var c=e[l];if(!(c.zoom<=t)){c.zoom=t;for(var p,d=this.trees[t+1],h=d.within(c.x,c.y,u),f=c.numPoints||1,m=f,g=_createForOfIteratorHelperLoose(h);!(p=g()).done;){var y=p.value,v=d.points[y];v.zoom>t&&(m+=v.numPoints||1)}if(m>f&&m>=i){for(var b,_=c.x*f,$=c.y*f,C=s&&f>1?this._map(c,!0):null,O=(l<<5)+(t+1)+this.points.length,S=_createForOfIteratorHelperLoose(h);!(b=S()).done;){var w=b.value,T=d.points[w];if(!(T.zoom<=t)){T.zoom=t;var P=T.numPoints||1;_+=T.x*P,$+=T.y*P,T.parentId=O,s&&(C||(C=this._map(c,!0)),s(C,this._map(T)))}}c.parentId=O,n.push(createCluster(_/m,$/m,O,m,C))}else if(n.push(c),m>1)for(var E,k=_createForOfIteratorHelperLoose(h);!(E=k()).done;){var R=E.value,x=d.points[R];x.zoom<=t||(x.zoom=t,n.push(x))}}}return n},t._getOriginId=function(e){return e-this.points.length>>5},t._getOriginZoom=function(e){return(e-this.points.length)%32},t._map=function(e,t){if(e.numPoints)return t?extend({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?extend({},r):r},e}();function createCluster(e,t,n,r,o){return{x:fround(e),y:fround(t),zoom:1/0,id:n,parentId:-1,numPoints:r,properties:o}}function createPointCluster(e,t){var n=e.geometry.coordinates,r=n[0],o=n[1];return{x:fround(lngX(r)),y:fround(latY(o)),zoom:1/0,index:t,parentId:-1}}function getClusterJSON(e){return{type:"Feature",id:e.id,properties:getClusterProperties(e),geometry:{type:"Point",coordinates:[xLng(e.x),yLat(e.y)]}}}function getClusterProperties(e){var t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return extend(extend({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function lngX(e){return e/360+.5}function latY(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function xLng(e){return 360*(e-.5)}function yLat(e){var t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function extend(e,t){for(var n in t)e[n]=t[n];return e}function getX(e){return e.x}function getY(e){return e.y}
39
30
  /*! *****************************************************************************
40
31
  Copyright (c) Microsoft Corporation.
41
32
 
@@ -49,5 +40,5 @@ function vt(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t)
49
40
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
50
41
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
51
42
  PERFORMANCE OF THIS SOFTWARE.
52
- ***************************************************************************** */var Ud=function(){function e(e){var t=e.markers,n=e.position;this.markers=t,n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}var t,n,r,o=e.prototype;return o.push=function(e){this.markers.push(e)},o.delete=function(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0},t=e,(n=[{key:"bounds",get:function(){if(0!==this.markers.length||this._position)return this.markers.reduce((function(e,t){return e.extend(t.getPosition())}),new google.maps.LatLngBounds(this._position,this._position))}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(e){return e.getVisible()})).length}}])&&lt(t.prototype,n),r&&lt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),qd=function(){function e(e){var t=e.maxZoom,n=void 0===t?16:t;this.maxZoom=n}return e.prototype.noop=function(e){var t=e.markers;return Bd(t)},e}(),Bd=function(e){return e.map((function(e){return new Ud({position:e.getPosition(),markers:[e]})}))},zd=function(e){function t(t){var n,r=t.maxZoom,o=t.radius,i=void 0===o?60:o,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["maxZoom","radius"]);return(n=e.call(this,{maxZoom:r})||this).superCluster=new Rd(Object.assign({maxZoom:n.maxZoom,radius:i},a)),n.state={zoom:null},n}pt(t,e);var n=t.prototype;return n.calculate=function(e){var t=!1;if(!Nd(e.markers,this.markers)){t=!0,this.markers=[].concat(e.markers);var n=this.markers.map((function(e){return{type:"Feature",geometry:{type:"Point",coordinates:[e.getPosition().lng(),e.getPosition().lat()]},properties:{marker:e}}}));this.superCluster.load(n)}var r={zoom:e.map.getZoom()};return t||this.state.zoom>this.maxZoom&&r.zoom>this.maxZoom||(t=t||!Nd(this.state,r)),this.state=r,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}},n.cluster=function(e){var t=e.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map(this.transformCluster.bind(this))},n.transformCluster=function(e){var t=e.geometry.coordinates,n=t[0],r=t[1],o=e.properties;if(o.cluster)return new Ud({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(e){return e.properties.marker})),position:new google.maps.LatLng({lat:r,lng:n})});var i=o.marker;return new Ud({markers:[i],position:i.getPosition()})},t}(qd),Hd=function(e,t){this.markers={sum:e.length};var n=t.map((function(e){return e.count})),r=n.reduce((function(e,t){return e+t}),0);this.clusters={count:t.length,markers:{mean:r/t.length,sum:r,min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}},Gd=function(){function e(){}return e.prototype.render=function(e,t){var n=e.count,r=e.position,o=n>Math.max(10,t.clusters.markers.mean)?"#ff0000":"#0000ff",i=window.btoa('\n <svg fill="'+o+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>');return new google.maps.Marker({position:r,icon:{url:"data:image/svg+xml;base64,"+i,scaledSize:new google.maps.Size(45,45)},label:{text:String(n),color:"rgba(255,255,255,0.9)",fontSize:"12px"},title:"Cluster of "+n+" markers",zIndex:Number(google.maps.Marker.MAX_ZINDEX)+n})},e}();var Wd,Zd=function e(){!function(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}(e,google.maps.OverlayView)};!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(Wd||(Wd={}));var Kd,Yd=function(e,t,n){n.fitBounds(t.bounds)},Xd=function(e){function t(t){var n,r=t.map,o=t.markers,i=void 0===o?[]:o,a=t.algorithm,s=void 0===a?new zd({}):a,u=t.renderer,l=void 0===u?new Gd:u,c=t.onClusterClick,p=void 0===c?Yd:c;return(n=e.call(this)||this).markers=[].concat(i),n.clusters=[],n.algorithm=s,n.renderer=l,n.onClusterClick=p,r&&n.setMap(r),n}pt(t,e);var n=t.prototype;return n.addMarker=function(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())},n.addMarkers=function(e,t){var n=this;e.forEach((function(e){n.addMarker(e,!0)})),t||this.render()},n.removeMarker=function(e,t){var n=this.markers.indexOf(e);return-1!==n&&(e.setMap(null),this.markers.splice(n,1),t||this.render(),!0)},n.removeMarkers=function(e,t){var n=this,r=!1;return e.forEach((function(e){r=n.removeMarker(e,!0)||r})),r&&!t&&this.render(),r},n.clearMarkers=function(e){this.markers.length=0,e||this.render()},n.render=function(){var e=this.getMap();if(e instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,Wd.CLUSTERING_BEGIN,this);var t=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=t.clusters,r=t.changed;(r||null==r)&&(this.reset(),this.clusters=n,this.renderClusters()),google.maps.event.trigger(this,Wd.CLUSTERING_END,this)}},n.onAdd=function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()},n.onRemove=function(){google.maps.event.removeListener(this.idleListener),this.reset()},n.reset=function(){this.markers.forEach((function(e){return e.setMap(null)})),this.clusters.forEach((function(e){return e.delete()})),this.clusters=[]},n.renderClusters=function(){var e=this,t=new Hd(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(r){1===r.markers.length?r.marker=r.markers[0]:(r.marker=e.renderer.render(r,t),e.onClusterClick&&r.marker.addListener("click",(function(t){google.maps.event.trigger(e,Wd.CLUSTER_CLICK,r),e.onClusterClick(t,r,n)}))),r.marker.setMap(n)}))},t}(Zd),Jd=["options"],eh=yd({render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default")],2)},staticRenderFns:[]},void 0,{name:"ClusterIcon",mixins:[bd],provide:function(){var e=this,t=["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,md)),o=(r.options,ht(r,Jd));if(void 0===Xd)throw new Error("MarkerClusterer is not installed! require() it or include it from https://cdnjs.cloudflare.com/ajax/libs/js-marker-clusterer/1.0.0/markerclusterer.js");var i=o.map,a=o.markers,s=o.algorithm,u=o.onClusterClick,l=o.renderer;return e.$clusterObject=new Xd({map:i,markers:a,algorithm:s,onClusterClick:u,renderer:l}),nd(e,e.$clusterObject,{}),Zp(e,e.$clusterObject,t),Object.keys({}).forEach((function(t){({})[t].twoWay&&e.$on(t.toLowerCase()+"_changed",e.reinsertMarkers)})),e.$clusterObject})).catch((function(e){throw e}));return this.$clusterPromise=n,{$clusterPromise:n}},props:{algorithm:{type:Object,default:void 0},onClusterClick:{type:Function,default:void 0},renderer:{type:Object,default:void 0},options:{type:Object,default:void 0}},beforeDestroy:function(){var e=this;this.$children.forEach((function(t){t.$clusterObject===e.$clusterObject&&(t.$clusterObject=null)})),this.$clusterObject&&this.$clusterObject.clearMarkers()},destroyed:function(){this.$clusterObject&&this.$clusterObject.setMap&&this.$clusterObject.setMap(null)},updated:function(){this.$clusterObject&&this.$clusterObject.render()},methods:{reinsertMarkers:function(){var e=[].concat(this.$clusterObject.markers);this.$clusterObject.clearMarkers(),this.$clusterObject.addMarkers(e)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),th=["options"],nh=yd({render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default",null,{setDrawingMode:this.setDrawingMode,deleteSelection:this.deleteSelection})],2)},staticRenderFns:[]},void 0,{name:"DrawingManager",mixins:[bd],provide:function(){var e=this,t=this.$mapPromise.then((function(t){e.$map=t;var n=ct({},e.options,{map:t},Yp(e,od)),r=(n.options,ht(n,th));e.drawingModes=Object.keys(r).reduce((function(e,t){var n=t.split("Options");return n.length>1&&e.push(n[0]),e}),[]);var o=e.position&&google.maps.ControlPosition[e.position]?google.maps.ControlPosition[e.position]:google.maps.ControlPosition.TOP_LEFT;return r.drawingMode=null,r.drawingControl=!e.$scopedSlots.default,r.drawingControlOptions={drawingModes:e.drawingModes,position:o},e.$drawingManagerObject=new google.maps.drawing.DrawingManager(r),nd(e,e.$drawingManagerObject,od),e.$drawingManagerObject.addListener("overlaycomplete",(function(t){return e.addShape(t)})),e.$map.addListener("click",e.clearSelection),e&&e.finalShapes&&e.finalShapes.length&&e.drawAll(),e.$drawingManagerObject})).catch((function(e){throw e}));return this.$drawingManagerPromise=t,{$drawingManagerPromise:t}},props:{circleOptions:{type:Object,default:void 0},markerOptions:{type:Object,default:void 0},polygonOptions:{type:Object,default:void 0},polylineOptions:{type:Object,default:void 0},rectangleOptions:{type:Object,default:void 0},position:{type:String,default:""},shapes:{type:Array,required:!0}},data:function(){return{selectedShape:null,drawingModes:[],options:{drawingMode:null,drawingControl:!0,drawingControlOptions:{}},finalShapes:[]}},watch:{position:function(e){if(this.$drawingManagerObject){var t={position:e&&google.maps.ControlPosition[e]?google.maps.ControlPosition[e]:google.maps.ControlPosition.TOP_LEFT,drawingModes:this.drawingModes};this.$drawingManagerObject.setOptions({drawingControlOptions:t})}},circleOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({circleOptions:e})},markerOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({markerOptions:e})},polygonOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({polygonOptions:e})},polylineOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({polylineOptions:e})},rectangleOptions:function(e){this.$drawingManagerObject&&this.$drawingManagerObject.setOptions({rectangleOptions:e})}},mounted:function(){this.finalShapes=[].concat(this.shapes)},destroyed:function(){this.clearAll(),this.$drawingManagerObject&&this.$drawingManagerObject.setMap&&this.$drawingManagerObject.setMap(null)},methods:{setDrawingMode:function(e){this.$drawingManagerObject.setDrawingMode(e)},drawAll:function(){var e=this,t={circle:google.maps.Circle,marker:google.maps.Marker,polygon:google.maps.Polygon,polyline:google.maps.Polyline,rectangle:google.maps.Rectangle},n=this;this.finalShapes.forEach((function(r){var o=new t[r.type](r.overlay);o.setMap(e.$map),r.overlay=o,google.maps.event.addListener(o,"click",(function(){n.setSelection(r)}))}))},clearAll:function(){this.clearSelection(),this.finalShapes.forEach((function(e){e.overlay.setMap(null)}))},clearSelection:function(){this.selectedShape&&(this.selectedShape.overlay.set("fillColor","#777"),this.selectedShape.overlay.set("strokeColor","#999"),this.selectedShape.overlay.setEditable(!1),this.selectedShape.overlay.setDraggable(!1),this.selectedShape=null)},setSelection:function(e){this.clearSelection(),this.selectedShape=e,e.overlay.setEditable(!0),e.overlay.setDraggable(!0),this.selectedShape.overlay.set("fillColor","#555"),this.selectedShape.overlay.set("strokeColor","#777")},deleteSelection:function(){if(this.selectedShape){this.selectedShape.overlay.setMap(null);var e=this.finalShapes.indexOf(this.selectedShape);e>-1&&this.finalShapes.splice(e,1)}},addShape:function(e){this.setDrawingMode(null),this.finalShapes.push(e),this.$emit("update:shapes",[].concat(this.finalShapes));var t=this;google.maps.event.addListener(e.overlay,"click",(function(){t.setSelection(e)})),google.maps.event.addListener(e.overlay,"rightclick",(function(){t.deleteSelection()})),this.setSelection(e)}}},void 0,!1,void 0,!1,void 0,void 0,void 0),rh=["options"],oh=yd({},void 0,{name:"HeatmapLayer",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=[],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:e.$map},Yp(e,id)),o=(r.options,ht(r,rh));return e.$heatmapLayerObject=new google.maps.visualization.HeatmapLayer(o),nd(e,e.$heatmapLayerObject,id),Zp(e,e.$heatmapLayerObject,t),e.$heatmapLayerObject})).catch((function(e){throw e}));return this.$heatmapLayerPromise=n,{$heatmapLayerPromise:n}},props:{options:{type:Object,default:function(){}},data:{type:Array,default:void 0}},destroyed:function(){this.$heatmapLayerObject&&this.$heatmapLayerObject.setMap&&this.$heatmapLayerObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),ih=["options","position"],ah=yd({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{ref:"flyaway"},[this._t("default")],2)])},staticRenderFns:[]},void 0,{name:"InfoWindow",mixins:[bd],inject:{$markerPromise:{default:null}},provide:function(){var e=this,t=["domready","closeclick","content_changed"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,ad)),o=(r.options,r.position,ht(r,ih));return o.content=e.$refs.flyaway,e.$markerPromise&&e.$markerPromise.then((function(t){return e.$markerObject=t,t})),e.$infoWindowObject=new google.maps.InfoWindow(o),nd(e,e.$infoWindowObject,ad),Zp(e,e.$infoWindowObject,t),e._openInfoWindow(),e.$watch("opened",(function(){e._openInfoWindow()})),e.$infoWindowObject})).catch((function(e){throw e}));return this.$infoWindowPromise=n,{$infoWindowPromise:n}},props:{content:{type:[String,Object],default:void 0},opened:{type:Boolean,default:!0},position:{type:Object,default:void 0},zIndex:{type:Number,default:0},options:{type:Object,required:!1,default:void 0}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},destroyed:function(){this.$infoWindowObject&&this.$infoWindowObject.setMap&&this.$infoWindowObject.setMap(null)},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}}},void 0,!1,void 0,!1,void 0,void 0,void 0),sh=["options"],uh=yd({},void 0,{name:"KmlLayer",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","rightclick","dblclick","mouseup","mousedown","mouseover","mouseout"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,sd)),o=(r.options,ht(r,sh));return e.$kmlLayerObject=new google.maps.KmlLayer(o),nd(e,e.$kmlLayerObject,sd),Zp(e,e.$kmlLayerObject,t),e.$kmlLayerObject})).catch((function(e){throw e}));return this.$kmlLayerPromise=n,{$kmlLayerPromise:n}},props:{clickable:{type:Boolean,default:!0},map:{type:Object,default:void 0},preserveViewport:{type:Boolean,default:!1},screenOverlays:{type:Boolean,default:!1},suppressInfoWindows:{type:Boolean,default:void 0},url:{type:String,default:""},zIndex:{type:Number,default:void 0},options:{type:Object,default:void 0}},destroyed:function(){this.$kmlLayerObject&&this.$kmlLayerObject.setMap&&this.$kmlLayerObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),lh={props:["resizeBus"],data:function(){return{_actualResizeBus:null}},created:function(){void 0===this.resizeBus?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback:function(){this.resize()},_delayedResizeCallback:function(){var e=this;this.$nextTick((function(){return e._resizeCallback()}))}},watch:{resizeBus:function(e){this.$data._actualResizeBus=e},"$data._actualResizeBus":function(e,t){t&&t.$off("resize",this._delayedResizeCallback),e&&e.$on("resize",this._delayedResizeCallback)}},destroyed:function(){this.$data._actualResizeBus&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}},ch=["options"],ph={name:"MapLayer",mixins:[lh],provide:function(){var e=this;return this.$mapPromise=new Promise((function(t,n){e.$mapPromiseDeferred={resolve:t,reject:n}})),{$mapPromise:this.$mapPromise}},props:{center:{type:Object,required:!0},zoom:{type:Number,required:!1,default:void 0},heading:{type:Number,default:void 0},mapTypeId:{type:String,default:"roadmap"},tilt:{type:Number,default:void 0},options:{type:Object,default:void 0}},data:function(){return{recyclePrefix:"__gmc__"}},computed:{finalLat:function(){return this.center&&"function"==typeof this.center.lat?this.center.lat():this.center.lat},finalLng:function(){return this.center&&"function"==typeof this.center.lng?this.center.lng():this.center.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$mapObject&&this.$mapObject.setZoom(e)}},beforeDestroy:function(){var e=this.getRecycleKey();window[e]&&(window[e].div=this.$mapObject.getDiv())},mounted:function(){var e=this;return this.$gmapApiPromiseLazy().then((function(){var t=e.$refs["vue-map"],n=ct({},e.options,Yp(e,ud)),r=(n.options,ht(n,ch)),o=e.getRecycleKey();return e&&e.options&&e.options.recycle&&window[o]?(t.appendChild(window[o].div),e.$mapObject=window[o].map,e.$mapObject.setOptions(r)):(e.$mapObject=new google.maps.Map(t,r),window[o]={map:e.$mapObject}),nd(e,e.$mapObject,ud),Zp(e,e.$mapObject,["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"]),ed((function(t,n,r){e.$mapObject.addListener("center_changed",(function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()}));td(e,["finalLat","finalLng"],(function(){t(),e.$mapObject.setCenter(e.finalLatLng)}))})),e.$mapObject.addListener("zoom_changed",(function(){e.$emit("zoom_changed",e.$mapObject.getZoom())})),e.$mapObject.addListener("bounds_changed",(function(){e.$emit("bounds_changed",e.$mapObject.getBounds())})),e.$mapPromiseDeferred.resolve(e.$mapObject),e.$mapObject})).catch((function(e){throw e}))},methods:{resize:function(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter:function(){if(this.$mapObject){var e=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(e)}},_resizeCallback:function(){this.resizePreserveCenter()},panBy:function(){var e;this.$mapObject&&(e=this.$mapObject).panBy.apply(e,arguments)},panTo:function(){var e;this.$mapObject&&(e=this.$mapObject).panTo.apply(e,arguments)},panToBounds:function(){var e;this.$mapObject&&(e=this.$mapObject).panToBounds.apply(e,arguments)},fitBounds:function(){var e;this.$mapObject&&(e=this.$mapObject).fitBounds.apply(e,arguments)},getRecycleKey:function(){return this&&this.options&&this.options.recycle?this.recyclePrefix+this.options.recycle:this.recyclePrefix}},destroyed:function(){this.$mapObject&&this.$mapObject.setMap&&this.$mapObject.setMap(null)}},dh="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function hh(e){return function(e,t){return function(e,t){var n=dh?t.media||"default":e,r=fh[n]||(fh[n]={ids:new Set,styles:[]});if(!r.ids.has(e)){r.ids.add(e);var o=t.source;if(t.map&&(o+="\n/*# sourceURL="+t.map.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),void 0===Kd&&(Kd=document.head||document.getElementsByTagName("head")[0]),Kd.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(o),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var i=r.ids.size-1,a=document.createTextNode(o),s=r.element.childNodes;s[i]&&r.element.removeChild(s[i]),s.length?r.element.insertBefore(a,s[i]):r.element.appendChild(a)}}}(e,t)}}var fh={};var gh=yd({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vue-map-container"},[t("div",{ref:"vue-map",staticClass:"vue-map"}),this._v(" "),t("div",{staticClass:"vue-map-hidden"},[this._t("default")],2),this._v(" "),this._t("visible")],2)},staticRenderFns:[]},(function(e){e&&e("data-v-58f81a38_0",{source:".vue-map-container{position:relative}.vue-map-container .vue-map{left:0;right:0;top:0;bottom:0;position:absolute}.vue-map-hidden{display:none}",map:void 0,media:void 0})}),ph,void 0,!1,void 0,!1,hh,void 0,void 0),mh=["options"],yh=yd({},void 0,{name:"MarkerIcon",mixins:[bd],inject:{$clusterPromise:{default:null}},provide:function(){var e=this,t=["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,ld)),o=(r.options,ht(r,mh));return e.$clusterPromise&&(o.map=null),e.$markerObject=new google.maps.Marker(o),nd(e,e.$markerObject,ld),Zp(e,e.$markerObject,t),e.$markerObject.addListener("dragend",(function(){var t=e.$markerObject.getPosition();e.$emit("update:position",{lat:t.lat(),lng:t.lng()})})),e.$clusterPromise&&e.$clusterPromise.then((function(t){t.addMarker(e.$markerObject),e.$clusterObject=t})),e.$markerObject})).catch((function(e){throw e}));return this.$markerPromise=n,{$markerPromise:n}},props:{animation:{type:Number,default:void 0},attribution:{type:Object,default:void 0},clickable:{type:Boolean,default:!0},cursor:{type:String,default:void 0},draggable:{type:Boolean,default:!1},icon:{type:[String,Object],default:void 0},label:{type:[String,Object],default:void 0},opacity:{type:Number,default:1},options:{type:Object,default:void 0},place:{type:Object,default:void 0},position:{type:Object,default:void 0},shape:{type:Object,default:void 0},title:{type:String,default:void 0},visible:{type:Boolean,default:!0},zIndex:{type:Number,default:void 0}},destroyed:function(){this.$markerObject&&(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject&&this.$markerObject.setMap&&this.$markerObject.setMap(null))},render:function(e){return this.$slots.default&&0!==this.$slots.default.length?1===this.$slots.default.length?this.$slots.default[0]:e("div",this.$slots.default):""}},void 0,void 0,void 0,!1,void 0,void 0,void 0),vh=["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"],bh=yd({render:function(){var e=this.$createElement,t=this._self._c||e;return t("label",[t("span",{domProps:{textContent:this._s(this.label)}}),this._v(" "),t("input",{ref:"input",class:this.className,attrs:{type:"text",placeholder:this.placeholder}})])},staticRenderFns:[]},void 0,{name:"PlaceInput",props:{bounds:{type:Object,default:void 0},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:void 0},placeholder:{required:!1,type:String,default:void 0},className:{required:!1,type:String,default:void 0},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}},created:function(){window.console.warn("The PlaceInput class is deprecated! Please consider using the Autocomplete input instead, it will be removed in the next major release of this plugin.")},mounted:function(){var e=this,t=this.$refs.input;t.value=this.defaultPlace,this.$watch("defaultPlace",(function(){t.value=e.defaultPlace})),this.$gmapApiPromiseLazy().then((function(){var t=Yp(e,gd);if(e.selectFirstOnEnter&&Jp(e.$refs.input),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");e.$autoCompleter=new google.maps.places.Autocomplete(e.$refs.input,t);var n=ht(gd,vh);nd(e,e.$autoCompleter,n),e.$autoCompleter.addListener("place_changed",(function(){e.$emit("place_changed",e.$autoCompleter.getPlace())}))}))},destroyed:function(){this.$autoCompleter&&this.$autoCompleter.setMap&&this.$autoCompleter.setMap(null)}},void 0,!1,void 0,!1,void 0,void 0,void 0),Oh=["options","path","paths"],Ch=yd({},void 0,{name:"PolygonShape",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,pd)),o=(r.options,r.path,r.paths,ht(r,Oh));e.$polygonObject=new google.maps.Polygon(o),nd(e,e.$polygonObject,pd),Zp(e,e.$polygonObject,t);var i=function(){};return e.$watch("paths",(function(t){if(t){i(),e.$polygonObject.setPaths(t);for(var n=function(){e.$emit("paths_changed",e.$polygonObject.getPaths())},r=[],o=e.$polygonObject.getPaths(),a=0;a<o.getLength();a+=1){var s=o.getAt(a);r.push([s,s.addListener("insert_at",n)]),r.push([s,s.addListener("remove_at",n)]),r.push([s,s.addListener("set_at",n)])}r.push([o,o.addListener("insert_at",n)]),r.push([o,o.addListener("remove_at",n)]),r.push([o,o.addListener("set_at",n)]),i=function(){r.forEach((function(e){var t=e[1];google.maps.event.removeListener(t)}))}}}),{deep:e.deepWatch,immediate:!0}),e.$watch("path",(function(t){if(t){i(),e.$polygonObject.setPaths(t);var n=e.$polygonObject.getPath(),r=[],o=function(){e.$emit("path_changed",e.$polygonObject.getPath())};r.push([n,n.addListener("insert_at",o)]),r.push([n,n.addListener("remove_at",o)]),r.push([n,n.addListener("set_at",o)]),i=function(){r.forEach((function(e){var t=e[1];google.maps.event.removeListener(t)}))}}}),{deep:e.deepWatch,immediate:!0}),e.$polygonObject})).catch((function(e){throw e}));return this.$polygonPromise=n,{$polygonPromise:n}},props:{deepWatch:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,default:""},fillOpacity:{type:Number,default:1},strokeColor:{type:String,default:""},strokeOpacity:{type:Number,default:1},strokePosition:{type:Number,default:0},strokeWeight:{type:Number,default:1},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0},path:{type:Array,noBind:!0,default:void 0},paths:{type:Array,noBind:!0,default:void 0}},destroyed:function(){this.$polygonObject&&this.$polygonObject.setMap&&this.$polygonObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),wh=["options"],Sh=yd({},void 0,{name:"PolylineShape",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,dd)),o=(r.options,ht(r,wh));e.$polylineObject=new google.maps.Polyline(o),nd(e,e.$polylineObject,dd),Zp(e,e.$polylineObject,t);var i=function(){};return e.$watch("path",(function(t){if(t){i(),e.$polylineObject.setPath(t);var n=e.$polylineObject.getPath(),r=[],o=function(){e.$emit("path_changed",e.$polylineObject.getPath())};r.push([n,n.addListener("insert_at",o)]),r.push([n,n.addListener("remove_at",o)]),r.push([n,n.addListener("set_at",o)]),i=function(){r.forEach((function(e){var t=e[1];google.maps.event.removeListener(t)}))}}}),{deep:e.deepWatch,immediate:!0}),e.$polylineObject})).catch((function(e){throw e}));return this.$polylinePromise=n,{$polylinePromise:n}},props:{deepWatch:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},draggable:{type:Boolean},editable:{type:Boolean},strokeColor:{type:String,default:""},strokeOpacity:{type:Number,default:1},strokeWeight:{type:Number,default:1},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0},path:{type:Array,default:void 0}},destroyed:function(){this.$polylineObject&&this.$polylineObject.setMap&&this.$polylineObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),$h=["options"],_h=yd({},void 0,{name:"RectangleShape",mixins:[bd],render:function(){return""},provide:function(){var e=this,t=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},Yp(e,hd)),o=(r.options,ht(r,$h));return e.$rectangleObject=new google.maps.Rectangle(o),nd(e,e.$rectangleObject,hd),Zp(e,e.$rectangleObject,t),e.$rectangleObject})).catch((function(e){throw e}));return this.$rectanglePromise=n,{$rectanglePromise:n}},props:{bounds:{type:Object,default:void 0},clickable:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},fillColor:{type:String,default:""},fillOpacity:{type:Number,default:1},strokeColor:{type:String,default:""},strokeOpacity:{type:Number,default:1},strokePosition:{type:Number,default:0},strokeWeight:{type:Number,default:1},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0}},destroyed:function(){this.$rectangleObject&&this.$rectangleObject.setMap&&this.$rectangleObject.setMap(null)}},void 0,void 0,void 0,!1,void 0,void 0,void 0),kh=["options"],Ph=yd({render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"vue-street-view-pano-container"},[t("div",{ref:"vue-street-view-pano",staticClass:"vue-street-view-pano"}),this._v(" "),this._t("default")],2)},staticRenderFns:[]},(function(e){e&&e("data-v-32786ad9_0",{source:".vue-street-view-pano-container{position:relative}.vue-street-view-pano-container .vue-street-view-pano{left:0;right:0;top:0;bottom:0;position:absolute}",map:void 0,media:void 0})}),{name:"StreetViewPanorama",mixins:[lh],provide:function(){var e=this;return this.$panoPromise=new Promise((function(t,n){e.$panoPromiseDeferred={resolve:t,reject:n}})),{$panoPromise:this.$panoPromise,$mapPromise:this.$panoPromise}},props:{zoom:{type:Number,default:void 0},pov:{type:Object,default:void 0},position:{type:Object,default:void 0},pano:{type:String,default:void 0},motionTracking:{type:Boolean},visible:{type:Boolean,default:!0},options:{type:Object,default:void 0}},replace:!1,computed:{finalLat:function(){return this.position&&"function"==typeof this.position.lat?this.position.lat():this.position.lat},finalLng:function(){return this.position&&"function"==typeof this.position.lng?this.position.lng():this.position.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$panoObject&&this.$panoObject.setZoom(e)}},mounted:function(){var e=this,t=["closeclick","status_changed"];return this.$gmapApiPromiseLazy().then((function(){var n=e.$refs["vue-street-view-pano"],r=ct({},e.options,Yp(e,cd)),o=(r.options,ht(r,kh));return e.$panoObject=new google.maps.StreetViewPanorama(n,o),nd(e,e.$panoObject,cd),Zp(e,e.$panoObject,t),ed((function(t,n,r){t(),e.$panoObject.addListener("position_changed",(function(){r()&&e.$emit("position_changed",e.$panoObject.getPosition()),n()}));td(e,["finalLat","finalLng"],(function(){t(),e.$panoObject.setPosition(e.finalLatLng)}))})),e.$panoPromiseDeferred.resolve(e.$panoObject),e.$panoPromise})).catch((function(e){throw e}))},methods:{resize:function(){this.$panoObject&&google.maps.event.trigger(this.$panoObject,"resize")}},destroyed:function(){this.$panoObject&&this.$panoObject.setMap&&this.$panoObject.setMap(null)}},void 0,!1,void 0,!1,hh,void 0,void 0);function Eh(e,t){var n=!1;window.GoogleMapsCallback=function(){try{e(),n=!0,t&&t()}catch(e){window.console.error("Error executing the GoogleMapsCallback",e)}};var r=setTimeout((function(){var e=setInterval((function(){r&&(clearTimeout(r),r=void 0),null==(window&&window.google&&window.google.maps)||n||(window.GoogleMapsCallback(),n=!0),n&&(clearInterval(e),e=void 0)}),500)}),1e3)}var Th,Ih,Ah=(Th=!1,function(e,t){if("object"!==Gp(e))throw new Error("options should be an object");if("undefined"!=typeof document){var n=Hp({},e),r=n.libraries;if(Th)window.console.info("You already started the loading of google maps");else{Th=!0;var o="boolean"==typeof t&&t?"https://maps.google.cn":"https://maps.googleapis.com",i=document.createElement("SCRIPT");Array.isArray(r)&&(n.libraries=r.join(",")),n.callback="GoogleMapsCallback";var a=Object.keys(n).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(n[e]))})).join("&"),s="".concat(o,"/maps/api/js?").concat(a);i.setAttribute("src",s),i.setAttribute("async",""),i.setAttribute("defer",""),document.head.appendChild(i)}}}),Rh={HeatmapLayer:oh,KmlLayer:uh,Marker:yh,Polyline:Sh,Polygon:Ch,Circle:Cd,Cluster:eh,Rectangle:_h,DrawingManager:nh,InfoWindow:ah,MapLayer:gh,PlaceInput:bh,Autocomplete:vd,StreetViewPanorama:Ph,MapElementMixin:bd,MountableMixin:lh};for(var xh={install:function(e,t){var n=Hp({dynamicLoad:!1,installComponents:!0,autoBindAllEvents:!1,load:{libraries:"places"}},t);Ih=new e({data:{isReady:!1}});var r=new e,o=function(e,t){return function(n){function r(){return t.isReady=!0,window.google}if(n&&n.load&&n.load.key||n.dynamicLoad)return Xp((function(){return"undefined"==typeof window?new Promise((function(){})).then(r):new Promise((function(t,r){try{Eh(t,window[n&&n.load&&n.load.customCallback]),n.dynamicLoad||e(n.load,n.loadCn)}catch(e){r(e)}})).then(r)}));var o=new Promise((function(e){"undefined"!=typeof window&&Eh(e,window[n&&n.load&&n.load.customCallback])})).then(r);return Xp((function(){return o}))}}(Ah,Ih)(n);e.mixin({created:function(){this.$gmapDefaultResizeBus=r,this.$gmapApiPromiseLazy=o,this.$gmapOptions=n}}),e.$gmapDefaultResizeBus=r,e.$gmapApiPromiseLazy=o,e.$gmapOptions=n,n.installComponents&&(e.component("GmapMap",gh),e.component("GmapMarker",yh),e.component("GmapInfoWindow",ah),e.component("GmapHeatmapLayer",oh),e.component("GmapKmlLayer",uh),e.component("GmapPolyline",Sh),e.component("GmapPolygon",Ch),e.component("GmapCircle",Cd),e.component("GmapRectangle",_h),e.component("GmapDrawingManager",nh),e.component("GmapAutocomplete",vd),e.component("GmapPlaceInput",bh),e.component("GmapStreetViewPanorama",Ph))}},Lh="0123456789bcdefghjkmnpqrstuvwxyz",jh={},Mh=0;Mh<Lh.length;Mh++)jh[Lh.charAt(Mh)]=Mh;var Qh=[0,5,7,8,11,12,13,15,16,17,18],Vh=function(e,t,n){if("auto"===n){if("number"==typeof e||"number"==typeof t)throw new Error("string notation required for auto precision.");var r=e.split(".")[1].length,o=t.split(".")[1].length,i=Math.max(r,o);n=Qh[i]}else void 0===n&&(n=9);for(var a,s=[],u=0,l=0,c=0,p=90,d=-90,h=180,f=-180;s.length<n;)if(l%2==0?t>(a=(h+f)/2)?(c=1+(c<<1),f=a):(c=0+(c<<1),h=a):e>(a=(p+d)/2)?(c=1+(c<<1),d=a):(c=0+(c<<1),p=a),l++,5===++u){var g=Lh[c];s.push(g),u=0,c=0}return s.join("")},Dh=function(e,t,n){n=n||52;for(var r,o=0,i=90,a=-90,s=180,u=-180,l=0;o<n;)l*=2,o%2==0?t>(r=(s+u)/2)?(l+=1,u=r):s=r:e>(r=(i+a)/2)?(l+=1,a=r):i=r,o++;return l},Fh=function(e){for(var t,n=!0,r=90,o=-90,i=180,a=-180,s=0,u=0,l=e.length;u<l;u++){var c=e[u].toLowerCase();s=jh[c];for(var p=4;p>=0;p--){var d=s>>p&1;n?(t=(i+a)/2,1===d?a=t:i=t):(t=(r+o)/2,1===d?o=t:r=t),n=!n}}return[o,a,r,i]},Nh=function(e,t){for(var n=90,r=-90,o=180,i=-180,a=0,s=(t=t||52)/2,u=0;u<s;u++)a=Uh(e,2*(s-u)-1),0===Uh(e,2*(s-u)-2)?n=(n+r)/2:r=(n+r)/2,0===a?o=(o+i)/2:i=(o+i)/2;return[r,i,n,o]};function Uh(e,t){return e/Math.pow(2,t)&1}var qh=function(e){var t=Fh(e),n=(t[0]+t[2])/2,r=(t[1]+t[3])/2;return{latitude:n,longitude:r,error:{latitude:t[2]-n,longitude:t[3]-r}}},Bh=function(e,t){var n=Nh(e,t),r=(n[0]+n[2])/2,o=(n[1]+n[3])/2;return{latitude:r,longitude:o,error:{latitude:n[2]-r,longitude:n[3]-o}}},zh=function(e,t){var n=qh(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=Gh(o),r=Wh(r),Vh(r,o,e.length)},Hh=function(e,t,n){var r=Bh(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,i=r.longitude+t[1]*r.error.longitude*2;return i=Gh(i),o=Wh(o),Dh(o,i,n)};function Gh(e){return e>180?e%180-180:e<-180?180+e%180:e}function Wh(e){return e>90?90:e<-90?-90:e}var Zh={ENCODE_AUTO:"auto",encode:Vh,encode_uint64:Dh,encode_int:Dh,decode:qh,decode_int:Bh,decode_uint64:Bh,decode_bbox:Fh,decode_bbox_uint64:Nh,decode_bbox_int:Nh,neighbor:zh,neighbor_int:Hh,neighbors:function(e){var t,n,r=e.length,o=qh(e),i=o.latitude,a=o.longitude,s=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=i+e*s,n=Gh(n=a+o*u),t=Wh(t),Vh(t,n,r)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},neighbors_int:function(e,t){var n,r,o=Bh(e,t=t||52),i=o.latitude,a=o.longitude,s=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=i+e*s,r=Gh(r=a+o*u),n=Wh(n),Dh(n,r,t)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},bboxes:function(e,t,n,r,o){for(var i=Vh(e,t,o=o||9),a=Vh(n,r,o),s=qh(i),u=2*s.error.latitude,l=2*s.error.longitude,c=Fh(i),p=Fh(a),d=Math.round((p[0]-c[0])/u),h=Math.round((p[1]-c[1])/l),f=[],g=0;g<=d;g++)for(var m=0;m<=h;m++)f.push(zh(i,[g,m]));return f},bboxes_int:function(e,t,n,r,o){for(var i=Dh(e,t,o=o||52),a=Dh(n,r,o),s=Bh(i,o),u=2*s.error.latitude,l=2*s.error.longitude,c=Nh(i,o),p=Nh(a,o),d=Math.round((p[0]-c[0])/u),h=Math.round((p[1]-c[1])/l),f=[],g=0;g<=d;g++)for(var m=0;m<=h;m++)f.push(Hh(i,[g,m],o));return f}},Kh=ot.setStreaming,Yh=ot.setQueryOptions,Xh=ot.updateQuery,Jh=ot.loadMore,ef=ot.setValue,tf=ot.updateComponentProps,nf=ot.setDefaultQuery,rf=ot.recordResultClick,of=ot.setMapData,af=at.isEqual,sf=at.getQueryOptions,uf=at.getClassName,lf=at.parseHits,cf=at.getOptionsFromQuery,pf=at.getResultStats,df={lat:37.7749,lng:122.4194},hf={width:"100%",height:"100vh",position:"relative"};function ff(e,t){var n=function(e){if(isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}(e.lat),r=n>=6?4:n-2,o=1/Math.pow(10,r)*t;return ct({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function gf(e){switch(Array.isArray(e)?"array":typeof e){case"string":if(e.indexOf(",")>-1){var t=e.split(",");return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}var n=Zh.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var mf={name:"ReactiveMap",props:{className:Jn.string,componentId:Jn.stringRequired,dataField:Jn.stringRequired,react:Jn.react,size:Jn.number,sortBy:Jn.sortBy,URLParams:jt.bool,autoCenter:jt.bool,getMapRef:jt.func.isRequired,center:Jn.location,defaultCenter:Jn.location,defaultPin:Jn.string,defaultZoom:jt.number.def(13),defaultQuery:Jn.func,innerClass:Jn.style,loader:Jn.title,render:Jn.func,renderItem:Jn.func,renderError:Jn.title,pages:jt.number.def(5),currentPage:jt.number.def(0),pagination:jt.bool,showMarkers:jt.bool,defaultSearchAsMove:jt.bool,showSearchAsMove:jt.bool,defaultRadius:Jn.number,unit:Jn.string,autoClosePopover:jt.bool,renderMap:jt.func.isRequired,renderPopover:jt.func,calculateMarkers:jt.func,searchAsMoveLabel:jt.string.def("Search as I move the map")},preserveCenter:!1,data:function(){var e=this.$props,t=0;return e.currentPage&&(t=Math.max(e.currentPage-1,0)),this.__state={from:t*e.size,zoom:e.defaultZoom,searchAsMove:e.defaultSearchAsMove,currentPageState:t,mapBoxBounds:null,markersData:null},this.__state},computed:{totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},stats:function(){var e=this.getAllData().resultsToRender;return ct({},pf(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return br(this)}},watch:{defaultZoom:function(e){this.zoom=e},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},defaultQuery:function(e,t){if(!$r(e,t,null,this.$props)){var n=sf(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=this.$defaultQuery||{},o=r.sort,i=r.query;o&&(n.sort=this.$defaultQuery.sort),cf(this.$defaultQuery)&&(n=ct({},n,cf(this.$defaultQuery))),this.setQueryOptions(this.$props.componentId,n,!1);this.setDefaultQueryForRSAPI();var a={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,i,!0,!0,a),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){af(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){af(e,t)||this.$emit("data",this.getData())},time:function(e,t){af(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.pagination&&this.isLoading&&(t||e)&&this.$emit("page-change",this.currentPageState+1,this.totalPages)},rawData:function(e,t){var n=this;if(!af(e,t)){var r=this.promotedResults,o=this.hits,i=lf(o)||[],a=lf(r)||[],s=i;if(a.length){var u=a.map((function(e){return e._id})).filter(Boolean);u&&(s=s.filter((function(e){return!u.includes(e._id)}))),s=[].concat(a,s)}s=s.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return ct({},e,((t={})[n.dataField]=gf(e[n.dataField]),t))})),this.filteredResults=this.addNoise(s),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!af(e,t)){var n=!!this.center,r=this.getGeoQuery(this.$props);this.setDefaultQueryForRSAPI();var o={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,r,n,!0,o)}}},methods:{parseLocation:function(e){return Array.isArray(e)?{lat:Number(e[0]),lng:Number(e[1])}:{lat:e?Number(e.lat):this.defaultCenter.lat,lng:e?Number(void 0===e.lon?e.lng:e.lon):this.defaultCenter.lng}},getDefaultCenter:function(){return this.defaultCenter?this.parseLocation(this.defaultCenter):this.parseLocation(df)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=ct({},e),i=t.parseLocation(e[t.dataField]),a=JSON.stringify(i),s=n[a]||0;o[t.dataField]=s?ff(i,s):i,r=[].concat(r,[o]),n[a]=s+1})),r},getPosition:function(e){return e?this.parseLocation(e[this.dataField]):null},getHitsCenter:function(e){var t=this,n=e.map((function(e){return e[t.dataField]}));if(n.length){var r=n.length,o=0,i=0,a=0;n.forEach((function(e){if(e){var t,n,r=gf(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var s=Math.cos(t)*Math.cos(n),u=Math.cos(t)*Math.sin(n),l=Math.sin(t);o+=s,i+=u,a+=l}})),o/=r,i/=r,a/=r;var s=Math.atan2(i,o),u=Math.sqrt(o*o+i*i);return{lat:180*Math.atan2(a,u)/Math.PI,lng:180*s/Math.PI}}return!1},getCenter:function(e){var t=this;if(this.center)return this.parseLocation(this.center);var n=this.getMapRef();if(n&&"function"==typeof n.getCenter&&this.$options.preserveCenter){var r=n.getCenter();return setTimeout((function(){t.$options.preserveCenter=!1}),100),this.parseLocation({lat:r.lat(),lng:r.lng()})}return e&&e.length?this.autoCenter?this.getHitsCenter(e)||this.getDefaultCenter():e[0]&&e[0][this.dataField]?this.getPosition(e[0]):this.getDefaultCenter():this.getDefaultCenter()},handleZoomChange:function(e){if(e){var t=this.zoom;this.searchAsMove?(this.zoom=e,this.$options.preserveCenter=!0,this.setGeoQuery(!0)):this.zoom=e,t!==e&&this.$emit("zoom-changed",e)}},handleOnDragEnd:function(){this.searchAsMove&&(this.$options.preserveCenter=!0,this.setGeoQuery(!0)),this.$emit("drag-end")},handlePreserveCenter:function(e){this.$options.preserveCenter=e},handleOnIdle:function(){if(this.hits&&this.hits.length&&this.searchAsMove){var e=!!this.center;this.setGeoQuery(e)}this.$emit("idle")},setGeoQuery:function(e){if(void 0===e&&(e=!1),e||!this.skipBoundingBox&&!this.mapBoxBounds){this.$defaultQuery=this.getGeoQuery();var t=!!this.center,n=this.searchAsMove,r={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery,t,n,r)}this.skipBoundingBox=!1},getMapParams:function(){var e=this.getData().data,t=this.showMarkers,n=this.defaultPin,r=this.renderPopover,o=this.autoClosePopover,i=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:i,showMarkers:t,defaultPin:n,renderPopover:r,autoClosePopover:o,renderSearchAsMove:this.renderSearchAsMove,handlePreserveCenter:this.handlePreserveCenter,preserveCenter:this.$options.preserveCenter,handleOnDragEnd:this.handleOnDragEnd,handleOnIdle:this.handleOnIdle,handleZoomChange:this.handleZoomChange}},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.customData,r=this.currentPage,o=this.hits,i=lf(o)||[],a=lf(t)||[],s=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:i,resultsToRender:u,customData:n||{},promotedResults:a,loadMore:this.loadMore,base:s,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData,o=e.resultsToRender;return{data:this.withClickIds(o),aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=ct({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return vr(e,this)},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.size*e,n=sf(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,ct({},n,{from:t}),!1),this.URLParams&&this.setPageURL(this.componentId,e+1,this.componentId,!1,!0)}},setDefaultQueryForRSAPI:function(){if(this.defaultQuery&&"function"==typeof this.defaultQuery){var e=this.defaultQuery();this.setDefaultQuery(this.componentId,e)}},getArrPosition:function(e){return{lat:e.lat,lon:e.lon||e.lng}},getGeoQuery:function(e){void 0===e&&(e=this.$props),this.$defaultQuery=e.defaultQuery?e.defaultQuery():null;var t,n,r,o=this.getMapRef(),i=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(i){var a;t=i.getNorthEast().lat(),n=i.getSouthWest().lat(),r=i.getNorthEast().lng();var s={top_left:[i.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=s;var u={geo_bounding_box:(a={},a[this.dataField]=s,a)};if(this.$defaultQuery){var l=this.$defaultQuery.query;if(l)return{must:[u,l]}}return u}return this.$defaultQuery?this.$defaultQuery.query:null},getGeoDistanceQuery:function(){var e,t=this.center||this.defaultCenter;return t&&this.defaultRadius?(this.skipBoundingBox=!0,{geo_distance:(e={distance:""+this.defaultRadius+this.unit},e[this.dataField]=this.getArrPosition(t),e)}):null},loadMore:function(){if(this.hits&&!this.pagination&&this.total!==this.hits.length){var e=this.from+this.size,t=sf(this.$props);this.from=e,this.loadMoreAction(this.componentId,ct({},t,{from:e}),!0)}},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.getData().data.find((function(t){return t._click_id===e}));r&&r._id&&(n=r._id)}this.recordResultClick(e,n)},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return ct({},e,{_click_id:t+n})}))},toggleSearchAsMove:function(){this.searchAsMove=!this.searchAsMove,this.$emit("search-as-move",this.searchAsMove)},renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?mr(e)?e(this.error):e:null},renderSearchAsMove:function(){var e=this.$createElement;return this.showSearchAsMove?e("div",{style:{position:"absolute",bottom:"30px",left:"10px",width:"240px",backgroundColor:"#fff",padding:"8px 10px",boxShadow:"rgba(0,0,0,0.3) 0px 1px 4px -1px",borderRadius:2,zIndex:1e4},attrs:{className:uf(this.innerClass,"checkboxContainer")||null}},[e(Du,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:uf(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:uf(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},[this.searchAsMoveLabel])]):null},renderPagination:function(){return(0,this.$createElement)(or,{attrs:{pages:this.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.innerClass}})}},created:function(){this.defaultPage>=0&&(this.currentPageState=this.defaultPage,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.updateComponentProps(this.componentId,{from:this.from},x.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},x.reactiveMap)},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.$props.URLParams&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,!0);var e,t=sf(this.$props);(t.from=this.$data.from,this.$props.sortBy)&&(t.sort=[(e={},e[this.$props.dataField]={order:this.$props.sortBy},e)]);if(this.$defaultQuery=null,this.$props.defaultQuery){this.$defaultQuery=this.$props.defaultQuery(),t=ct({},t,cf(this.$defaultQuery)),this.$defaultQuery.sort&&(t.sort=this.$defaultQuery.sort);this.setDefaultQueryForRSAPI();var n={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery.query,!0,!1,n)}else{var r=this.getGeoDistanceQuery();if(r){var o=!!this.center,i=this.searchAsMove,a=this.center||this.defaultCenter,s=this.getArrPosition(a),u={distance:this.defaultRadius,coordinates:s.lat+", "+s.lon};this.setMapData(this.componentId,r,o,i,u)}}this.setQueryOptions(this.componentId,t,!(this.$defaultQuery&&this.$defaultQuery.query))},render:function(){var e=arguments[0],t=this.$scopedSlots.loader||this.$props.loader;return e("div",{style:ct({},hf,this.$props.style),class:this.$props.className},[this.renderErrorComponent(),this.isLoading&&t,this.hasCustomRender?this.getComponent():null,this.renderMap(this.getMapParams()),this.pagination?this.renderPagination():null])}},yf=Br(gr((function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],total:e.hits[t.componentId]&&e.hits[t.componentId].total,time:e.hits[t.componentId]&&e.hits[t.componentId].time,rawData:e.rawData[t.componentId],hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{loadMoreAction:Jh,setPageURL:ef,setQueryOptions:Yh,setStreaming:Kh,updateQuery:Xh,updateComponentProps:tf,setDefaultQuery:nf,recordResultClick:rf,setMapData:of})(mf),{componentType:x.reactiveMap,internalComponent:!0});mf.install=function(e){e.component(mf.name,yf)},mf.componentType=x.reactiveMap;var vf={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}};function bf(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Of,Cf,wf,Sf=["options","position"],$f={name:"InfoWindowClusterManager",inject:{$markerPromise:{default:null},$mapPromise:{}},provide:function(){var e=this,t=["domready","closeclick","content_changed"],n=this.$mapPromise.then((function(n){e.$map=n;var r=ct({},e.options,{map:n},function(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}(e,vf)),o=(r.options,r.position,ht(r,Sf));o.content=e.$refs.flyaway,e.$markerPromise&&e.$markerPromise.then((function(n){return e.$markerObject=n,e.$infoWindowObject=new google.maps.InfoWindow(o),function(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],i=o.twoWay,a=o.type,s=o.trackProperties;if(!o.noBind){var u="set"+bf(r),l="get"+bf(r),c=r.toLowerCase()+"_changed",p=e[r];if(void 0===t[u])throw new Error(u+" is not a method of (the Maps object corresponding to) "+e.$options._componentTag);a===Object&&s?function(e,t,n,r){void 0===r&&(r=!1);var o=!1;function i(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,i,{immediate:r})}))}(e,s.map((function(e){return r+"."+e})),(function(){t[u](e[r])}),void 0!==e[r]):e.$watch(r,(function(){var n=e[r];t[u](n)}),{immediate:void 0!==p,deep:a===Object}),i&&(e.$gmapOptions.autoBindAllEvents||e.$listeners[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}(e,e.$infoWindowObject,vf),function(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}(e,e.$infoWindowObject,t),e._openInfoWindow(),e.$watch("opened",(function(){e._openInfoWindow()})),e.$infoWindowObject}))})).catch((function(e){throw e}));return this.$infoWindowPromise=n,{$infoWindowPromise:n}},props:{content:{type:[String,Object],default:void 0},opened:{type:Boolean,default:!0},position:{type:Object,default:void 0},zIndex:{type:Number,default:0},options:{type:Object,required:!1,default:void 0}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},destroyed:function(){this.$infoWindowObject&&this.$infoWindowObject.setMap&&this.$infoWindowObject.setMap(null)},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},render:function(){var e=arguments[0];return e("div",[e("div",{ref:"flyaway"},[this.$scopedSlots.default()])])}},_f={name:"InfoWindowWrapperClusterManager",props:{id:jt.string,renderPopover:jt.func,infoWindowProps:jt.object,events:jt.object,marker:jt.Object},data:function(){return{infoWindowRef:null}},provide:function(){return{$markerPromise:Promise.resolve(this.marker)}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=arguments[0],t=this.renderPopover,n=this.events;return e($f,{ref:this.id+"-Info-Window",props:ct({},this.infoWindowProps),on:ct({},n)},[e("div",[t(this.handleClose)])])}},kf=["options"],Pf=at.isEqual,Ef=ot.recordResultClick,Tf={name:"ClusterMarkers",props:{markers:jt.array,getPosition:jt.func,defaultPin:jt.string,renderItem:jt.func,markerProps:jt.object,handlePreserveCenter:jt.func.isRequired,autoClosePopover:jt.bool,renderPopover:jt.func,highlightMarkerOnHover:jt.bool},inject:{$clusterPromise:{default:null},$mapPromise:{}},data:function(){return{openMarkers:{}}},mounted:function(){this.buildMarkers(this.markers)},destroy:function(){this.buildMarkers([])},watch:{markers:function(e,t){Pf(t,e)||this.buildMarkers(e)}},methods:{triggerAnalytics:function(e,t){this.recordResultClick(e,t)},setOpenMarkers:function(e){this.openMarkers=e},closeMarker:function(e){var t=this.$props,n=t.autoClosePopover,r=t.handlePreserveCenter,o=e.metaData&&e.metaData._id,i=this.openMarkers,a=(i[o],ht(i,[o].map(yt))),s=n?{}:a;this.setOpenMarkers(s),r(!0),this.$emit("close-marker-popover",e)},openMarker:function(e,t){var n,r,o=this.autoClosePopover,i=this.handlePreserveCenter,a=e.metaData&&e.metaData._id,s=o?((n={})[a]=e,n):ct({},this.openMarkers,((r={})[a]=e,r));this.setOpenMarkers(s),i(!0),this.triggerAnalytics(a,t),this.$emit("open-marker-popover",e.metaData)},removeMarkers:function(){this.$clusterObject&&(this.$clusterObject.clearMarkers(!0),this.$markers=[])},buildMarkers:function(e){var t=this;this.$mapPromise.then((function(n){t.$clusterPromise&&t.$clusterPromise.then((function(r){var o=[],i=[],a={};(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(a[e.metaData._id]=!1)})),e.forEach((function(e,r){if(e._id&&void 0!==a[e._id])a[e._id]=!0;else{var i=ct({},t.markerProps,{metaData:e,map:n,position:t.getPosition(e)});if(t.renderItem){var s=t.renderItem(e);"label"in s&&(i.label=s.label),"icon"in s&&(i.icon=s.icon)}else t.defaultPin&&(i.icon={url:t.defaultPin});i.options;var u=ht(i,kf);t.$clusterPromise&&(u.map=null);var l=new google.maps.Marker(u);l.addListener("click",(function(){t.openMarker(l,r)})),o.push(l)}}));var s=[];o.forEach((function(e){s.push(e)})),(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(a[e.metaData._id]?s.push(e):i.push(e))})),r.removeMarkers(i),r.addMarkers(o),t.$clusterObject=r,t.$map=n,t.$markers=s}))})).catch((function(e){throw e}))}},render:function(){var e=this,t=arguments[0];return this.renderPopover?t("div",[Object.keys(this.openMarkers).map((function(n){var r=e.openMarkers[n],o=r.metaData;return t(_f,{key:n+"-InfoWindow",attrs:{id:n,renderPopover:function(t){return e.renderPopover({item:o,handleClose:function(){t(),e.closeMarker(o)}})},marker:r,infoWindowProps:{zIndex:500},events:{closeclick:function(){return e.closeMarker(r)}}}})}))]):null}},If=gr((function(){return null}),{recordResultClick:Ef})(Tf),Af=Rh.InfoWindow,Rf={name:"InfoWindowWrapper",props:{id:jt.string,renderPopover:jt.func,infoWindowProps:jt.object,events:jt.object},data:function(){return{infoWindowRef:null}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=arguments[0],t=this.renderPopover,n=this.events;return e(Af,{ref:this.id+"-Info-Window",props:ct({},this.infoWindowProps),on:ct({},n)},[e("div",[t(this.handleClose)])])}},xf=Rh.MapElementMixin,Lf={name:"MarkerWithLabel",props:{metaData:{type:Object,default:void 0},marker:{type:Object,default:void 0},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},alignment:{type:String,default:"top"},zIndex:{type:Number,default:50},cssPosition:{type:Boolean,default:!1},renderMarker:jt.func.isRequired,handleMouseOver:jt.func,handleFocus:jt.func,handleMouseOut:jt.func,handleBlur:jt.func,handleClick:jt.func},data:function(){return{opacity:.01}},mixins:[xf],inject:{$clusterPromise:{default:null}},computed:{lat:function(){return parseFloat(Number.isNaN(this.marker.lat)?this.marker.latitude:this.marker.lat)},lng:function(){return parseFloat(Number.isNaN(this.marker.lng)?this.marker.longitude:this.marker.lng)},latLng:function(){return this.marker instanceof window.google.maps.LatLng?this.marker:new window.google.maps.LatLng(this.lat,this.lng)}},watch:{marker:function(){var e=this;this.$mapPromise.then((function(){return e.$overlay.setPosition()}))},zIndex:function(){this.$overlay&&this.$overlay.repaint()}},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},destroyed:function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0)},provide:function(){var e=this,t=this;return this.$mapPromise.then((function(n){var r=function(e){function n(n){var r;return(r=e.call(this)||this).metaData=t.metaData,r.setMap(n),r.draw=function(){return r.repaint()},r.setPosition=function(){return r.repaint()},r.getVisible=function(){return!0},r}pt(n,e);var r=n.prototype;return r.repaint=function(){var e=t.$el,n=this.getProjection();if(n&&e){var r,o,i=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight;break;case"bottom":r=i.x-e.offsetWidth/2,o=i.y;break;case"left":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight/2;break;case"right":r=i.x,o=i.y-e.offsetHeight/2;break;case"center":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight;break;case"topright":case"righttop":r=i.x,o=i.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=i.x-e.offsetWidth,o=i.y;break;case"bottomright":case"rightbottom":r=i.x,o=i.y;break;default:throw new Error("Invalid alignment type of custom marker!")}t.cssPosition?e.style.transform="translate("+(r+t.offsetX)+"px, "+(o+t.offsetY)+"px)":(e.style.left=r+t.offsetX+"px",e.style.top=o+t.offsetY+"px"),e.style["z-index"]=t.zIndex}},r.onAdd=function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0);var e=t.$el,n=this.getPanes();e.style.position="absolute",e.style.display="inline-block",e.style.zIndex=t.zIndex,n.overlayLayer.appendChild(e),n.overlayMouseTarget.appendChild(e),this.getDraggable=function(){return!1},this.getPosition=function(){return new window.google.maps.LatLng(t.lat,t.lng)},t.afterCreate(this)},r.onRemove=function(){if(t.$el){var e=window.navigator.userAgent;e.indexOf("MSIE ")>0||e.match(/Trident.*rv\:11\./)?t.$el.parentNode.removeChild(t.$el):t.$el.remove()}},n}(window.google.maps.OverlayView);e.$overlay=new r(n),setTimeout((function(){e.$overlay&&(e.$overlay.repaint(),e.opacity=1)}),100)}))},methods:{afterCreate:function(e){var t=this;this.$clusterPromise&&!this.isMarkerAdded&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n,t.isMarkerAdded=!0}))}},render:function(){var e=arguments[0];return e("div",{style:{opacity:this.opacity},on:{mouseover:this.handleMouseOver,mouseout:this.handleMouseOut,click:this.handleClick}},[this.renderMarker()])}},jf=on("div")(Of||(Of=ft(["\n\theight: 24px;\n\twidth: auto;\n\tbackground-color: #fff;\n\tborder-radius: 2px;\n\tcolor: #222;\n\tbox-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);\n\tpadding: 3px 6px;\n\tfont-size: 15px;\n"]))),Mf=on("div")(Cf||(Cf=ft(["\n\tborder-color: rgba(0, 0, 0, 0.2);\n\tborder-style: solid;\n\tborder-width: 0 1px 1px 0;\n\tmargin-left: -6px;\n\tbackground-color: #fff;\n\tmargin-top: -6px;\n\twidth: 12px;\n\theight: 12px;\n\t-webkit-transform: rotate(45deg);\n\t-ms-transform: rotate(45deg);\n\ttransform: rotate(45deg);\n"]))),Qf=Jt(wf||(wf=ft(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),Vf=Rh.Marker,Df=ot.recordResultClick,Ff={name:"GoogleMapMarker",props:{index:jt.number,marker:jt.object.isRequired,getPosition:jt.func.isRequired,defaultPin:jt.string,renderItem:jt.func,setOpenMarkers:jt.func.isRequired,handlePreserveCenter:jt.func.isRequired,autoClosePopover:jt.bool,openMarkers:jt.object,renderPopover:jt.func,highlightMarkerOnHover:jt.bool},data:function(){return{zIndex:0,markerIcon:null}},methods:{increaseMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex+=1),e(!0)},removeMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex-=1),e(!0)},openMarker:function(){var e,t,n=this.$props,r=n.setOpenMarkers,o=n.openMarkers,i=n.marker,a=n.autoClosePopover,s=n.handlePreserveCenter,u=i._id;r(a?((e={})[u]=!0,e):ct({},o,((t={})[u]=!0,t))),s(!0),this.triggerAnalytics(),this.$emit("open-marker-popover",i)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,i=e.openMarkers,a=n._id,s=(i[a],ht(i,[a].map(yt)));t(r?{}:s),o(!0),this.$emit("close-marker-popover",n)},triggerAnalytics:function(){this.recordResultClick(this.index,this.marker._id)},renderPopoverClick:function(e,t){var n=this;void 0===t&&(t=!1);var r=this.$createElement,o={},i=this.$props,a=i.getPosition,s=i.renderPopover,u=i.openMarkers;return t&&(o={position:a(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}),e._id in u?r(Rf,{key:e._id+"-InfoWindow",attrs:{id:e._id,renderPopover:function(t){return s({item:e,handleClose:function(){t(),n.closeMarker()}})},infoWindowProps:{zIndex:500,position:o.position,options:o.defaultOptions},events:{closeclick:function(){return n.closeMarker()}}}}):null}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.getPosition,o=n.renderItem,i=n.defaultPin,a=n.renderPopover,s=n.markerProps,u=n.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),o){u.setIcon=function(t){e.markerIcon=t};var c=o(u);if("label"in c)return t(Lf,{key:u._id,attrs:{metaData:u,marker:r(u),labelAnchor:new window.google.maps.Point(0,30),handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,handleClick:this.openMarker,zIndex:l.zIndex,renderMarker:function(){return t("div",{attrs:{css:Qf}},[t(jf,[c.label]),t(Mf),a?e.renderPopoverClick(u,!0):null])}},props:ct({},s)});if(!("icon"in c))return t(Lf,{key:u._id,attrs:{metaData:u,marker:r(u),handleClick:this.openMarker,handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,zIndex:l.zIndex,renderMarker:function(){return t("div",{attrs:{css:Qf}},["function"==typeof c.custom?c.custom(u):c.custom,a?e.renderPopoverClick(u,!0):null])}},props:ct({},s)});l.icon=c.icon}else i&&(l.icon={url:i});return t(Vf,{key:u._id,attrs:{zIndex:l.zIndex,position:r(u),options:{metaData:u},icon:this.markerIcon||l.icon},on:{click:function(){return e.openMarker()},mouseover:this.increaseMarkerZIndex,mouseout:this.removeMarkerZIndex},props:ct({},s)},[a?this.renderPopoverClick(u):null])}},Nf=gr((function(){return null}),{recordResultClick:Df})(Ff),Uf=Rh.Cluster,qf={name:"GoogleMapMarkers",props:{resultsToRender:jt.array,getPosition:jt.func,renderItem:jt.func,renderClusterPopover:jt.func,defaultPin:jt.string,autoClosePopover:jt.bool,handlePreserveCenter:jt.func,renderPopover:jt.func,markerProps:jt.object,clusterProps:jt.object,showMarkerClusters:jt.bool,highlightMarkerOnHover:jt.bool},data:function(){return{openMarkers:{},clickedCluster:null,clusterMarkers:[]}},methods:{setOpenMarkers:function(e){this.openMarkers=e},getAdditionalProps:function(){return{position:{lat:this.clickedCluster.getCenter().lat(),lng:this.clickedCluster.getCenter().lng()},defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}},closeMarker:function(){this.clickedCluster=null,this.clusterMarkers=[],this.$emit("close-cluster-popover")}},render:function(){var e=this,t=arguments[0],n=this.$props.resultsToRender,r=this.openMarkers,o={openMarkers:r,setMarkerOnTop:this.setMarkerOnTop,setOpenMarkers:this.setOpenMarkers,getPosition:this.getPosition,renderItem:this.renderItem,defaultPin:this.defaultPin,autoClosePopover:this.autoClosePopover,handlePreserveCenter:this.handlePreserveCenter,renderPopover:this.renderPopover,markerProps:this.markerProps,showMarkerClusters:this.showMarkerClusters,highlightMarkerOnHover:this.highlightMarkerOnHover};return this.showMarkerClusters?t("div",[t(Uf,{props:ct({},this.clusterProps),on:{click:function(t){var n=t.markers.map((function(e){return e.metaData}));e.clickedCluster=t,e.clusterMarkers=n,e.$emit("open-cluster-popover",e.clusterMarkers)}},ref:"clusterRef"},[t(If,{attrs:{getPosition:o.getPosition,markers:n,defaultPin:o.defaultPin,renderItem:o.renderItem,markerProps:o.markerProps,handlePreserveCenter:o.handlePreserveCenter,autoClosePopover:o.autoClosePopover,renderPopover:o.renderPopover,highlightMarkerOnHover:o.highlightMarkerOnHover},on:ct({},this.$listeners)})]),this.clickedCluster&&this.renderClusterPopover?t(Rf,{attrs:{id:"cluster",infoWindowProps:{zIndex:500,position:this.getAdditionalProps().position,options:this.getAdditionalProps().defaultOptions},renderPopover:function(t){return e.renderClusterPopover({markers:e.clusterMarkers,cluster:e.clickedCluster,handleClose:function(){t(),e.closeMarker()}})},events:{closeclick:this.closeMarker}}}):null]):t("div",[n.map((function(n,r){return t(Nf,{attrs:{index:r,marker:n},props:ct({},o),on:ct({},e.$listeners)})}))])}},Bf=Rh.MapLayer,zf={name:"ReactiveGoogleMap",props:{className:Jn.string,componentId:Jn.stringRequired,dataField:Jn.stringRequired,defaultQuery:jt.func,loader:Jn.title,defaultZoom:jt.number.def(13),react:Jn.react,size:Jn.number,sortBy:Jn.sortBy,URLParams:jt.bool,mapProps:jt.object,showMarkers:jt.bool.def(!0),showMarkerClusters:jt.bool.def(!1),searchAsMove:jt.bool.def(!1),searchAsMoveLabel:jt.string,markerProps:jt.object,clusterProps:jt.object,renderItem:jt.func,showSearchAsMove:jt.bool.def(!0),autoClosePopover:jt.bool,pagination:jt.bool,defaultPin:jt.string,autoCenter:jt.bool,defaultCenter:Jn.location,center:Jn.location,defaultRadius:Jn.number,unit:Jn.string,pages:jt.number.def(5),calculateMarkers:jt.func,highlightMarkerOnHover:jt.bool.def(!0)},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,i=e.handleZoomChange,a=e.handleOnDragEnd,s=e.handleOnIdle,u=e.renderSearchAsMove,l=e.handlePreserveCenter,c=e.getPosition,p=e.autoClosePopover,d=e.defaultPin,h=this.$createElement;return h("div",{style:{width:"100%",height:"100%",position:"relative"}},[h(Bf,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:ct({},this.mapProps),on:{zoom_changed:i,dragend:a,idle:s}},[this.showMarkers?h(qf,{attrs:{resultsToRender:n,getPosition:c,markerProps:this.markerProps,clusterProps:this.clusterProps,handlePreserveCenter:l,highlightMarkerOnHover:this.highlightMarkerOnHover,renderItem:this.$scopedSlots.renderItem?function(){return{custom:t.$scopedSlots.renderItem}}:this.renderItem,defaultPin:d,autoClosePopover:p,renderPopover:this.$scopedSlots.renderPopover,renderClusterPopover:this.$scopedSlots.renderClusterPopover,showMarkerClusters:this.showMarkerClusters},on:ct({},this.$listeners)}):null]),u()])},getMapRef:function(){return this.mapRef},removeMarkers:function(){for(var e,t=this;t;)if(t&&"<ConnectClusterMarkers>"===t._name)e=t,t=null;else if(t.$children){t=t.$children[0]}else t=null;e&&e.removeMarkers&&e.removeMarkers()}},mounted:function(){var e=this;this.$refs.mapRef&&this.$refs.mapRef.$mapPromise.then((function(t){e.mapRef=t}))},render:function(){var e=arguments[0];return e(yf,oo([{attrs:{getMapRef:this.getMapRef,renderMap:this.renderMap,componentId:this.componentId,className:this.className,dataField:this.dataField,defaultZoom:this.defaultZoom,react:this.react,size:this.size,sortBy:this.sortBy,pagination:this.pagination,uRLParams:this.URLParams,defaultSearchAsMove:this.searchAsMove,showSearchAsMove:this.showSearchAsMove,searchAsMoveLabel:this.searchAsMoveLabel,showMarkers:this.showMarkers,markerProps:this.markerProps,autoClosePopover:this.autoClosePopover,defaultPin:this.defaultPin,defaultQuery:this.defaultQuery,autoCenter:this.autoCenter,defaultCenter:this.defaultCenter,defaultRadius:this.defaultRadius,unit:this.unit,pages:this.pages,center:this.center,loader:this.loader,calculateMarkers:this.calculateMarkers}},{scopedSlots:this.$scopedSlots,on:this.$listeners}]))},install:function(e,t){e.component(zf.name,zf),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(xh,{load:{key:t.key,libraries:"places"},installComponents:!1})}};zf.componentType=x.reactiveMap;var Hf,Gf=["aggs","size"],Wf=["query"],Zf=["query"],Kf=[x.numberBox,x.ratingsFilter],Yf=[x.reactiveList,x.reactiveMap],Xf=((Hf={})[x.singleList]="",Hf[x.multiList]=[],Hf[x.singleDataList]="",Hf[x.singleDropdownList]="",Hf[x.multiDataList]=[],Hf[x.multiDropdownList]=[],Hf[x.tagCloud]="",Hf[x.toggleButton]="",Hf[x.singleDropdownRange]="",Hf[x.multiDropdownRange]=[],Hf[x.singleRange]="",Hf[x.multiRange]=[],Hf);function Jf(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}var eg,tg,ng=function(e){var t=e.theme;return Jt(eg||(eg=ft(["\n\tcolor: ",";\n"])),t.colors.alertColor)},rg=on("div")(tg||(tg=ft(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&ng})),og=at.getClassName,ig=at.isEqual,ag={name:"RangeInput",components:{RangeSlider:Cp},inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:{start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10},isStartValid:!0,isEndValid:!0}},props:{className:{types:Jn.string,default:""},defaultValue:Jn.range,validateRange:Jn.func,value:Jn.range,dataField:Jn.stringRequired,innerClass:Jn.style,range:{types:Jn.range,default:function(){return{start:0,end:10}}},rangeLabels:Jn.rangeLabels,stepValue:Jn.number,componentStyle:Jn.style,componentId:Jn.stringRequired,includeNullValues:jt.bool,beforeValueChange:Jn.func,customQuery:Jn.func,data:Jn.data,filterLabel:Jn.string,react:Jn.react,showFilter:jt.bool.def(!0),showCheckbox:jt.bool.def(!0),title:Jn.title,URLParams:jt.bool.def(!1),sliderOptions:jt.object.def({}),nestedField:Jn.string,endpoint:Jn.endpointConfig},methods:{shouldUpdate:function(e){var t=this.$props.validateRange;return t&&e?t([e.start,e.end]):!!e&&e.start<=e.end},isControlled:function(){return!(!this.$props.value||!this.$listeners)},handleChange:function(e,t){var n=e;if(this.shouldUpdate(e)&&!ig(e,this.currentValue))switch(t){case"change":e||(n={start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10}),this.$data.currentValue=ct({},n),this.$emit("change",this.$data.currentValue);break;case"value-change":this.$emit("valueChange",this.$data.currentValue),this.$emit("value-change",this.$data.currentValue);break;default:this.$data.currentValue=ct({},n)}},handleOnChange:function(e){this.handleChange(e||this.$props.range,"change")},handleValueChange:function(e){this.handleChange(e,"value-change")},handleInputChange:function(e){var t=e.target,n=t.name,r=t.value;Number.isNaN(r)?"start"===n?this.$data.isStartValid=!1:this.$data.isEndValid=!1:"start"!==n||this.$data.isStartValid?"end"!==n||this.$data.isEndValid||(this.$data.isEndValid=!0):this.$data.isStartValid=!0,this.$data.isStartValid&&this.$data.isEndValid&&("start"===n?this.handleChange({start:Number(r),end:this.$data.currentValue.end},"change"):this.handleChange({start:this.$data.currentValue.start,end:Number(r)},"change"))}},watch:{defaultValue:function(e,t){t.start===e.start&&t.end===e.end||this.handleChange(e)},value:function(e,t){ig(e,t)||this.isControlled()&&this.handleChange(e,"change")}},created:function(){this.$props.defaultValue&&this.$props.defaultValue.start&&this.$props.defaultValue.end&&this.handleChange(this.$props.defaultValue),this.isControlled()&&this.handleChange(this.$props.value,"change")},render:function(){var e=arguments[0],t=this.$props,n=t.className,r=t.dataField,o=t.range,i=t.rangeLabels,a=t.componentId,s=t.innerClass,u=t.stepValue,l=t.componentStyle,c=t.themePreset,p=t.includeNullValues,d=t.beforeValueChange,h=t.customQuery,f=t.data,g=t.filterLabel,m=t.react,y=t.showFilter,v=t.showCheckbox,b=t.title,O=t.URLParams,C=t.sliderOptions,w=t.nestedField;return e(ps,{style:l,class:n},[e(Cp,{attrs:{componentId:a,value:{start:this.currentValue.start,end:this.currentValue.end},range:o,dataField:r,rangeLabels:i,includeNullValues:p,beforeValueChange:d,customQuery:h,data:f,filterLabel:g,react:m,showFilter:y,showCheckbox:v,title:b,uRLParams:O,sliderOptions:C,nestedField:w},on:{change:this.handleOnChange,"value-change":this.handleValueChange}}),e(Lo,{class:og(s,"input-container")||""},[e(Lo,{attrs:{direction:"column",flex:2}},[e(Xa,{key:a+"-start-value",attrs:{name:"start",type:"number",step:u,themePreset:c,"aria-label":a+"-start-input",min:this.$props.range?this.$props.range.start:0,alert:!this.isStartValid},on:{change:this.handleInputChange},class:og(s,"input")||"",domProps:ct({},{value:this.currentValue.start})}),!this.isStartValid&&e(rg,{attrs:{alert:!0}},["Input range is invalid"])]),e(Lo,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(Lo,{attrs:{direction:"column",flex:2}},[e(Xa,{key:a+"-end-value",attrs:{name:"end",type:"number",step:u,themePreset:c,"aria-label":a+"-end-input",max:this.$props.range?this.$props.range.end:10,alert:!this.isEndValid},on:{change:this.handleInputChange},class:og(s,"input")||"",domProps:ct({},{value:this.currentValue.end})}),!this.isEndValid&&e(rg,{attrs:{alert:!0}},["Input range is invalid"])])])])}},sg=Br(gr((function(e){return{themePreset:e.config.themePreset}}),{})(ag),{componentType:x.rangeInput});ag.install=function(e){e.component(ag.name,sg)},ag.componentType=x.rangeInput;var ug=[ni,np,lp,Yi,uu,Iu,Ju,pl,Dc,Wc,Op,Qp,Sc,Ic,cc,Fl,ec,qp,ag];function lg(e){ug.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&lg(window.Vue);var cg={version:"2.0.0-alpha.4",install:lg};e.DataSearch=uu,e.DynamicRangeSlider=Qp,e.MultiDropdownList=ec,e.MultiList=pl,e.MultiRange=Wc,e.RangeInput=ag,e.RangeSlider=Op,e.ReactiveBase=Yi,e.ReactiveComponent=Sc,e.ReactiveGoogleMap=zf,e.ReactiveList=ni,e.ResultCard=np,e.ResultList=lp,e.SearchBox=Iu,e.SelectedFilters=Ic,e.SingleDropdownList=Fl,e.SingleList=Ju,e.SingleRange=Dc,e.StateProvider=qp,e.ToggleButton=cc,e.default=cg,e.initReactivesearch=function(e,t,n){return new Promise((function(r,o){var i=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,a=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,s=ct({},n.enableAppbase&&ct({"X-Search-Client":"ReactiveSearch Vue"},!1===a&&{"X-Enable-Telemetry":!1}),n.headers,n.enableAppbase&&n.endpoint&&n.endpoint.headers?n.endpoint.headers:{}),u=n.url&&""!==n.url.trim()?n.url:"https://scalr.api.appbase.io",l=n.transformRequest||null;n.enableAppbase&&n.endpoint&&(n.endpoint.url&&(u=n.endpoint.url),l=function(e){var t=Oe(e,n.endpoint);return n.transformRequest?n.transformRequest(t):t});var c={url:u,app:n.app,credentials:i,transformRequest:l,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:s,analyticsConfig:n.appbaseConfig||null,enableAppbase:n.enableAppbase,endpoint:n.endpoint},p=Vi(c);c.transformRequest&&(p.transformRequest=c.transformRequest),c.transformResponse&&(p.transformResponse=c.transformResponse);var d=[],h={},f={},g={},m={},y={},v=[],b={},O=[],C={},S={},$={},_={},P={},T={},I={};e.forEach((function(e){var n=e.source.componentType;d=[].concat(d,[e.componentId]);var r={};Object.keys(e).forEach((function(t){L.includes(t)&&(r[t]=e[t])}));var o=!1;e.source.hasInternalComponent&&(o=e.source.hasInternalComponent(e));var i=Yf.includes(n),a=e.componentId+"__internal",s=e.filterLabel||e.componentId,u=function(e,t,n,r){if(e&&e[t])try{return{value:JSON.parse(e[t]),reference:"URL"}}catch(n){return{value:e[t],reference:"URL"}}return{value:n||Xf[r]||null,reference:"DEFAULT"}}(t,e.componentId,e.value||e.defaultValue,n),l=u.value,c=u.reference,p=void 0===e.showFilter||e.showFilter;Kf.includes(n)&&(p=!1),h=q(h,{type:"SET_VALUE",component:e.componentId,label:s,value:l,reference:c,showFilter:p,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(P[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&(T[e.componentId]=e.defaultQuery(l,r));var g={};e&&e.source.generateQueryOptions&&(g=ct({},g,e.source.generateQueryOptions(e)));var v={};if(e.source.highlightQuery&&(v=e.source.highlightQuery(e)),g&&Object.keys(g).length||v&&Object.keys(v).length){var b=g||{},O=b.aggs,C=b.size,w=ht(b,Gf);if(O&&Object.keys(O).length&&(o=!0,g=ct({},g,{aggs:O,size:void 0===C?100:C})),w&&Object.keys(w).length||v&&Object.keys(v).length){w||(w={}),v||(v={});var S=ct({},w,v,{size:C});if(o&&(S=ct({},w,v)),i){var $=e.currentPage?e.currentPage-1:0;h[e.componentId]&&h[e.componentId].value&&($=h[e.componentId].value-1||0);var _=e.size||10,R=$*_;r.from=R,S=ct({},S,v,{size:_,from:R})}g=ct({},g,S)}}if(e.react||o||i){var x=e.react;(o||i)&&(x=Ee(x,a)),y=k(y,{type:"WATCH_COMPONENT",component:e.componentId,react:x})}if(o&&!Me(e.componentType)){var j=function(e,t){var n=Jf(t,e);if(e.defaultQuery){var r=e.defaultQuery(n,e);return ct({query:Se(r)},$e(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:{}}(e,l)||{},M=j.query,Q=ht(j,Wf);f=E(f,{type:"SET_QUERY",component:a,query:M}),m=A(m,{type:"SET_QUERY_OPTIONS",component:a,options:ct({},g,Q)})}var V=function(e,t){var n=Jf(t,e);if(e.customQuery){var r=e.customQuery(n,e);return ct({query:Se(r)},$e(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:null}(e,l)||{},D=V.query,F=ht(V,Zf),N=D;f=E(f,{type:"SET_QUERY",component:e.componentId,query:N}),m=A(m,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:ct({},F)}),r.componentType=n,I[e.componentId]=r})),_={components:d,dependencyTree:y,queryList:f,queryOptions:m,selectedValues:h,internalValues:{},props:I,customQueries:P,defaultQueries:T},e.forEach((function(e){var t=Pe(e.componentId,y,f,m),r=t.queryObj,o=t.options,i=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return i.includes(e)}))){var a;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),O=[].concat(O,[e.componentId]);var s=ct({query:ct({},r)},o,m[e.componentId]);if(g=ct({},g,((a={})[e.componentId]=s,a)),n.enableAppbase){var u,l=je(e.componentId,Le(_,e.componentId,m&&Object.keys(m[e.componentId]).length?{from:m[e.componentId].from}:null));if(l)b=ct({},b,((u={})[e.componentId]=l,u),xe(_,e.componentId,O))}else{var p=c&&c.analyticsConfig&&c.analyticsConfig.userId?c.analyticsConfig.userId+"_"+e:e;v=[].concat(v,[{preference:p},s])}}})),_.queryLog=g;var R=function(e,t){return c.transformResponse&&"function"==typeof c.transformResponse?c.transformResponse(e,t):new Promise((function(t){return t(e)}))},x=function(e){var t=O.map((function(t,n){return new Promise((function(r,o){R(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(S=ct({},S,((o={})[t]=e.aggregations,o)),$=ie($,{type:w,aggregations:e.aggregations,append:!1}));C=ct({},C,((n={})[t]={hits:e.hits.hits,total:"object"==typeof e.hits.total?e.hits.total.value:e.hits.total,time:e.took},n)),r()})).catch((function(e){return o(e)}))}))}));Promise.all(t).then((function(){_=ct({},_,{hits:C,aggregations:S}),r(_)}))};if(c.graphQLUrl){(function(e){if(c.transformRequest&&"function"==typeof c.transformRequest){var t=c.transformRequest(e);return t instanceof Promise?t:Promise.resolve(t)}return Promise.resolve(e)})(v).then((function(e){Ge(c.graphQLUrl,c.url,c.credentials,c.app,e).then((function(e){x(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(b).length){v=Object.keys(b).map((function(e){return b[e]}));var j={};c.analyticsConfig&&(j.recordAnalytics=Fe(c.analyticsConfig.recordAnalytics)?c.analyticsConfig.recordAnalytics:void 0,j.userId=Fe(c.analyticsConfig.userId)?c.analyticsConfig.userId:void 0,j.enableQueryRules=Fe(c.analyticsConfig.enableQueryRules)?c.analyticsConfig.enableQueryRules:void 0,j.customEvents=Fe(c.analyticsConfig.customEvents)?c.analyticsConfig.customEvents:void 0),p.reactiveSearchv3(v,j).then((function(e){!function(e){var t={},n={},o={},i={},a={},s=O.map((function(r){return new Promise((function(s,u){R(e[r],r).then((function(u){if(u){var l,c;if(u.promoted&&(t[r]=u.promoted.map((function(e){return ct({},e.doc,{_position:e.position})}))),n[r]=u,u.customData&&(o[r]=u.customData),u.settings&&(i[r]=u.settings),u.aggregations)S=ct({},S,((c={})[r]=u.aggregations,c));a[r]=e._timestamp;var p=u.hits?u.hits:u[r].hits;C=ct({},C,((l={})[r]={hits:p.hits,total:"object"==typeof p.total?p.total.value:p.total,time:u.took},l)),s()}})).catch((function(e){return u(e)}))}))}));Promise.all(s).then((function(){_=ct({},_,{hits:C,timestamp:a,aggregations:S,compositeAggregations:$,promotedResults:t,settings:i,customData:o,rawData:n}),r(_)}))}(e)})).catch((function(e){return o(e)}))}else p.msearch({type:"*"===c.type?"":c.type,body:v}).then((function(e){x(e)})).catch((function(e){return o(e)}))}))},e.install=lg,e.version="2.0.0-alpha.4",Object.defineProperty(e,"__esModule",{value:!0})}));
43
+ ***************************************************************************** */function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}var Cluster=function(){function e(e){var t=e.markers,n=e.position;this.markers=t,n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}var t=e.prototype;return t.push=function(e){this.markers.push(e)},t.delete=function(){this.marker&&(this.marker.setMap(null),delete this.marker),this.markers.length=0},_createClass(e,[{key:"bounds",get:function(){if(0!==this.markers.length||this._position)return this.markers.reduce((function(e,t){return e.extend(t.getPosition())}),new google.maps.LatLngBounds(this._position,this._position))}},{key:"position",get:function(){return this._position||this.bounds.getCenter()}},{key:"count",get:function(){return this.markers.filter((function(e){return e.getVisible()})).length}}]),e}(),AbstractAlgorithm=function(){function e(e){var t=e.maxZoom,n=void 0===t?16:t;this.maxZoom=n}return e.prototype.noop=function(e){var t=e.markers;return _noop(t)},e}(),_noop=function(e){return e.map((function(e){return new Cluster({position:e.getPosition(),markers:[e]})}))},SuperClusterAlgorithm=function(e){function t(t){var n,r=t.maxZoom,o=t.radius,a=void 0===o?60:o,s=__rest(t,["maxZoom","radius"]);return(n=e.call(this,{maxZoom:r})||this).superCluster=new Supercluster(Object.assign({maxZoom:n.maxZoom,radius:a},s)),n.state={zoom:null},n}_inheritsLoose(t,e);var n=t.prototype;return n.calculate=function(e){var t=!1;if(!fastDeepEqual(e.markers,this.markers)){t=!0,this.markers=[].concat(e.markers);var n=this.markers.map((function(e){return{type:"Feature",geometry:{type:"Point",coordinates:[e.getPosition().lng(),e.getPosition().lat()]},properties:{marker:e}}}));this.superCluster.load(n)}var r={zoom:e.map.getZoom()};return t||this.state.zoom>this.maxZoom&&r.zoom>this.maxZoom||(t=t||!fastDeepEqual(this.state,r)),this.state=r,t&&(this.clusters=this.cluster(e)),{clusters:this.clusters,changed:t}},n.cluster=function(e){var t=e.map;return this.superCluster.getClusters([-180,-90,180,90],Math.round(t.getZoom())).map(this.transformCluster.bind(this))},n.transformCluster=function(e){var t=e.geometry.coordinates,n=t[0],r=t[1],o=e.properties;if(o.cluster)return new Cluster({markers:this.superCluster.getLeaves(o.cluster_id,1/0).map((function(e){return e.properties.marker})),position:new google.maps.LatLng({lat:r,lng:n})});var a=o.marker;return new Cluster({markers:[a],position:a.getPosition()})},t}(AbstractAlgorithm),ClusterStats=function(e,t){this.markers={sum:e.length};var n=t.map((function(e){return e.count})),r=n.reduce((function(e,t){return e+t}),0);this.clusters={count:t.length,markers:{mean:r/t.length,sum:r,min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}},DefaultRenderer=function(){function e(){}return e.prototype.render=function(e,t){var n=e.count,r=e.position,o=n>Math.max(10,t.clusters.markers.mean)?"#ff0000":"#0000ff",a=window.btoa('\n <svg fill="'+o+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">\n <circle cx="120" cy="120" opacity=".6" r="70" />\n <circle cx="120" cy="120" opacity=".3" r="90" />\n <circle cx="120" cy="120" opacity=".2" r="110" />\n </svg>');return new google.maps.Marker({position:r,icon:{url:"data:image/svg+xml;base64,"+a,scaledSize:new google.maps.Size(45,45)},label:{text:String(n),color:"rgba(255,255,255,0.9)",fontSize:"12px"},title:"Cluster of "+n+" markers",zIndex:Number(google.maps.Marker.MAX_ZINDEX)+n})},e}();function extend$1(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}var OverlayViewSafe=function e(){extend$1(e,google.maps.OverlayView)},MarkerClustererEvents;!function(e){e.CLUSTERING_BEGIN="clusteringbegin",e.CLUSTERING_END="clusteringend",e.CLUSTER_CLICK="click"}(MarkerClustererEvents||(MarkerClustererEvents={}));var defaultOnClusterClickHandler=function(e,t,n){n.fitBounds(t.bounds)},MarkerClusterer=function(e){function t(t){var n,r=t.map,o=t.markers,a=void 0===o?[]:o,s=t.algorithm,i=void 0===s?new SuperClusterAlgorithm({}):s,u=t.renderer,l=void 0===u?new DefaultRenderer:u,c=t.onClusterClick,p=void 0===c?defaultOnClusterClickHandler:c;return(n=e.call(this)||this).markers=[].concat(a),n.clusters=[],n.algorithm=i,n.renderer=l,n.onClusterClick=p,r&&n.setMap(r),n}_inheritsLoose(t,e);var n=t.prototype;return n.addMarker=function(e,t){this.markers.includes(e)||(this.markers.push(e),t||this.render())},n.addMarkers=function(e,t){var n=this;e.forEach((function(e){n.addMarker(e,!0)})),t||this.render()},n.removeMarker=function(e,t){var n=this.markers.indexOf(e);return-1!==n&&(e.setMap(null),this.markers.splice(n,1),t||this.render(),!0)},n.removeMarkers=function(e,t){var n=this,r=!1;return e.forEach((function(e){r=n.removeMarker(e,!0)||r})),r&&!t&&this.render(),r},n.clearMarkers=function(e){this.markers.length=0,e||this.render()},n.render=function(){var e=this.getMap();if(e instanceof google.maps.Map&&this.getProjection()){google.maps.event.trigger(this,MarkerClustererEvents.CLUSTERING_BEGIN,this);var t=this.algorithm.calculate({markers:this.markers,map:e,mapCanvasProjection:this.getProjection()}),n=t.clusters,r=t.changed;(r||null==r)&&(this.reset(),this.clusters=n,this.renderClusters()),google.maps.event.trigger(this,MarkerClustererEvents.CLUSTERING_END,this)}},n.onAdd=function(){this.idleListener=this.getMap().addListener("idle",this.render.bind(this)),this.render()},n.onRemove=function(){google.maps.event.removeListener(this.idleListener),this.reset()},n.reset=function(){this.markers.forEach((function(e){return e.setMap(null)})),this.clusters.forEach((function(e){return e.delete()})),this.clusters=[]},n.renderClusters=function(){var e=this,t=new ClusterStats(this.markers,this.clusters),n=this.getMap();this.clusters.forEach((function(r){1===r.markers.length?r.marker=r.markers[0]:(r.marker=e.renderer.render(r,t),e.onClusterClick&&r.marker.addListener("click",(function(t){google.maps.event.trigger(e,MarkerClustererEvents.CLUSTER_CLICK,r),e.onClusterClick(t,r,n)}))),r.marker.setMap(n)}))},t}(OverlayViewSafe),_excluded$7=["map"],props$6={algorithm:{type:Object,default:new SuperClusterAlgorithm({}),noBind:!0},renderer:{type:Object,default:new DefaultRenderer,noBind:!0}},events$5=["clusteringbegin","clusteringend"],script$1=buildComponent({mappedProps:props$6,events:events$5,name:"cluster",ctr:function(){if(void 0===MarkerClusterer){throw console.error("MarkerClusterer is not installed!"),new Error("MarkerClusterer is not installed!")}return MarkerClusterer},ctrArgs:function(e){return[_extends({map:e.map},_objectWithoutPropertiesLoose(e,_excluded$7))]},afterCreate:function(e){var t=function(){var t=e.getMarkers();e.clearMarkers(),e.addMarkers(t)};for(var n in props$6)props$6[n].twoWay&&this.$on(n.toLowerCase()+"_changed",t)},updated:function(){this.$clusterObject&&this.$clusterObject.render()},beforeUnmount:function(){var e=this;this.$children&&this.$children.length&&this.$children.forEach((function(t){t.$clusterObject===e.$clusterObject&&(t.$clusterObject=null)})),this.$clusterObject&&this.$clusterObject.clearMarkers()}});function render$1(e,t,n,r,o,a){return vue.openBlock(),vue.createElementBlock("div",null,[vue.renderSlot(e.$slots,"default")])}script$1.render=render$1,script$1.__file="node_modules/vue-google-maps-community-fork/src/components/cluster.vue";var props$7={options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},events$6=["domready","click","closeclick","content_changed"],script$2=buildComponent({mappedProps:props$7,events:events$6,name:"infoWindow",ctr:function(){return google.maps.InfoWindow},props:{opened:{type:Boolean,default:!0}},inject:{$markerPromise:{default:null}},mounted:function(){var e=this.$refs.infoWindow;e.parentNode.removeChild(e)},beforeCreate:function(e){var t=this;if(e.content=this.$refs.infoWindow,this.$markerPromise)return delete e.position,this.$markerPromise.then((function(e){return t.$markerObject=e,e}))},emits:["closeclick"],methods:{_openInfoWindow:function(){this.$infoWindowObject.close(),this.opened?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$emit("closeclick")}},afterCreate:function(){var e=this;this._openInfoWindow(),this.$watch("opened",(function(){e._openInfoWindow()}))}}),_hoisted_1={ref:"infoWindow"};function render$2(e,t,n,r,o,a){return vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[vue.renderSlot(e.$slots,"default")],512)}script$2.render=render$2,script$2.__file="node_modules/vue-google-maps-community-fork/src/components/infoWindow.vue";var mountableMixin={props:["resizeBus"],data:function(){return{_actualResizeBus:null}},created:function(){void 0===this.resizeBus?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback:function(){this.resize()},isFunction:function(e){return e&&"[object Function]"==={}.toString.call(e)},_delayedResizeCallback:function(){var e=this;this.$nextTick((function(){return e._resizeCallback()}))}},watch:{resizeBus:function(e){this.$data._actualResizeBus=e},"$data._actualResizeBus":function(e,t){t&&t.$off("resize",this._delayedResizeCallback)}},unmounted:function(){this.$data._actualResizeBus&&this.isFunction(this.$data._actualResizeBus.$off)&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}};function TwoWayBindingWrapper(e){var t=0;e((function(){t+=1}),(function(){t=Math.max(0,t-1)}),(function(){return 0===t}))}var props$8={center:{default:{lat:0,lng:0},twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},events$7=["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"],linkedMethods=["panBy","panTo","panToBounds","fitBounds"].reduce((function(e,t){return e[t]=function(){this.$mapObject&&this.$mapObject[t].apply(this.$mapObject,arguments)},e}),{}),customMethods={resize:function(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter:function(){if(this.$mapObject){var e=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(e)}},_resizeCallback:function(){this.resizePreserveCenter()}},script$3={mixins:[mountableMixin],props:mappedPropsToVueProps(_extends({},props$8,events$7.reduce((function(e,t){var n;return _extends({},e,((n={})[("on"+t.charAt(0).toUpperCase()+t.slice(1)).replace(/[-_]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))]=Function,n))}),{}))),inheritAttrs:!1,provide:function(){var e=this;return this.$mapPromise=new Promise((function(t,n){e.$mapPromiseDeferred={resolve:t,reject:n}})),{$mapPromise:this.$mapPromise}},emits:["center_changed","zoom_changed","bounds_changed"],computed:{finalLat:function(){return this.center&&"function"==typeof this.center.lat?this.center.lat():this.center.lat},finalLng:function(){return this.center&&"function"==typeof this.center.lng?this.center.lng():this.center.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$mapObject&&this.$mapObject.setZoom(e)}},mounted:function(){var e=this;return this.$gmapApiPromiseLazy().then((function(){var t=e.$refs["vue-map"],n=_extends({},e.options,getPropsValues(e,props$8));return delete n.options,e.$mapObject=new google.maps.Map(t,n),bindProps(e,e.$mapObject,props$8),bindEvents(e,e.$mapObject,events$7),TwoWayBindingWrapper((function(t,n,r){e.$mapObject.addListener("center_changed",(function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()}));WatchPrimitiveProperties(e,["finalLat","finalLng"],(function(){t(),e.$mapObject.setCenter(e.finalLatLng)}))})),e.$mapObject.addListener("zoom_changed",(function(){e.$emit("zoom_changed",e.$mapObject.getZoom())})),e.$mapObject.addListener("bounds_changed",(function(){e.$emit("bounds_changed",e.$mapObject.getBounds())})),e.$mapPromiseDeferred.resolve(e.$mapObject),e.$mapObject})).catch((function(e){throw e}))},methods:_extends({},customMethods,linkedMethods)},_hoisted_1$1={class:"vue-map-hidden"};function render$3(e,t,n,r,o,a){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["vue-map-container",e.$attrs.class])},[vue.createElementVNode("div",{ref:"vue-map",class:"vue-map",style:vue.normalizeStyle(e.$attrs.style?e.$attrs.style:"")},null,4),vue.createElementVNode("div",_hoisted_1$1,[vue.renderSlot(e.$slots,"default")]),vue.renderSlot(e.$slots,"visible")],2)}function styleInject(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var css_248z="\n.vue-map {\n width: 100%;\n height: 100%;\n min-height: 2rem;\n}\n";styleInject(css_248z),script$3.render=render$3,script$3.__file="node_modules/vue-google-maps-community-fork/src/components/map.vue";var props$9={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},events$8=[],Heatmap=buildComponent({mappedProps:props$9,name:"heatmap",ctr:function(){return google.maps.visualization.HeatmapLayer},events:events$8}),downArrowSimulator=function(e){var t=e.addEventListener?e.addEventListener:e.attachEvent;function n(n,r){if("keydown"===n){var o=r;r=function(t){var n=document.getElementsByClassName("pac-item-selected").length>0;if(13===t.which&&!n){var r=document.createEvent("Event");r.keyCode=40,r.which=40,o.apply(e,[r])}o.apply(e,[t])}}t.apply(e,[n,r])}e.addEventListener=n,e.attachEvent=n},mappedProps={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},props$a={selectFirstOnEnter:{required:!1,type:Boolean,default:!1},options:{type:Object}},script$4={mounted:function(){var e=this,t=this;this.$gmapApiPromiseLazy().then((function(){var n=t.$refs.input;if(t.$slots.input){var r=t.$slots.input()[0].props.ref,o=t.$slots.input()[0].ref.i.ctx.$refs[r];o&&(n=o.$el.getElementsByTagName("input")[0])}if(e.selectFirstOnEnter&&downArrowSimulator(n),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");var a=_extends({},getPropsValues(e,mappedProps),e.options);e.$autocomplete=new google.maps.places.Autocomplete(n,a),bindProps(e,e.$autocomplete,mappedProps),e.$watch("componentRestrictions",(function(t){void 0!==t&&e.$autocomplete.setComponentRestrictions(t)})),e.$autocomplete.addListener("place_changed",(function(){e.$emit("place_changed",e.$autocomplete.getPlace())}))}))},props:_extends({},mappedPropsToVueProps(mappedProps),props$a)};function render$4(e,t,n,r,o,a){return e.$slots.input?vue.renderSlot(e.$slots,"input",vue.normalizeProps(vue.mergeProps({key:0},e.$attrs))):e.$slots.input?vue.createCommentVNode("v-if",!0):(vue.openBlock(),vue.createElementBlock("input",vue.mergeProps({key:1,ref:"input"},e.$attrs,vue.toHandlers(e.$attrs,!0)),null,16))}script$4.render=render$4,script$4.__file="node_modules/vue-google-maps-community-fork/src/components/autocomplete.vue";var GMapApi=null;function install(e,t){t=_extends({installComponents:!0,autobindAllEvents:!1},t),GMapApi=vue.createApp({data:function(){return{gmapApi:null}}});var n=vue.createApp(),r=makeGMapApiPromiseLazy(t);e.mixin({created:function(){this.$gmapDefaultResizeBus=n,this.$gmapOptions=t,this.$gmapApiPromiseLazy=r}}),e.$gmapDefaultResizeBus=n,e.$gmapApiPromiseLazy=r,t.installComponents&&(e.component("GMapMap",script$3),e.component("GMapMarker",script),e.component("GMapInfoWindow",script$2),e.component("GMapCluster",script$1),e.component("GMapPolyline",Polyline),e.component("GMapPolygon",Polygon),e.component("GMapCircle",Circle),e.component("GMapRectangle",Rectangle),e.component("GMapAutocomplete",script$4),e.component("GMapHeatmap",Heatmap))}function makeGMapApiPromiseLazy(e){function t(){return GMapApi.gmapApi={},window.google}if(e.load)return lazy((function(){return Env.isServer()?new Promise((function(){})).then(t):new Promise((function(t,n){try{window.vueGoogleMapsInit=t,loadGMapApi(e.load)}catch(e){n(e)}})).then(t)}));var n=new Promise((function(e){Env.isServer()||(window.vueGoogleMapsInit=e)})).then(t);return lazy((function(){return n}))}for(var BASE32_CODES="0123456789bcdefghjkmnpqrstuvwxyz",BASE32_CODES_DICT={},i$3=0;i$3<BASE32_CODES.length;i$3++)BASE32_CODES_DICT[BASE32_CODES.charAt(i$3)]=i$3;var ENCODE_AUTO="auto",MIN_LAT=-90,MAX_LAT=90,MIN_LON=-180,MAX_LON=180,SIGFIG_HASH_LENGTH=[0,5,7,8,11,12,13,15,16,17,18],encode$1=function(e,t,n){if(n===ENCODE_AUTO){if("number"==typeof e||"number"==typeof t)throw new Error("string notation required for auto precision.");var r=e.split(".")[1].length,o=t.split(".")[1].length,a=Math.max(r,o);n=SIGFIG_HASH_LENGTH[a]}else void 0===n&&(n=9);for(var s,i=[],u=0,l=0,c=0,p=MAX_LAT,d=MIN_LAT,h=MAX_LON,f=MIN_LON;i.length<n;)if(l%2==0?t>(s=(h+f)/2)?(c=1+(c<<1),f=s):(c=0+(c<<1),h=s):e>(s=(p+d)/2)?(c=1+(c<<1),d=s):(c=0+(c<<1),p=s),l++,5===++u){var m=BASE32_CODES[c];i.push(m),u=0,c=0}return i.join("")},encode_int=function(e,t,n){n=n||52;for(var r,o=0,a=MAX_LAT,s=MIN_LAT,i=MAX_LON,u=MIN_LON,l=0;o<n;)l*=2,o%2==0?t>(r=(i+u)/2)?(l+=1,u=r):i=r:e>(r=(a+s)/2)?(l+=1,s=r):a=r,o++;return l},decode_bbox=function(e){for(var t,n=!0,r=MAX_LAT,o=MIN_LAT,a=MAX_LON,s=MIN_LON,i=0,u=0,l=e.length;u<l;u++){var c=e[u].toLowerCase();i=BASE32_CODES_DICT[c];for(var p=4;p>=0;p--){var d=i>>p&1;n?(t=(a+s)/2,1===d?s=t:a=t):(t=(r+o)/2,1===d?o=t:r=t),n=!n}}return[o,s,r,a]},decode_bbox_int=function(e,t){for(var n=MAX_LAT,r=MIN_LAT,o=MAX_LON,a=MIN_LON,s=0,i=(t=t||52)/2,u=0;u<i;u++)s=get_bit(e,2*(i-u)-1),0===get_bit(e,2*(i-u)-2)?n=(n+r)/2:r=(n+r)/2,0===s?o=(o+a)/2:a=(o+a)/2;return[r,a,n,o]};function get_bit(e,t){return e/Math.pow(2,t)&1}var decode$1=function(e){var t=decode_bbox(e),n=(t[0]+t[2])/2,r=(t[1]+t[3])/2;return{latitude:n,longitude:r,error:{latitude:t[2]-n,longitude:t[3]-r}}},decode_int=function(e,t){var n=decode_bbox_int(e,t),r=(n[0]+n[2])/2,o=(n[1]+n[3])/2;return{latitude:r,longitude:o,error:{latitude:n[2]-r,longitude:n[3]-o}}},neighbor=function(e,t){var n=decode$1(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=ensure_valid_lon(o),r=ensure_valid_lat(r),encode$1(r,o,e.length)},neighbor_int=function(e,t,n){var r=decode_int(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,a=r.longitude+t[1]*r.error.longitude*2;return a=ensure_valid_lon(a),o=ensure_valid_lat(o),encode_int(o,a,n)},neighbors=function(e){var t,n,r=e.length,o=decode$1(e),a=o.latitude,s=o.longitude,i=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=a+e*i,n=ensure_valid_lon(n=s+o*u),t=ensure_valid_lat(t),encode$1(t,n,r)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},neighbors_int=function(e,t){var n,r,o=decode_int(e,t=t||52),a=o.latitude,s=o.longitude,i=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=a+e*i,r=ensure_valid_lon(r=s+o*u),n=ensure_valid_lat(n),encode_int(n,r,t)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},bboxes=function(e,t,n,r,o){for(var a=encode$1(e,t,o=o||9),s=encode$1(n,r,o),i=decode$1(a),u=2*i.error.latitude,l=2*i.error.longitude,c=decode_bbox(a),p=decode_bbox(s),d=Math.round((p[0]-c[0])/u),h=Math.round((p[1]-c[1])/l),f=[],m=0;m<=d;m++)for(var g=0;g<=h;g++)f.push(neighbor(a,[m,g]));return f},bboxes_int=function(e,t,n,r,o){for(var a=encode_int(e,t,o=o||52),s=encode_int(n,r,o),i=decode_int(a,o),u=2*i.error.latitude,l=2*i.error.longitude,c=decode_bbox_int(a,o),p=decode_bbox_int(s,o),d=Math.round((p[0]-c[0])/u),h=Math.round((p[1]-c[1])/l),f=[],m=0;m<=d;m++)for(var g=0;g<=h;g++)f.push(neighbor_int(a,[m,g],o));return f};function ensure_valid_lon(e){return e>MAX_LON?MIN_LON+e%MAX_LON:e<MIN_LON?MAX_LON+e%MAX_LON:e}function ensure_valid_lat(e){return e>MAX_LAT?MAX_LAT:e<MIN_LAT?MIN_LAT:e}var geohash={ENCODE_AUTO:ENCODE_AUTO,encode:encode$1,encode_uint64:encode_int,encode_int:encode_int,decode:decode$1,decode_int:decode_int,decode_uint64:decode_int,decode_bbox:decode_bbox,decode_bbox_uint64:decode_bbox_int,decode_bbox_int:decode_bbox_int,neighbor:neighbor,neighbor_int:neighbor_int,neighbors:neighbors,neighbors_int:neighbors_int,bboxes:bboxes,bboxes_int:bboxes_int},main=geohash,setStreaming=lib_5.setStreaming,setQueryOptions$b=lib_5.setQueryOptions,updateQuery$c=lib_5.updateQuery,loadMore$1=lib_5.loadMore,setValue$3=lib_5.setValue,updateComponentProps$3=lib_5.updateComponentProps,setDefaultQuery$7=lib_5.setDefaultQuery,recordResultClick$1=lib_5.recordResultClick,setMapData=lib_5.setMapData,isEqual$g=lib_8.isEqual,getQueryOptions$5=lib_8.getQueryOptions,getClassName$g=lib_8.getClassName,parseHits$2=lib_8.parseHits,getOptionsFromQuery$4=lib_8.getOptionsFromQuery,getResultStats$3=lib_8.getResultStats,MAP_CENTER={lat:37.7749,lng:122.4194},style={width:"100%",height:"100vh",position:"relative"};function getPrecision(e){if(isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function withDistinctLat(e,t){var n=getPrecision(e.lat),r=n>=6?4:n-2,o=1/Math.pow(10,r)*t;return _extends({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function getLocationObject(e){switch(Array.isArray(e)?"array":typeof e){case"string":if(e.indexOf(",")>-1){var t=e.split(",");return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}var n=main.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var ReactiveMap={name:"ReactiveMap",props:{className:types.string,componentId:types.stringRequired,dataField:types.stringRequired,react:types.react,size:types.number,sortBy:types.sortBy,URLParams:Q.bool,autoCenter:Q.bool,getMapRef:Q.func.isRequired,center:types.location,defaultCenter:types.location,defaultPin:types.string,defaultZoom:Q.number.def(13),defaultQuery:types.func,innerClass:types.style,loader:types.title,render:types.func,renderItem:types.func,renderError:types.title,pages:Q.number.def(5),currentPage:Q.number.def(0),pagination:Q.bool,showMarkers:Q.bool,defaultSearchAsMove:Q.bool,showSearchAsMove:Q.bool,defaultRadius:types.number,unit:types.string,autoClosePopover:Q.bool,renderMap:Q.func.isRequired,renderPopover:Q.func,calculateMarkers:Q.func,searchAsMoveLabel:Q.string.def("Search as I move the map")},preserveCenter:!1,data:function(){var e=this.$props,t=0;return e.currentPage&&(t=Math.max(e.currentPage-1,0)),this.__state={from:t*e.size,zoom:e.defaultZoom,searchAsMove:e.defaultSearchAsMove,currentPageState:t,mapBoxBounds:null,markersData:null},this.__state},computed:{totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},stats:function(){var e=this.getAllData().resultsToRender;return _extends({},getResultStats$3(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return hasCustomRenderer(this)}},watch:{defaultZoom:function(e){this.zoom=e},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},defaultQuery:function(e,t){if(!isQueryIdentical(e,t,null,this.$props)){var n=getQueryOptions$5(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=this.$defaultQuery||{},o=r.sort,a=r.query;o&&(n.sort=this.$defaultQuery.sort),getOptionsFromQuery$4(this.$defaultQuery)&&(n=_extends({},n,getOptionsFromQuery$4(this.$defaultQuery))),this.setQueryOptions(this.$props.componentId,n,!1);this.setDefaultQueryForRSAPI();var s={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,a,!0,!0,s),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){isEqual$g(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$g(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$g(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.pagination&&this.isLoading&&(t||e)&&this.$emit("page-change",this.currentPageState+1,this.totalPages)},rawData:function(e,t){var n=this;if(!isEqual$g(e,t)){var r=this.promotedResults,o=this.hits,a=parseHits$2(o)||[],s=parseHits$2(r)||[],i=a;if(s.length){var u=s.map((function(e){return e._id})).filter(Boolean);u&&(i=i.filter((function(e){return!u.includes(e._id)}))),i=[].concat(s,i)}i=i.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return _extends({},e,((t={})[n.dataField]=getLocationObject(e[n.dataField]),t))})),this.filteredResults=this.addNoise(i),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!isEqual$g(e,t)){var n=!!this.center,r=this.getGeoQuery(this.$props);this.setDefaultQueryForRSAPI();var o={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,r,n,!0,o)}}},methods:{parseLocation:function(e){return Array.isArray(e)?{lat:Number(e[0]),lng:Number(e[1])}:{lat:e?Number(e.lat):this.defaultCenter.lat,lng:e?Number(void 0===e.lon?e.lng:e.lon):this.defaultCenter.lng}},getDefaultCenter:function(){return this.defaultCenter?this.parseLocation(this.defaultCenter):this.parseLocation(MAP_CENTER)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=_extends({},e),a=t.parseLocation(e[t.dataField]),s=JSON.stringify(a),i=n[s]||0;o[t.dataField]=i?withDistinctLat(a,i):a,r=[].concat(r,[o]),n[s]=i+1})),r},getPosition:function(e){return e?this.parseLocation(e[this.dataField]):null},getHitsCenter:function(e){var t=this,n=e.map((function(e){return e[t.dataField]}));if(n.length){var r=n.length,o=0,a=0,s=0;n.forEach((function(e){if(e){var t,n,r=getLocationObject(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var i=Math.cos(t)*Math.cos(n),u=Math.cos(t)*Math.sin(n),l=Math.sin(t);o+=i,a+=u,s+=l}})),o/=r,a/=r,s/=r;var i=Math.atan2(a,o),u=Math.sqrt(o*o+a*a);return{lat:180*Math.atan2(s,u)/Math.PI,lng:180*i/Math.PI}}return!1},getCenter:function(e){var t=this;if(this.center)return this.parseLocation(this.center);var n=this.getMapRef();if(n&&"function"==typeof n.getCenter&&this.$options.preserveCenter){var r=n.getCenter();return setTimeout((function(){t.$options.preserveCenter=!1}),100),this.parseLocation({lat:r.lat(),lng:r.lng()})}return e&&e.length?this.autoCenter?this.getHitsCenter(e)||this.getDefaultCenter():e[0]&&e[0][this.dataField]?this.getPosition(e[0]):this.getDefaultCenter():this.getDefaultCenter()},handleZoomChange:function(e){if(e){var t=this.zoom;this.searchAsMove?(this.zoom=e,this.$options.preserveCenter=!0,this.setGeoQuery(!0)):this.zoom=e,t!==e&&this.$emit("zoom-changed",e)}},handleOnDragEnd:function(){this.searchAsMove&&(this.$options.preserveCenter=!0,this.setGeoQuery(!0)),this.$emit("drag-end")},handlePreserveCenter:function(e){this.$options.preserveCenter=e},handleOnIdle:function(){if(this.hits&&this.hits.length&&this.searchAsMove){var e=!!this.center;this.setGeoQuery(e)}this.$emit("idle")},setGeoQuery:function(e){if(void 0===e&&(e=!1),e||!this.skipBoundingBox&&!this.mapBoxBounds){this.$defaultQuery=this.getGeoQuery();var t=!!this.center,n=this.searchAsMove,r={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery,t,n,r)}this.skipBoundingBox=!1},getMapParams:function(){var e=this.getData().data,t=this.showMarkers,n=this.defaultPin,r=this.renderPopover,o=this.autoClosePopover,a=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:a,showMarkers:t,defaultPin:n,renderPopover:r,autoClosePopover:o,renderSearchAsMove:this.renderSearchAsMove,handlePreserveCenter:this.handlePreserveCenter,preserveCenter:this.$options.preserveCenter,handleOnDragEnd:this.handleOnDragEnd,handleOnIdle:this.handleOnIdle,handleZoomChange:this.handleZoomChange}},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.customData,r=this.currentPage,o=this.hits,a=parseHits$2(o)||[],s=parseHits$2(t)||[],i=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:a,resultsToRender:u,customData:n||{},promotedResults:s,loadMore:this.loadMore,base:i,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData,o=e.resultsToRender;return{data:this.withClickIds(o),aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=_extends({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return getComponent(e,this)},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.size*e,n=getQueryOptions$5(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,_extends({},n,{from:t}),!1),this.URLParams&&this.setPageURL(this.componentId,e+1,this.componentId,!1,!0)}},setDefaultQueryForRSAPI:function(){if(this.defaultQuery&&"function"==typeof this.defaultQuery){var e=this.defaultQuery();this.setDefaultQuery(this.componentId,e)}},getArrPosition:function(e){return{lat:e.lat,lon:e.lon||e.lng}},getGeoQuery:function(e){void 0===e&&(e=this.$props),this.$defaultQuery=e.defaultQuery?e.defaultQuery():null;var t,n,r,o=this.getMapRef(),a=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(a){var s;t=a.getNorthEast().lat(),n=a.getSouthWest().lat(),r=a.getNorthEast().lng();var i={top_left:[a.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=i;var u={geo_bounding_box:(s={},s[this.dataField]=i,s)};if(this.$defaultQuery){var l=this.$defaultQuery.query;if(l)return{must:[u,l]}}return u}return this.$defaultQuery?this.$defaultQuery.query:null},getGeoDistanceQuery:function(){var e,t=this.center||this.defaultCenter;return t&&this.defaultRadius?(this.skipBoundingBox=!0,{geo_distance:(e={distance:""+this.defaultRadius+this.unit},e[this.dataField]=this.getArrPosition(t),e)}):null},loadMore:function(){if(this.hits&&!this.pagination&&this.total!==this.hits.length){var e=this.from+this.size,t=getQueryOptions$5(this.$props);this.from=e,this.loadMoreAction(this.componentId,_extends({},t,{from:e}),!0)}},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.getData().data.find((function(t){return t._click_id===e}));r&&r._id&&(n=r._id)}this.recordResultClick(e,n)},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return _extends({},e,{_click_id:t+n})}))},toggleSearchAsMove:function(){this.searchAsMove=!this.searchAsMove,this.$emit("search-as-move",this.searchAsMove)},renderErrorComponent:function(){var e=this.$slots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?isFunction(e)?e(this.error):e:null},renderSearchAsMove:function(){return this.showSearchAsMove?vue.createVNode("div",{style:{position:"absolute",bottom:"30px",left:"10px",width:"240px",backgroundColor:"#fff",padding:"8px 10px",boxShadow:"rgba(0,0,0,0.3) 0px 1px 4px -1px",borderRadius:2,zIndex:1e4},className:getClassName$g(this.innerClass,"checkboxContainer")||null},[vue.createVNode(Checkbox,{type:"checkbox",class:getClassName$g(this.$props.innerClass,"checkbox"),id:this.$props.componentId+"-searchasmove",onClick:this.toggleSearchAsMove,checked:this.searchAsMove,show:!0},null),vue.createVNode("label",{className:getClassName$g(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"},[this.searchAsMoveLabel])]):null},renderPagination:function(){return vue.createVNode(Pagination,{pages:this.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.innerClass},null)}},created:function(){this.defaultPage>=0&&(this.currentPageState=this.defaultPage,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.updateComponentProps(this.componentId,{from:this.from},constants_1$1.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},constants_1$1.reactiveMap)},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.$props.URLParams&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,!0);var e,t=getQueryOptions$5(this.$props);(t.from=this.$data.from,this.$props.sortBy)&&(t.sort=[(e={},e[this.$props.dataField]={order:this.$props.sortBy},e)]);if(this.$defaultQuery=null,this.$props.defaultQuery){this.$defaultQuery=this.$props.defaultQuery(),t=_extends({},t,getOptionsFromQuery$4(this.$defaultQuery)),this.$defaultQuery.sort&&(t.sort=this.$defaultQuery.sort);this.setDefaultQueryForRSAPI();var n={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery.query,!0,!1,n)}else{var r=this.getGeoDistanceQuery();if(r){var o=!!this.center,a=this.searchAsMove,s=this.center||this.defaultCenter,i=this.getArrPosition(s),u={distance:this.defaultRadius,coordinates:i.lat+", "+i.lon};this.setMapData(this.componentId,r,o,a,u)}}this.setQueryOptions(this.componentId,t,!(this.$defaultQuery&&this.$defaultQuery.query))},render:function(){var e=this.$slots.loader||this.$props.loader;return vue.createVNode("div",{style:_extends({},style,this.$props.style),class:this.$props.className},[this.renderErrorComponent(),this.isLoading&&e,this.hasCustomRender?this.getComponent():null,this.renderMap(this.getMapParams()),this.pagination?this.renderPagination():null])}},mapStateToProps$h=function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],total:e.hits[t.componentId]&&e.hits[t.componentId].total,time:e.hits[t.componentId]&&e.hits[t.componentId].time,rawData:e.rawData[t.componentId],hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}},mapDispatchToProps$3={loadMoreAction:loadMore$1,setPageURL:setValue$3,setQueryOptions:setQueryOptions$b,setStreaming:setStreaming,updateQuery:updateQuery$c,updateComponentProps:updateComponentProps$3,setDefaultQuery:setDefaultQuery$7,recordResultClick:recordResultClick$1,setMapData:setMapData},RMConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$h,mapDispatchToProps$3)(ReactiveMap),{componentType:constants_1$1.reactiveMap,internalComponent:!0}));ReactiveMap.install=function(e){e.component(ReactiveMap.name,RMConnected)},ReactiveMap.componentType=constants_1$1.reactiveMap;var infoWindowMappedProps={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}};function bindEvents$1(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$attrs[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}function capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}function getPropsValues$1(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function watchPrimitiveProperties(e,t,n,r){void 0===r&&(r=!1);var o=!1;function a(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,a,{immediate:r})}))}function bindProps$1(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],a=o.twoWay,s=o.type,i=o.trackProperties;if(!o.noBind){var u="set"+capitalizeFirstLetter(r),l="get"+capitalizeFirstLetter(r),c=r.toLowerCase()+"_changed",p=e[r];if(void 0===t[u])throw new Error(u+" is not a method of (the Maps object corresponding to) "+e.$options._componentTag);s===Object&&i?watchPrimitiveProperties(e,i.map((function(e){return r+"."+e})),(function(){t[u](e[r])}),void 0!==e[r]):e.$watch(r,(function(){var n=e[r];t[u](n)}),{immediate:void 0!==p,deep:s===Object}),a&&(e.$gmapOptions.autoBindAllEvents||e.$attrs[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}var _excluded$8=["options","position"],InfoWindowClusterManager={name:"InfoWindowClusterManager",inject:{$markerPromise:{default:null},$mapPromise:{}},provide:function(){var e=this,t=["domready","closeclick","content_changed"],n=this.$mapPromise.then((function(n){e.$map=n;var r=_extends({},e.options,{map:n},getPropsValues$1(e,infoWindowMappedProps)),o=(r.options,r.position,_objectWithoutPropertiesLoose(r,_excluded$8));o.content=e.$refs.flyaway,e.$markerPromise&&e.$markerPromise.then((function(n){return e.$markerObject=n,e.$infoWindowObject=new google.maps.InfoWindow(o),bindProps$1(e,e.$infoWindowObject,infoWindowMappedProps),bindEvents$1(e,e.$infoWindowObject,t),e._openInfoWindow(),e.$watch("opened",(function(){e._openInfoWindow()})),e.$infoWindowObject}))})).catch((function(e){throw e}));return this.$infoWindowPromise=n,{$infoWindowPromise:n}},props:{content:{type:[String,Object],default:void 0},opened:{type:Boolean,default:!0},position:{type:Object,default:void 0},zIndex:{type:Number,default:0},options:{type:Object,required:!1,default:void 0}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},destroyed:function(){this.$infoWindowObject&&this.$infoWindowObject.setMap&&this.$infoWindowObject.setMap(null)},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},render:function(){return vue.createVNode("div",null,[vue.createVNode("div",{ref:"flyaway"},[this.$slots.default()])])}},InfoWindowWrapper={name:"InfoWindowWrapperClusterManager",props:{id:Q.string,renderPopover:Q.func,infoWindowProps:Q.object,events:Q.object,marker:Q.Object},data:function(){return{infoWindowRef:null}},provide:function(){return{$markerPromise:Promise.resolve(this.marker)}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=this,t=this.renderPopover,n=this.events;return vue.createVNode(InfoWindowClusterManager,vue.mergeProps({ref:this.id+"-Info-Window"},{props:this.infoWindowProps,on:n}),{default:function(){return[vue.createVNode("div",null,[t(e.handleClose)])]}})}},_excluded$9=["options"],isEqual$h=lib_8.isEqual,recordResultClick$2=lib_5.recordResultClick,ClusterMarkers={name:"ClusterMarkers",props:{markers:Q.array,getPosition:Q.func,defaultPin:Q.string,renderItem:Q.func,markerProps:Q.object,handlePreserveCenter:Q.func.isRequired,autoClosePopover:Q.bool,renderPopover:Q.func,highlightMarkerOnHover:Q.bool},inject:{$clusterPromise:{default:null},$mapPromise:{}},data:function(){return{openMarkers:{}}},mounted:function(){this.buildMarkers(this.markers)},destroy:function(){this.buildMarkers([])},watch:{markers:function(e,t){isEqual$h(t,e)||this.buildMarkers(e)}},methods:{triggerAnalytics:function(e,t){this.recordResultClick(e,t)},setOpenMarkers:function(e){this.openMarkers=e},closeMarker:function(e){var t=this.$props,n=t.autoClosePopover,r=t.handlePreserveCenter,o=e.metaData&&e.metaData._id,a=this.openMarkers,s=(a[o],_objectWithoutPropertiesLoose(a,[o].map(_toPropertyKey$1))),i=n?{}:s;this.setOpenMarkers(i),r(!0),this.$emit("close-marker-popover",e)},openMarker:function(e,t){var n,r,o=this.autoClosePopover,a=this.handlePreserveCenter,s=e.metaData&&e.metaData._id,i=o?((n={})[s]=e,n):_extends({},this.openMarkers,((r={})[s]=e,r));this.setOpenMarkers(i),a(!0),this.triggerAnalytics(s,t),this.$emit("open-marker-popover",e)},removeMarkers:function(){this.$clusterObject&&(this.$clusterObject.clearMarkers(!0),this.$markers=[])},buildMarkers:function(e){var t=this;this.$mapPromise.then((function(n){t.$clusterPromise&&t.$clusterPromise.then((function(r){var o=[],a=[],s={};(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(s[e.metaData._id]=!1)})),e.forEach((function(e,r){if(e._id&&void 0!==s[e._id])s[e._id]=!0;else{var a=_extends({},t.markerProps,{metaData:e,map:n,position:t.getPosition(e)});if(t.renderItem){var i=t.renderItem(e);"label"in i&&(a.label=i.label),"icon"in i&&(a.icon=i.icon)}else t.defaultPin&&(a.icon={url:t.defaultPin});a.options;var u=_objectWithoutPropertiesLoose(a,_excluded$9);t.$clusterPromise&&(u.map=null);var l=new google.maps.Marker(u);l.addListener("click",(function(){t.openMarker(l,r)})),o.push(l)}}));var i=[];o.forEach((function(e){i.push(e)})),(t.$markers||[]).forEach((function(e){e.metaData&&e.metaData._id&&(s[e.metaData._id]?i.push(e):a.push(e))})),r.removeMarkers(a),r.addMarkers(o),t.$clusterObject=r,t.$map=n,t.$markers=i}))})).catch((function(e){throw e}))}},render:function(){var e=this;return this.renderPopover?vue.createVNode("div",null,[Object.keys(this.openMarkers).map((function(t){var n=e.openMarkers[t],r=n.metaData;return vue.createVNode(InfoWindowWrapper,{key:t+"-InfoWindow",id:t,renderPopover:function(t){return e.renderPopover({item:r,handleClose:function(){t(),e.closeMarker(r)}})},marker:n,infoWindowProps:{zIndex:500},events:{closeclick:function(){return e.closeMarker(n)}}},null)}))]):null}},mapDispatchToProps$4={recordResultClick:recordResultClick$2},ClusterManager=connect((function(){return null}),mapDispatchToProps$4)(ClusterMarkers),InfoWindowWrapper$1={name:"InfoWindowWrapper",props:{id:Q.string,renderPopover:Q.func,infoWindowProps:Q.object,events:Q.object},data:function(){return{infoWindowRef:null}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=this,t=this.renderPopover,n=this.events;return vue.createVNode(script$2,vue.mergeProps({closeclick:"true",ref:this.id+"-Info-Window"},this.infoWindowProps,babelHelperVueTransformOn(n)),{default:function(){return[vue.createVNode("div",null,[t(e.handleClose)])]}})}},MarkerWithLabel={name:"MarkerWithLabel",props:{metaData:{type:Object,default:void 0},marker:{type:Object,default:void 0},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},alignment:{type:String,default:"top"},zIndex:{type:Number,default:50},cssPosition:{type:Boolean,default:!1},renderMarker:Q.func.isRequired,handleMouseOver:Q.func,handleFocus:Q.func,handleMouseOut:Q.func,handleBlur:Q.func,handleClick:Q.func},data:function(){return{opacity:.01}},mixins:[MapElementMixin],inject:{$clusterPromise:{default:null}},computed:{lat:function(){return parseFloat(Number.isNaN(this.marker.lat)?this.marker.latitude:this.marker.lat)},lng:function(){return parseFloat(Number.isNaN(this.marker.lng)?this.marker.longitude:this.marker.lng)},latLng:function(){return this.marker instanceof window.google.maps.LatLng?this.marker:new window.google.maps.LatLng(this.lat,this.lng)}},watch:{marker:function(){var e=this;this.$mapPromise.then((function(){return e.$overlay.setPosition()}))},zIndex:function(){this.$overlay&&this.$overlay.repaint()}},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},destroyed:function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0)},provide:function(){var e=this,t=this;return this.$mapPromise.then((function(n){var r=function(e){function n(n){var r;return(r=e.call(this)||this).metaData=t.metaData,r.setMap(n),r.draw=function(){return r.repaint()},r.setPosition=function(){return r.repaint()},r.getVisible=function(){return!0},r}_inheritsLoose(n,e);var r=n.prototype;return r.repaint=function(){var e=t.$el,n=this.getProjection();if(n&&e){var r,o,a=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=a.x-e.offsetWidth/2,o=a.y-e.offsetHeight;break;case"bottom":r=a.x-e.offsetWidth/2,o=a.y;break;case"left":r=a.x-e.offsetWidth,o=a.y-e.offsetHeight/2;break;case"right":r=a.x,o=a.y-e.offsetHeight/2;break;case"center":r=a.x-e.offsetWidth/2,o=a.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=a.x-e.offsetWidth,o=a.y-e.offsetHeight;break;case"topright":case"righttop":r=a.x,o=a.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=a.x-e.offsetWidth,o=a.y;break;case"bottomright":case"rightbottom":r=a.x,o=a.y;break;default:throw new Error("Invalid alignment type of custom marker!")}t.cssPosition?e.style.transform="translate("+(r+t.offsetX)+"px, "+(o+t.offsetY)+"px)":(e.style.left=r+t.offsetX+"px",e.style.top=o+t.offsetY+"px"),e.style["z-index"]=t.zIndex}},r.onAdd=function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0);var e=t.$el,n=this.getPanes();e.style.position="absolute",e.style.display="inline-block",e.style.zIndex=t.zIndex,n.overlayLayer.appendChild(e),n.overlayMouseTarget.appendChild(e),this.getDraggable=function(){return!1},this.getPosition=function(){return new window.google.maps.LatLng(t.lat,t.lng)},t.afterCreate(this)},r.onRemove=function(){if(t.$el){var e=window.navigator.userAgent;e.indexOf("MSIE ")>0||e.match(/Trident.*rv\:11\./)?t.$el.parentNode.removeChild(t.$el):t.$el.remove()}},n}(window.google.maps.OverlayView);e.$overlay=new r(n),setTimeout((function(){e.$overlay&&(e.$overlay.repaint(),e.opacity=1)}),100)}))},methods:{afterCreate:function(e){var t=this;this.$clusterPromise&&!this.isMarkerAdded&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n,t.isMarkerAdded=!0}))}},render:function(){return vue.createVNode("div",{style:{opacity:this.opacity},onmouseover:this.handleMouseOver,onmouseout:this.handleMouseOut,onclick:this.handleClick},[this.renderMarker()])}},_templateObject$q,_templateObject2$8,_templateObject3$5,MapPin=styled("div")(_templateObject$q||(_templateObject$q=_taggedTemplateLiteralLoose(["\n\theight: 24px;\n\twidth: auto;\n\tbackground-color: #fff;\n\tborder-radius: 2px;\n\tcolor: #222;\n\tbox-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);\n\tpadding: 3px 6px;\n\tfont-size: 15px;\n"]))),MapPinArrow=styled("div")(_templateObject2$8||(_templateObject2$8=_taggedTemplateLiteralLoose(["\n\tborder-color: rgba(0, 0, 0, 0.2);\n\tborder-style: solid;\n\tborder-width: 0 1px 1px 0;\n\tmargin-left: -6px;\n\tbackground-color: #fff;\n\tmargin-top: -6px;\n\twidth: 12px;\n\theight: 12px;\n\t-webkit-transform: rotate(45deg);\n\t-ms-transform: rotate(45deg);\n\ttransform: rotate(45deg);\n"]))),mapPinWrapper=css(_templateObject3$5||(_templateObject3$5=_taggedTemplateLiteralLoose(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),recordResultClick$3=lib_5.recordResultClick,GoogleMapMarker={name:"GoogleMapMarker",props:{index:Q.number,marker:Q.object.isRequired,getPosition:Q.func.isRequired,defaultPin:Q.string,renderItem:Q.func,setOpenMarkers:Q.func.isRequired,handlePreserveCenter:Q.func.isRequired,autoClosePopover:Q.bool,openMarkers:Q.object,renderPopover:Q.func,highlightMarkerOnHover:Q.bool},data:function(){return{zIndex:0,markerIcon:null}},methods:{setIcon:function(e){this.markerIcon=e},increaseMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex+=1),e(!0)},removeMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex-=1),e(!0)},openMarker:function(){var e,t,n=this.$props,r=n.setOpenMarkers,o=n.openMarkers,a=n.marker,s=n.autoClosePopover,i=n.handlePreserveCenter,u=a._id;r(s?((e={})[u]=!0,e):_extends({},o,((t={})[u]=!0,t))),i(!0),this.triggerAnalytics(),a.setIcon=this.setIcon,this.$emit("open-marker-popover",a)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,a=e.openMarkers,s=n._id,i=(a[s],_objectWithoutPropertiesLoose(a,[s].map(_toPropertyKey$1)));t(r?{}:i),o(!0),n.setIcon=this.setIcon,this.$emit("close-marker-popover",n)},triggerAnalytics:function(){this.recordResultClick(this.index,this.marker._id)},renderPopoverClick:function(e){var t,n=this,r=this.$props,o=r.getPosition,a=r.renderPopover,s=r.openMarkers;return t={position:o(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}},e._id in s?vue.createVNode(InfoWindowWrapper$1,{key:e._id+"-InfoWindow",id:e._id,renderPopover:function(t){return a({item:e,handleClose:function(){t(),n.closeMarker()}})},infoWindowProps:{zIndex:500,position:t.position,options:t.defaultOptions},events:{closeclick:function(){return n.closeMarker()}}},null):null}},render:function(){var e=this,t=this.$props,n=t.getPosition,r=t.renderItem,o=t.defaultPin,a=t.renderPopover,s=t.markerProps,i=t.marker,u={};if(this.zIndex&&(u.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),r){i.setIcon=this.setIcon;var l=r(i);if("label"in l)return vue.createVNode(MarkerWithLabel,vue.mergeProps({key:i._id,metaData:i,marker:n(i),labelAnchor:new window.google.maps.Point(0,30),handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,handleClick:this.openMarker,zIndex:u.zIndex},s,{renderMarker:function(){return vue.createVNode("div",{css:mapPinWrapper},[vue.createVNode(MapPin,null,{default:function(){return[l.label]}}),vue.createVNode(MapPinArrow,null,null),a?e.renderPopoverClick(i,!0):null])}}),null);if(!("icon"in l))return vue.createVNode(MarkerWithLabel,vue.mergeProps({key:i._id,metaData:i,marker:n(i),handleClick:this.openMarker,handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,zIndex:u.zIndex},s,{renderMarker:function(){return vue.createVNode("div",{css:mapPinWrapper},["function"==typeof l.custom?l.custom(i):l.custom,a?e.renderPopoverClick(i,!0):null])}}),null);u.icon=l.icon}else o&&(u.icon={url:o});return vue.createVNode(script,vue.mergeProps({key:i._id,zIndex:u.zIndex,onClick:function(){return e.openMarker()},onMouseover:this.increaseMarkerZIndex,onMouseout:this.removeMarkerZIndex},s,{position:n(i),options:{metaData:i},icon:this.markerIcon||u.icon}),{default:function(){return[a?e.renderPopoverClick(i):null]}})}},mapDispatchToProps$5={recordResultClick:recordResultClick$3},GoogleMapMarker$1=connect((function(){return null}),mapDispatchToProps$5)(GoogleMapMarker),GoogleMapMarkers={name:"GoogleMapMarkers",props:{resultsToRender:Q.array,getPosition:Q.func,renderItem:Q.func,renderClusterPopover:Q.func,defaultPin:Q.string,autoClosePopover:Q.bool,handlePreserveCenter:Q.func,renderPopover:Q.func,markerProps:Q.object,clusterProps:Q.object,showMarkerClusters:Q.bool,highlightMarkerOnHover:Q.bool},data:function(){return{openMarkers:{},clickedCluster:null,clusterMarkers:[]}},methods:{setOpenMarkers:function(e){this.openMarkers=e},getAdditionalProps:function(){return{position:{lat:this.clickedCluster.getCenter().lat(),lng:this.clickedCluster.getCenter().lng()},defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}},closeMarker:function(){this.clickedCluster=null,this.clusterMarkers=[],this.$emit("close-cluster-popover")}},render:function(){var e=this,t=this.$props.resultsToRender,n={openMarkers:this.openMarkers,setMarkerOnTop:this.setMarkerOnTop,setOpenMarkers:this.setOpenMarkers,getPosition:this.getPosition,renderItem:this.renderItem,defaultPin:this.defaultPin,autoClosePopover:this.autoClosePopover,handlePreserveCenter:this.handlePreserveCenter,renderPopover:this.renderPopover,markerProps:this.markerProps,showMarkerClusters:this.showMarkerClusters,highlightMarkerOnHover:this.highlightMarkerOnHover};return this.showMarkerClusters?vue.createVNode("div",null,[vue.createVNode(script$1,vue.mergeProps(this.clusterProps,{onclick:function(t){var n=t.markers.map((function(e){return e.metaData}));e.clickedCluster=t,e.clusterMarkers=n,e.$emit("open-cluster-popover",e.clusterMarkers)},ref:"clusterRef"}),{default:function(){return[vue.createVNode(ClusterManager,vue.mergeProps({getPosition:n.getPosition,markers:t,defaultPin:n.defaultPin,renderItem:n.renderItem,markerProps:n.markerProps,handlePreserveCenter:n.handlePreserveCenter,autoClosePopover:n.autoClosePopover,renderPopover:n.renderPopover,highlightMarkerOnHover:n.highlightMarkerOnHover},{on:e.$attrs}),null)]}}),this.clickedCluster&&this.renderClusterPopover?vue.createVNode(InfoWindowWrapper$1,{id:"cluster",infoWindowProps:{zIndex:500,position:this.getAdditionalProps().position,options:this.getAdditionalProps().defaultOptions},renderPopover:function(t){return e.renderClusterPopover({markers:e.clusterMarkers,cluster:e.clickedCluster,handleClose:function(){t(),e.closeMarker()}})},events:{closeclick:this.closeMarker}},null):null]):vue.createVNode("div",null,[t.map((function(t,r){return vue.createVNode(GoogleMapMarker$1,vue.mergeProps({index:r,marker:t},n,e.$attrs),null)}))])}},_templateObject$r,ReactiveGoogleMap={name:"ReactiveGoogleMap",props:{className:types.string,componentId:types.stringRequired,dataField:types.stringRequired,defaultQuery:Q.func,loader:types.title,defaultZoom:Q.number.def(13),react:types.react,size:types.number,sortBy:types.sortBy,URLParams:Q.bool,mapProps:Q.object,showMarkers:Q.bool.def(!0),showMarkerClusters:Q.bool.def(!1),searchAsMove:Q.bool.def(!1),searchAsMoveLabel:Q.string,markerProps:Q.object,clusterProps:Q.object,renderItem:Q.func,showSearchAsMove:Q.bool.def(!0),autoClosePopover:Q.bool,pagination:Q.bool,defaultPin:Q.string,autoCenter:Q.bool,defaultCenter:types.location,center:types.location,defaultRadius:types.number,unit:types.string,pages:Q.number.def(5),calculateMarkers:Q.func,highlightMarkerOnHover:Q.bool.def(!0)},computed:{listeners:function(){var e=/^on[^a-z]/,t={},n=this.$attrs;return Object.keys(n).forEach((function(r){e.test(r)&&(t[r]=n[r])})),t}},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,a=e.handleZoomChange,s=e.handleOnDragEnd,i=e.handleOnIdle,u=e.renderSearchAsMove,l=e.handlePreserveCenter,c=e.getPosition,p=e.autoClosePopover,d=e.defaultPin;return vue.createVNode("div",{style:{width:"100%",height:"100%",position:"relative"}},[vue.createVNode(script$3,vue.mergeProps({ref:"mapRef","map-type-id":"terrain",style:{height:"100%"},class:css(_templateObject$r||(_templateObject$r=_taggedTemplateLiteralLoose(["\n\t\t\t\t\t\t\theight: 100%;\n\t\t\t\t\t\t"]))),options:{zoomControl:!0},center:r,zoom:o},this.mapProps,{onzoom_changed:a,ondragend:s,onidle:i}),{default:function(){return[t.showMarkers?vue.createVNode(GoogleMapMarkers,vue.mergeProps({resultsToRender:n,getPosition:c,markerProps:t.markerProps,clusterProps:t.clusterProps,handlePreserveCenter:l,highlightMarkerOnHover:t.highlightMarkerOnHover,renderItem:t.$slots.renderItem?function(){return{custom:t.$slots.renderItem}}:t.renderItem,defaultPin:d,autoClosePopover:p,renderPopover:t.$slots.renderPopover,renderClusterPopover:t.$slots.renderClusterPopover,showMarkerClusters:t.showMarkerClusters},t.listeners),null):null]}}),u()])},getMapRef:function(){return this.mapRef},removeMarkers:function(){for(var e,t=this;t;)if(t&&t.$options&&"connect-ClusterMarkers"===t.$options.name)e=t,t=null;else if(t.$children){t=t.$children[0]}else t=null;e&&e.removeMarkers&&e.removeMarkers()}},mounted:function(){var e=this;this.$refs.mapRef&&this.$refs.mapRef.$mapPromise.then((function(t){e.mapRef=t}))},render:function(){return vue.createVNode(RMConnected,vue.mergeProps({getMapRef:this.getMapRef,renderMap:this.renderMap,componentId:this.componentId,className:this.className,dataField:this.dataField,defaultZoom:this.defaultZoom,react:this.react,size:this.size,sortBy:this.sortBy,pagination:this.pagination,URLParams:this.URLParams,defaultSearchAsMove:this.searchAsMove,showSearchAsMove:this.showSearchAsMove,searchAsMoveLabel:this.searchAsMoveLabel,showMarkers:this.showMarkers,markerProps:this.markerProps,autoClosePopover:this.autoClosePopover,defaultPin:this.defaultPin,defaultQuery:this.defaultQuery,autoCenter:this.autoCenter,defaultCenter:this.defaultCenter,defaultRadius:this.defaultRadius,unit:this.unit,pages:this.pages,center:this.center,loader:this.loader,calculateMarkers:this.calculateMarkers},{on:this.$attrs}),null)},install:function(e,t){e.component(ReactiveGoogleMap.name,ReactiveGoogleMap),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(install,{load:{key:t.key,libraries:"places"},installComponents:!1})}};ReactiveGoogleMap.componentType=constants_1$1.reactiveMap;var graphQL=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(n=browserPonyfill)&&n.__esModule?n:{default:n};t.default=function(e){var t=e.graphQLUrl,n=e.url,a=e.credentials,s=e.app,i=e.query,u=e.headers,l=a?n.replace("//","//"+a+"@"):n;return(0,o.default)(t,{method:"POST",body:'\n\t\t\tquery{\n\t\t\t\telastic77(host: "'+l+'"){\n\t\t\t\t\tmsearch(\n\t\t\t\t\t\tindex: "'+s+'"\n\t\t\t\t\t\tbody: '+JSON.stringify(i.map((function(e){return JSON.stringify(e)})))+"\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t",headers:r({},u,{"Content-Type":"application/graphql"})}).then((function(e){return e.json()})).then((function(e){return e.data.elastic77.msearch})).catch((function(e){console.error(e)}))}})),fetchGraphQL=unwrapExports(graphQL),_excluded$a=["aggs","size"],_excluded2=["query"],_excluded3=["query"],_componentTypeToDefau,X_SEARCH_CLIENT$1="ReactiveSearch Vue",componentsWithoutFilters=[constants_1$1.numberBox,constants_1$1.ratingsFilter],resultComponents=[constants_1$1.reactiveList,constants_1$1.reactiveMap],componentTypeToDefaultValue=(_componentTypeToDefau={},_componentTypeToDefau[constants_1$1.singleList]="",_componentTypeToDefau[constants_1$1.multiList]=[],_componentTypeToDefau[constants_1$1.singleDataList]="",_componentTypeToDefau[constants_1$1.singleDropdownList]="",_componentTypeToDefau[constants_1$1.multiDataList]=[],_componentTypeToDefau[constants_1$1.multiDropdownList]=[],_componentTypeToDefau[constants_1$1.tagCloud]="",_componentTypeToDefau[constants_1$1.toggleButton]="",_componentTypeToDefau[constants_1$1.singleDropdownRange]="",_componentTypeToDefau[constants_1$1.multiDropdownRange]=[],_componentTypeToDefau[constants_1$1.singleRange]="",_componentTypeToDefau[constants_1$1.multiRange]=[],_componentTypeToDefau);function getValue(e,t,n,r){if(e&&e[t])try{return{value:JSON.parse(e[t]),reference:"URL"}}catch(n){return{value:e[t],reference:"URL"}}return{value:n||componentTypeToDefaultValue[r]||null,reference:"DEFAULT"}}function parseValue(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}function getDefaultQuery(e,t){var n=parseValue(t,e);if(e.defaultQuery){var r=e.defaultQuery(n,e);return _extends({query:helper_22(r)},helper_23(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:{}}function getCustomQuery(e,t){var n=parseValue(t,e);if(e.customQuery){var r=e.customQuery(n,e);return _extends({query:helper_22(r)},helper_23(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:null}function initReactivesearch(e,t,n){return new Promise((function(r,o){var a=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,s=!n.reactivesearchAPIConfig||void 0===n.reactivesearchAPIConfig.enableTelemetry||n.reactivesearchAPIConfig.enableTelemetry,i=_extends({},_extends({"X-Search-Client":X_SEARCH_CLIENT$1},!1===s&&{"X-Enable-Telemetry":!1}),n.headers,n.endpoint&&n.endpoint.headers?n.endpoint.headers:{}),u=n.url&&""!==n.url.trim()?n.url:"https://scalr.api.appbase.io",l=n.transformRequest||null;n.endpoint&&(n.endpoint.url&&(u=n.endpoint.url),l=function(e){var t=helper_1(e,n.endpoint);return n.transformRequest?n.transformRequest(t):t});var c={url:u,app:n.app,credentials:a,transformRequest:l,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:i,analyticsConfig:n.reactivesearchAPIConfig||null,enableAppbase:!0,endpoint:n.endpoint},p=appbasejs(c);c.transformRequest&&(p.transformRequest=c.transformRequest),c.transformResponse&&(p.transformResponse=c.transformResponse);var d=[],h={},f={},m={},g={},y={},v=[],b={},_=[],$={},C={},O={},S={},w={},T={},P={};e.forEach((function(e){var n=e.source.componentType;d=[].concat(d,[e.componentId]);var r={};Object.keys(e).forEach((function(t){constants_3$1.includes(t)&&(r[t]=e[t])}));var o=!1;e.source.hasInternalComponent&&(o=e.source.hasInternalComponent(e));var a=resultComponents.includes(n),s=e.componentId+"__internal",i=e.filterLabel||e.componentId,u=getValue(t,e.componentId,e.value||e.defaultValue,n),l=u.value,c=u.reference,p=void 0===e.showFilter||e.showFilter;componentsWithoutFilters.includes(n)&&(p=!1),h=valueReducer(h,{type:"SET_VALUE",component:e.componentId,label:i,value:l,reference:c,showFilter:p,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(w[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&(T[e.componentId]=e.defaultQuery(l,r));var m={};e&&e.source.generateQueryOptions&&(m=_extends({},m,e.source.generateQueryOptions(e)));var v={};if(e.source.highlightQuery&&(v=e.source.highlightQuery(e)),m&&Object.keys(m).length||v&&Object.keys(v).length){var b=m||{},_=b.aggs,$=b.size,C=_objectWithoutPropertiesLoose(b,_excluded$a);if(_&&Object.keys(_).length&&(o=!0,m=_extends({},m,{aggs:_,size:void 0===$?100:$})),C&&Object.keys(C).length||v&&Object.keys(v).length){C||(C={}),v||(v={});var O=_extends({},C,v,{size:$});if(o&&(O=_extends({},C,v)),a){var S=e.currentPage?e.currentPage-1:0;h[e.componentId]&&h[e.componentId].value&&(S=h[e.componentId].value-1||0);var E=e.size||10,k=S*E;r.from=k,O=_extends({},O,v,{size:E,from:k})}m=_extends({},m,O)}}if(e.react||o||a){var R=e.react;(o||a)&&(R=helper_38(R,s)),y=dependencyTreeReducer(y,{type:"WATCH_COMPONENT",component:e.componentId,react:R})}if(o&&!transform_8(e.componentType)){var x=getDefaultQuery(e,l)||{},Q=x.query,I=_objectWithoutPropertiesLoose(x,_excluded2);f=queryReducer(f,{type:"SET_QUERY",component:s,query:Q}),g=queryOptionsReducer(g,{type:"SET_QUERY_OPTIONS",component:s,options:_extends({},m,I)})}var A=getCustomQuery(e,l)||{},L=A.query,V=_objectWithoutPropertiesLoose(A,_excluded3),j=L;f=queryReducer(f,{type:"SET_QUERY",component:e.componentId,query:j}),g=queryOptionsReducer(g,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:_extends({},V)}),r.componentType=n,P[e.componentId]=r})),S={components:d,dependencyTree:y,queryList:f,queryOptions:g,selectedValues:h,internalValues:{},props:P,customQueries:w,defaultQueries:T},e.forEach((function(e){var t=helper_37(e.componentId,y,f,g),n=t.queryObj,r=t.options,o=["aggs","from","sort"];if(n&&Object.keys(n).length||r&&Object.keys(r).some((function(e){return o.includes(e)}))){var a;(!n||n&&!Object.keys(n).length)&&(n={match_all:{}}),_=[].concat(_,[e.componentId]);var s=_extends({query:_extends({},n)},r,g[e.componentId]);m=_extends({},m,((a={})[e.componentId]=s,a));var i,u=transform_5(e.componentId,transform_3(S,e.componentId,g&&Object.keys(g[e.componentId]).length?{from:g[e.componentId].from}:null));if(u)b=_extends({},b,((i={})[e.componentId]=u,i),transform_2(S,e.componentId,_))}})),S.queryLog=m;var E=function(e,t){return c.transformResponse&&"function"==typeof c.transformResponse?c.transformResponse(e,t):new Promise((function(t){return t(e)}))};if(c.graphQLUrl){(function(e){if(c.transformRequest&&"function"==typeof c.transformRequest){var t=c.transformRequest(e);return t instanceof Promise?t:Promise.resolve(t)}return Promise.resolve(e)})(v).then((function(e){fetchGraphQL(c.graphQLUrl,c.url,c.credentials,c.app,e).then((function(e){!function(e){var t=_.map((function(t,n){return new Promise((function(r,o){E(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(C=_extends({},C,((o={})[t]=e.aggregations,o)),O=compositeAggsReducer(O,{type:constants_10,aggregations:e.aggregations,append:!1}));$=_extends({},$,((n={})[t]={hits:e.hits.hits,total:"object"==typeof e.hits.total?e.hits.total.value:e.hits.total,time:e.took},n)),r()})).catch((function(e){return o(e)}))}))}));Promise.all(t).then((function(){S=_extends({},S,{hits:$,aggregations:C}),r(S)}))}(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(Object.keys(b).length){v=Object.keys(b).map((function(e){return b[e]}));var k={};c.analyticsConfig&&(k.recordAnalytics=utils_2(c.analyticsConfig.recordAnalytics)?c.analyticsConfig.recordAnalytics:void 0,k.userId=utils_2(c.analyticsConfig.userId)?c.analyticsConfig.userId:void 0,k.enableQueryRules=utils_2(c.analyticsConfig.enableQueryRules)?c.analyticsConfig.enableQueryRules:void 0,k.customEvents=utils_2(c.analyticsConfig.customEvents)?c.analyticsConfig.customEvents:void 0),p.reactiveSearchv3(v,k).then((function(e){!function(e){var t={},n={},o={},a={},s={},i=_.map((function(r){return new Promise((function(i,u){E(e[r],r).then((function(u){if(u){var l,c;if(u.promoted&&(t[r]=u.promoted.map((function(e){return _extends({},e.doc,{_position:e.position})}))),n[r]=u,u.customData&&(o[r]=u.customData),u.settings&&(a[r]=u.settings),u.aggregations)C=_extends({},C,((c={})[r]=u.aggregations,c));s[r]=e._timestamp;var p=u.hits?u.hits:u[r].hits;$=_extends({},$,((l={})[r]={hits:p.hits,total:"object"==typeof p.total?p.total.value:p.total,time:u.took},l)),i()}})).catch((function(e){return u(e)}))}))}));Promise.all(i).then((function(){S=_extends({},S,{hits:$,timestamp:s,aggregations:C,compositeAggregations:O,promotedResults:t,settings:a,customData:o,rawData:n}),r(S)}))}(e)})).catch((function(e){return o(e)}))}}))}var version="3.0.0-alpha.0",components=[RLConnected,ResultCard,ResultList,ReactiveBase,SBConnected,ListConnected,ListConnected$1,RangeConnected$1,RangeConnected$2,RangeConnected$3,RangeConnected,RcConnected,RcConnected$1,TBConnected,ListConnected$2,ListConnected$3,StateProviderConnected,RangeConnected$4];function install$1(e){components.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&install$1(window.Vue);var index$1={version:version,install:install$1};exports.DynamicRangeSlider=RangeConnected,exports.MultiDropdownList=ListConnected$3,exports.MultiList=ListConnected$1,exports.MultiRange=RangeConnected$2,exports.RangeInput=RangeConnected$4,exports.RangeSlider=RangeConnected$3,exports.ReactiveBase=ReactiveBase,exports.ReactiveComponent=RcConnected,exports.ReactiveGoogleMap=ReactiveGoogleMap,exports.ReactiveList=RLConnected,exports.ResultCard=ResultCard,exports.ResultList=ResultList,exports.SearchBox=SBConnected,exports.SelectedFilters=RcConnected$1,exports.SingleDropdownList=ListConnected$2,exports.SingleList=ListConnected,exports.SingleRange=RangeConnected$1,exports.StateProvider=StateProviderConnected,exports.ToggleButton=TBConnected,exports.componentTypes=constants_1$1,exports.default=index$1,exports.initReactivesearch=initReactivesearch,exports.install=install$1,exports.version=version,Object.defineProperty(exports,"__esModule",{value:!0})}));
53
44
  //# sourceMappingURL=reactivesearch-vue.umd.min.js.map