@appbaseio/reactivesearch-vue 1.35.0 → 1.35.2

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.
@@ -1,4 +1,4 @@
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";Vue=Vue&&Object.prototype.hasOwnProperty.call(Vue,"default")?Vue.default:Vue;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 _defineProperty(e,t,n){return 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,s=t,a=[],i=a,u=!1;function l(){i===a&&(i=a.slice())}function c(){if(u)throw new Error(formatProdErrorMessage(3));return s}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),a=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,s=o(s,e)}finally{u=!1}for(var t=a=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 s,a=Object.keys(n);try{assertReducerShape(n)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var r=!1,o={},i=0;i<a.length;i++){var u=a[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||a.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)}},s=t.map((function(e){return e(o)}));return r=compose.apply(void 0,s)(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 s=o(t.react),a=n({},e);return Object.keys(a).forEach((function(e){a[e]=a[e].filter((function(e){return e!==t.component}))})),s.forEach((function(e){Array.isArray(a[e])?a[e]=[].concat(r(a[e]),[t.component]):a[e]=[t.component]})),a}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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,s=void 0;try{for(var a,i=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{!r&&i.return&&i.return()}finally{if(o)throw s}}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],s=[constants$1.componentTypes.singleRange,constants$1.componentTypes.singleDropdownRange,constants$1.componentTypes.multiRange,constants$1.componentTypes.multiDropdownRange];function a(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]:s.includes(i)?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=s,t.parseFilterValue=i,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 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 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)}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(s(e[t.component].hits),s(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 a=r(e,[t.component]);return a}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s={};return Object.keys(t.componentsToReset||{}).forEach((function(r){s[r]=n({},e[r],{value:t.componentsToReset[r]})})),n({},e,s,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 a=t.componentsValues?Object.keys(t.componentsValues):[];if(a.length){var i={};return a.forEach((function(o){var s=t.componentsValues[o],a=s.value,u=r(s,["value"]);i[o]=n({},e[o],{value:a},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 s={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){s[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(s[n]=e[n])})),s;case constants.RESET_TO_DEFAULT:return n({},e,t.defaultValues);case constants.REMOVE_COMPONENT:e[t.component];var a=r(e,[t.component]);return a;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 s,a=e[t.component+"_active"]||0;return t.isLoading?a+=1:a&&(a-=1),n({},e,(o(s={},t.component,t.isLoading),o(s,t.component+"_active",a),s),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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s;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 s(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 a=Object.keys(e[t.component])[0],i=t.aggregations[a],u=i.buckets,l=s(i,["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===constants.REMOVE_COMPONENT){e[t.component];var c=s(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 s(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 a=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],i=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[i],a={},u={};if(o&&o.hits){var l=o.hits.hits[0];u=l._source,a=s(l,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[i],top_hits:o},a,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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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,s=t.loading,a=t.loaded,i=t.error;if(o===constants.SET_GOOGLE_MAP_SCRIPT_LOADING)return n({},r,{loading:s});if(o===constants.SET_GOOGLE_MAP_SCRIPT_LOADED)return n({},r,{loaded:a});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 s=r(e,[t.component]);return s}return e}}));unwrapExports(registeredComponentReducer);var reducers=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=D(componentsReducer_1),r=D(watchManReducer_1),o=D(dependencyTreeReducer_1),s=D(queryReducer_1),a=D(appbaseQueryReducer_1),i=D(queryOptionsReducer_1),u=D(configReducer_1),l=D(appbaseRefReducer_1),c=D(hitsReducer_1),p=D(logsReducer_1),d=D(combinedLogsReducer_1),h=D(valueReducer_1),f=D(internalValueReducer),m=D(loadingReducer_1),g=D(errorReducer_1),y=D(timestampReducer_1),v=D(headersReducer_1),_=D(mapDataReducer_1),b=D(queryListenerReducer_1),$=D(analyticsReducer_1),C=D(promotedResultsReducer_1),O=D(customDataReducer_1),T=D(defaultQueryReducer_1),S=D(customQueryReducer_1),w=D(propsReducer),P=D(aggsReducer_1),E=D(compositeAggsReducer_1),R=D(appliedSettingsReducer_1),k=D(customHighlightReducer_1),I=D(rawDataReducer_1),x=D(querySuggestionsReducer_1),A=D(defaultPopularSuggestions_1),L=D(queryToHitsReducer_1),j=D(recentSearches),V=D(googleMapScriptReducer_1),M=D(analyticsRefReducer_1),Q=D(registeredComponentReducer);function D(e){return e&&e.__esModule?e:{default:e}}t.default=(0,redux.combineReducers)({components:n.default,customQueries:S.default,defaultQueries:T.default,customHighlightOptions:k.default,settings:R.default,watchMan:r.default,queryList:s.default,queryOptions:i.default,dependencyTree:o.default,appbaseRef:l.default,analyticsRef:M.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:_.default,queryListener:b.default,analytics:$.default,props:w.default,rawData:I.default,querySuggestions:x.default,defaultPopularSuggestions:A.default,queryToHits:L.default,recentSearches:j.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},googleMapScriptStatus:V.default,lastUsedAppbaseQuery:a.default,registeredComponentsTimestamps:Q.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.SSSZ",basic_date_time_no_millis:"YYYYMMDD[T]HHmmssZ",date_time_no_millis:"YYYY-MM-DD[T]HH:mm:ssZ",basic_time:"HHmmss.SSSZ",basic_time_no_millis:"HHmmssZ",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 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)}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 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,a={};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 a[m]?e:(a[m]=1,[].concat(s(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((b||o.trim().split(" ").some((function(t){return i(e).toLowerCase().includes(i(t))})))&&!_.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(_=[].concat(s(_),[e]),v=[].concat(s(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 s=n.split("."),i=t[s[0]];if(t[n]){var u=t[n],l=a(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(s.length>1){var c=n.substring(s[0].length+1);e(i,c,r)}else{var p=a(i);if(p)return $(p,t,r)}}return!1}(e,t)}))}))};if(C(),v.length<r.length&&!b&&y&&(b=!0,C()),f){var O=l({suggestions:v,currentValue:o,wordsToShowAfterHighlight:g});v=O}if(d){var T={},S=[];return v.forEach((function(e){e.source&&e.source._id&&(T[e.source._id]||(S.push(e),T[e.source._id]=!0))})),S}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,s=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(s,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 s=null,a=null;e in t&&(s=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var s=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})));s&&Object.keys(s).length&&(r=[].concat(u(r),[s]))}else if("string"==typeof t[o]){var a=h(d(o),n[t[o]]);a&&Object.keys(a).length&&(r=[].concat(u(r),[a]))}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),a=function e(t,n,o){var s={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){n[e]&&(s=r({},s,n[e]))})):"string"==typeof t[o]?n[t[o]]&&(s=r({},s,n[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(s=r({},s,e(t[o],n)))})),n[o]&&(s=r({},s,n[o]));return s}(t[e],o,e));return{queryObj:s,options:a}},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 s=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(s):r()}catch(e){s(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.valueOf();case"epoch_second":return Math.floor(e.valueOf()/1e3);default:return o.default[t.queryFormat]?e.format(o.default[t.queryFormat]):e.valueOf()}},t.unwrapToNativeDate=function(e){if(e)return new Date(e.valueOf());return e},t.getResultStats=function(e){var t=e.total,n=e.size,o=e.time,s=e.hidden,a=e.promotedResults;return r({numberOfResults:t},n>0?{numberOfPages:Math.ceil(t/n)}:null,{time:o||0,hidden:s,promoted:a?a.length:0})},t.extractFieldsFromSource=O,t.normalizeDataField=T,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,o=n.promotedResults,a=n.enablePredictiveSuggestions,i=[];n.dataField?i=T(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,s.default)({fields:i,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(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,s){return r&&"object"!=typeof e[o]&&s!==t.length-1?(e[o]={},e[o]):s===t.length-1?(e[o]=n,n):"object"==typeof e[o]?e[o]:{}}),e)};var o=a(dateFormats_1),s=a(suggestions);function a(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 _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2];Object.keys(e).forEach((function(o){var s=e[o]||{},a=s.hidden,i=s.total,u=s.time;t[o]=r({},t[o],{resultStats:r({},t[o].resultStats,{numberOfResults:i,time:u,promoted:n[o]&&n[o].length,hidden:a||0})})}))}var b=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,s=e.dependencyTree,a=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(a),Object.keys(n||{}).forEach((function(e){var t=g[e],o=n[e],s=a[e],i=s?s.componentType:null;if(o){var u=r({},t,r({title:o.label,componentType:o.componentType,value:o.value||b[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"),_(i,g,d)),y(s,"react"),g},t.updateInternalQuery=function(e,t,n,o,s,a){var i=o.defaultQuery,u=void 0,l=s;if(i){var p=i(n,o);l=(p||{}).query,u=v(p),c(e,o,n)}l?(o.setQueryOptions(e,r({},u,t||s)),o.updateQuery(r({componentId:e,query:l,value:n},a))):o.setQueryOptions(e,r({},u,t||s))},function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var s=i(o,["query"]);s&&(n=s)}}return n});t.extractQueryFromDefaultQuery=$;t.getAggsQuery=function(e,t,n){var o=t,s=n.dataField,a=n.size,i=n.sortBy,c=n.showMissing,p=n.missingLabel,d=n.aggregationSize;if(o.size=0,"string"==typeof s)o.aggs=l({},s,{terms:r({field:s,size:a,aggregationSize:d,order:f(i||"count")},c?{missing:p}:{})});else{var h=void 0;[].concat(u(s)).reverse().forEach((function(e){h=l({},e,{terms:r({field:e,size:a,aggregationSize:d,order:f(i||"count")},c?{missing:p}:{}),aggs:h})})),o.aggs=h}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,s=e.after,a=void 0===s?null:s,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},a)},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]:{},s=arguments[1],a=n?n+"."+s:s;return Number.isNaN(parseInt(s,10))||(a=n||s),t[s]&&"object"==typeof t[s]?r({},o,e(t[s],a)):r({},o,l({},a,!0))}),[])}(e);return Object.keys(t)}function T(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,s.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",SELECT:"select"};var S=t.queryFormatMillisecondsMap={minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629746e3,quarter:7889238e3,year:31556952e3},w=(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 s=n[o];return{errorMessage:"Please pass calendarInterval prop with value greater than or equal to a `"+s+"` for a meaningful resolution of histogram.",calculatedCalendarInterval:s}}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 w(n)?n(e):w(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 w(n)||w(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,s=[];if(t instanceof Object){var a=Object.keys(t);a.forEach((function(a){Array.isArray(t[a].buckets)&&t[a].buckets.forEach((function(t){s.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 s},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 s=new Blob([r],{type:o}),a=document.createElement("a");a.download=e+"."+n,a.href=window.URL.createObjectURL(s),a.dataset.downloadurl=[o,a.download,a.href].join(":");var i=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});a.dispatchEvent(i),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 n=t.headers,o=void 0===n?{}:n,s=t.body,a=i(t,["headers","body"]);return r({},e,a,{headers:r({},e.headers,o)},s instanceof Object?{body:JSON.stringify(s)}:{})}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.unwrapToNativeDate,helper_43=helper.getResultStats,helper_44=helper.extractFieldsFromSource,helper_45=helper.normalizeDataField,helper_46=helper.handleOnSuggestions,helper_47=helper.isValidDateRangeQueryFormat,helper_48=helper.setDeep,dayjs_min=createCommonjsModule((function(e,t){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",o="minute",s="hour",a="day",i="week",u="month",l="quarter",c="year",p="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,u),s=n-o<0,a=t.clone().add(r+(s?-1:1),u);return+(-(r+(n-o)/(s?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:c,w:i,d:a,D:p,h:s,m:o,s:r,ms:n,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",_={};_[v]=m;var b=function(e){return e instanceof T},$=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var s=t.toLowerCase();_[s]&&(o=s),n&&(_[s]=n,o=s);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var i=t.name;_[i]=t,o=i}return!r&&o&&(v=o),o||!r&&v},C=function(e,t){if(b(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},O=y;O.l=$,O.i=b,O.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function m(e){this.$L=$(e.locale,null,!0),this.parse(e)}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return O},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return C(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<C(e)},g.$g=function(e,t,n){return O.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,l=!!O.u(t)||t,d=O.p(e),h=function(e,t){var r=O.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return l?r:r.endOf(a)},f=function(e,t){return O.w(n.toDate()[e].apply(n.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case c:return l?h(1,0):h(31,11);case u:return l?h(1,g):h(0,g+1);case i:var _=this.$locale().weekStart||0,b=(m<_?m+7:m)-_;return h(l?y-b:y+(6-b),g);case a:case p:return f(v+"Hours",0);case s:return f(v+"Minutes",1);case o:return f(v+"Seconds",2);case r:return f(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var i,l=O.p(e),d="set"+(this.$u?"UTC":""),h=(i={},i[a]=d+"Date",i[p]=d+"Date",i[u]=d+"Month",i[c]=d+"FullYear",i[s]=d+"Hours",i[o]=d+"Minutes",i[r]=d+"Seconds",i[n]=d+"Milliseconds",i)[l],f=l===a?this.$D+(t-this.$W):t;if(l===u||l===c){var m=this.clone().set(p,1);m.$d[h](f),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[O.p(e)]()},g.add=function(n,l){var p,d=this;n=Number(n);var h=O.p(l),f=function(e){var t=C(d);return O.w(t.date(t.date()+Math.round(e*n)),d)};if(h===u)return this.set(u,this.$M+n);if(h===c)return this.set(c,this.$y+n);if(h===a)return f(1);if(h===i)return f(7);var m=(p={},p[o]=e,p[s]=t,p[r]=1e3,p)[h]||1,g=this.$d.getTime()+n*m;return O.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=O.z(this),s=this.$H,a=this.$m,i=this.$M,u=n.weekdays,l=n.months,c=function(e,n,o,s){return e&&(e[n]||e(t,r))||o[n].slice(0,s)},p=function(e){return O.s(s%12||12,e,"0")},h=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:i+1,MM:O.s(i+1,2,"0"),MMM:c(n.monthsShort,i,l,3),MMMM:c(l,i),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:c(n.weekdaysMin,this.$W,u,2),ddd:c(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(s),HH:O.s(s,2,"0"),h:p(1),hh:p(2),a:h(s,a,!0),A:h(s,a,!1),m:String(a),mm:O.s(a,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:o};return r.replace(f,(function(e,t){return t||m[e]||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,p,d){var h,f=O.p(p),m=C(n),g=(m.utcOffset()-this.utcOffset())*e,y=this-m,v=O.m(this,m);return v=(h={},h[c]=v/12,h[u]=v,h[l]=v/3,h[i]=(y-g)/6048e5,h[a]=(y-g)/864e5,h[s]=y/t,h[o]=y/e,h[r]=y/1e3,h)[f]||y,d?v:O.a(v)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return _[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=$(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return O.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),S=T.prototype;return C.prototype=S,[["$ms",n],["$s",r],["$m",o],["$H",s],["$W",a],["$M",u],["$y",c],["$D",p]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,T,C),e.$i=!0),C},C.locale=$,C.isDayjs=b,C.unix=function(e){return C(1e3*e)},C.en=_[v],C.Ls=_,C.p={},C}()})),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=a(dayjs_min),s=a(dateFormats_1);function a(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")},_=t.isSearchComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.includes(e)},b=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){if(null===t.defaultQuery)return null;var o=t.type?t.type:l[t.componentType];if(!_(t.componentType)&&!t.dataField)return null;var s=void 0;return t.endpoint instanceof Object&&(s=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,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:s,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=t.extractPropsFromState=function(e,t,n){var a=e.props[t];if(!a)return null;var i=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,m=a.interval,C=i,T=a.dataField,S=a.aggregations,w=void 0,P=a.from,E=void 0;if(i===constants$1.queryTypes.term)if(a.showLoadMore&&$(a.componentType)&&(w=!0),null!=d&&"object"==typeof d&&d.value)d=d.value;else if(Array.isArray(d)){var R=[];d.forEach((function(e){null!=e&&"object"==typeof e&&e.value?R.push(e.value):R.push(e)})),d=R}if(i===constants$1.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 k=g(t),I=e.internalValues[k];if(!I){var x=y(t);I=e.internalValues[x]}I&&Array.isArray(I.value)&&(d={start:I.value[0],end:I.value[1]},m=O(m,d))}if(v(t)?S=["min","max"]:a.showHistogram&&(S=["histogram"]),a.componentType===constants$1.componentTypes.dynamicRangeSlider||a.componentType===constants$1.componentTypes.rangeSlider){f=Object.keys(s.default).includes(h)?a.calendarInterval:void 0,d&&(d=(0,helper.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,helper.formatDate)((0,o.default)(new Date(d.start)),a),end:(0,helper.formatDate)((0,o.default)(new Date(d.end)),a)}:{start:parseFloat(d.start),end:parseFloat(d.end)});var A=void 0;a.componentType===constants$1.componentTypes.dynamicRangeSlider?(A=e.aggregations[t+"__range__internal"],A=a.nestedField?A&&e.aggregations[t+"__range__internal"][a.nestedField].min?{start:e.aggregations[t+"__range__internal"][a.nestedField].min.value,end:e.aggregations[t+"__range__internal"][a.nestedField].max.value}:null:A&&e.aggregations[t+"__range__internal"].min&&e.aggregations[t+"__range__internal"].min.value?{start:e.aggregations[t+"__range__internal"].min.value,end:e.aggregations[t+"__range__internal"].max.value}:null):A=a.range,A&&(E=(0,helper.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,helper.formatDate)((0,o.default)(A.start),a),end:(0,helper.formatDate)((0,o.default)(A.end),a)}:{start:parseFloat(A.start),end:parseFloat(A.end)})}p.includes(a.componentType)&&d&&(0,helper.isValidDateRangeQueryFormat)(a.queryFormat)&&(d="string"==typeof d?{start:(0,helper.formatDate)((0,o.default)(d).subtract(24,"hour"),a),end:(0,helper.formatDate)((0,o.default)(d),a)}:Array.isArray(d)?d.map((function(e){return{start:(0,helper.formatDate)((0,o.default)(e).subtract(24,"hour"),a),end:(0,helper.formatDate)((0,o.default)(e),a)}})):{start:(0,helper.formatDate)((0,o.default)(d.start).subtract(24,"hour"),a),end:(0,helper.formatDate)((0,o.default)(d.end),a)})}if(i===constants$1.queryTypes.geo){d=void 0;var L=e.selectedValues[t]||e.internalValues[t]||e.internalValues[g(t)];L&&L.meta&&(L.meta.distance&&L.meta.coordinates&&(d={distance:L.meta.distance,location:L.meta.coordinates},a.unit&&(d.unit=a.unit)),L.meta.mapBoxBounds&&L.meta.mapBoxBounds.top_left&&L.meta.mapBoxBounds.bottom_right&&(d={geoBoundingBox:{topLeft:L.meta.mapBoxBounds.top_left[1]+", "+L.meta.mapBoxBounds.top_left[0],bottomRight:L.meta.mapBoxBounds.bottom_right[1]+", "+L.meta.mapBoxBounds.bottom_right[0]}}))}if(a.componentType===constants$1.componentTypes.numberBox&&("exact"===h?C="term":(C="range",d="lte"===h?{end:d,boost:2}:{start:d,boost:2}),h="or"),a.componentType===constants$1.componentTypes.reactiveComponent&&(C="term",T="reactive_component_field",d=void 0),_(a.componentType)&&!d&&(d=""),b(a.componentType)){var j=a.data,V=a.selectAllLabel,M=[];d&&Array.isArray(d)?M=d:d&&"string"==typeof d&&(M=[d]);var Q=[];M.length&&j&&Array.isArray(j)&&M.forEach((function(e){var t=j.find((function(t){return t.label===e}));t&&t.value&&Q.push(t.value)})),V&&M.length&&M.includes(V)&&(Q=M),d=Q.length?Q:void 0}a.componentType===constants$1.componentTypes.reactiveList&&(P=d>0?(d-1)*(a.size||10):0,d=void 0);var D=d||void 0;a.componentType===constants$1.componentTypes.searchBox&&Array.isArray(D)&&(D=void 0);var F=void 0;return a.endpoint instanceof Object&&(F=r({},F||{},a.endpoint)),r({},a,{endpoint:F,calendarInterval:f,dataField:T,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[t],customHighlight:e.customHighlightOptions?e.customHighlightOptions[t]:void 0,categoryValue:e.internalValues[t]?e.internalValues[t].category:void 0,value:D,pagination:w,from:P,range:E},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={},s=S(e.dependencyTree[t],t);return s.forEach((function(t){var s=t,a=e.customQueries[s];if(!m(s)){var i=e.selectedValues[s]||e.internalValues[s];if((i||a)&&!o[s]){var u=!1;Array.isArray(n)&&n.includes(s)&&(u=!0);var l=e.props[s],c=C(s,T(e,s,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[s]=c)}}})),o},t.transformValueToComponentStateFormat=function(e,t){var n=t.componentType,s=t.data,a=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=s.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=s.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=s.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=s.find((function(t){return t.start===e.start&&t.end===e.end}))),u.push(t)}else if("string"==typeof e){var n=s.find((function(t){return t.label.trim()===e.trim()}));u.push(n)}}));else if("string"==typeof e){var d=s.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=[],a?Array.isArray(e)?u=e.map((function(e){return(0,helper.formatDate)((0,o.default)(e),t)})):"object"==typeof e&&(u=[(0,helper.formatDate)((0,o.default)(e.start),t),(0,helper.formatDate)((0,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=(0,o.default)(e).format("YYYY-MM-DD"):e.end?u=(0,o.default)(e.end).format("YYYY-MM-DD"):e.start&&(u=(0,o.default)(e.start).add(24,"hour").format("YYYY-MM-DD"));break;case constants$1.componentTypes.dateRange:u=[],Array.isArray(e)?u=e.map((function(e){return(0,o.default)(e).format("YYYY-MM-DD")})):"object"==typeof e&&(u=[(0,o.default)(e.start).format("YYYY-MM-DD"),(0,o.default)(e.end).format("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 s(){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 a(){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=s,t.setDefaultPopularSuggestions=a,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(s([],e)),t(a([],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],s=o.value,a=o.componentProps,i=(0,transform.transformValueToComponentStateFormat)(s,a),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.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: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)}))},s=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"},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,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},i=arguments[2],u=a(),l=u.queryListener;try{console.error(JSON.stringify(o))}catch(e){console.error(o)}n.forEach((function(e){s(a,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,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,m=e.query,g=e.queryId,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},v=arguments[2],_=y(),b=_.config,$=_.internalValues,C=_.lastUsedAppbaseQuery,O=_.analyticsRef,T=t._headers?t._headers.get("X-Search-Id"):null;T&&(f?v((0,misc.setSuggestionsSearchId)(T)):(v((0,misc.setSearchId)(T)),O&&(O.queryID=T))),u.forEach((function(e){if(s(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],b,e).then((function(o){if(o){var s=y(),a=s.timestamp,i=s.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,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.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(){},m=arguments[2],g=f(),y=g.analyticsRef;l.forEach((function(e,t){if(s(f,e)){var r=n._headers?n._headers.get("X-Search-Id"):null;r&&(a?m((0,misc.setSuggestionsSearchId)(r)):(m((0,misc.setSearchId)(r)),y&&(y.queryID=r)));var u=n;n&&Array.isArray(n.responses)&&n.responses[t]&&(u=n.responses[t]);var c=f(),d=c.config,g=c.internalValues;o(u,d,e).then((function(t){var r=f().timestamp;if(void 0===r[e]||r[e]<n._timestamp){m((0,misc.setRawData)(e,t));var o=t.promoted||n.promoted;if(m(o?(0,misc.setPromotedResults)(o,e):(0,misc.setPromotedResults)([],e)),t.hits){m((0,misc.setTimestamp)(e,n._timestamp)),m((0,hits.updateHits)(e,t.hits,t.took,t.hits&&t.hits.hidden,p));var s=(0,transform.getInternalComponentID)(e);g[s]&&m((0,hits.saveQueryToHits)(e,g[s].value))}t.aggregations&&(m((0,hits.updateAggs)(e,t.aggregations,h)),m((0,hits.updateCompositeAggs)(e,t.aggregations,h)))}m((0,misc.setLoading)(e,!1))})).catch((function(e){i({orderOfQueries:l,error:e},f,m)}))}}))},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],s=o&&o.value||"";return[{id:a(t),dataField:["key","key.autosuggest"],size:5,value:s,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:s,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:s,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:s,type:"phrase_prefix"}}]}}}}]}}));unwrapExports(utils);var utils_1=utils.getSuggestionQuery,utils_2=utils.isPropertyDefined,utils_3=utils.handleResponseMSearch,utils_4=utils.handleResponse,utils_5=utils.handleError,utils_6=utils.getQuerySuggestionsId,utils_7=utils.isComponentActive,utils_8=utils.handleTransformResponse,utils_9=utils.executeQueryListener,utils_10=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,s,a,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={},_=[constants$1.componentTypes.reactiveList,constants$1.componentTypes.reactiveMap].includes(g[e]&&g[e].componentType),b=f[e]&&f[e].value;if(!(0,helper.isEqual)(b,t)&&g[e]&&!_){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]=0)}))}_&&t<2&&(!b||b<2)||c({type:constants.SET_VALUE,component:e,reference:y,value:t,label:n,showFilter:o,URLParams:s,componentType:a,category:i,meta:u,componentsToReset:v})}},t.resetValuesToDefault=function(e){return function(t,r){var o=r(),s=o.selectedValues,a=o.props,i={},u=void 0;Object.keys(s).forEach((function(t){Array.isArray(e)&&e.includes(t)||(a[t]&&a[t].componentType&&a[t].defaultValue?[constants$1.componentTypes.rangeSlider,constants$1.componentTypes.rangeInput,constants$1.componentTypes.ratingsFilter,constants$1.componentTypes.dateRange].includes(a[t].componentType)?u="object"==typeof a[t].defaultValue?[a[t].defaultValue.start,a[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(a[t].componentType)?u=a[t].defaultValue:[constants$1.componentTypes.categorySearch].includes(a[t].componentType)&&(u=a[t].defaultValue?a[t].defaultValue.term:""):u=null,(0,helper.isEqual)(s[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({},s[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 s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=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,s)),o){i((0,query.executeQuery)(e,!1,!0,constants$1.componentTypes.reactiveMap,{},a))}}},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,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}}(),s="FormData"in e,a="ArrayBuffer"in e;if(a)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:s&&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=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(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)},s&&(this.formData=function(){return this.text().then(b)}),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 _(e,t){var n,r,o=(t=t||{}).body;if(e instanceof _){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 b(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)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},y.call(_.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,s){var a=new _(e,n);if(a.signal&&a.signal.aborted)return s(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(){s(new TypeError("Network request failed"))},i.ontimeout=function(){s(new TypeError("Network request failed"))},i.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},i.open(a.method,a.url,!0),"include"===a.credentials?i.withCredentials=!0:"omit"===a.credentials&&(i.withCredentials=!1),"responseType"in i&&o&&(i.responseType="blob"),a.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),i.onreadystatechange=function(){4===i.readyState&&a.signal.removeEventListener("abort",u)}),i.send(void 0===a._bodyInit?null:a._bodyInit)}))}O.polyfill=!0,e.fetch||(e.fetch=O,e.Headers=d,e.Request=_,e.Response=$),t.Headers=d,t.Request=_,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,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,s=e.credentials,a=e.app,i=e.query,u=e.headers,l=s?n.replace("//","//"+s+"@"):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(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),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};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,misc.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,s=void 0===o?null:o,a=e.showFilter,i=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,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,p,f,g)):(e((0,value.setValue)(t,r,s,i,l,p,f,g)),v&&(p===constants$1.componentTypes.dynamicRangeSlider?e((0,value.setInternalValue)((0,transform.getHistogramComponentID)(t),r,p,f,g)):e((0,value.setInternalValue)(t+"__internal",r,p,f,g)))),e((0,misc.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(s,i){var u=i(),l=(0,helper.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 m=n({query:n({},d)},h);if(!(0,helper.compareQueries)(f[e],m))if(s((0,misc.logQuery)(e,m)),u.config&&u.config.enableAppbase){var g,y=u.props[e]||{},v=y.aggregationField;transform.componentToTypeMap[y.componentType]===constants$1.queryTypes.term&&(v=y.dataField);var _=(0,transform.getRSQuery)(e,(0,transform.extractPropsFromState)(u,e,{from:h.from,after:u.aggregations[e]&&u.aggregations[e][v]&&u.aggregations[e][v].after_key||void 0}));g=n(a({},e,_),(0,transform.getDependentQueries)(i(),e,[])),s(p({query:Object.keys(g).map((function(e){return g[e]})),orderOfQueries:[e],appendToHits:r,appendToAggs:o}))}else{s(c([{preference:u.config&&u.config.analyticsConfig&&u.config.analyticsConfig.userId?u.config.analyticsConfig.userId+"_"+e:e},m],[e],r,!1,o))}}},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(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 s=n({},e,{deepPaginationConfig:{cursor:r},deepPagination:!0,size:o<1e3?o:1e3,sortField:"_id",sortBy:"asc"});return delete s.from,s}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?a(e(t,r[r.length-1]._id,n[t].hits.total.value,[].concat(i(s),i(r)))):s})).catch((function(e){console.error("Error fetching data to export! ",e)}))}return console.error("Error fetching data to export!")}};var r=s(analytics),o=s(graphQL);function s(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 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){return function(t,n){var r=n(),o=r.config,s=r.appbaseRef,a=r.props,i=r.internalValues,u=o&&o.enableAppbase,l=a[e]||{},c=i[e],p=c&&c.value||"";if(u&&(l.enablePopularSuggestions||l.enableQuerySuggestions)){if(o.mongodb)return void t((0,misc.setDefaultPopularSuggestions)([],e.split("__internal")[0]));var d=(0,utils.getSuggestionQuery)(n,e);s.getQuerySuggestions(d).then((function(n){var r=n[(0,utils.getQuerySuggestionsId)(e)];t(p?(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)}))}}}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 s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=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,m=d.headers,g=d.analytics,y=d.selectedValues,v={},_=[constants$1.componentTypes.dataSearch,constants$1.componentTypes.categorySearch],b=a&&-1!==_.indexOf(u);if(f.analytics){if(f.analyticsConfig.suggestionAnalytics&&b){var $=g.suggestionsSearchValue;!(!f.analyticsConfig.emptyQuery&&!$)&&(v={"X-Search-Query":$||""})}else{var C=g.searchValue,O=g.searchId,T=(0,r.default)(y);if(O)v=n({"X-Search-Id":O,"X-Search-Query":C||""},T&&{"X-Search-Filters":T});else{var S=!(!f.analyticsConfig.emptyQuery&&!C);v=n(S&&{"X-Search-Query":C||""},T&&{"X-Search-Filters":T})}}f.analyticsConfig.userId&&(v["X-User-Id"]=f.analyticsConfig.userId),f.analyticsConfig.customEvents&&(v["X-Search-CustomEvent"]=(0,analytics.parseCustomEvents)(f.analyticsConfig.customEvents))}if(t.forEach((function(e){c((0,misc.setLoading)(e,!0)),c((0,misc.setError)(e,null))})),f.graphQLUrl){var w={graphQLUrl:f.graphQLUrl,url:f.url,credentials:f.credentials,app:f.app,query:e,headers:m};l(h.transformRequest,w).then((function(e){(0,o.default)(e).then((function(e){(0,utils.handleResponseMSearch)({res:e,isSuggestionsQuery:b,orderOfQueries:t,appendToHits:s,appendToAggs:i},p,c)})).catch((function(e){(0,utils.handleError)({orderOfQueries:t,error:e},p,c)}))})).catch((function(e){(0,utils.handleError)({orderOfQueries:t,error:e},p,c)}))}else h.setHeaders(n({},m,v)),h.msearch({type:"*"===f.type?"":f.type,body:e}).then((function(e){(0,utils.handleResponseMSearch)({res:e,isSuggestionsQuery:b,orderOfQueries:t,appendToHits:s,appendToAggs:i},p,c)})).catch((function(e){(0,utils.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,s=e.appendToHits,a=void 0!==s&&s,i=e.isSuggestionsQuery,l=void 0!==i&&i,c=e.searchComponentID,p=e.appendToAggs,d=void 0!==p&&p;return function(e,s){var i=s(),p=i.appbaseRef,h=i.config,f=i.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};if(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;var y=h.analyticsConfig.enableSearchRelevancy;g.enableSearchRelevancy=(0,utils.isPropertyDefined)(y)?y:void 0,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(u(c)),p.reactiveSearch(r,g,g.queryParams).then((function(n){(0,utils.handleResponse)({res:n,orderOfQueries:o,appendToHits:a,appendToAggs:d,query:r,queryId:t},s,e)})).catch((function(n){(0,utils.handleError)({orderOfQueries:o,error:n,queryId:t},s,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],s=arguments[4],u=arguments[5];return function(l,h){var f=h(),m=f.queryLog,g=f.config,y=f.mapData,v=f.watchMan,_=f.dependencyTree,b=f.queryList,$=f.queryOptions,C=f.queryListener,O=f.props,T=f.internalValues,S=f.lock,w=f.selectedValues,P=g.initialQueriesSyncTime||50,E=g.initialTimestamp,R=u||(new Date).getTime();g.queryLockConfig instanceof Object&&(P=g.queryLockConfig.lockTime,E=g.queryLockConfig.initialTimestamp);var k=[e],I=[],x={},A=[],L=g&&g.enableAppbase;if(t){var j=v[e]||[];k=[].concat(i(k),i(j))}var V={match_all:{}};if(k.forEach((function(t){var o=(0,helper.buildQuery)(t,_,b,$),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({},V));var d=void 0;if((O[t]?O[t].componentType:null)===constants$1.componentTypes.reactiveList){var f=w[t]?w[t].value:void 0,v=O[t];void 0!==f&&v&&(d=f>0?(f-1)*(v.size||10):0)}var S=n({query:n({},u)},c,$[t],{from:d}),P=n({query:n({},u)},c,$[t],{from:d}),E=m[t];if(r||!(0,helper.compareQueries)(S,E,!1)){A=[].concat(i(A),[t]);var k=Object.keys(y).includes(t);if(k&&l((0,misc.setLastUsedAppbaseQuery)(a({},t,{queryId:R}))),l((0,misc.logQuery)(t,P)),k&&y[t].query){var j=S.query;S.query={bool:{must:[j,y[t].query]}},y[t].persistMapQuery||l((0,maps.updateMapData)(e,null,!1));var M=h().combinedLog;if((0,helper.compareQueries)(M[t],S))return;l((0,misc.logCombinedQuery)(t,S))}if((0,utils.executeQueryListener)(C[t],E,S),L){var Q=void 0,D=e.endsWith("__internal"),F=O[e];D&&F&&(0,transform.isSearchComponent)(F.componentType)&&(Q=T[e]&&T[e].value);var N=(0,transform.getRSQuery)(t,(0,transform.extractPropsFromState)(h(),t,n({},Q?{value:Q}:null,s?{from:s.from}:null)));if(N&&(x=n({},x,a({},t,N),(0,transform.getDependentQueries)(h(),t,A))),k){var q=(0,transform.getInternalComponentID)(t),B=(0,transform.getRSQuery)(q,(0,transform.extractPropsFromState)(h(),q,s?{from:s.from}:null));B&&(x[q]=n({},B,{execute:!1}))}}else{var U=g&&g.analyticsConfig&&g.analyticsConfig.userId?g.analyticsConfig.userId+"_"+t:t;I=[].concat(i(I),[{preference:U},S])}}}})),L&&(I=Object.keys(x).map((function(e){return x[e]}))),I.length)if(L){var M=[constants$1.componentTypes.dataSearch,constants$1.componentTypes.categorySearch],Q=e.endsWith("__internal")&&-1!==M.indexOf(o);(new Date).getTime()-E<P?(S&&!g.queryLockConfig||setTimeout((function(){var e=[],t=!1,r="",o={},s={},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),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(u.orderOfQueries)&&u.orderOfQueries.forEach((function(t){o[t.id]?o[t.id]=!0:e=[t].concat(i(e))}))}));var u=Object.values(s);u.length&&l(p({query:u,orderOfQueries:e,isSuggestionsQuery:t,searchComponentID:r})),d=[],l((0,utils.updateStoreConfig)({queryLockConfig:void 0}))}),P),l((0,utils.updateStoreConfig)({lock:!0})),d.push({query:I,orderOfQueries:A,isSuggestionsQuery:Q,searchComponentID:e})):l(p({queryId:R,query:I,orderOfQueries:A,isSuggestionsQuery:Q,searchComponentID:e}))}else l(c(I,A,!1,e.endsWith("__internal"),void 0,o))}}}));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,t){return function(n){n(function(e){return{type:constants.ADD_COMPONENT,component:e}}(e)),n(function(e,t){return{type:constants.SET_REGISTERED_COMPONENT_TIMESTAMP,component:e,timestamp:t}}(e,t))}},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,s=e.isSuggestionClick;t?o.click({queryID:o.getQueryID(),objects:r({},t,n+1),isSuggestionClick:s}):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(),s=o.config,a=o.headers,i=o.appbaseRef,u=i.url,l=i.protocol,c=i.credentials,p=s.app,d=s.mongodb,h=(l+"://"+u||"").replace(/\/+$/,""),f={headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(c)})},m="",g=function(e,t){m+=m?"&"+e+"="+t:e+"="+t};return s.analyticsConfig&&s.analyticsConfig.userId&&g("user_id",s.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,s){var a=s(),i=a.config,u=a.analytics.searchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=a.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,s){var a=s(),i=a.config,u=a.analytics.suggestionsSearchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=a.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(),s=o.appbaseRef,a=s.url,i=s.protocol,u=o.analyticsRef,l=o.config,c=(i+"://"+a).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 s=t[o];if(e.call(r,s,o,t))return s;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),s=g(actions),a=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,_=i.default,b=c.default,$={valueReducer:p.default,queryOptionsReducer:h.default,queryReducer:d.default,dependencyTreeReducer:f.default,propsReducer:m.default};t.helper=a,t.causes=b,t.suggestions=_,t.Actions=s,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;function _regeneratorRuntime(){_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",i=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var s=t&&t.prototype instanceof d?t:d,a=Object.create(s.prototype),i=new S(o||[]);return r(a,"_invoke",{value:$(e,n,i)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p={};function d(){}function h(){}function f(){}var m={};u(m,s,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(w([])));y&&y!==t&&n.call(y,s)&&(m=y);var v=f.prototype=d.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var o;r(this,"_invoke",{value:function(r,s){function a(){return new t((function(o,a){!function r(o,s,a,i){var u=c(e[o],e,s);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,a,i)}),(function(e){r("throw",e,a,i)})):t.resolve(p).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,i)}))}i(u.arg)}(r,s,o,a)}))}return o=o?o.then(a,a):a()}})}function $(e,t,n){var r="suspendedStart";return function(o,s){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw s;return P()}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var i=C(a,n);if(i){if(i===p)continue;return i}}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=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var s=o.arg;return s?s.done?(t[e.resultName]=s.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):s:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function O(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function w(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=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 o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=f,r(v,"constructor",{value:f,configurable:!0}),r(f,"constructor",{value:h,configurable:!0}),h.displayName=u(f,i,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,u(e,i,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},_(b.prototype),u(b.prototype,a,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,o,s){void 0===s&&(s=Promise);var a=new b(l(t,n,r,o),s);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(v),u(v,i,"Generator"),u(v,s,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=w,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(T),!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 s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return r("end");if(s.tryLoc<=this.prev){var i=n.call(s,"catchLoc"),u=n.call(s,"finallyLoc");if(i&&u){if(this.prev<s.catchLoc)return r(s.catchLoc,!0);if(this.prev<s.finallyLoc)return r(s.finallyLoc)}else if(i){if(this.prev<s.catchLoc)return r(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return r(s.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 s=o;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=e,a.arg=t,s?(this.method="next",this.next=s.finallyLoc,p):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),p},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),T(n),p}},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;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:w(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function asyncGeneratorStep(e,t,n,r,o,s,a){try{var i=e[s](a),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function a(e){asyncGeneratorStep(s,r,o,a,i,"next",e)}function i(e){asyncGeneratorStep(s,r,o,a,i,"throw",e)}a(void 0)}))}}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(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={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[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(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)}
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";Vue=Vue&&Object.prototype.hasOwnProperty.call(Vue,"default")?Vue.default:Vue;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,s=t,a=[],i=a,u=!1;function l(){i===a&&(i=a.slice())}function c(){if(u)throw new Error(formatProdErrorMessage(3));return s}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),a=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,s=o(s,e)}finally{u=!1}for(var t=a=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 s,a=Object.keys(n);try{assertReducerShape(n)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var r=!1,o={},i=0;i<a.length;i++){var u=a[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||a.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)}},s=t.map((function(e){return e(o)}));return r=compose.apply(void 0,s)(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 s=o(t.react),a=n({},e);return Object.keys(a).forEach((function(e){a[e]=a[e].filter((function(e){return e!==t.component}))})),s.forEach((function(e){Array.isArray(a[e])?a[e]=[].concat(r(a[e]),[t.component]):a[e]=[t.component]})),a}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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","compoundClause","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,s=void 0;try{for(var a,i=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,s=e}finally{try{!r&&i.return&&i.return()}finally{if(o)throw s}}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],s=[constants$1.componentTypes.singleRange,constants$1.componentTypes.singleDropdownRange,constants$1.componentTypes.multiRange,constants$1.componentTypes.multiDropdownRange];function a(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]:s.includes(i)?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=s,t.parseFilterValue=i,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 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 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)}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(s(e[t.component].hits),s(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 a=r(e,[t.component]);return a}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s={};return Object.keys(t.componentsToReset||{}).forEach((function(r){s[r]=n({},e[r],{value:t.componentsToReset[r]})})),n({},e,s,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 a=t.componentsValues?Object.keys(t.componentsValues):[];if(a.length){var i={};return a.forEach((function(o){var s=t.componentsValues[o],a=s.value,u=r(s,["value"]);i[o]=n({},e[o],{value:a},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 s={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){s[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(s[n]=e[n])})),s;case constants.RESET_TO_DEFAULT:return n({},e,t.defaultValues);case constants.REMOVE_COMPONENT:e[t.component];var a=r(e,[t.component]);return a;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 s,a=e[t.component+"_active"]||0;return t.isLoading?a+=1:a&&(a-=1),n({},e,(o(s={},t.component,t.isLoading),o(s,t.component+"_active",a),s),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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s;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 s(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 a=Object.keys(e[t.component])[0],i=t.aggregations[a],u=i.buckets,l=s(i,["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===constants.REMOVE_COMPONENT){e[t.component];var c=s(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 s(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 a=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],i=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[i],a={},u={};if(o&&o.hits){var l=o.hits.hits[0];u=l._source,a=s(l,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[i],top_hits:o},a,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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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 s=r(e,[t.component]);return s}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,s=t.loading,a=t.loaded,i=t.error;if(o===constants.SET_GOOGLE_MAP_SCRIPT_LOADING)return n({},r,{loading:s});if(o===constants.SET_GOOGLE_MAP_SCRIPT_LOADED)return n({},r,{loaded:a});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 s=r(e,[t.component]);return s}return e}}));unwrapExports(registeredComponentReducer);var reducers=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=D(componentsReducer_1),r=D(watchManReducer_1),o=D(dependencyTreeReducer_1),s=D(queryReducer_1),a=D(appbaseQueryReducer_1),i=D(queryOptionsReducer_1),u=D(configReducer_1),l=D(appbaseRefReducer_1),c=D(hitsReducer_1),p=D(logsReducer_1),d=D(combinedLogsReducer_1),h=D(valueReducer_1),f=D(internalValueReducer),m=D(loadingReducer_1),g=D(errorReducer_1),y=D(timestampReducer_1),v=D(headersReducer_1),_=D(mapDataReducer_1),b=D(queryListenerReducer_1),$=D(analyticsReducer_1),C=D(promotedResultsReducer_1),O=D(customDataReducer_1),T=D(defaultQueryReducer_1),S=D(customQueryReducer_1),w=D(propsReducer),P=D(aggsReducer_1),E=D(compositeAggsReducer_1),R=D(appliedSettingsReducer_1),k=D(customHighlightReducer_1),I=D(rawDataReducer_1),x=D(querySuggestionsReducer_1),A=D(defaultPopularSuggestions_1),L=D(queryToHitsReducer_1),j=D(recentSearches),V=D(googleMapScriptReducer_1),M=D(analyticsRefReducer_1),Q=D(registeredComponentReducer);function D(e){return e&&e.__esModule?e:{default:e}}t.default=(0,redux.combineReducers)({components:n.default,customQueries:S.default,defaultQueries:T.default,customHighlightOptions:k.default,settings:R.default,watchMan:r.default,queryList:s.default,queryOptions:i.default,dependencyTree:o.default,appbaseRef:l.default,analyticsRef:M.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:_.default,queryListener:b.default,analytics:$.default,props:w.default,rawData:I.default,querySuggestions:x.default,defaultPopularSuggestions:A.default,queryToHits:L.default,recentSearches:j.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},googleMapScriptStatus:V.default,lastUsedAppbaseQuery:a.default,registeredComponentsTimestamps:Q.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.SSSZ",basic_date_time_no_millis:"YYYYMMDD[T]HHmmssZ",date_time_no_millis:"YYYY-MM-DD[T]HH:mm:ssZ",basic_time:"HHmmss.SSSZ",basic_time_no_millis:"HHmmssZ",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 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)}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 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,a={};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 a[m]?e:(a[m]=1,[].concat(s(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((b||o.trim().split(" ").some((function(t){return i(e).toLowerCase().includes(i(t))})))&&!_.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(_=[].concat(s(_),[e]),v=[].concat(s(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 s=n.split("."),i=t[s[0]];if(t[n]){var u=t[n],l=a(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(s.length>1){var c=n.substring(s[0].length+1);e(i,c,r)}else{var p=a(i);if(p)return $(p,t,r)}}return!1}(e,t)}))}))};if(C(),v.length<r.length&&!b&&y&&(b=!0,C()),f){var O=l({suggestions:v,currentValue:o,wordsToShowAfterHighlight:g});v=O}if(d){var T={},S=[];return v.forEach((function(e){e.source&&e.source._id&&(T[e.source._id]||(S.push(e),T[e.source._id]=!0))})),S}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,s=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(s,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 s=null,a=null;e in t&&(s=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var s=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})));s&&Object.keys(s).length&&(r=[].concat(u(r),[s]))}else if("string"==typeof t[o]){var a=h(d(o),n[t[o]]);a&&Object.keys(a).length&&(r=[].concat(u(r),[a]))}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),a=function e(t,n,o){var s={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){n[e]&&(s=r({},s,n[e]))})):"string"==typeof t[o]?n[t[o]]&&(s=r({},s,n[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(s=r({},s,e(t[o],n)))})),n[o]&&(s=r({},s,n[o]));return s}(t[e],o,e));return{queryObj:s,options:a}},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 s=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(s):r()}catch(e){s(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.valueOf();case"epoch_second":return Math.floor(e.valueOf()/1e3);default:return o.default[t.queryFormat]?e.format(o.default[t.queryFormat]):e.valueOf()}},t.unwrapToNativeDate=function(e){if(e)return new Date(e.valueOf());return e},t.getResultStats=function(e){var t=e.total,n=e.size,o=e.time,s=e.hidden,a=e.promotedResults;return r({numberOfResults:t},n>0?{numberOfPages:Math.ceil(t/n)}:null,{time:o||0,hidden:s,promoted:a?a.length:0})},t.extractFieldsFromSource=O,t.normalizeDataField=T,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,o=n.promotedResults,a=n.enablePredictiveSuggestions,i=[];n.dataField?i=T(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,s.default)({fields:i,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(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,s){return r&&"object"!=typeof e[o]&&s!==t.length-1?(e[o]={},e[o]):s===t.length-1?(e[o]=n,n):"object"==typeof e[o]?e[o]:{}}),e)};var o=a(dateFormats_1),s=a(suggestions);function a(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 _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2];Object.keys(e).forEach((function(o){var s=e[o]||{},a=s.hidden,i=s.total,u=s.time;t[o]=r({},t[o],{resultStats:r({},t[o].resultStats,{numberOfResults:i,time:u,promoted:n[o]&&n[o].length,hidden:a||0})})}))}var b=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,s=e.dependencyTree,a=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(a),Object.keys(n||{}).forEach((function(e){var t=g[e],o=n[e],s=a[e],i=s?s.componentType:null;if(o){var u=r({},t,r({title:o.label,componentType:o.componentType,value:o.value||b[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"),_(i,g,d)),y(s,"react"),g},t.updateInternalQuery=function(e,t,n,o,s,a){var i=o.defaultQuery,u=void 0,l=s;if(i){var p=i(n,o);l=(p||{}).query,u=v(p),c(e,o,n)}l?(o.setQueryOptions(e,r({},u,t||s)),o.updateQuery(r({componentId:e,query:l,value:n},a))):o.setQueryOptions(e,r({},u,t||s))},function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var s=i(o,["query"]);s&&(n=s)}}return n});t.extractQueryFromDefaultQuery=$;t.getAggsQuery=function(e,t,n){var o=t,s=n.dataField,a=n.size,i=n.sortBy,c=n.showMissing,p=n.missingLabel,d=n.aggregationSize;if(o.size=0,"string"==typeof s)o.aggs=l({},s,{terms:r({field:s,size:a,aggregationSize:d,order:f(i||"count")},c?{missing:p}:{})});else{var h=void 0;[].concat(u(s)).reverse().forEach((function(e){h=l({},e,{terms:r({field:e,size:a,aggregationSize:d,order:f(i||"count")},c?{missing:p}:{}),aggs:h})})),o.aggs=h}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,s=e.after,a=void 0===s?null:s,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},a)},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]:{},s=arguments[1],a=n?n+"."+s:s;return Number.isNaN(parseInt(s,10))||(a=n||s),t[s]&&"object"==typeof t[s]?r({},o,e(t[s],a)):r({},o,l({},a,!0))}),[])}(e);return Object.keys(t)}function T(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,s.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",SELECT:"select"};var S=t.queryFormatMillisecondsMap={minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629746e3,quarter:7889238e3,year:31556952e3},w=(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 s=n[o];return{errorMessage:"Please pass calendarInterval prop with value greater than or equal to a `"+s+"` for a meaningful resolution of histogram.",calculatedCalendarInterval:s}}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 w(n)?n(e):w(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 w(n)||w(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,s=[];if(t instanceof Object){var a=Object.keys(t);a.forEach((function(a){Array.isArray(t[a].buckets)&&t[a].buckets.forEach((function(t){s.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 s},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 s=new Blob([r],{type:o}),a=document.createElement("a");a.download=e+"."+n,a.href=window.URL.createObjectURL(s),a.dataset.downloadurl=[o,a.download,a.href].join(":");var i=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});a.dispatchEvent(i),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 n=t.headers,o=void 0===n?{}:n,s=t.body,a=i(t,["headers","body"]);return r({},e,a,{headers:r({},e.headers,o)},s instanceof Object?{body:JSON.stringify(s)}:{})}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.unwrapToNativeDate,helper_43=helper.getResultStats,helper_44=helper.extractFieldsFromSource,helper_45=helper.normalizeDataField,helper_46=helper.handleOnSuggestions,helper_47=helper.isValidDateRangeQueryFormat,helper_48=helper.setDeep,dayjs_min=createCommonjsModule((function(e,t){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",o="minute",s="hour",a="day",i="week",u="month",l="quarter",c="year",p="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,u),s=n-o<0,a=t.clone().add(r+(s?-1:1),u);return+(-(r+(n-o)/(s?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:c,w:i,d:a,D:p,h:s,m:o,s:r,ms:n,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",_={};_[v]=m;var b=function(e){return e instanceof T},$=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var s=t.toLowerCase();_[s]&&(o=s),n&&(_[s]=n,o=s);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var i=t.name;_[i]=t,o=i}return!r&&o&&(v=o),o||!r&&v},C=function(e,t){if(b(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},O=y;O.l=$,O.i=b,O.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function m(e){this.$L=$(e.locale,null,!0),this.parse(e)}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(O.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return O},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return C(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<C(e)},g.$g=function(e,t,n){return O.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,l=!!O.u(t)||t,d=O.p(e),h=function(e,t){var r=O.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return l?r:r.endOf(a)},f=function(e,t){return O.w(n.toDate()[e].apply(n.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case c:return l?h(1,0):h(31,11);case u:return l?h(1,g):h(0,g+1);case i:var _=this.$locale().weekStart||0,b=(m<_?m+7:m)-_;return h(l?y-b:y+(6-b),g);case a:case p:return f(v+"Hours",0);case s:return f(v+"Minutes",1);case o:return f(v+"Seconds",2);case r:return f(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var i,l=O.p(e),d="set"+(this.$u?"UTC":""),h=(i={},i[a]=d+"Date",i[p]=d+"Date",i[u]=d+"Month",i[c]=d+"FullYear",i[s]=d+"Hours",i[o]=d+"Minutes",i[r]=d+"Seconds",i[n]=d+"Milliseconds",i)[l],f=l===a?this.$D+(t-this.$W):t;if(l===u||l===c){var m=this.clone().set(p,1);m.$d[h](f),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[O.p(e)]()},g.add=function(n,l){var p,d=this;n=Number(n);var h=O.p(l),f=function(e){var t=C(d);return O.w(t.date(t.date()+Math.round(e*n)),d)};if(h===u)return this.set(u,this.$M+n);if(h===c)return this.set(c,this.$y+n);if(h===a)return f(1);if(h===i)return f(7);var m=(p={},p[o]=e,p[s]=t,p[r]=1e3,p)[h]||1,g=this.$d.getTime()+n*m;return O.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=O.z(this),s=this.$H,a=this.$m,i=this.$M,u=n.weekdays,l=n.months,c=n.meridiem,p=function(e,n,o,s){return e&&(e[n]||e(t,r))||o[n].slice(0,s)},h=function(e){return O.s(s%12||12,e,"0")},m=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(f,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return O.s(t.$y,4,"0");case"M":return i+1;case"MM":return O.s(i+1,2,"0");case"MMM":return p(n.monthsShort,i,l,3);case"MMMM":return p(l,i);case"D":return t.$D;case"DD":return O.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,u,2);case"ddd":return p(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(s);case"HH":return O.s(s,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return m(s,a,!0);case"A":return m(s,a,!1);case"m":return String(a);case"mm":return O.s(a,2,"0");case"s":return String(t.$s);case"ss":return O.s(t.$s,2,"0");case"SSS":return O.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,p,d){var h,f=this,m=O.p(p),g=C(n),y=(g.utcOffset()-this.utcOffset())*e,v=this-g,_=function(){return O.m(f,g)};switch(m){case c:h=_()/12;break;case u:h=_();break;case l:h=_()/3;break;case i:h=(v-y)/6048e5;break;case a:h=(v-y)/864e5;break;case s:h=v/t;break;case o:h=v/e;break;case r:h=v/1e3;break;default:h=v}return d?h:O.a(h)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return _[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=$(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return O.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),S=T.prototype;return C.prototype=S,[["$ms",n],["$s",r],["$m",o],["$H",s],["$W",a],["$M",u],["$y",c],["$D",p]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,T,C),e.$i=!0),C},C.locale=$,C.isDayjs=b,C.unix=function(e){return C(1e3*e)},C.en=_[v],C.Ls=_,C.p={},C}()})),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=a(dayjs_min),s=a(dateFormats_1);function a(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")},_=t.isSearchComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.includes(e)},b=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){if(null===t.defaultQuery)return null;var o=t.type?t.type:l[t.componentType];if(!_(t.componentType)&&!t.dataField)return null;var s=void 0,a=t.compoundClause;return t.endpoint instanceof Object&&(s=t.endpoint),a&&!["filter","must"].includes(a)&&(console.error("Reactivesearch Error: Invalid prop supplied - compoundClause. Prop can be one of ['filter', 'must']"),a=void 0),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,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,compoundClause:a},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:s,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=t.extractPropsFromState=function(e,t,n){var a=e.props[t];if(!a)return null;var i=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,m=a.interval,C=i,T=a.dataField,S=a.aggregations,w=void 0,P=a.from,E=void 0;if(i===constants$1.queryTypes.term)if(a.showLoadMore&&$(a.componentType)&&(w=!0),null!=d&&"object"==typeof d&&d.value)d=d.value;else if(Array.isArray(d)){var R=[];d.forEach((function(e){null!=e&&"object"==typeof e&&e.value?R.push(e.value):R.push(e)})),d=R}if(i===constants$1.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 k=g(t),I=e.internalValues[k];if(!I){var x=y(t);I=e.internalValues[x]}I&&Array.isArray(I.value)&&(d={start:I.value[0],end:I.value[1]},m=O(m,d))}if(v(t)?S=["min","max"]:a.showHistogram&&(S=["histogram"]),a.componentType===constants$1.componentTypes.dynamicRangeSlider||a.componentType===constants$1.componentTypes.rangeSlider){f=Object.keys(s.default).includes(h)?a.calendarInterval:void 0,d&&(d=(0,helper.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,helper.formatDate)((0,o.default)(new Date(d.start)),a),end:(0,helper.formatDate)((0,o.default)(new Date(d.end)),a)}:{start:parseFloat(d.start),end:parseFloat(d.end)});var A=void 0;a.componentType===constants$1.componentTypes.dynamicRangeSlider?(A=e.aggregations[t+"__range__internal"],A=a.nestedField?A&&e.aggregations[t+"__range__internal"][a.nestedField].min?{start:e.aggregations[t+"__range__internal"][a.nestedField].min.value,end:e.aggregations[t+"__range__internal"][a.nestedField].max.value}:null:A&&e.aggregations[t+"__range__internal"].min&&e.aggregations[t+"__range__internal"].min.value?{start:e.aggregations[t+"__range__internal"].min.value,end:e.aggregations[t+"__range__internal"].max.value}:null):A=a.range,A&&(E=(0,helper.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,helper.formatDate)((0,o.default)(A.start),a),end:(0,helper.formatDate)((0,o.default)(A.end),a)}:{start:parseFloat(A.start),end:parseFloat(A.end)})}p.includes(a.componentType)&&d&&(0,helper.isValidDateRangeQueryFormat)(a.queryFormat)&&(d="string"==typeof d?{start:(0,helper.formatDate)((0,o.default)(d).subtract(24,"hour"),a),end:(0,helper.formatDate)((0,o.default)(d),a)}:Array.isArray(d)?d.map((function(e){return{start:(0,helper.formatDate)((0,o.default)(e).subtract(24,"hour"),a),end:(0,helper.formatDate)((0,o.default)(e),a)}})):{start:(0,helper.formatDate)((0,o.default)(d.start).subtract(24,"hour"),a),end:(0,helper.formatDate)((0,o.default)(d.end),a)})}if(i===constants$1.queryTypes.geo){d=void 0;var L=e.selectedValues[t]||e.internalValues[t]||e.internalValues[g(t)];L&&L.meta&&(L.meta.distance&&L.meta.coordinates&&(d={distance:L.meta.distance,location:L.meta.coordinates},a.unit&&(d.unit=a.unit)),L.meta.mapBoxBounds&&L.meta.mapBoxBounds.top_left&&L.meta.mapBoxBounds.bottom_right&&(d={geoBoundingBox:{topLeft:L.meta.mapBoxBounds.top_left[1]+", "+L.meta.mapBoxBounds.top_left[0],bottomRight:L.meta.mapBoxBounds.bottom_right[1]+", "+L.meta.mapBoxBounds.bottom_right[0]}}))}if(a.componentType===constants$1.componentTypes.numberBox&&("exact"===h?C="term":(C="range",d="lte"===h?{end:d,boost:2}:{start:d,boost:2}),h="or"),a.componentType===constants$1.componentTypes.reactiveComponent&&(C="term",T="reactive_component_field",d=void 0),_(a.componentType)&&!d&&(d=""),b(a.componentType)){var j=a.data,V=a.selectAllLabel,M=[];d&&Array.isArray(d)?M=d:d&&"string"==typeof d&&(M=[d]);var Q=[];M.length&&j&&Array.isArray(j)&&M.forEach((function(e){var t=j.find((function(t){return t.label===e}));t&&t.value&&Q.push(t.value)})),V&&M.length&&M.includes(V)&&(Q=M),d=Q.length?Q:void 0}a.componentType===constants$1.componentTypes.reactiveList&&(P=d>0?(d-1)*(a.size||10):0,d=void 0);var D=d||void 0;a.componentType===constants$1.componentTypes.searchBox&&Array.isArray(D)&&(D=void 0);var F=void 0;return a.endpoint instanceof Object&&(F=r({},F||{},a.endpoint)),r({},a,{endpoint:F,calendarInterval:f,dataField:T,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[t],customHighlight:e.customHighlightOptions?e.customHighlightOptions[t]:void 0,categoryValue:e.internalValues[t]?e.internalValues[t].category:void 0,value:D,pagination:w,from:P,range:E},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={},s=S(e.dependencyTree[t],t);return s.forEach((function(t){var s=t,a=e.customQueries[s];if(!m(s)){var i=e.selectedValues[s]||e.internalValues[s];if((i||a)&&!o[s]){var u=!1;Array.isArray(n)&&n.includes(s)&&(u=!0);var l=e.props[s],c=C(s,T(e,s,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[s]=c)}}})),o},t.transformValueToComponentStateFormat=function(e,t){var n=t.componentType,s=t.data,a=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=s.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=s.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=s.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=s.find((function(t){return t.start===e.start&&t.end===e.end}))),u.push(t)}else if("string"==typeof e){var n=s.find((function(t){return t.label.trim()===e.trim()}));u.push(n)}}));else if("string"==typeof e){var d=s.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=[],a?Array.isArray(e)?u=e.map((function(e){return(0,helper.formatDate)((0,o.default)(e),t)})):"object"==typeof e&&(u=[(0,helper.formatDate)((0,o.default)(e.start),t),(0,helper.formatDate)((0,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=(0,o.default)(e).format("YYYY-MM-DD"):e.end?u=(0,o.default)(e.end).format("YYYY-MM-DD"):e.start&&(u=(0,o.default)(e.start).add(24,"hour").format("YYYY-MM-DD"));break;case constants$1.componentTypes.dateRange:u=[],Array.isArray(e)?u=e.map((function(e){return(0,o.default)(e).format("YYYY-MM-DD")})):"object"==typeof e&&(u=[(0,o.default)(e.start).format("YYYY-MM-DD"),(0,o.default)(e.end).format("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 s(){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 a(){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=s,t.setDefaultPopularSuggestions=a,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(s([],e)),t(a([],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],s=o.value,a=o.componentProps,i=(0,transform.transformValueToComponentStateFormat)(s,a),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.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: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)}))},s=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"};function i(e){if(!(e instanceof Error))return e;var t={};return Object.getOwnPropertyNames(e).forEach((function(n){t[n]=e[n]})),t}var u=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(){},u=arguments[2],l=i(o),c=a(),p=c.queryListener;try{console.error(JSON.stringify(l))}catch(e){console.error(l)}n.forEach((function(e){s(a,e)&&(p[e]&&p[e].onError&&p[e].onError(l),u((0,misc.setError)(e,l)),u((0,misc.setLoading)(e,!1)))}))};t.handleResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.res,a=e.orderOfQueries,i=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,m=e.query,g=e.queryId,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},v=arguments[2],_=y(),b=_.config,$=_.internalValues,C=_.lastUsedAppbaseQuery,O=_.analyticsRef,T=t._headers?t._headers.get("X-Search-Id"):null;T&&(f?v((0,misc.setSuggestionsSearchId)(T)):(v((0,misc.setSearchId)(T)),O&&(O.queryID=T))),i.forEach((function(e){if(s(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],b,e).then((function(o){if(o){var s=y(),a=s.timestamp,i=s.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,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){u({orderOfQueries:i,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,i=e.orderOfQueries,l=void 0===i?[]:i,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(){},m=arguments[2],g=f(),y=g.analyticsRef;l.forEach((function(e,t){if(s(f,e)){var r=n._headers?n._headers.get("X-Search-Id"):null;r&&(a?m((0,misc.setSuggestionsSearchId)(r)):(m((0,misc.setSearchId)(r)),y&&(y.queryID=r)));var i=n;n&&Array.isArray(n.responses)&&n.responses[t]&&(i=n.responses[t]);var c=f(),d=c.config,g=c.internalValues;o(i,d,e).then((function(t){var r=f().timestamp;if(void 0===r[e]||r[e]<n._timestamp){m((0,misc.setRawData)(e,t));var o=t.promoted||n.promoted;if(m(o?(0,misc.setPromotedResults)(o,e):(0,misc.setPromotedResults)([],e)),t.hits){m((0,misc.setTimestamp)(e,n._timestamp)),m((0,hits.updateHits)(e,t.hits,t.took,t.hits&&t.hits.hidden,p));var s=(0,transform.getInternalComponentID)(e);g[s]&&m((0,hits.saveQueryToHits)(e,g[s].value))}t.aggregations&&(m((0,hits.updateAggs)(e,t.aggregations,h)),m((0,hits.updateCompositeAggs)(e,t.aggregations,h)))}m((0,misc.setLoading)(e,!1))})).catch((function(e){u({orderOfQueries:l,error:e},f,m)}))}}))},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],s=o&&o.value||"";return[{id:a(t),dataField:["key","key.autosuggest"],size:5,value:s,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:s,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:s,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:s,type:"phrase_prefix"}}]}}}}]}}));unwrapExports(utils);var utils_1=utils.getSuggestionQuery,utils_2=utils.isPropertyDefined,utils_3=utils.handleResponseMSearch,utils_4=utils.handleResponse,utils_5=utils.handleError,utils_6=utils.getQuerySuggestionsId,utils_7=utils.isComponentActive,utils_8=utils.handleTransformResponse,utils_9=utils.executeQueryListener,utils_10=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,s,a,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={},_=[constants$1.componentTypes.reactiveList,constants$1.componentTypes.reactiveMap].includes(g[e]&&g[e].componentType),b=f[e]&&f[e].value;if(!(0,helper.isEqual)(b,t)&&g[e]&&!_){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]=0)}))}_&&t<2&&(!b||b<2)||c({type:constants.SET_VALUE,component:e,reference:y,value:t,label:n,showFilter:o,URLParams:s,componentType:a,category:i,meta:u,componentsToReset:v})}},t.resetValuesToDefault=function(e){return function(t,r){var o=r(),s=o.selectedValues,a=o.props,i={},u=void 0;Object.keys(s).forEach((function(t){Array.isArray(e)&&e.includes(t)||(a[t]&&a[t].componentType&&a[t].defaultValue?[constants$1.componentTypes.rangeSlider,constants$1.componentTypes.rangeInput,constants$1.componentTypes.ratingsFilter,constants$1.componentTypes.dateRange].includes(a[t].componentType)?u="object"==typeof a[t].defaultValue?[a[t].defaultValue.start,a[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(a[t].componentType)?u=a[t].defaultValue:[constants$1.componentTypes.categorySearch].includes(a[t].componentType)&&(u=a[t].defaultValue?a[t].defaultValue.term:""):u=null,(0,helper.isEqual)(s[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({},s[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 s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=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,s)),o){i((0,query.executeQuery)(e,!1,!0,constants$1.componentTypes.reactiveMap,{},a))}}},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,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}}(),s="FormData"in e,a="ArrayBuffer"in e;if(a)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:s&&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=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(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)},s&&(this.formData=function(){return this.text().then(b)}),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 _(e,t){var n,r,o=(t=t||{}).body;if(e instanceof _){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 b(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)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},y.call(_.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,s){var a=new _(e,n);if(a.signal&&a.signal.aborted)return s(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(){s(new TypeError("Network request failed"))},i.ontimeout=function(){s(new TypeError("Network request failed"))},i.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},i.open(a.method,a.url,!0),"include"===a.credentials?i.withCredentials=!0:"omit"===a.credentials&&(i.withCredentials=!1),"responseType"in i&&o&&(i.responseType="blob"),a.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),i.onreadystatechange=function(){4===i.readyState&&a.signal.removeEventListener("abort",u)}),i.send(void 0===a._bodyInit?null:a._bodyInit)}))}O.polyfill=!0,e.fetch||(e.fetch=O,e.Headers=d,e.Request=_,e.Response=$),t.Headers=d,t.Request=_,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,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,s=e.credentials,a=e.app,i=e.query,u=e.headers,l=s?n.replace("//","//"+s+"@"):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(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),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};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,misc.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,s=void 0===o?null:o,a=e.showFilter,i=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,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,p,f,g)):(e((0,value.setValue)(t,r,s,i,l,p,f,g)),v&&(p===constants$1.componentTypes.dynamicRangeSlider?e((0,value.setInternalValue)((0,transform.getHistogramComponentID)(t),r,p,f,g)):e((0,value.setInternalValue)(t+"__internal",r,p,f,g)))),e((0,misc.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(s,i){var u=i(),l=(0,helper.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 m=n({query:n({},d)},h);if(!(0,helper.compareQueries)(f[e],m))if(s((0,misc.logQuery)(e,m)),u.config&&u.config.enableAppbase){var g,y=u.props[e]||{},v=y.aggregationField;transform.componentToTypeMap[y.componentType]===constants$1.queryTypes.term&&(v=y.dataField);var _=(0,transform.getRSQuery)(e,(0,transform.extractPropsFromState)(u,e,{from:h.from,after:u.aggregations[e]&&u.aggregations[e][v]&&u.aggregations[e][v].after_key||void 0}));g=n(a({},e,_),(0,transform.getDependentQueries)(i(),e,[])),s(p({query:Object.keys(g).map((function(e){return g[e]})),orderOfQueries:[e],appendToHits:r,appendToAggs:o}))}else{s(c([{preference:u.config&&u.config.analyticsConfig&&u.config.analyticsConfig.userId?u.config.analyticsConfig.userId+"_"+e:e},m],[e],r,!1,o))}}},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(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 s=n({},e,{deepPaginationConfig:{cursor:r},deepPagination:!0,size:o<1e3?o:1e3,sortField:"_id",sortBy:"asc"});return delete s.from,s}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?a(e(t,r[r.length-1]._id,n[t].hits.total.value,[].concat(i(s),i(r)))):s})).catch((function(e){console.error("Error fetching data to export! ",e)}))}return console.error("Error fetching data to export!")}};var r=s(analytics),o=s(graphQL);function s(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 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){return function(t,n){var r=n(),o=r.config,s=r.appbaseRef,a=r.props,i=r.internalValues,u=o&&o.enableAppbase,l=a[e]||{},c=i[e],p=c&&c.value||"";if(u&&(l.enablePopularSuggestions||l.enableQuerySuggestions)){if(o.mongodb)return void t((0,misc.setDefaultPopularSuggestions)([],e.split("__internal")[0]));var d=(0,utils.getSuggestionQuery)(n,e);s.getQuerySuggestions(d).then((function(n){var r=n[(0,utils.getQuerySuggestionsId)(e)];t(p?(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)}))}}}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 s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=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,m=d.headers,g=d.analytics,y=d.selectedValues,v={},_=[constants$1.componentTypes.dataSearch,constants$1.componentTypes.categorySearch],b=a&&-1!==_.indexOf(u);if(f.analytics){if(f.analyticsConfig.suggestionAnalytics&&b){var $=g.suggestionsSearchValue;!(!f.analyticsConfig.emptyQuery&&!$)&&(v={"X-Search-Query":$||""})}else{var C=g.searchValue,O=g.searchId,T=(0,r.default)(y);if(O)v=n({"X-Search-Id":O,"X-Search-Query":C||""},T&&{"X-Search-Filters":T});else{var S=!(!f.analyticsConfig.emptyQuery&&!C);v=n(S&&{"X-Search-Query":C||""},T&&{"X-Search-Filters":T})}}f.analyticsConfig.userId&&(v["X-User-Id"]=f.analyticsConfig.userId),f.analyticsConfig.customEvents&&(v["X-Search-CustomEvent"]=(0,analytics.parseCustomEvents)(f.analyticsConfig.customEvents))}if(t.forEach((function(e){c((0,misc.setLoading)(e,!0)),c((0,misc.setError)(e,null))})),f.graphQLUrl){var w={graphQLUrl:f.graphQLUrl,url:f.url,credentials:f.credentials,app:f.app,query:e,headers:m};l(h.transformRequest,w).then((function(e){(0,o.default)(e).then((function(e){(0,utils.handleResponseMSearch)({res:e,isSuggestionsQuery:b,orderOfQueries:t,appendToHits:s,appendToAggs:i},p,c)})).catch((function(e){(0,utils.handleError)({orderOfQueries:t,error:e},p,c)}))})).catch((function(e){(0,utils.handleError)({orderOfQueries:t,error:e},p,c)}))}else h.setHeaders(n({},m,v)),h.msearch({type:"*"===f.type?"":f.type,body:e}).then((function(e){(0,utils.handleResponseMSearch)({res:e,isSuggestionsQuery:b,orderOfQueries:t,appendToHits:s,appendToAggs:i},p,c)})).catch((function(e){(0,utils.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,s=e.appendToHits,a=void 0!==s&&s,i=e.isSuggestionsQuery,l=void 0!==i&&i,c=e.searchComponentID,p=e.appendToAggs,d=void 0!==p&&p;return function(e,s){var i=s(),p=i.appbaseRef,h=i.config,f=i.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};if(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;var y=h.analyticsConfig.enableSearchRelevancy;g.enableSearchRelevancy=(0,utils.isPropertyDefined)(y)?y:void 0,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(u(c)),p.reactiveSearch(r,g,g.queryParams).then((function(n){(0,utils.handleResponse)({res:n,orderOfQueries:o,appendToHits:a,appendToAggs:d,query:r,queryId:t},s,e)})).catch((function(n){(0,utils.handleError)({orderOfQueries:o,error:n,queryId:t},s,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],s=arguments[4],u=arguments[5];return function(l,h){var f=h(),m=f.queryLog,g=f.config,y=f.mapData,v=f.watchMan,_=f.dependencyTree,b=f.queryList,$=f.queryOptions,C=f.queryListener,O=f.props,T=f.internalValues,S=f.lock,w=f.selectedValues,P=g.initialQueriesSyncTime||50,E=g.initialTimestamp,R=u||(new Date).getTime();g.queryLockConfig instanceof Object&&(P=g.queryLockConfig.lockTime,E=g.queryLockConfig.initialTimestamp);var k=[e],I=[],x={},A=[],L=g&&g.enableAppbase;if(t){var j=v[e]||[];k=[].concat(i(k),i(j))}var V={match_all:{}};if(k.forEach((function(t){var o=(0,helper.buildQuery)(t,_,b,$),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({},V));var d=void 0;if((O[t]?O[t].componentType:null)===constants$1.componentTypes.reactiveList){var f=w[t]?w[t].value:void 0,v=O[t];void 0!==f&&v&&(d=f>0?(f-1)*(v.size||10):0)}var S=n({query:n({},u)},c,$[t],{from:d}),P=n({query:n({},u)},c,$[t],{from:d}),E=m[t];if(r||!(0,helper.compareQueries)(S,E,!1)){A=[].concat(i(A),[t]);var k=Object.keys(y).includes(t);if(k&&l((0,misc.setLastUsedAppbaseQuery)(a({},t,{queryId:R}))),l((0,misc.logQuery)(t,P)),k&&y[t].query){var j=S.query;S.query={bool:{must:[j,y[t].query]}},y[t].persistMapQuery||l((0,maps.updateMapData)(e,null,!1));var M=h().combinedLog;if((0,helper.compareQueries)(M[t],S))return;l((0,misc.logCombinedQuery)(t,S))}if((0,utils.executeQueryListener)(C[t],E,S),L){var Q=void 0,D=e.endsWith("__internal"),F=O[e];D&&F&&(0,transform.isSearchComponent)(F.componentType)&&(Q=T[e]&&T[e].value);var N=(0,transform.getRSQuery)(t,(0,transform.extractPropsFromState)(h(),t,n({},Q?{value:Q}:null,s?{from:s.from}:null)));if(N&&(x=n({},x,a({},t,N),(0,transform.getDependentQueries)(h(),t,A))),k){var q=(0,transform.getInternalComponentID)(t),B=(0,transform.getRSQuery)(q,(0,transform.extractPropsFromState)(h(),q,s?{from:s.from}:null));B&&(x[q]=n({},B,{execute:!1}))}}else{var U=g&&g.analyticsConfig&&g.analyticsConfig.userId?g.analyticsConfig.userId+"_"+t:t;I=[].concat(i(I),[{preference:U},S])}}}})),L&&(I=Object.keys(x).map((function(e){return x[e]}))),I.length)if(L){var M=[constants$1.componentTypes.dataSearch,constants$1.componentTypes.categorySearch],Q=e.endsWith("__internal")&&-1!==M.indexOf(o);(new Date).getTime()-E<P?(S&&!g.queryLockConfig||setTimeout((function(){var e=[],t=!1,r="",o={},s={},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),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(u.orderOfQueries)&&u.orderOfQueries.forEach((function(t){o[t.id]?o[t.id]=!0:e=[t].concat(i(e))}))}));var u=Object.values(s);u.length&&l(p({query:u,orderOfQueries:e,isSuggestionsQuery:t,searchComponentID:r})),d=[],l((0,utils.updateStoreConfig)({queryLockConfig:void 0}))}),P),l((0,utils.updateStoreConfig)({lock:!0})),d.push({query:I,orderOfQueries:A,isSuggestionsQuery:Q,searchComponentID:e})):l(p({queryId:R,query:I,orderOfQueries:A,isSuggestionsQuery:Q,searchComponentID:e}))}else l(c(I,A,!1,e.endsWith("__internal"),void 0,o))}}}));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,t){return function(n){n(function(e){return{type:constants.ADD_COMPONENT,component:e}}(e)),n(function(e,t){return{type:constants.SET_REGISTERED_COMPONENT_TIMESTAMP,component:e,timestamp:t}}(e,t))}},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,s=e.isSuggestionClick;t?o.click({queryID:o.getQueryID(),objects:r({},t,n+1),isSuggestionClick:s}):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(),s=o.config,a=o.headers,i=o.appbaseRef,u=i.url,l=i.protocol,c=i.credentials,p=s.app,d=s.mongodb,h=(l+"://"+u||"").replace(/\/+$/,""),f={headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(c)})},m="",g=function(e,t){m+=m?"&"+e+"="+t:e+"="+t};return s.analyticsConfig&&s.analyticsConfig.userId&&g("user_id",s.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,s){var a=s(),i=a.config,u=a.analytics.searchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=a.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,s){var a=s(),i=a.config,u=a.analytics.suggestionsSearchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=a.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(),s=o.appbaseRef,a=s.url,i=s.protocol,u=o.analyticsRef,l=o.config,c=(i+"://"+a).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 s=t[o];if(e.call(r,s,o,t))return s;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),s=g(actions),a=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,_=i.default,b=c.default,$={valueReducer:p.default,queryOptionsReducer:h.default,queryReducer:d.default,dependencyTreeReducer:f.default,propsReducer:m.default};t.helper=a,t.causes=b,t.suggestions=_,t.Actions=s,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;function _regeneratorRuntime(){_regeneratorRuntime=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",i=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var s=t&&t.prototype instanceof g?t:g,a=Object.create(s.prototype),i=new R(r||[]);return o(a,"_invoke",{value:S(e,n,i)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var d="suspendedStart",h="executing",f="completed",m={};function g(){}function y(){}function v(){}var _={};l(_,a,(function(){return this}));var b=Object.getPrototypeOf,$=b&&b(b(k([])));$&&$!==n&&r.call($,a)&&(_=$);var C=v.prototype=g.prototype=Object.create(_);function O(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(o,s,a,i){var u=p(e[o],e,s);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,i)}),(function(e){n("throw",e,a,i)})):t.resolve(c).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,i)}))}i(u.arg)}var s;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return s=s?s.then(o,o):o()}})}function S(t,n,r){var o=d;return function(s,a){if(o===h)throw new Error("Generator is already running");if(o===f){if("throw"===s)throw a;return{value:e,done:!0}}for(r.method=s,r.arg=a;;){var i=r.delegate;if(i){var u=w(i,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var l=p(t,n,r);if("normal"===l.type){if(o=r.done?f:"suspendedYield",l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=f,r.method="throw",r.arg=l.arg)}}}function w(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,w(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var s=p(o,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,m;var a=s.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function P(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function k(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,s=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,o(C,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=l(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,u,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},O(T.prototype),l(T.prototype,i,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,r,o,s){void 0===s&&(s=Promise);var a=new T(c(e,n,r,o),s);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(C),l(C,u,"Generator"),l(C,a,(function(){return this})),l(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=k,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return i.type="throw",i.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var s=o;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=e,a.arg=t,s?(this.method="next",this.next=s.finallyLoc,m):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),m},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),E(n),m}},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;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:k(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function asyncGeneratorStep(e,t,n,r,o,s,a){try{var i=e[s](a),u=i.value}catch(e){return void n(e)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function a(e){asyncGeneratorStep(s,r,o,a,i,"next",e)}function i(e){asyncGeneratorStep(s,r,o,a,i,"throw",e)}a(void 0)}))}}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={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[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)}
2
2
  /*!
3
3
  * isobject <https://github.com/jonschlinkert/isobject>
4
4
  *
@@ -10,14 +10,14 @@
10
10
  *
11
11
  * Copyright (c) 2014-2017, Jon Schlinkert.
12
12
  * Released under the MIT License.
13
- */function isObjectObject(e){return!0===isObject(e)&&"[object Object]"===Object.prototype.toString.call(e)}function isPlainObject$1(e){var t,n;return!1!==isObjectObject(e)&&("function"==typeof(t=e.constructor)&&(!1!==isObjectObject(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}var ObjProto=Object.prototype,toString=ObjProto.toString,hasOwn=ObjProto.hasOwnProperty,FN_MATCH_REGEXP=/^\s*function (\w+)/;function getType(e){var t=null!=e?e.type?e.type:e:null,n=t&&t.toString().match(FN_MATCH_REGEXP);return n&&n[1]}function getNativeType(e){if(null==e)return null;var t=e.constructor.toString().match(FN_MATCH_REGEXP);return t&&t[1]}function noop(){}var stubTrue=function(){return!0},has=function(e,t){return hasOwn.call(e,t)},isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},isArray=Array.isArray||function(e){return"[object Array]"===toString.call(e)},isFunction=function(e){return"[object Function]"===toString.call(e)};function withDefault(e){return Object.defineProperty(e,"def",{value:function(e){return void 0!==e||this.default?isFunction(e)||validateType(this,e)?(isArray(e)?this.default=function(){return[].concat(e)}:isPlainObject$1(e)?this.default=function(){return Object.assign({},e)}:this.default=e,this):(warn(this._vueTypes_name+' - invalid default value: "'+e+'"',e),this):this},enumerable:!1,writable:!1})}function withRequired(e){return Object.defineProperty(e,"isRequired",{get:function(){return this.required=!0,this},enumerable:!1})}function withValidate(e){return Object.defineProperty(e,"validate",{value:function(e){return this.validator=e.bind(this),this},enumerable:!1})}function toType(e,t,n){return void 0===n&&(n=!1),Object.defineProperty(t,"_vueTypes_name",{enumerable:!1,writable:!1,value:e}),withDefault(withRequired(t)),n?withValidate(t):Object.defineProperty(t,"validate",{value:function(){return warn(e+' - "validate" method not supported on this type'),this},enumerable:!1}),isFunction(t.validator)&&(t.validator=t.validator.bind(t)),t}function validateType(e,t,n){void 0===n&&(n=!1);var r,o=e,s=!0;isPlainObject$1(e)||(o={type:e});var a,i=o._vueTypes_name?o._vueTypes_name+" - ":"";if(hasOwn.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 s;isArray(o.type)?(s=o.type.some((function(e){return validateType(e,t,!0)})),r=o.type.map((function(e){return getType(e)})).join(" or ")):s="Array"===(r=getType(o))?isArray(t):"Object"===r?isPlainObject$1(t):"String"===r||"Number"===r||"Boolean"===r||"Function"===r?getNativeType(t)===r:t instanceof o.type}return s?hasOwn.call(o,"validator")&&isFunction(o.validator)?(n&&(a=warn,warn=noop),s=o.validator(t),a&&(warn=a),s||!1!==n||warn(i+"custom validation failed"),s):s:(!1===n&&warn(i+'value "'+t+'" should be of type "'+r+'"'),!1)}var warn=noop,typeDefaults=function(){return{func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}},setDefaults=function(e){var t=typeDefaults();return Object.defineProperty(e,"sensibleDefaults",{enumerable:!1,set:function(e){t=!1===e?{}:!0===e?typeDefaults():e},get:function(){return t}})};function _objectWithoutPropertiesLoose$1(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var VueTypes={get any(){return toType("any",{type:null},!0)},get func(){return toType("function",{type:Function},!0).def(VueTypes.sensibleDefaults.func)},get bool(){return toType("boolean",{type:Boolean},!0).def(VueTypes.sensibleDefaults.bool)},get string(){return toType("string",{type:String},!0).def(VueTypes.sensibleDefaults.string)},get number(){return toType("number",{type:Number},!0).def(VueTypes.sensibleDefaults.number)},get array(){return toType("array",{type:Array},!0).def(VueTypes.sensibleDefaults.array)},get object(){return toType("object",{type:Object},!0).def(VueTypes.sensibleDefaults.object)},get integer(){return toType("integer",{type:Number,validator:function(e){return isInteger(e)}}).def(VueTypes.sensibleDefaults.integer)},get symbol(){return toType("symbol",{type:null,validator:function(e){return"symbol"==typeof e}},!0)},extend:function(e){if(void 0===e&&(e={}),isArray(e))return e.forEach((function(e){return VueTypes.extend(e)})),this;var t=e,n=t.name,r=t.validate,o=void 0!==r&&r,s=t.getter,a=void 0!==s&&s,i=_objectWithoutPropertiesLoose$1(t,["name","validate","getter"]);if(has(VueTypes,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var u,l=i.type,c=i.validator,p=void 0===c?stubTrue:c;if(l&&l._vueTypes_name){delete i.type;for(var d=["type","required","default"],h=0;h<d.length;h+=1){var f=d[h];void 0!==l[f]&&(i[f]=l[f])}o=!1,isFunction(l.validator)&&(i.validator=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.validator.apply(l,t)&&p.apply(this,t)})}if(a)u={get:function(){return toType(n,Object.assign({},i),o)},enumerable:!0,configurable:!1};else{var m=i.validator;u={value:function(){var e=toType(n,Object.assign({},i),o);if(m){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];e.validator=m.bind.apply(m,[e].concat(r))}return e},writable:!1,enumerable:!0,configurable:!1}}return Object.defineProperty(this,n,u)},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 toType(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||warn(this._vueTypes_name+" - "+t),r}})},oneOf:function(e){if(!isArray(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 toType("oneOf",{type:n.length>0?n:null,validator:function(n){var r=-1!==e.indexOf(n);return r||warn(t),r}})},instanceOf:function(e){return toType("instanceOf",{type:e})},oneOfType:function(e){if(!isArray(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t=!1,n=e.reduce((function(e,n){if(isPlainObject$1(n)){if("oneOf"===n._vueTypes_name)return e.concat(n.type||[]);if(isFunction(n.validator))return t=!0,e;if(n.type){if(isArray(n.type))return e.concat(n.type);e.push(n.type)}return e}return e.push(n),e}),[]);if(!t)return toType("oneOfType",{type:n});var r=e.map((function(e){return e&&isArray(e.type)?e.type.map(getType):getType(e)})).reduce((function(e,t){return e.concat(isArray(t)?t:[t])}),[]).join('", "');return this.custom((function(t){var n=e.some((function(e){return"oneOf"===e._vueTypes_name?!e.type||validateType(e.type,t,!0):validateType(e,t,!0)}));return n||warn('oneOfType - value type should be one of "'+r+'"'),n}))},arrayOf:function(e){return toType("arrayOf",{type:Array,validator:function(t){var n=t.every((function(t){return validateType(e,t)}));return n||warn('arrayOf - value must be an array of "'+getType(e)+'"'),n}})},objectOf:function(e){return toType("objectOf",{type:Object,validator:function(t){var n=Object.keys(t).every((function(n){return validateType(e,t[n])}));return n||warn('objectOf - value must be an object of "'+getType(e)+'"'),n}})},shape:function(e){var t=Object.keys(e),n=t.filter((function(t){return e[t]&&!0===e[t].required})),r=toType("shape",{type:Object,validator:function(r){var o=this;if(!isPlainObject$1(r))return!1;var s=Object.keys(r);return n.length>0&&n.some((function(e){return-1===s.indexOf(e)}))?(warn('shape - at least one of required properties "'+n.join('", "')+'" is not present'),!1):s.every((function(n){return-1===t.indexOf(n)?!0===o._vueTypes_isLoose||(warn('shape - object is missing "'+n+'" property'),!1):validateType(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}};setDefaults(VueTypes),VueTypes.utils={validate:function(e,t){return validateType(t,e,!0)},toType:toType};var global$1="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function memoize(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}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,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 s=o.length,a=e.length;switch(a){case 0:case 1:var i=0;for(e=0===a?"":e[0]+" ";i<s;++i)t[i]=n(e,t[i],r).trim();break;default:var u=i=0;for(t=[];i<s;++i)for(var l=0;l<a;++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,s){var a=e+";",i=2*t+3*n+4*s;if(944===i){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===R||2===R&&o(u,1)?"-webkit-"+u+u:u}if(0===R||2===R&&!o(a,1))return a;switch(i){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(S,"$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(_,"tb");break;case 232:u=a.replace(_,"tb-rl");break;case 220:u=a.replace(_,"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,i=(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<i?"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(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===T.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,s).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+s&&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),A(2!==t?r:r.replace(O,"$1"),n,t)}function s(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 a(e,t,n,r,o,s,a,i,l,c){for(var p,d=0,h=t;d<x;++d)switch(p=I[d].call(u,e,h,n,r,o,s,a,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)&&(A=null,e?"function"!=typeof e?R=1:(R=2,A=e):R=0),i}function u(e,n){var i=e;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<x){var u=a(-1,n,i,i,P,w,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,_,$,C=0,O=0,T=0,S=0,I=0,A=0,j=m=h=0,V=0,M=0,Q=0,D=0,F=u.length,N=F-1,q="",B="",U="",H="";V<F;){if(f=u.charCodeAt(V),V===N&&0!==O+S+T+C&&(0!==O&&(f=47===O?10:47),S=T=C=0,F++,N++),0===O+S+T+C){if(V===N&&(0<M&&(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,D=++V;V<F;){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(j=V+1;j<N;++j)switch(u.charCodeAt(j)){case 47:if(42===f&&42===u.charCodeAt(j-1)&&V+2!==j){V=j+1;break e}break;case 10:if(47===f){V=j+1;break e}}V=j}}break;case 91:f++;case 40:f++;case 34:case 39:for(;V++<N&&u.charCodeAt(V)!==f;);}if(0===m)break;V++}switch(m=u.substring(D,V),0===h&&(h=(q=q.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<M&&(q=q.replace(c,"")),f=q.charCodeAt(1)){case 100:case 109:case 115:case 45:M=i;break;default:M=k}if(D=(m=e(i,M,m,f,d+1)).length,0<x&&($=a(3,m,M=t(k,q,Q),i,P,w,D,f,d,p),q=M.join(""),void 0!==$&&0===(D=(m=$.trim()).length)&&(f=0,m="")),0<D)switch(f){case 115:q=q.replace(b,s);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:m=(q=q.replace(g,"$1 $2"))+"{"+m+"}",m=1===R||2===R&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===p&&(B+=m,m="")}else m="";break;default:m=e(i,t(i,q,Q),m,p,d+1)}U+=m,m=Q=M=j=h=0,q="",f=u.charCodeAt(++V);break;case 125:case 59:if(1<(D=(q=(0<M?q.replace(c,""):q).trim()).length))switch(0===j&&(h=q.charCodeAt(0),45===h||96<h&&123>h)&&(D=(q=q.replace(" ",":")).length),0<x&&void 0!==($=a(1,q,i,n,P,w,B.length,p,d,p))&&0===(D=(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(D-1)&&(B+=r(q,h,f,q.charCodeAt(2)))}Q=M=j=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&&(M=1,q+="\0"),0<x*L&&a(0,q,i,n,P,w,B.length,p,d,p),w=1,P++;break;case 59:case 125:if(0===O+S+T+C){w++;break}default:switch(w++,_=u.charAt(V),f){case 9:case 32:if(0===S+C+O)switch(I){case 44:case 58:case 9:case 32:_="";break;default:32!==f&&(_=" ")}break;case 0:_="\\0";break;case 12:_="\\f";break;case 11:_="\\v";break;case 38:0===S+O+C&&(M=Q=1,_="\f"+_);break;case 108:if(0===S+O+C+E&&0<j)switch(V-j){case 2:112===I&&58===u.charCodeAt(V-3)&&(E=I);case 8:111===A&&(E=A)}break;case 58:0===S+O+C&&(j=V);break;case 44:0===O+T+S+C&&(M=1,_+="\r");break;case 34:case 39:0===O&&(S=S===f?0:0===S?f:S);break;case 91:0===S+O+T&&C++;break;case 93:0===S+O+T&&C--;break;case 41:0===S+O+C&&T--;break;case 40:if(0===S+O+C){if(0===h)switch(2*I+3*A){case 533:break;default:h=1}T++}break;case 64:0===O+T+S+C+j+m&&(m=1);break;case 42:case 47:if(!(0<S+C+T))switch(O){case 0:switch(2*f+3*u.charCodeAt(V+1)){case 235:O=47;break;case 220:D=V,O=42}break;case 42:47===f&&42===I&&D+2!==V&&(33===u.charCodeAt(D+2)&&(B+=u.substring(D,V+1)),_="",O=0)}}0===O&&(q+=_)}A=I,I=f,V++}if(0<(D=B.length)){if(M=i,0<x&&(void 0!==($=a(2,B,M,n,P,w,D,p,d,p))&&0===(B=$).length))return H+B+U;if(B=M.join(",")+"{"+B+"}",0!=R*E){switch(2!==R||o(B,2)||(E=0),E){case 111:B=B.replace(v,":-moz-$1")+B;break;case 112:B=B.replace(y,"::-webkit-input-$1")+B.replace(y,"::-moz-$1")+B.replace(y,":-ms-input-$1")+B}E=0}}return H+B+U}(k,i,n,0,0);return 0<x&&(void 0!==(u=a(-2,p,i,i,P,w,p.length,0,0,0))&&(p=u)),"",E=0,w=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,_=/[svh]\w+-[tblr]{2}/,b=/\(\s*(.*)\s*\)/g,$=/([\s\S]*?);/g,C=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,w=1,P=1,E=0,R=1,k=[],I=[],x=0,A=null,L=0;return u.use=function e(t){switch(t){case void 0:case null:x=I.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:I[x++]=t;break;case Boolean:L=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,s,a,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=/[A-Z]|^ms/g,processStyleName=memoize((function(e){return e.replace(hyphenateRegex,"-$&").toLowerCase()})),processStyleValue=function(e,t){return null==t||"boolean"==typeof t?"":1===unitlessKeys[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 s=t[r];if(null!=s){var a=void 0;switch(typeof s){case"boolean":break;case"function":a=e([s()]);break;case"object":if(Array.isArray(s))a=e(s);else for(var i in a="",s)s[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=s}a&&(o&&(o+=" "),o+=a)}}return o},isBrowser="undefined"!=typeof document;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 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=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(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,s=stylisRuleSheet((function(e){n+=e,isBrowser&&i.insert(e,l)}));void 0!==t.prefix&&(o={prefix:t.prefix});var a={registered:{},inserted:{},nonce:t.nonce,key:r},i=new StyleSheet(t);isBrowser&&i.inject();var u=new stylis_min(o);u.use(t.stylisPlugins)(s);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+=processStyleName(n)+":"+processStyleValue(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+=processStyleName(n)+":"+processStyleValue(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,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return s.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===a.inserted[p]&&(n="",u(e,t),a.inserted[p]=n)}var _=function(){var e=y.apply(this,arguments),t=r+"-"+p;return void 0===a.registered[t]&&(a.registered[t]=d),v("."+t,e),t};function b(e,t){var n="";return t.split(" ").forEach((function(t){void 0!==a.registered[t]?e.push(t):n+=t+" "})),n}function $(e,t){var n=[],r=b(n,e);return n.length<2?e:r+_(n,t)}function C(e){a.inserted[e]=!0}if(isBrowser){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 T={flush:function(){isBrowser&&(i.flush(),i.inject()),a.inserted={},a.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:b,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:_,sheet:i,caches:a};return e.__SECRET_EMOTION__=T,T}var context=void 0!==global$1?global$1:{},_createEmotion=createEmotion(context),flush=_createEmotion.flush,hydrate=_createEmotion.hydrate,cx=_createEmotion.cx,merge=_createEmotion.merge,getRegisteredStyles=_createEmotion.getRegisteredStyles,injectGlobal=_createEmotion.injectGlobal,keyframes=_createEmotion.keyframes,css=_createEmotion.css,sheet=_createEmotion.sheet,caches=_createEmotion.caches,index=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},nanoAssign_common=index,STYLES_KEY="__emotion_styles";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 stringifyClass(e){return Array.isArray(e)?e.join(" "):"object"===_typeof(e)?Object.keys(e).filter((function(t){return Boolean(e[t])})).join(" "):e}var index$1=function(e,t){var n,r,o,s;void 0!==t&&(n=t.e,r=t.label,o=t.target,s=t.props);var a=e.__emotion_real===e,i=void 0===n&&a&&e.__emotion_base||e;return function(){var t=a&&void 0!==e[STYLES_KEY]?e[STYLES_KEY].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:s,render:function(r,s){var a=s.data,i=s.children,u=s.props,l=s.injections,c="",p=[],d=stringifyClass(a.class),h={};for(var f in a.attrs)"$"!==f[0]&&(h[f]=a.attrs[f]);if(d&&(c+=void 0===n?getRegisteredStyles(p,d):"".concat(d," ")),void 0===n){var m={mergedProps:nanoAssign_common({theme:l.theme},u)};c+=css.apply(m,t.concat(p))}else c+=n;return void 0!==o&&(c+=" ".concat(o)),r(e,nanoAssign_common({},a,{attrs:h,class:c}),i)}};return h[STYLES_KEY]=t,h.__emotion_base=i,h.__emotion_real=h,Object.defineProperty(h,"toString",{enumerable:!1,value:function(){return".".concat(o)}}),h}};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,s=(1-Math.abs(2*n-1))*t,a=s*(1-Math.abs(o%2-1)),i=0,u=0,l=0;o>=0&&o<1?(i=s,u=a):o>=1&&o<2?(i=a,u=s):o>=2&&o<3?(u=s,l=a):o>=3&&o<4?(u=a,l=s):o>=4&&o<5?(i=a,l=s):o>=5&&o<6&&(i=s,l=a);var c=n-s/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 s=rgbaRegex.exec(t);if(s)return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10),alpha:parseFloat(""+s[4])};var a=hslRegex.exec(t);if(a){var i="rgb("+hslToRgb(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[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,s=Math.max(n,r,o),a=Math.min(n,r,o),i=(s+a)/2;if(s===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var u=s-a,l=i>.5?u/(2-s-a):u/(s+a);switch(s){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,_templateObject6,_templateObject7,_templateObject8,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 css(_templateObject5||(_templateObject5=_taggedTemplateLiteralLoose(["\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,curriedDarken(.1,t.colors.primaryColor))},large=function(){return css(_templateObject6||(_templateObject6=_taggedTemplateLiteralLoose(["\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"])))},disabled=function(e){var t=e.theme;return css(_templateObject7||(_templateObject7=_taggedTemplateLiteralLoose(["\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?curriedLighten(.1,t.colors.backgroundColor):"#fafafa",t.colors.backgroundColor?curriedLighten(.2,t.colors.backgroundColor):"#fafafa")},Button=index$1("button")(_templateObject8||(_templateObject8=_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){return e.theme.colors.backgroundColor||"#eee"}),(function(e){return e.theme.colors.textColor}),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedDarken(.1,t.colors.backgroundColor):"#ccc"}),(function(e){return rgba(e.theme.colors.primaryColor,.6)}),(function(e){return"0 0 0 2px "+rgba(e.theme.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"});VueTypes.sensibleDefaults=!1;var reactKeyType=VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.string),VueTypes.object,VueTypes.arrayOf(VueTypes.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:VueTypes.any,bool:VueTypes.bool,boolRequired:VueTypes.bool.isRequired,components:VueTypes.arrayOf(VueTypes.string),children:VueTypes.any,compoundClause:VueTypes.oneOf(["filter","must"]),data:VueTypes.arrayOf(VueTypes.object),dataFieldArray:VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.string)]).isRequired,dataNumberBox:VueTypes.shape({label:VueTypes.string,start:VueTypes.number.isRequired,end:VueTypes.number.isRequired}).isRequired,date:VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.string)]),dateObject:VueTypes.object,excludeFields:VueTypes.arrayOf(VueTypes.string),fieldWeights:VueTypes.arrayOf(VueTypes.number),filterLabel:VueTypes.string,func:VueTypes.func,funcRequired:VueTypes.func.isRequired,fuzziness:VueTypes.oneOf([0,1,2,"AUTO"]),headers:VueTypes.object,hits:VueTypes.arrayOf(VueTypes.object),iconPosition:VueTypes.oneOf(["left","right"]),includeFields:VueTypes.arrayOf(VueTypes.string),labelPosition:VueTypes.oneOf(["left","right","top","bottom"]),number:VueTypes.number,options:VueTypes.oneOfType([VueTypes.arrayOf(VueTypes.object),VueTypes.object]),paginationAt:VueTypes.oneOf(["top","bottom","both"]),range:VueTypes.shape({start:VueTypes.number.isRequired,end:VueTypes.number.isRequired}),rangeLabels:VueTypes.shape({start:VueTypes.string.isRequired,end:VueTypes.string.isRequired}),react:VueTypes.shape({and:reactKeyType,or:reactKeyType,not:reactKeyType}),selectedValues:VueTypes.object,selectedValue:VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.string),VueTypes.arrayOf(VueTypes.object),VueTypes.object,Number,VueTypes.arrayOf(Number)]),suggestions:VueTypes.arrayOf(VueTypes.object),supportedOrientations:VueTypes.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),sortBy:VueTypes.oneOf(["asc","desc"]),sortOptions:VueTypes.arrayOf(VueTypes.shape({label:VueTypes.string,dataField:VueTypes.string,sortBy:VueTypes.string})),sortByWithCount:VueTypes.oneOf(["asc","desc","count"]),stats:VueTypes.arrayOf(VueTypes.object),string:VueTypes.string,stringArray:VueTypes.arrayOf(VueTypes.string),stringOrArray:VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.string)]),stringRequired:VueTypes.string.isRequired,style:VueTypes.object,themePreset:VueTypes.oneOf(["light","dark"]),queryFormatSearch:VueTypes.oneOf(["and","or"]),queryFormatNumberBox:VueTypes.oneOf(["exact","lte","gte"]),params:VueTypes.object.isRequired,props:VueTypes.object,rangeLabelsAlign:VueTypes.oneOf(["left","right"]),title:VueTypes.oneOfType([VueTypes.string,VueTypes.any]),tooltipTrigger:VueTypes.oneOf(["always","none","hover"]),location:VueTypes.custom(validateLocation),unit:VueTypes.oneOf(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),value:VueTypes.string.def(void 0),analyticsConfig:VueTypes.shape({emptyQuery:VueTypes.bool,suggestionAnalytics:VueTypes.bool,userId:VueTypes.string,customEvents:VueTypes.object}),appbaseConfig:VueTypes.shape({recordAnalytics:VueTypes.bool,emptyQuery:VueTypes.bool,suggestionAnalytics:VueTypes.bool,enableQueryRules:VueTypes.bool,enableSearchRelevancy:VueTypes.bool,userId:VueTypes.string,useCache:VueTypes.bool,customEvents:VueTypes.object,enableTelemetry:VueTypes.bool.def(!0),queryParams:VueTypes.object}).def({}),mongodb:VueTypes.shape({db:VueTypes.string,collection:VueTypes.string}),endpointConfig:VueTypes.shape({url:VueTypes.string.isRequired,method:VueTypes.string,headers:VueTypes.object,body:VueTypes.object})},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:VueTypes.bool,prevLabel:types.string,nextLabel:types.string},render:function(e,t){var n=arguments[0],r=t.props,o=function(){r.currentPage&&r.setPage(r.currentPage-1)},s=function(){r.currentPage<r.totalPages-1&&r.setPage(r.currentPage+1)};if(!r.totalPages)return null;var a=getClassName(r.innerClass,"button"),i=0===r.currentPage,u=a||i?a+" "+(i?"active":""):"",l=function(e){var t=r.pages,o=r.currentPage,s=r.totalPages,i=r.setPage,u=r.showEndPage,l="start"===e?getStartPage(t,o,u):Math.max(2,Math.ceil(s-(t-1)/2+1)),c=[],p=l;if(l<=s){var d=t<s?l+(t-1):s+1;u&&(d="start"===e?l+(Math.ceil(t/2)-t%2):s+1),o>s-t+2&&(l=Math.max(2,s-t+2),d=l+t);for(var h=function(e){var t=o===e-1,r=n(Button,{class:a||t?a+" "+(t?"active":""):"",attrs:{primary:t,tabIndex:"0",alt:"page-"+e},on:{keyPress:function(t){return handleA11yAction(t,(function(){return i(e-1)}))},click:function(){return i(e-1)}}},[e]);e<=s+1&&(c.push(r),e===Math.min(s+1,d)-1&&(p=e))},f=l;f<Math.min(s+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:pagination+" "+getClassName(r.innerClass,"pagination")},[n(Button,{class:getClassName(r.innerClass,"button")||"",attrs:{disabled:0===r.currentPage,tabIndex:"0"},on:{keyPress:function(e){return handleA11yAction(e,o)},click:o}},[r.prevLabel||"Prev"]),n(Button,{class:u,attrs:{primary:i,tabIndex:"0"},on:{keyPress:function(e){return handleA11yAction(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(Button,{class:getClassName(r.innerClass,"button")||"",attrs:{disabled:r.currentPage>=r.totalPages-1,tabIndex:"0"},on:{keyPress:function(e){return handleA11yAction(e,s)},click:s}},[r.nextLabel||"Next"])])}},_templateObject$1;Pagination.install=function(e){e.component(Pagination.name,Pagination)};var PoweredByImage=index$1("img")(_templateObject$1||(_templateObject$1=_taggedTemplateLiteralLoose(["\n\twidth: 110px;\n"]))),PoweredBy={functional:!0,render:function(e){return e("a",{attrs:{href:"https://appbase.io/",target:"_blank",rel:"noopener noreferrer"}},[e(PoweredByImage,{attrs:{src:"https://cdn.jsdelivr.net/gh/appbaseio/cdn@d2ec210045e59104ee5485841fa17b23fc83f097/appbase/logos/rbc-logo.svg"}})])}},hasOwn$1=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$1.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 s;return _extends({},r,((s={})[o]=e[o](t,n),s))}),{})};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 s=r;n(r=o,s)}}))}(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()}}}},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$1=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.$scopedSlots||t.$props).render;return n?n(e):null},hasCustomRenderer=function(e){void 0===e&&(e={});var t=(e.$scopedSlots||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))},getQuerySuggestionsComponent=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},hasQuerySuggestionsRenderer=function(e){void 0===e&&(e={});var t=e.$scopedSlots||e.$props,n=t.renderQuerySuggestions,r=t.renderPopularSuggestions;return Boolean(r)||Boolean(n)},getCamelCase=function(e){void 0===e&&(e="");var t=e.split("-").map((function(e,t){return t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e})).join("");return["u-r-l-params"].includes(e)&&(t=t[0].toUpperCase()+t.substring(1)),t||""},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=[],s=0;s<r.length;s+=1)isNumeric(r[s])?o.push(getCharFromCharCode(+r[s])):o.push(r[s]);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:VueTypes.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.$timestamp);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.$timestamp),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(t){return t(e,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots: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(h){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]))})),h(component,{attrs:componentProps,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots}))}}};function _extends$2(){return(_extends$2=Object.assign?Object.assign.bind():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 normalMerge=["attrs","props","domProps"],toArrayMerge=["class","style","directives"],functionalMerge=["on","nativeOn"],mergeJsxProps=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==normalMerge.indexOf(n))e[n]=_extends$2({},e[n],t[n]);else if(-1!==toArrayMerge.indexOf(n)){var r=e[n]instanceof Array?e[n]:[e[n]],o=t[n]instanceof Array?t[n]:[t[n]];e[n]=[].concat(r,o)}else if(-1!==functionalMerge.indexOf(n))for(var s in t[n])if(e[n][s]){var a=e[n][s]instanceof Array?e[n][s]:[e[n][s]],i=t[n][s]instanceof Array?t[n][s]:[t[n][s]];e[n][s]=[].concat(a,i)}else e[n][s]=t[n][s];else if("hook"===n)for(var u in t[n])e[n][u]=e[n][u]?mergeFn(e[n][u],t[n][u]):t[n][u];else e[n]=t[n];else e[n]=t[n];return e}),{})},mergeFn=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},helper$1=mergeJsxProps,_templateObject$2,Title=index$1("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,_templateObject4$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=css(_templateObject2$1||(_templateObject2$1=_taggedTemplateLiteralLoose(["\n\twidth: 100px;\n\theight: 100px;\n"]))),Image=index$1("div")(_templateObject3$1||(_templateObject3$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=index$1("a")(_templateObject4$1||(_templateObject4$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,t){var n=t.props,r=t.children,o=arguments[0];return o("div",helper$1([{attrs:{className:container}},n]),[r])}},_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=index$1("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=index$1("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,t){var n=t.props,r=t.children,o=arguments[0];return o("div",helper$1([{attrs:{className:container$1}},n]),[r])}},_templateObject$5,_templateObject2$3,_templateObject3$3,_templateObject4$2,_templateObject5$1,_templateObject6$1,_templateObject7$1,_templateObject8$1,_templateObject9,_templateObject10,_templateObject11;ResultCardsWrapper.install=function(e){e.component(ResultCardsWrapper.name,ResultCardsWrapper)};var leftLabel=css(_templateObject$5||(_templateObject$5=_taggedTemplateLiteralLoose(["\n\tflex-direction: row;\n\talign-items: center;\n"]))),rightLabel=css(_templateObject2$3||(_templateObject2$3=_taggedTemplateLiteralLoose(["\n\tflex-direction: row-reverse;\n\talign-items: center;\n"]))),topLabel=css(_templateObject3$3||(_templateObject3$3=_taggedTemplateLiteralLoose(["\n\tflex-direction: column;\n"]))),bottomLabel=css(_templateObject4$2||(_templateObject4$2=_taggedTemplateLiteralLoose(["\n\tflex-direction: column-reverse;\n"]))),border=function(e){var t=e.theme.colors;return css(_templateObject5$1||(_templateObject5$1=_taggedTemplateLiteralLoose(["\n\tborder: 1px solid ",";\n"])),t.borderColor||"#ccc")},Flex=index$1("div")(_templateObject6$1||(_templateObject6$1=_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&&css(_templateObject7$1||(_templateObject7$1=_taggedTemplateLiteralLoose(["\n\t\t\tjustify-content: ",";\n\t\t"])),e.justifyContent)}),(function(e){return e.alignItems&&css(_templateObject8$1||(_templateObject8$1=_taggedTemplateLiteralLoose(["\n\t\t\talign-items: ",";\n\t\t"])),e.alignItems)}),(function(e){return e.flex&&css(_templateObject9||(_templateObject9=_taggedTemplateLiteralLoose(["\n\t\t\tflex: ",";\n\t\t"])),e.flex)}),(function(e){return e.direction&&css(_templateObject10||(_templateObject10=_taggedTemplateLiteralLoose(["\n\t\t\tflex-direction: ",";\n\t\t"])),e.direction)}),(function(e){return e.basis&&css(_templateObject11||(_templateObject11=_taggedTemplateLiteralLoose(["\n\t\t\tflex-basis: ",";\n\t\t"])),e.basis)}),(function(e){var t=e.theme.colors;return t.borderColor||curriedLighten(.3,t.textColor)}),(function(e){return e.theme.colors.textColor})),_templateObject$6,_templateObject2$4,resultStats=css(_templateObject$6||(_templateObject$6=_taggedTemplateLiteralLoose(["\n\tflex-grow: 1;\n\tfont-size: 0.82rem;\n"]))),sortOptions=css(_templateObject2$4||(_templateObject2$4=_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),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,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 s=this.defaultPage||-1;s>=0&&(this.currentPageState=s,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:VueTypes.number.def(0),includeFields:types.includeFields,className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,aggregationField:types.string,aggregationSize:VueTypes.number,defaultQuery:types.func,defaultSortOption:types.string,excludeFields:types.excludeFields,innerClass:types.style,listClass:VueTypes.string.def(""),loader:types.title,render:types.func,renderItem:types.func,renderNoResults:VueTypes.any.def("No Results found."),renderError:types.title,renderResultStats:types.func,pages:VueTypes.number.def(5),pagination:VueTypes.bool.def(!1),infiniteScroll:VueTypes.bool.def(!0),paginationAt:VueTypes.oneOf(["top","bottom","both"]).def("bottom"),react:types.react,scrollOnChange:VueTypes.bool.def(!0),showResultStats:VueTypes.bool.def(!0),showEndPage:VueTypes.bool.def(!1),size:VueTypes.number.def(10),sortBy:types.sortBy,sortOptions:types.sortOptions,URLParams:VueTypes.bool.def(!1),prevLabel:types.string,nextLabel:types.string,distinctField:types.string,distinctFieldConfig:types.props,index:VueTypes.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.$listeners&&this.$listeners.pageChange},hasResultStatsListener:function(){return this.$listeners&&this.$listeners.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&&!this.pagination?window.addEventListener("scroll",this.scrollHandler):window.removeEventListener("scroll",this.scrollHandler))},pagination:function(e,t){e!==t&&(!e&&this.infiniteScroll?window.addEventListener("scroll",this.scrollHandler):window.removeEventListener("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 s=extractQueryFromCustomQuery(this.$defaultQuery);this.setQueryOptions(this.$props.componentId,_extends({},e,this.getAggsQuery()),!1),this.$defaultQuery?this.updateQuery({componentId:this.internalComponent,query:s},!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=parseHits(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(Flex,{attrs:{labelPosition:this.sortOptions?"right":"left"},class:getClassName$1(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(Pagination,{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(Pagination,{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(Flex,{attrs:{direction:"row-reverse"},class:getClassName$1(this.$props.innerClass,"poweredBy")},[e(PoweredBy)]):null])},methods:{renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?isFunction$1(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+" "+getClassName$1(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(ImpressionTracker$1,{attrs:{hits:this.data}},[o]):o},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.$createElement,t=this.$scopedSlots.renderResultStats||this.$props.renderResultStats;return t&&this.$data.total?t(this.stats):this.stats.numberOfResults?e("p",{class:resultStats+" "+getClassName$1(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?isFunction$1(t)?t():t:e("p",{class:getClassName$1(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])},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,s=this.sortOptions[t].sortBy;r.sort=[(n={},n[o]={order:s},n)],this.sortOptionIndex=t,this.updateComponentProps(this.componentId,{dataField:o,sortBy:s},constants_1$1.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:sortOptions+" "+getClassName$1(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 _extends({},e,{_click_id:t+n})}))},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.aggregationData,r=this.customData,o=this.currentPage,s=this.hits,a=o*e;return{results:parseHits(s)||[],customData:r||{},promotedResults:parseHits(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=_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,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]}},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,s=e.sortOptions,a=e.currentPage,i=e.sortBy;t.from=a?(a-1)*(n||10):0,t.size=n||10;if(s)t.sort=[function(){var e;if(o){var t,n=s.find((function(e){return e.label===o}));if(n)return(t={})[n.dataField]={order:n.sortBy},t}return(e={})[s[0].dataField]={order:s[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.generateQueryOptions=ReactiveList.generateQueryOptions,RLConnected.hasInternalComponent=ReactiveList.hasInternalComponent,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 s=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var i=e.length;a>0&&i>a&&(i=a);for(var u=0;u<i;++u){var l,c,p,d,h=e[u].replace(s,"%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,_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="",s=0,a=0,i=n;r.charAt(0|a)||(i="=",a%1);o+=i.charAt(63&s>>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.');s=s<<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 s=t[o].split("|").find((function(t){return _typeof$1(e[o])===t}));s&&e[o]!==r[s]||n.push(o)}));for(var o="",s=0;s<n.length;s+=1)o+=n[s]+", ";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),s=[];o.forEach((function(e){t[e].required&&s.push(e)})),s.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 s=Array.isArray(t[r].type)?t[r].type:[].concat(t[r].type),a=checkDataType(e[r]);if(!s.includes(a))throw new Error("The property "+r+" is expected with type(s) ["+s.join(", ")+"], but type was set as "+a+".")}))}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,s=void 0===o?"":o,a=t.path,i=void 0===a?"":a,u=t.protocol,l=void 0===u?"":u,c=e.url;"/"===(c=s+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),e.httpRequestTimeout&&(this.httpRequestTimeout=e.httpRequestTimeout),"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 s=o.method,a=o.path,i=o.params,u=o.body,l=o.isRSAPI,c=o.isSuggestionsAPI,p=o.isMongoRequest,d=void 0!==p&&p,h=o.httpRequestTimeout,f=void 0===h?0:h,m=c?".suggestions":t.app,g=u,y=a.endsWith("msearch")||a.endsWith("bulk")?"application/x-ndjson":"application/json",v=Object.assign({},{Accept:"application/json","Content-Type":y},e.headers,t.headers),_=Date.now();t.credentials&&(v.Authorization="Basic "+btoa$1(t.credentials));var b={method:s,headers:v};if(Array.isArray(g)){var $="";g.forEach((function(e){$+=JSON.stringify(e),$+="\n"})),g=$}else g=JSON.stringify(g)||{};0!==Object.keys(g).length&&(b.body=g);var C={},O="";i&&(O="?"+querystring.stringify(i));var T=d?t.protocol+"://"+t.url:t.protocol+"://"+t.url+"/"+m+"/"+a+O;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:T},b)).then((function(e){var t=Object.assign({},e),o=t.url;delete t.url;var s=fetch$1(o||T,Object.assign({},t,{headers:l&&!d?Object.assign({},t.headers,{"x-timestamp":(new Date).getTime()}):t.headers})),a=new Promise((function(e,t){f>0&&setTimeout((function(){t(new Error("Request timeout"))}),f)}));return Promise.race([s,a]).then((function(e){return e.status>=500?r(e):(C=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,s=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&&s===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:_,_headers:C});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 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,s=t.id,a=t.body;delete t.type,delete t.body,delete t.id;var i=void 0;return i=s?o?o+"/"+encodeURIComponent(s):encodeURIComponent(s):o,this.performFetchRequest({method:"POST",path:i,params:t,body:a})}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,s=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(s);return this.performFetchRequest({method:"GET",path:a,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,s=t.id,a=t.body;delete t.type,delete t.id,delete t.body;var i=o+"/"+encodeURIComponent(s)+"/_update";return this.performFetchRequest({method:"POST",path:i,params:t,body:a})}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,s=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(s);return this.performFetchRequest({method:"DELETE",path:a,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 s=void 0;return s=r?r+"/_bulk":"_bulk",this.performFetchRequest({method:"POST",path:s,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 s=void 0;return s=r?r+"/_search":"_search",this.performFetchRequest({method:"POST",path:s,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 s=void 0;return s=r?r+"/_msearch":"_msearch",this.performFetchRequest({method:"POST",path:s,params:t,body:o})}function reactiveSearchApi(e,t,n){var r=removeUndefined(t),o=validateRSQuery(e);if(!0!==o)throw o;var s={settings:r,query:e};return this.mongodb&&Object.assign(s,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch",body:s,headers:getTelemetryHeaders(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb,params:n,httpRequestTimeout:this.httpRequestTimeout||0})}function reactiveSearchv3Api(e,t,n){var r=removeUndefined(t),o=validateRSQuery(e);if(!0!==o)throw o;var s={settings:r,query:e};return this.mongodb&&Object.assign(s,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:s,headers:getTelemetryHeaders(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb,params:n,httpRequestTimeout:this.httpRequestTimeout||0})}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$3(){return(_extends$3=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,s=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.charAt(0|s)||(a="=",s%1);r+=a.charAt(63&o>>8-s%1*8)){if((t=n.charCodeAt(s+=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,s){var a=_extends$3({user_id:t.userID},r,{custom_events:_extends$3({},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$3({},t.headers,{"Content-Type":"application/json",Authorization:"Basic "+btoa$2(t.credentials)}),body:"GET"===e?null:JSON.stringify(a)}).then((function(e){s&&s(null,e)})).catch((function(e){s&&s(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$2={init:initClient};
13
+ */function isObjectObject(e){return!0===isObject(e)&&"[object Object]"===Object.prototype.toString.call(e)}function isPlainObject$1(e){var t,n;return!1!==isObjectObject(e)&&("function"==typeof(t=e.constructor)&&(!1!==isObjectObject(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}var ObjProto=Object.prototype,toString=ObjProto.toString,hasOwn=ObjProto.hasOwnProperty,FN_MATCH_REGEXP=/^\s*function (\w+)/;function getType(e){var t=null!=e?e.type?e.type:e:null,n=t&&t.toString().match(FN_MATCH_REGEXP);return n&&n[1]}function getNativeType(e){if(null==e)return null;var t=e.constructor.toString().match(FN_MATCH_REGEXP);return t&&t[1]}function noop(){}var stubTrue=function(){return!0},has=function(e,t){return hasOwn.call(e,t)},isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},isArray=Array.isArray||function(e){return"[object Array]"===toString.call(e)},isFunction=function(e){return"[object Function]"===toString.call(e)};function withDefault(e){return Object.defineProperty(e,"def",{value:function(e){return void 0!==e||this.default?isFunction(e)||validateType(this,e)?(isArray(e)?this.default=function(){return[].concat(e)}:isPlainObject$1(e)?this.default=function(){return Object.assign({},e)}:this.default=e,this):(warn(this._vueTypes_name+' - invalid default value: "'+e+'"',e),this):this},enumerable:!1,writable:!1})}function withRequired(e){return Object.defineProperty(e,"isRequired",{get:function(){return this.required=!0,this},enumerable:!1})}function withValidate(e){return Object.defineProperty(e,"validate",{value:function(e){return this.validator=e.bind(this),this},enumerable:!1})}function toType(e,t,n){return void 0===n&&(n=!1),Object.defineProperty(t,"_vueTypes_name",{enumerable:!1,writable:!1,value:e}),withDefault(withRequired(t)),n?withValidate(t):Object.defineProperty(t,"validate",{value:function(){return warn(e+' - "validate" method not supported on this type'),this},enumerable:!1}),isFunction(t.validator)&&(t.validator=t.validator.bind(t)),t}function validateType(e,t,n){void 0===n&&(n=!1);var r,o=e,s=!0;isPlainObject$1(e)||(o={type:e});var a,i=o._vueTypes_name?o._vueTypes_name+" - ":"";if(hasOwn.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 s;isArray(o.type)?(s=o.type.some((function(e){return validateType(e,t,!0)})),r=o.type.map((function(e){return getType(e)})).join(" or ")):s="Array"===(r=getType(o))?isArray(t):"Object"===r?isPlainObject$1(t):"String"===r||"Number"===r||"Boolean"===r||"Function"===r?getNativeType(t)===r:t instanceof o.type}return s?hasOwn.call(o,"validator")&&isFunction(o.validator)?(n&&(a=warn,warn=noop),s=o.validator(t),a&&(warn=a),s||!1!==n||warn(i+"custom validation failed"),s):s:(!1===n&&warn(i+'value "'+t+'" should be of type "'+r+'"'),!1)}var warn=noop,typeDefaults=function(){return{func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}},setDefaults=function(e){var t=typeDefaults();return Object.defineProperty(e,"sensibleDefaults",{enumerable:!1,set:function(e){t=!1===e?{}:!0===e?typeDefaults():e},get:function(){return t}})};function _objectWithoutPropertiesLoose$1(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var VueTypes={get any(){return toType("any",{type:null},!0)},get func(){return toType("function",{type:Function},!0).def(VueTypes.sensibleDefaults.func)},get bool(){return toType("boolean",{type:Boolean},!0).def(VueTypes.sensibleDefaults.bool)},get string(){return toType("string",{type:String},!0).def(VueTypes.sensibleDefaults.string)},get number(){return toType("number",{type:Number},!0).def(VueTypes.sensibleDefaults.number)},get array(){return toType("array",{type:Array},!0).def(VueTypes.sensibleDefaults.array)},get object(){return toType("object",{type:Object},!0).def(VueTypes.sensibleDefaults.object)},get integer(){return toType("integer",{type:Number,validator:function(e){return isInteger(e)}}).def(VueTypes.sensibleDefaults.integer)},get symbol(){return toType("symbol",{type:null,validator:function(e){return"symbol"==typeof e}},!0)},extend:function(e){if(void 0===e&&(e={}),isArray(e))return e.forEach((function(e){return VueTypes.extend(e)})),this;var t=e,n=t.name,r=t.validate,o=void 0!==r&&r,s=t.getter,a=void 0!==s&&s,i=_objectWithoutPropertiesLoose$1(t,["name","validate","getter"]);if(has(VueTypes,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var u,l=i.type,c=i.validator,p=void 0===c?stubTrue:c;if(l&&l._vueTypes_name){delete i.type;for(var d=["type","required","default"],h=0;h<d.length;h+=1){var f=d[h];void 0!==l[f]&&(i[f]=l[f])}o=!1,isFunction(l.validator)&&(i.validator=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.validator.apply(l,t)&&p.apply(this,t)})}if(a)u={get:function(){return toType(n,Object.assign({},i),o)},enumerable:!0,configurable:!1};else{var m=i.validator;u={value:function(){var e=toType(n,Object.assign({},i),o);if(m){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];e.validator=m.bind.apply(m,[e].concat(r))}return e},writable:!1,enumerable:!0,configurable:!1}}return Object.defineProperty(this,n,u)},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 toType(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||warn(this._vueTypes_name+" - "+t),r}})},oneOf:function(e){if(!isArray(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 toType("oneOf",{type:n.length>0?n:null,validator:function(n){var r=-1!==e.indexOf(n);return r||warn(t),r}})},instanceOf:function(e){return toType("instanceOf",{type:e})},oneOfType:function(e){if(!isArray(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t=!1,n=e.reduce((function(e,n){if(isPlainObject$1(n)){if("oneOf"===n._vueTypes_name)return e.concat(n.type||[]);if(isFunction(n.validator))return t=!0,e;if(n.type){if(isArray(n.type))return e.concat(n.type);e.push(n.type)}return e}return e.push(n),e}),[]);if(!t)return toType("oneOfType",{type:n});var r=e.map((function(e){return e&&isArray(e.type)?e.type.map(getType):getType(e)})).reduce((function(e,t){return e.concat(isArray(t)?t:[t])}),[]).join('", "');return this.custom((function(t){var n=e.some((function(e){return"oneOf"===e._vueTypes_name?!e.type||validateType(e.type,t,!0):validateType(e,t,!0)}));return n||warn('oneOfType - value type should be one of "'+r+'"'),n}))},arrayOf:function(e){return toType("arrayOf",{type:Array,validator:function(t){var n=t.every((function(t){return validateType(e,t)}));return n||warn('arrayOf - value must be an array of "'+getType(e)+'"'),n}})},objectOf:function(e){return toType("objectOf",{type:Object,validator:function(t){var n=Object.keys(t).every((function(n){return validateType(e,t[n])}));return n||warn('objectOf - value must be an object of "'+getType(e)+'"'),n}})},shape:function(e){var t=Object.keys(e),n=t.filter((function(t){return e[t]&&!0===e[t].required})),r=toType("shape",{type:Object,validator:function(r){var o=this;if(!isPlainObject$1(r))return!1;var s=Object.keys(r);return n.length>0&&n.some((function(e){return-1===s.indexOf(e)}))?(warn('shape - at least one of required properties "'+n.join('", "')+'" is not present'),!1):s.every((function(n){return-1===t.indexOf(n)?!0===o._vueTypes_isLoose||(warn('shape - object is missing "'+n+'" property'),!1):validateType(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}};setDefaults(VueTypes),VueTypes.utils={validate:function(e,t){return validateType(t,e,!0)},toType:toType};var global$1="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function memoize(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}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,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 s=o.length,a=e.length;switch(a){case 0:case 1:var i=0;for(e=0===a?"":e[0]+" ";i<s;++i)t[i]=n(e,t[i],r).trim();break;default:var u=i=0;for(t=[];i<s;++i)for(var l=0;l<a;++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,s){var a=e+";",i=2*t+3*n+4*s;if(944===i){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===R||2===R&&o(u,1)?"-webkit-"+u+u:u}if(0===R||2===R&&!o(a,1))return a;switch(i){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(S,"$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(_,"tb");break;case 232:u=a.replace(_,"tb-rl");break;case 220:u=a.replace(_,"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,i=(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<i?"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(C,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(C,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===T.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,s).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+s&&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),A(2!==t?r:r.replace(O,"$1"),n,t)}function s(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 a(e,t,n,r,o,s,a,i,l,c){for(var p,d=0,h=t;d<x;++d)switch(p=I[d].call(u,e,h,n,r,o,s,a,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)&&(A=null,e?"function"!=typeof e?R=1:(R=2,A=e):R=0),i}function u(e,n){var i=e;if(33>i.charCodeAt(0)&&(i=i.trim()),i=[i],0<x){var u=a(-1,n,i,i,P,w,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,_,$,C=0,O=0,T=0,S=0,I=0,A=0,j=m=h=0,V=0,M=0,Q=0,D=0,F=u.length,N=F-1,q="",B="",U="",H="";V<F;){if(f=u.charCodeAt(V),V===N&&0!==O+S+T+C&&(0!==O&&(f=47===O?10:47),S=T=C=0,F++,N++),0===O+S+T+C){if(V===N&&(0<M&&(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,D=++V;V<F;){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(j=V+1;j<N;++j)switch(u.charCodeAt(j)){case 47:if(42===f&&42===u.charCodeAt(j-1)&&V+2!==j){V=j+1;break e}break;case 10:if(47===f){V=j+1;break e}}V=j}}break;case 91:f++;case 40:f++;case 34:case 39:for(;V++<N&&u.charCodeAt(V)!==f;);}if(0===m)break;V++}switch(m=u.substring(D,V),0===h&&(h=(q=q.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<M&&(q=q.replace(c,"")),f=q.charCodeAt(1)){case 100:case 109:case 115:case 45:M=i;break;default:M=k}if(D=(m=e(i,M,m,f,d+1)).length,0<x&&($=a(3,m,M=t(k,q,Q),i,P,w,D,f,d,p),q=M.join(""),void 0!==$&&0===(D=(m=$.trim()).length)&&(f=0,m="")),0<D)switch(f){case 115:q=q.replace(b,s);case 100:case 109:case 45:m=q+"{"+m+"}";break;case 107:m=(q=q.replace(g,"$1 $2"))+"{"+m+"}",m=1===R||2===R&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=q+m,112===p&&(B+=m,m="")}else m="";break;default:m=e(i,t(i,q,Q),m,p,d+1)}U+=m,m=Q=M=j=h=0,q="",f=u.charCodeAt(++V);break;case 125:case 59:if(1<(D=(q=(0<M?q.replace(c,""):q).trim()).length))switch(0===j&&(h=q.charCodeAt(0),45===h||96<h&&123>h)&&(D=(q=q.replace(" ",":")).length),0<x&&void 0!==($=a(1,q,i,n,P,w,B.length,p,d,p))&&0===(D=(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(D-1)&&(B+=r(q,h,f,q.charCodeAt(2)))}Q=M=j=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&&(M=1,q+="\0"),0<x*L&&a(0,q,i,n,P,w,B.length,p,d,p),w=1,P++;break;case 59:case 125:if(0===O+S+T+C){w++;break}default:switch(w++,_=u.charAt(V),f){case 9:case 32:if(0===S+C+O)switch(I){case 44:case 58:case 9:case 32:_="";break;default:32!==f&&(_=" ")}break;case 0:_="\\0";break;case 12:_="\\f";break;case 11:_="\\v";break;case 38:0===S+O+C&&(M=Q=1,_="\f"+_);break;case 108:if(0===S+O+C+E&&0<j)switch(V-j){case 2:112===I&&58===u.charCodeAt(V-3)&&(E=I);case 8:111===A&&(E=A)}break;case 58:0===S+O+C&&(j=V);break;case 44:0===O+T+S+C&&(M=1,_+="\r");break;case 34:case 39:0===O&&(S=S===f?0:0===S?f:S);break;case 91:0===S+O+T&&C++;break;case 93:0===S+O+T&&C--;break;case 41:0===S+O+C&&T--;break;case 40:if(0===S+O+C){if(0===h)switch(2*I+3*A){case 533:break;default:h=1}T++}break;case 64:0===O+T+S+C+j+m&&(m=1);break;case 42:case 47:if(!(0<S+C+T))switch(O){case 0:switch(2*f+3*u.charCodeAt(V+1)){case 235:O=47;break;case 220:D=V,O=42}break;case 42:47===f&&42===I&&D+2!==V&&(33===u.charCodeAt(D+2)&&(B+=u.substring(D,V+1)),_="",O=0)}}0===O&&(q+=_)}A=I,I=f,V++}if(0<(D=B.length)){if(M=i,0<x&&(void 0!==($=a(2,B,M,n,P,w,D,p,d,p))&&0===(B=$).length))return H+B+U;if(B=M.join(",")+"{"+B+"}",0!=R*E){switch(2!==R||o(B,2)||(E=0),E){case 111:B=B.replace(v,":-moz-$1")+B;break;case 112:B=B.replace(y,"::-webkit-input-$1")+B.replace(y,"::-moz-$1")+B.replace(y,":-ms-input-$1")+B}E=0}}return H+B+U}(k,i,n,0,0);return 0<x&&(void 0!==(u=a(-2,p,i,i,P,w,p.length,0,0,0))&&(p=u)),"",E=0,w=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,_=/[svh]\w+-[tblr]{2}/,b=/\(\s*(.*)\s*\)/g,$=/([\s\S]*?);/g,C=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,w=1,P=1,E=0,R=1,k=[],I=[],x=0,A=null,L=0;return u.use=function e(t){switch(t){case void 0:case null:x=I.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:I[x++]=t;break;case Boolean:L=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,s,a,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=/[A-Z]|^ms/g,processStyleName=memoize((function(e){return e.replace(hyphenateRegex,"-$&").toLowerCase()})),processStyleValue=function(e,t){return null==t||"boolean"==typeof t?"":1===unitlessKeys[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 s=t[r];if(null!=s){var a=void 0;switch(typeof s){case"boolean":break;case"function":a=e([s()]);break;case"object":if(Array.isArray(s))a=e(s);else for(var i in a="",s)s[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=s}a&&(o&&(o+=" "),o+=a)}}return o},isBrowser="undefined"!=typeof document;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 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=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(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,s=stylisRuleSheet((function(e){n+=e,isBrowser&&i.insert(e,l)}));void 0!==t.prefix&&(o={prefix:t.prefix});var a={registered:{},inserted:{},nonce:t.nonce,key:r},i=new StyleSheet(t);isBrowser&&i.inject();var u=new stylis_min(o);u.use(t.stylisPlugins)(s);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+=processStyleName(n)+":"+processStyleValue(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+=processStyleName(n)+":"+processStyleValue(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,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return s.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===a.inserted[p]&&(n="",u(e,t),a.inserted[p]=n)}var _=function(){var e=y.apply(this,arguments),t=r+"-"+p;return void 0===a.registered[t]&&(a.registered[t]=d),v("."+t,e),t};function b(e,t){var n="";return t.split(" ").forEach((function(t){void 0!==a.registered[t]?e.push(t):n+=t+" "})),n}function $(e,t){var n=[],r=b(n,e);return n.length<2?e:r+_(n,t)}function C(e){a.inserted[e]=!0}if(isBrowser){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 T={flush:function(){isBrowser&&(i.flush(),i.inject()),a.inserted={},a.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:b,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:_,sheet:i,caches:a};return e.__SECRET_EMOTION__=T,T}var context=void 0!==global$1?global$1:{},_createEmotion=createEmotion(context),flush=_createEmotion.flush,hydrate=_createEmotion.hydrate,cx=_createEmotion.cx,merge=_createEmotion.merge,getRegisteredStyles=_createEmotion.getRegisteredStyles,injectGlobal=_createEmotion.injectGlobal,keyframes=_createEmotion.keyframes,css=_createEmotion.css,sheet=_createEmotion.sheet,caches=_createEmotion.caches,index=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},nanoAssign_common=index,STYLES_KEY="__emotion_styles";function _typeof$1(e){return(_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})(e)}function stringifyClass(e){return Array.isArray(e)?e.join(" "):"object"===_typeof$1(e)?Object.keys(e).filter((function(t){return Boolean(e[t])})).join(" "):e}var index$1=function(e,t){var n,r,o,s;void 0!==t&&(n=t.e,r=t.label,o=t.target,s=t.props);var a=e.__emotion_real===e,i=void 0===n&&a&&e.__emotion_base||e;return function(){var t=a&&void 0!==e[STYLES_KEY]?e[STYLES_KEY].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:s,render:function(r,s){var a=s.data,i=s.children,u=s.props,l=s.injections,c="",p=[],d=stringifyClass(a.class),h={};for(var f in a.attrs)"$"!==f[0]&&(h[f]=a.attrs[f]);if(d&&(c+=void 0===n?getRegisteredStyles(p,d):"".concat(d," ")),void 0===n){var m={mergedProps:nanoAssign_common({theme:l.theme},u)};c+=css.apply(m,t.concat(p))}else c+=n;return void 0!==o&&(c+=" ".concat(o)),r(e,nanoAssign_common({},a,{attrs:h,class:c}),i)}};return h[STYLES_KEY]=t,h.__emotion_base=i,h.__emotion_real=h,Object.defineProperty(h,"toString",{enumerable:!1,value:function(){return".".concat(o)}}),h}};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,s=(1-Math.abs(2*n-1))*t,a=s*(1-Math.abs(o%2-1)),i=0,u=0,l=0;o>=0&&o<1?(i=s,u=a):o>=1&&o<2?(i=a,u=s):o>=2&&o<3?(u=s,l=a):o>=3&&o<4?(u=a,l=s):o>=4&&o<5?(i=a,l=s):o>=5&&o<6&&(i=s,l=a);var c=n-s/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 s=rgbaRegex.exec(t);if(s)return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10),alpha:parseFloat(""+s[4])};var a=hslRegex.exec(t);if(a){var i="rgb("+hslToRgb(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[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,s=Math.max(n,r,o),a=Math.min(n,r,o),i=(s+a)/2;if(s===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var u=s-a,l=i>.5?u/(2-s-a):u/(s+a);switch(s){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,_templateObject6,_templateObject7,_templateObject8,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 css(_templateObject5||(_templateObject5=_taggedTemplateLiteralLoose(["\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,curriedDarken(.1,t.colors.primaryColor))},large=function(){return css(_templateObject6||(_templateObject6=_taggedTemplateLiteralLoose(["\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"])))},disabled=function(e){var t=e.theme;return css(_templateObject7||(_templateObject7=_taggedTemplateLiteralLoose(["\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?curriedLighten(.1,t.colors.backgroundColor):"#fafafa",t.colors.backgroundColor?curriedLighten(.2,t.colors.backgroundColor):"#fafafa")},Button=index$1("button")(_templateObject8||(_templateObject8=_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){return e.theme.colors.backgroundColor||"#eee"}),(function(e){return e.theme.colors.textColor}),(function(e){var t=e.theme;return t.colors.backgroundColor?curriedDarken(.1,t.colors.backgroundColor):"#ccc"}),(function(e){return rgba(e.theme.colors.primaryColor,.6)}),(function(e){return"0 0 0 2px "+rgba(e.theme.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"});VueTypes.sensibleDefaults=!1;var reactKeyType=VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.string),VueTypes.object,VueTypes.arrayOf(VueTypes.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:VueTypes.any,bool:VueTypes.bool,boolRequired:VueTypes.bool.isRequired,components:VueTypes.arrayOf(VueTypes.string),children:VueTypes.any,compoundClause:VueTypes.oneOf(["filter","must"]),data:VueTypes.arrayOf(VueTypes.object),dataFieldArray:VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.string)]).isRequired,dataNumberBox:VueTypes.shape({label:VueTypes.string,start:VueTypes.number.isRequired,end:VueTypes.number.isRequired}).isRequired,date:VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.string)]),dateObject:VueTypes.object,excludeFields:VueTypes.arrayOf(VueTypes.string),fieldWeights:VueTypes.arrayOf(VueTypes.number),filterLabel:VueTypes.string,func:VueTypes.func,funcRequired:VueTypes.func.isRequired,fuzziness:VueTypes.oneOf([0,1,2,"AUTO"]),headers:VueTypes.object,hits:VueTypes.arrayOf(VueTypes.object),iconPosition:VueTypes.oneOf(["left","right"]),includeFields:VueTypes.arrayOf(VueTypes.string),labelPosition:VueTypes.oneOf(["left","right","top","bottom"]),number:VueTypes.number,options:VueTypes.oneOfType([VueTypes.arrayOf(VueTypes.object),VueTypes.object]),paginationAt:VueTypes.oneOf(["top","bottom","both"]),range:VueTypes.shape({start:VueTypes.number.isRequired,end:VueTypes.number.isRequired}),rangeLabels:VueTypes.shape({start:VueTypes.string.isRequired,end:VueTypes.string.isRequired}),react:VueTypes.shape({and:reactKeyType,or:reactKeyType,not:reactKeyType}),selectedValues:VueTypes.object,selectedValue:VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.string),VueTypes.arrayOf(VueTypes.object),VueTypes.object,Number,VueTypes.arrayOf(Number)]),suggestions:VueTypes.arrayOf(VueTypes.object),supportedOrientations:VueTypes.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),sortBy:VueTypes.oneOf(["asc","desc"]),sortOptions:VueTypes.arrayOf(VueTypes.shape({label:VueTypes.string,dataField:VueTypes.string,sortBy:VueTypes.string})),sortByWithCount:VueTypes.oneOf(["asc","desc","count"]),stats:VueTypes.arrayOf(VueTypes.object),string:VueTypes.string,stringArray:VueTypes.arrayOf(VueTypes.string),stringOrArray:VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.string)]),stringRequired:VueTypes.string.isRequired,style:VueTypes.object,themePreset:VueTypes.oneOf(["light","dark"]),queryFormatSearch:VueTypes.oneOf(["and","or"]),queryFormatNumberBox:VueTypes.oneOf(["exact","lte","gte"]),params:VueTypes.object.isRequired,props:VueTypes.object,rangeLabelsAlign:VueTypes.oneOf(["left","right"]),title:VueTypes.oneOfType([VueTypes.string,VueTypes.any]),tooltipTrigger:VueTypes.oneOf(["always","none","hover"]),location:VueTypes.custom(validateLocation),unit:VueTypes.oneOf(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),value:VueTypes.string.def(void 0),analyticsConfig:VueTypes.shape({emptyQuery:VueTypes.bool,suggestionAnalytics:VueTypes.bool,userId:VueTypes.string,customEvents:VueTypes.object}),appbaseConfig:VueTypes.shape({recordAnalytics:VueTypes.bool,emptyQuery:VueTypes.bool,suggestionAnalytics:VueTypes.bool,enableQueryRules:VueTypes.bool,enableSearchRelevancy:VueTypes.bool,userId:VueTypes.string,useCache:VueTypes.bool,customEvents:VueTypes.object,enableTelemetry:VueTypes.bool.def(!0),queryParams:VueTypes.object}).def({}),mongodb:VueTypes.shape({db:VueTypes.string,collection:VueTypes.string}),endpointConfig:VueTypes.shape({url:VueTypes.string.isRequired,method:VueTypes.string,headers:VueTypes.object,body:VueTypes.object})},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:VueTypes.bool,prevLabel:types.string,nextLabel:types.string},render:function(e,t){var n=arguments[0],r=t.props,o=function(){r.currentPage&&r.setPage(r.currentPage-1)},s=function(){r.currentPage<r.totalPages-1&&r.setPage(r.currentPage+1)};if(!r.totalPages)return null;var a=getClassName(r.innerClass,"button"),i=0===r.currentPage,u=a||i?a+" "+(i?"active":""):"",l=function(e){var t=r.pages,o=r.currentPage,s=r.totalPages,i=r.setPage,u=r.showEndPage,l="start"===e?getStartPage(t,o,u):Math.max(2,Math.ceil(s-(t-1)/2+1)),c=[],p=l;if(l<=s){var d=t<s?l+(t-1):s+1;u&&(d="start"===e?l+(Math.ceil(t/2)-t%2):s+1),o>s-t+2&&(l=Math.max(2,s-t+2),d=l+t);for(var h=function(e){var t=o===e-1,r=n(Button,{class:a||t?a+" "+(t?"active":""):"",attrs:{primary:t,tabIndex:"0",alt:"page-"+e},on:{keyPress:function(t){return handleA11yAction(t,(function(){return i(e-1)}))},click:function(){return i(e-1)}}},[e]);e<=s+1&&(c.push(r),e===Math.min(s+1,d)-1&&(p=e))},f=l;f<Math.min(s+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:pagination+" "+getClassName(r.innerClass,"pagination")},[n(Button,{class:getClassName(r.innerClass,"button")||"",attrs:{disabled:0===r.currentPage,tabIndex:"0"},on:{keyPress:function(e){return handleA11yAction(e,o)},click:o}},[r.prevLabel||"Prev"]),n(Button,{class:u,attrs:{primary:i,tabIndex:"0"},on:{keyPress:function(e){return handleA11yAction(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(Button,{class:getClassName(r.innerClass,"button")||"",attrs:{disabled:r.currentPage>=r.totalPages-1,tabIndex:"0"},on:{keyPress:function(e){return handleA11yAction(e,s)},click:s}},[r.nextLabel||"Next"])])}},_templateObject$1;Pagination.install=function(e){e.component(Pagination.name,Pagination)};var PoweredByImage=index$1("img")(_templateObject$1||(_templateObject$1=_taggedTemplateLiteralLoose(["\n\twidth: 110px;\n"]))),PoweredBy={functional:!0,render:function(e){return e("a",{attrs:{href:"https://appbase.io/",target:"_blank",rel:"noopener noreferrer"}},[e(PoweredByImage,{attrs:{src:"https://cdn.jsdelivr.net/gh/appbaseio/cdn@d2ec210045e59104ee5485841fa17b23fc83f097/appbase/logos/rbc-logo.svg"}})])}},hasOwn$1=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$1.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 s;return _extends({},r,((s={})[o]=e[o](t,n),s))}),{})};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 s=r;n(r=o,s)}}))}(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()}}}},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$1=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.$scopedSlots||t.$props).render;return n?n(e):null},hasCustomRenderer=function(e){void 0===e&&(e={});var t=(e.$scopedSlots||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))},getQuerySuggestionsComponent=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},hasQuerySuggestionsRenderer=function(e){void 0===e&&(e={});var t=e.$scopedSlots||e.$props,n=t.renderQuerySuggestions,r=t.renderPopularSuggestions;return Boolean(r)||Boolean(n)},getCamelCase=function(e){void 0===e&&(e="");var t=e.split("-").map((function(e,t){return t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e})).join("");return["u-r-l-params"].includes(e)&&(t=t[0].toUpperCase()+t.substring(1)),t||""},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=[],s=0;s<r.length;s+=1)isNumeric(r[s])?o.push(getCharFromCharCode(+r[s])):o.push(r[s]);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:VueTypes.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.$timestamp);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.$timestamp),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(t){return t(e,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots: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(h){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]))})),h(component,{attrs:componentProps,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots}))}}};function _extends$2(){return(_extends$2=Object.assign?Object.assign.bind():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 normalMerge=["attrs","props","domProps"],toArrayMerge=["class","style","directives"],functionalMerge=["on","nativeOn"],mergeJsxProps=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==normalMerge.indexOf(n))e[n]=_extends$2({},e[n],t[n]);else if(-1!==toArrayMerge.indexOf(n)){var r=e[n]instanceof Array?e[n]:[e[n]],o=t[n]instanceof Array?t[n]:[t[n]];e[n]=[].concat(r,o)}else if(-1!==functionalMerge.indexOf(n))for(var s in t[n])if(e[n][s]){var a=e[n][s]instanceof Array?e[n][s]:[e[n][s]],i=t[n][s]instanceof Array?t[n][s]:[t[n][s]];e[n][s]=[].concat(a,i)}else e[n][s]=t[n][s];else if("hook"===n)for(var u in t[n])e[n][u]=e[n][u]?mergeFn(e[n][u],t[n][u]):t[n][u];else e[n]=t[n];else e[n]=t[n];return e}),{})},mergeFn=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},helper$1=mergeJsxProps,_templateObject$2,Title=index$1("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,_templateObject4$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=css(_templateObject2$1||(_templateObject2$1=_taggedTemplateLiteralLoose(["\n\twidth: 100px;\n\theight: 100px;\n"]))),Image=index$1("div")(_templateObject3$1||(_templateObject3$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=index$1("a")(_templateObject4$1||(_templateObject4$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,t){var n=t.props,r=t.children,o=arguments[0];return o("div",helper$1([{attrs:{className:container}},n]),[r])}},_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=index$1("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=index$1("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,t){var n=t.props,r=t.children,o=arguments[0];return o("div",helper$1([{attrs:{className:container$1}},n]),[r])}},_templateObject$5,_templateObject2$3,_templateObject3$3,_templateObject4$2,_templateObject5$1,_templateObject6$1,_templateObject7$1,_templateObject8$1,_templateObject9,_templateObject10,_templateObject11;ResultCardsWrapper.install=function(e){e.component(ResultCardsWrapper.name,ResultCardsWrapper)};var leftLabel=css(_templateObject$5||(_templateObject$5=_taggedTemplateLiteralLoose(["\n\tflex-direction: row;\n\talign-items: center;\n"]))),rightLabel=css(_templateObject2$3||(_templateObject2$3=_taggedTemplateLiteralLoose(["\n\tflex-direction: row-reverse;\n\talign-items: center;\n"]))),topLabel=css(_templateObject3$3||(_templateObject3$3=_taggedTemplateLiteralLoose(["\n\tflex-direction: column;\n"]))),bottomLabel=css(_templateObject4$2||(_templateObject4$2=_taggedTemplateLiteralLoose(["\n\tflex-direction: column-reverse;\n"]))),border=function(e){var t=e.theme.colors;return css(_templateObject5$1||(_templateObject5$1=_taggedTemplateLiteralLoose(["\n\tborder: 1px solid ",";\n"])),t.borderColor||"#ccc")},Flex=index$1("div")(_templateObject6$1||(_templateObject6$1=_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&&css(_templateObject7$1||(_templateObject7$1=_taggedTemplateLiteralLoose(["\n\t\t\tjustify-content: ",";\n\t\t"])),e.justifyContent)}),(function(e){return e.alignItems&&css(_templateObject8$1||(_templateObject8$1=_taggedTemplateLiteralLoose(["\n\t\t\talign-items: ",";\n\t\t"])),e.alignItems)}),(function(e){return e.flex&&css(_templateObject9||(_templateObject9=_taggedTemplateLiteralLoose(["\n\t\t\tflex: ",";\n\t\t"])),e.flex)}),(function(e){return e.direction&&css(_templateObject10||(_templateObject10=_taggedTemplateLiteralLoose(["\n\t\t\tflex-direction: ",";\n\t\t"])),e.direction)}),(function(e){return e.basis&&css(_templateObject11||(_templateObject11=_taggedTemplateLiteralLoose(["\n\t\t\tflex-basis: ",";\n\t\t"])),e.basis)}),(function(e){var t=e.theme.colors;return t.borderColor||curriedLighten(.3,t.textColor)}),(function(e){return e.theme.colors.textColor})),_templateObject$6,_templateObject2$4,resultStats=css(_templateObject$6||(_templateObject$6=_taggedTemplateLiteralLoose(["\n\tflex-grow: 1;\n\tfont-size: 0.82rem;\n"]))),sortOptions=css(_templateObject2$4||(_templateObject2$4=_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),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,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 s=this.defaultPage||-1;s>=0&&(this.currentPageState=s,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:VueTypes.number.def(0),includeFields:types.includeFields,className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,aggregationField:types.string,aggregationSize:VueTypes.number,defaultQuery:types.func,defaultSortOption:types.string,excludeFields:types.excludeFields,innerClass:types.style,listClass:VueTypes.string.def(""),loader:types.title,render:types.func,renderItem:types.func,renderNoResults:VueTypes.any.def("No Results found."),renderError:types.title,renderResultStats:types.func,pages:VueTypes.number.def(5),pagination:VueTypes.bool.def(!1),infiniteScroll:VueTypes.bool.def(!0),paginationAt:VueTypes.oneOf(["top","bottom","both"]).def("bottom"),react:types.react,scrollOnChange:VueTypes.bool.def(!0),showResultStats:VueTypes.bool.def(!0),showEndPage:VueTypes.bool.def(!1),size:VueTypes.number.def(10),sortBy:types.sortBy,sortOptions:types.sortOptions,URLParams:VueTypes.bool.def(!1),prevLabel:types.string,nextLabel:types.string,distinctField:types.string,distinctFieldConfig:types.props,index:VueTypes.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.$listeners&&this.$listeners.pageChange},hasResultStatsListener:function(){return this.$listeners&&this.$listeners.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&&!this.pagination?window.addEventListener("scroll",this.scrollHandler):window.removeEventListener("scroll",this.scrollHandler))},pagination:function(e,t){e!==t&&(!e&&this.infiniteScroll?window.addEventListener("scroll",this.scrollHandler):window.removeEventListener("scroll",this.scrollHandler))},defaultPage:function(e,t){this.currentPageState!==e&&t!==e&&this.setPage(e>=0?e:0)},isLoading:function(e,t){e!==t&&this.$emit("loading",e)}},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 s=extractQueryFromCustomQuery(this.$defaultQuery);this.setQueryOptions(this.$props.componentId,_extends({},e,this.getAggsQuery()),!1),this.$defaultQuery?this.updateQuery({componentId:this.internalComponent,query:s},!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=parseHits(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(Flex,{attrs:{labelPosition:this.sortOptions?"right":"left"},class:getClassName$1(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(Pagination,{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(Pagination,{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(Flex,{attrs:{direction:"row-reverse"},class:getClassName$1(this.$props.innerClass,"poweredBy")},[e(PoweredBy)]):null])},methods:{renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?isFunction$1(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+" "+getClassName$1(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(ImpressionTracker$1,{attrs:{hits:this.data}},[o]):o},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.$createElement,t=this.$scopedSlots.renderResultStats||this.$props.renderResultStats;return t&&this.$data.total?t(this.stats):this.stats.numberOfResults?e("p",{class:resultStats+" "+getClassName$1(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?isFunction$1(t)?t():t:e("p",{class:getClassName$1(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])},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,s=this.sortOptions[t].sortBy;r.sort=[(n={},n[o]={order:s},n)],this.sortOptionIndex=t,this.updateComponentProps(this.componentId,{dataField:o,sortBy:s},constants_1$1.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:sortOptions+" "+getClassName$1(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 _extends({},e,{_click_id:t+n})}))},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.aggregationData,r=this.customData,o=this.currentPage,s=this.hits,a=o*e;return{results:parseHits(s)||[],customData:r||{},promotedResults:parseHits(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=_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,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]}},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,s=e.sortOptions,a=e.currentPage,i=e.sortBy;t.from=a?(a-1)*(n||10):0,t.size=n||10;if(s)t.sort=[function(){var e;if(o){var t,n=s.find((function(e){return e.label===o}));if(n)return(t={})[n.dataField]={order:n.sortBy},t}return(e={})[s[0].dataField]={order:s[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.generateQueryOptions=ReactiveList.generateQueryOptions,RLConnected.hasInternalComponent=ReactiveList.hasInternalComponent,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 s=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var i=e.length;a>0&&i>a&&(i=a);for(var u=0;u<i;++u){var l,c,p,d,h=e[u].replace(s,"%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,_typeof$2="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="",s=0,a=0,i=n;r.charAt(0|a)||(i="=",a%1);o+=i.charAt(63&s>>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.');s=s<<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 s=t[o].split("|").find((function(t){return _typeof$2(e[o])===t}));s&&e[o]!==r[s]||n.push(o)}));for(var o="",s=0;s<n.length;s+=1)o+=n[s]+", ";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$2(e))===dataTypes.OBJECT?Array.isArray(e)?dataTypes.ARRAY:dataTypes.OBJECT:void 0===e?"undefined":_typeof$2(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),s=[];o.forEach((function(e){t[e].required&&s.push(e)})),s.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 s=Array.isArray(t[r].type)?t[r].type:[].concat(t[r].type),a=checkDataType(e[r]);if(!s.includes(a))throw new Error("The property "+r+" is expected with type(s) ["+s.join(", ")+"], but type was set as "+a+".")}))}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,s=void 0===o?"":o,a=t.path,i=void 0===a?"":a,u=t.protocol,l=void 0===u?"":u,c=e.url;"/"===(c=s+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),e.httpRequestTimeout&&(this.httpRequestTimeout=e.httpRequestTimeout),"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 s=o.method,a=o.path,i=o.params,u=o.body,l=o.isRSAPI,c=o.isSuggestionsAPI,p=o.isMongoRequest,d=void 0!==p&&p,h=o.httpRequestTimeout,f=void 0===h?0:h,m=c?".suggestions":t.app,g=u,y=a.endsWith("msearch")||a.endsWith("bulk")?"application/x-ndjson":"application/json",v=Object.assign({},{Accept:"application/json","Content-Type":y},e.headers,t.headers),_=Date.now();t.credentials&&(v.Authorization="Basic "+btoa$1(t.credentials));var b={method:s,headers:v};if(Array.isArray(g)){var $="";g.forEach((function(e){$+=JSON.stringify(e),$+="\n"})),g=$}else g=JSON.stringify(g)||{};0!==Object.keys(g).length&&(b.body=g);var C={},O="";i&&(O="?"+querystring.stringify(i));var T=d?t.protocol+"://"+t.url:t.protocol+"://"+t.url+"/"+m+"/"+a+O;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:T},b)).then((function(e){var t=Object.assign({},e),o=t.url;delete t.url;var s=new AbortController,a=s.signal,i=fetch$1(o||T,Object.assign({},t,{headers:l&&!d?Object.assign({},t.headers,{"x-timestamp":(new Date).getTime()}):t.headers,signal:a})),c=new Promise((function(e,t){f>0&&setTimeout((function(){t(new Error("Request timeout")),s.abort()}),f)}));return Promise.race([i,c]).then((function(e){return e.status>=500?r(e):(C=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,s=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&&s===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:_,_headers:C});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 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,s=t.id,a=t.body;delete t.type,delete t.body,delete t.id;var i=void 0;return i=s?o?o+"/"+encodeURIComponent(s):encodeURIComponent(s):o,this.performFetchRequest({method:"POST",path:i,params:t,body:a})}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,s=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(s);return this.performFetchRequest({method:"GET",path:a,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,s=t.id,a=t.body;delete t.type,delete t.id,delete t.body;var i=o+"/"+encodeURIComponent(s)+"/_update";return this.performFetchRequest({method:"POST",path:i,params:t,body:a})}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,s=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(s);return this.performFetchRequest({method:"DELETE",path:a,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 s=void 0;return s=r?r+"/_bulk":"_bulk",this.performFetchRequest({method:"POST",path:s,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 s=void 0;return s=r?r+"/_search":"_search",this.performFetchRequest({method:"POST",path:s,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 s=void 0;return s=r?r+"/_msearch":"_msearch",this.performFetchRequest({method:"POST",path:s,params:t,body:o})}function reactiveSearchApi(e,t,n){var r=removeUndefined(t),o=validateRSQuery(e);if(!0!==o)throw o;var s={settings:r,query:e};return this.mongodb&&Object.assign(s,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch",body:s,headers:getTelemetryHeaders(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb,params:n,httpRequestTimeout:this.httpRequestTimeout||0})}function reactiveSearchv3Api(e,t,n){var r=removeUndefined(t),o=validateRSQuery(e);if(!0!==o)throw o;var s={settings:r,query:e};return this.mongodb&&Object.assign(s,{mongodb:getMongoRequest(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:s,headers:getTelemetryHeaders(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb,params:n,httpRequestTimeout:this.httpRequestTimeout||0})}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$3(){return(_extends$3=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,s=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.charAt(0|s)||(a="=",s%1);r+=a.charAt(63&o>>8-s%1*8)){if((t=n.charCodeAt(s+=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,s){var a=_extends$3({user_id:t.userID},r,{custom_events:_extends$3({},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$3({},t.headers,{"Content-Type":"application/json",Authorization:"Basic "+btoa$2(t.credentials)}),body:"GET"===e?null:JSON.stringify(a)}).then((function(e){s&&s(null,e)})).catch((function(e){s&&s(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.saveSessionUsefulness=function(e,n,r){if("string"!=typeof e||""===e)throw new Error("appbase-analytics: AISessionId is required");if("boolean"!=typeof n.useful)throw new Error("appbase-analytics: useful property is required and must be a boolean");var o={useful:n.useful,reason:n.reason,user_id:n.userID,meta:n.meta};t._request("PUT","_ai/"+e+"/analytics",o,null,r)},t}var index$2={init:initClient};
14
14
  /**
15
15
  *
16
16
  *
17
17
  * @author Jerry Bendy <jerry@icewingcc.com>
18
18
  * @licence MIT
19
19
  *
20
- */!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"),s=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),a=c.prototype,i=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&s)){a.append=function(e,t){m(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__,s=[];for(t in o)for(n=p(t),e=0,r=o[t];e<r.length;e++)s.push(n+"="+p(r[e]));return s.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 s=o[t],a=r[s];for(n=0;n<a.length;n++)this.append(s,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)},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 s=e.split("&"),a=0;a<s.length;a++){var i=s[a],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(e){return this.$slots.default.length>1?e("div",this.$slots.default):this.$slots.default[0]}},_templateObject$7,Base={functional:!0,render:function(e,t){var n=t.data.attrs.as,r=void 0===n?"div":n,o=t.data,s=t.children;return delete o.attrs.as,e(r,helper$1([{},o]),[s])}},Base$1=index$1(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){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})),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:VueTypes.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},s=o.label,a=o.showFilter,i=o.URLParams;e.setValue(n,JSON.parse(r),s,a,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()),s=!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}))&&(s=!0):n.setURL(r,n.getValue(a.value))&&(s=!0):(n.params.delete(r),s=!0):!n.hasValidValue(e[r])&&o.includes(r)&&(n.params.delete(r),s=!0)})),Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(e){n.params.delete(e),s=!0})),r.length||Array.from(this.params.keys()).forEach((function(e){n.searchComponents&&n.searchComponents.includes(e)&&(n.params.delete(e),s=!0)})),s&&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=arguments[0],t=this.$slots.default;return e(Base$1,{attrs:{as:this.$props.as},class:this.$props.className},[t])}},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}var ReactiveBase={name:"ReactiveBase",data:function(){return this.state={key:"__REACTIVE_BASE__"},this.state},created:function(){this.setStore(this.$props)},mounted:function(){var e=this.enableAppbase,t=this.endpoint;!e&&t&&console.warn("Warning(ReactiveSearch): The `endpoint` prop works only when `enableAppbase` prop is set to true.")},props:{app:types.string,analytics:VueTypes.bool,appbaseConfig:types.appbaseConfig,enableAppbase:VueTypes.bool.def(!1),credentials:types.string,headers:types.headers,theme:VueTypes.object.def({}),themePreset:VueTypes.string.def("light"),type:types.string,url:types.string,mapKey:types.string,initialQueriesSyncTime:types.number,className:types.string,initialState:VueTypes.object.def({}),transformRequest:types.func,transformResponse:types.func,as:VueTypes.string.def("div"),getSearchParams:types.func,setSearchParams:types.func,mongodb:types.mongodb,endpoint:types.endpointConfig,preferences:VueTypes.object,httpRequestTimeout:VueTypes.number.def(30)},provide:function(){return{theme_reactivesearch:composeThemeObject(getTheme(this.$props.themePreset),this.$props.theme),store:this.store,$searchPreferences:this.preferences}},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)},appbaseConfig:function(e,t){helper_33(e,t)||this.store&&this.store.dispatch(analytics_3$1(e))},mongodb:function(){this.updateState(this.$props)},httpRequestTimeout:function(){this.updateState(this.$props)}},computed:{getHeaders:function(){var e=this.$props,t=e.enableAppbase,n=e.headers,r=e.appbaseConfig,o=e.mongodb,s=e.endpoint,a=(r||{}).enableTelemetry;return _extends({},t&&!o&&_extends({"X-Search-Client":X_SEARCH_CLIENT},!1===a&&{"X-Enable-Telemetry":!1}),n,t&&s&&s.headers&&_extends({},s.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.enableAppbase&&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:e.enableAppbase,analytics:e.appbaseConfig?e.appbaseConfig.recordAnalytics:e.analytics,analyticsConfig:e.appbaseConfig,mongodb:e.mongodb,endpoint:e.endpoint,httpRequestTimeout:1e3*(e.httpRequestTimeout||0)||3e4},o="";o="undefined"!=typeof window?window.location.search:e.queryParams||"";var s=new URLSearchParams(o),a={},i={};Array.from(s.keys()).forEach((function(e){try{var t,n,r=JSON.parse(s.get(e)),o={};r.value?o.value=r.value:o.value=r,r.category&&(o.category=r.category),o.reference="URL",a=_extends({},a,((t={})[e]=o,t)),i=_extends({},i,((n={})[e]=o.value,n))}catch(e){}}));var u=e.themePreset,l=e.enableAppbase,c=e.endpoint,p=appbasejs(r);p.transformRequest=function(t){var n=l?helper_1(t,c):t;return e.transformRequest?e.transformRequest(n):n},this.$props.transformResponse&&(p.transformResponse=this.$props.transformResponse);var d={url:n&&n.replace(/\/\/.*@/,"//"),credentials:p.credentials,index:p.app||"_default",globalCustomEvents:this.$props.appbaseConfig&&this.$props.appbaseConfig.customEvents};try{if(this.$props.endpoint&&this.$props.endpoint.url){d.url=this.$props.endpoint.url.replace(/\/\/(.*?)\/.*/,"//$1");var h=this.$props.endpoint.headers&&this.$props.endpoint.headers.Authorization;d.credentials=h&&h.replace("Basic ",""),d.credentials=d.credentials&&atob(d.credentials)}}catch(e){console.error("Endpoint not set correctly for analytics"),console.error(e)}var f=null;r.analytics&&(f=index$2.init(d));var m=_extends({config:_extends({},r,{initialQueriesSyncTime:e.initialQueriesSyncTime,initialTimestamp:(new Date).getTime(),mapKey:e.mapKey,themePreset:u}),appbaseRef:p,analyticsRef:f,selectedValues:a,urlValues:i,headers:this.getHeaders},this.$props.initialState);this.store=configureStore(m),this.analyticsRef=f}},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.style,o=n.className;return e(Provider,{attrs:{store:this.store,analyticsRef:this.analyticsRef}},[e(URLParamsProvider$1,{attrs:{as:this.$props.as,headers:this.getHeaders,className:o,getSearchParams:this.getSearchParams,setSearchParams:this.setSearchParams},style:r},[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,s=0;s<n.length;s++)-1===r.indexOf(n[s])&&(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=1;k<20;k++)_keyMap["f".concat(k)]=111+k;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],s=n[1];"function"==typeof o&&(s=o,o=""),eachUnbind({key:e,scope:o,method:s,splitKey:"+"})}}var eachUnbind=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,s=void 0===o?"+":o;getKeys(t).forEach((function(e){var t=e.split(s),o=t.length,a=t[o-1],i="*"===a?"*":code(a);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 s in o=t.mods.length>0,_mods)Object.prototype.hasOwnProperty.call(_mods,s)&&(!_mods[s]&&t.mods.indexOf(+s)>-1||_mods[s]&&-1===t.mods.indexOf(+s))&&(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 s in _mods)Object.prototype.hasOwnProperty.call(_mods,s)&&(_mods[s]=e[modifierMap[s]]);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 a=getScope();if(n)for(var i=0;i<n.length;i++)n[i].scope===a&&("keydown"===e.type&&n[i].keydown||"keyup"===e.type&&n[i].keyup)&&eventHandler(e,n[i],a,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,a,t)}}}function isElementBind(e){return elementHasBindEvent.indexOf(e)>-1}function hotkeys(e,t,n){_downKeys=[];var r=getKeys(e),o=[],s="all",a=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&&(s=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&&(s=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:s,mods:o,shortcut:r[i],method:n,key:r[i],splitKey:c,element:a});void 0!==a&&!isElementBind(a)&&window&&(elementHasBindEvent.push(a),addEvent(a,"keydown",(function(e){dispatch(e,a)}),p),winListendFocus||(winListendFocus=!0,addEvent(window,"focus",(function(){_downKeys=[]}),p)),addEvent(a,"keyup",(function(e){dispatch(e,a),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 in _api)Object.prototype.hasOwnProperty.call(_api,a)&&(hotkeys[a]=_api[a]);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=index$1("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=index$1("span")(_templateObject$9||(_templateObject$9=_taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"]))),_templateObject$a,InputAddon=index$1("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$5,_templateObject3$4,_templateObject4$3,_templateObject5$2,_templateObject6$2,_templateObject7$2,_templateObject8$2,_templateObject9$1,_templateObject10$1,_templateObject11$1,_templateObject12,_templateObject13,_templateObject14,_templateObject15,_templateObject16;InputAddon.defaultProps={className:"input-addon"};var alertBorder=function(e){var t=e.theme;return css(_templateObject$b||(_templateObject$b=_taggedTemplateLiteralLoose(["\n\tborder: 1px solid ",";\n"])),t.colors.alertColor)},input=css(_templateObject2$5||(_templateObject2$5=_taggedTemplateLiteralLoose(["\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 css(_templateObject3$4||(_templateObject3$4=_taggedTemplateLiteralLoose(["\n\tborder-color: ",";\n"])),e.colors.borderColor)},darkInput=function(e){var t=e.theme;return css(_templateObject4$3||(_templateObject4$3=_taggedTemplateLiteralLoose(["\n\tbackground-color: ",";\n\tcolor: ",";\n\t",";\n\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor,t.colors.textColor,dark$1(t),t.colors.backgroundColor)},Input=index$1("input")(_templateObject5$2||(_templateObject5$2=_taggedTemplateLiteralLoose(["\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&&css(_templateObject6$2||(_templateObject6$2=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-left: 36px;\n\t\t"])))}),(function(e){return e.showIcon&&"right"===e.iconPosition&&css(_templateObject7$2||(_templateObject7$2=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showClear&&css(_templateObject8$2||(_templateObject8$2=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&css(_templateObject9$1||(_templateObject9$1=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showClear&&e.showIcon&&"right"===e.iconPosition&&css(_templateObject10$1||(_templateObject10$1=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&e.showIcon&&"right"===e.iconPosition&&css(_templateObject11$1||(_templateObject11$1=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&e.showIcon&&css(_templateObject12||(_templateObject12=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showClear&&e.showIcon&&e.showVoiceSearch&&"right"===e.iconPosition&&css(_templateObject13||(_templateObject13=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 90px;\n\t\t"])))}),(function(e){return e.alert&&alertBorder})),suggestions$1=function(e,t){return css(_templateObject14||(_templateObject14=_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(_templateObject15||(_templateObject15=_taggedTemplateLiteralLoose(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"]))),noSuggestions=function(e,t){return css(_templateObject16||(_templateObject16=_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,_templateObject2$6,_templateObject3$5,_templateObject4$4,IconGroup=index$1("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?css(_templateObject2$6||(_templateObject2$6=_taggedTemplateLiteralLoose(["\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 css("right"===t?_templateObject3$5||(_templateObject3$5=_taggedTemplateLiteralLoose(["\n\t\t\t\t\tright: 0;\n\t\t\t "])):_templateObject4$4||(_templateObject4$4=_taggedTemplateLiteralLoose(["\n\t\t\t\t\tleft: 0;\n\t\t\t "])))})),_templateObject$d,IconWrapper=index$1("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%;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 t(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function e(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e(r.overflowY,n)||e(r.overflowX,n)||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)}(t)}return!1}function r(e,t,n,r,o,s,a,i){return s<e&&a>t||s>e&&a<t?0:s<=e&&i<=n||a>=t&&i>=n?s-e-r:a>t&&i<n||s<e&&i>n?a-t+o:0}function computeScrollIntoView(e,o){var s=window,a=o.scrollMode,i=o.block,u=o.inline,l=o.boundary,c=o.skipOverflowHiddenElements,p="function"==typeof l?l:function(e){return e!==l};if(!t(e))throw new TypeError("Invalid target");for(var d=document.scrollingElement||document.documentElement,h=[],f=e;t(f)&&p(f);){if((f=f.parentElement)===d){h.push(f);break}null!=f&&f===document.body&&n(f)&&!n(document.documentElement)||null!=f&&n(f,c)&&h.push(f)}for(var m=s.visualViewport?s.visualViewport.width:innerWidth,g=s.visualViewport?s.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,_=e.getBoundingClientRect(),b=_.height,$=_.width,C=_.top,O=_.right,T=_.bottom,S=_.left,w="start"===i||"nearest"===i?C:"end"===i?T:C+b/2,P="center"===u?S+$/2:"end"===u?O:S,E=[],R=0;R<h.length;R++){var k=h[R],I=k.getBoundingClientRect(),x=I.height,A=I.width,L=I.top,j=I.right,V=I.bottom,M=I.left;if("if-needed"===a&&C>=0&&S>=0&&T<=g&&O<=m&&C>=L&&T<=V&&S>=M&&O<=j)return E;var Q=getComputedStyle(k),D=parseInt(Q.borderLeftWidth,10),F=parseInt(Q.borderTopWidth,10),N=parseInt(Q.borderRightWidth,10),q=parseInt(Q.borderBottomWidth,10),B=0,U=0,H="offsetWidth"in k?k.offsetWidth-k.clientWidth-D-N:0,z="offsetHeight"in k?k.offsetHeight-k.clientHeight-F-q:0;if(d===k)B="start"===i?w:"end"===i?w-g:"nearest"===i?r(v,v+g,g,F,q,v+w,v+w+b,b):w-g/2,U="start"===u?P:"center"===u?P-m/2:"end"===u?P-m:r(y,y+m,m,D,N,y+P,y+P+$,$),B=Math.max(0,B+v),U=Math.max(0,U+y);else{B="start"===i?w-L-F:"end"===i?w-V+q+z:"nearest"===i?r(L,V,x,F,q+z,w,w+b,b):w-(L+x/2)+z/2,U="start"===u?P-M-D:"center"===u?P-(M+A/2)+H/2:"end"===u?P-j+N+H:r(M,j,A,D,N+H,P,P+$,$);var W=k.scrollLeft,G=k.scrollTop;w+=G-(B=Math.max(0,Math.min(G+B,k.scrollHeight-x+z))),P+=W-(U=Math.max(0,Math.min(W+U,k.scrollWidth-A+H)))}E.push({el:k,top:B,left:U})}return E}var scrollIntoView=function(e,t){null!==e&&computeScrollIntoView(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)},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);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,s=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){s&&s(e)}}},getInputEvents:function(e){var t=this,n=e.onInput,r=e.onBlur,o=e.onFocus,s=e.onKeyPress,a=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),a&&a(e)},keypress:function(e){s&&s(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(){var e=arguments[0];return this.items=[],e("div",{ref:"rootNode"},[this.$scopedSlots.default&&this.$scopedSlots.default(_extends({},this.getHelpersAndState()))])}},_templateObject$e,Container=index$1("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=arguments[0],t=this.$props,n=t.themePreset,r=t.innerClass,o=t.innerClassName;return e("div",{class:noSuggestions(n)+" "+getClassName$2(r,o||"")},[e("li",[this.$scopedSlots.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,s=e.caseSensitive,a=void 0!==s&&s,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: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?s:r,a=e.searchWords,i=e.textToHighlight;return i=o(i),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var s=new RegExp(r,n?"g":"gi"),a=void 0;a=s.exec(i);){var u=a.index,l=s.lastIndex;l>u&&e.push({highlight:!1,start:u,end:l}),a.index===s.lastIndex&&s.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 s=0;t.forEach((function(e){o(s,e.start,!1),o(e.start,e.end,!0),s=e.end})),o(s,n,!1)}return r};function s(e){return e}}])}));unwrapExports(dist);var dist_1=dist.findAll;
20
+ */!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"),s=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),a=c.prototype,i=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&s)){a.append=function(e,t){m(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__,s=[];for(t in o)for(n=p(t),e=0,r=o[t];e<r.length;e++)s.push(n+"="+p(r[e]));return s.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 s=o[t],a=r[s];for(n=0;n<a.length;n++)this.append(s,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)},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 s=e.split("&"),a=0;a<s.length;a++){var i=s[a],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(e){return this.$slots.default.length>1?e("div",this.$slots.default):this.$slots.default[0]}},_templateObject$7,Base={functional:!0,render:function(e,t){var n=t.data.attrs.as,r=void 0===n?"div":n,o=t.data,s=t.children;return delete o.attrs.as,e(r,helper$1([{},o]),[s])}},Base$1=index$1(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){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})),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:VueTypes.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},s=o.label,a=o.showFilter,i=o.URLParams;e.setValue(n,JSON.parse(r),s,a,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()),s=!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}))&&(s=!0):n.setURL(r,n.getValue(a.value))&&(s=!0):(n.params.delete(r),s=!0):!n.hasValidValue(e[r])&&o.includes(r)&&(n.params.delete(r),s=!0)})),Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(e){n.params.delete(e),s=!0})),r.length||Array.from(this.params.keys()).forEach((function(e){n.searchComponents&&n.searchComponents.includes(e)&&(n.params.delete(e),s=!0)})),s&&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=arguments[0],t=this.$slots.default;return e(Base$1,{attrs:{as:this.$props.as},class:this.$props.className},[t])}},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}var ReactiveBase={name:"ReactiveBase",data:function(){return this.state={key:"__REACTIVE_BASE__"},this.state},created:function(){this.setStore(this.$props)},mounted:function(){var e=this.enableAppbase,t=this.endpoint;!e&&t&&console.warn("Warning(ReactiveSearch): The `endpoint` prop works only when `enableAppbase` prop is set to true.")},props:{app:types.string,analytics:VueTypes.bool,appbaseConfig:types.appbaseConfig,enableAppbase:VueTypes.bool.def(!1),credentials:types.string,headers:types.headers,theme:VueTypes.object.def({}),themePreset:VueTypes.string.def("light"),type:types.string,url:types.string,mapKey:types.string,initialQueriesSyncTime:types.number,className:types.string,initialState:VueTypes.object.def({}),transformRequest:types.func,transformResponse:types.func,as:VueTypes.string.def("div"),getSearchParams:types.func,setSearchParams:types.func,mongodb:types.mongodb,endpoint:types.endpointConfig,preferences:VueTypes.object,httpRequestTimeout:VueTypes.number.def(30)},provide:function(){return{theme_reactivesearch:composeThemeObject(getTheme(this.$props.themePreset),this.$props.theme),store:this.store,$searchPreferences:this.preferences}},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)},appbaseConfig:function(e,t){helper_33(e,t)||this.store&&this.store.dispatch(analytics_3$1(e))},mongodb:function(){this.updateState(this.$props)},httpRequestTimeout:function(){this.updateState(this.$props)}},computed:{getHeaders:function(){var e=this.$props,t=e.enableAppbase,n=e.headers,r=e.appbaseConfig,o=e.mongodb,s=e.endpoint,a=(r||{}).enableTelemetry;return _extends({},t&&!o&&_extends({"X-Search-Client":X_SEARCH_CLIENT},!1===a&&{"X-Enable-Telemetry":!1}),n,t&&s&&s.headers&&_extends({},s.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.enableAppbase&&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:e.enableAppbase,analytics:e.appbaseConfig?e.appbaseConfig.recordAnalytics:e.analytics,analyticsConfig:e.appbaseConfig,mongodb:e.mongodb,endpoint:e.endpoint,httpRequestTimeout:1e3*(e.httpRequestTimeout||0)||3e4},o="";o="undefined"!=typeof window?window.location.search:e.queryParams||"";var s=new URLSearchParams(o),a={},i={};Array.from(s.keys()).forEach((function(e){try{var t,n,r=JSON.parse(s.get(e)),o={};r.value?o.value=r.value:o.value=r,r.category&&(o.category=r.category),o.reference="URL",a=_extends({},a,((t={})[e]=o,t)),i=_extends({},i,((n={})[e]=o.value,n))}catch(e){}}));var u=e.themePreset,l=e.enableAppbase,c=e.endpoint,p=appbasejs(r);p.transformRequest=function(t){var n=l?helper_1(t,c):t;return e.transformRequest?e.transformRequest(n):n},this.$props.transformResponse&&(p.transformResponse=this.$props.transformResponse);var d={url:n&&n.replace(/\/\/.*@/,"//"),credentials:p.credentials,index:p.app||"_default",globalCustomEvents:this.$props.appbaseConfig&&this.$props.appbaseConfig.customEvents};try{if(this.$props.endpoint&&this.$props.endpoint.url){d.url=this.$props.endpoint.url.replace(/\/\/(.*?)\/.*/,"//$1");var h=this.$props.endpoint.headers&&this.$props.endpoint.headers.Authorization;d.credentials=h&&h.replace("Basic ",""),d.credentials=d.credentials&&atob(d.credentials)}}catch(e){console.error("Endpoint not set correctly for analytics"),console.error(e)}var f=null;r.analytics&&(f=index$2.init(d));var m=_extends({config:_extends({},r,{initialQueriesSyncTime:e.initialQueriesSyncTime,initialTimestamp:(new Date).getTime(),mapKey:e.mapKey,themePreset:u}),appbaseRef:p,analyticsRef:f,selectedValues:a,urlValues:i,headers:this.getHeaders},this.$props.initialState);this.store=configureStore(m),this.analyticsRef=f}},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.style,o=n.className;return e(Provider,{attrs:{store:this.store,analyticsRef:this.analyticsRef}},[e(URLParamsProvider$1,{attrs:{as:this.$props.as,headers:this.getHeaders,className:o,getSearchParams:this.getSearchParams,setSearchParams:this.setSearchParams},style:r},[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,s=0;s<n.length;s++)-1===r.indexOf(n[s])&&(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=1;k<20;k++)_keyMap["f".concat(k)]=111+k;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],s=n[1];"function"==typeof o&&(s=o,o=""),eachUnbind({key:e,scope:o,method:s,splitKey:"+"})}}var eachUnbind=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,s=void 0===o?"+":o;getKeys(t).forEach((function(e){var t=e.split(s),o=t.length,a=t[o-1],i="*"===a?"*":code(a);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 s in o=t.mods.length>0,_mods)Object.prototype.hasOwnProperty.call(_mods,s)&&(!_mods[s]&&t.mods.indexOf(+s)>-1||_mods[s]&&-1===t.mods.indexOf(+s))&&(o=!1);(0!==t.mods.length||_mods[16]||_mods[18]||_mods[17]||_mods[91])&&!o&&"*"!==t.shortcut||(t.keys=[],t.keys=t.keys.concat(_downKeys),!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 s in _mods)Object.prototype.hasOwnProperty.call(_mods,s)&&(_mods[s]=e[modifierMap[s]]);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 a=getScope();if(n)for(var i=0;i<n.length;i++)n[i].scope===a&&("keydown"===e.type&&n[i].keydown||"keyup"===e.type&&n[i].keyup)&&eventHandler(e,n[i],a,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,a,t)}}}function isElementBind(e){return elementHasBindEvent.indexOf(e)>-1}function hotkeys(e,t,n){_downKeys=[];var r=getKeys(e),o=[],s="all",a=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&&(s=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&&(s=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:s,mods:o,shortcut:r[i],method:n,key:r[i],splitKey:c,element:a});void 0!==a&&!isElementBind(a)&&window&&(elementHasBindEvent.push(a),addEvent(a,"keydown",(function(e){dispatch(e,a)}),p),winListendFocus||(winListendFocus=!0,addEvent(window,"focus",(function(){_downKeys=[]}),p)),addEvent(a,"keyup",(function(e){dispatch(e,a),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 in _api)Object.prototype.hasOwnProperty.call(_api,a)&&(hotkeys[a]=_api[a]);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=index$1("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=index$1("span")(_templateObject$9||(_templateObject$9=_taggedTemplateLiteralLoose(["\n flex: 1;\n position: relative;\n"]))),_templateObject$a,InputAddon=index$1("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$5,_templateObject3$4,_templateObject4$3,_templateObject5$2,_templateObject6$2,_templateObject7$2,_templateObject8$2,_templateObject9$1,_templateObject10$1,_templateObject11$1,_templateObject12,_templateObject13,_templateObject14,_templateObject15,_templateObject16;InputAddon.defaultProps={className:"input-addon"};var alertBorder=function(e){var t=e.theme;return css(_templateObject$b||(_templateObject$b=_taggedTemplateLiteralLoose(["\n\tborder: 1px solid ",";\n"])),t.colors.alertColor)},input=css(_templateObject2$5||(_templateObject2$5=_taggedTemplateLiteralLoose(["\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 css(_templateObject3$4||(_templateObject3$4=_taggedTemplateLiteralLoose(["\n\tborder-color: ",";\n"])),e.colors.borderColor)},darkInput=function(e){var t=e.theme;return css(_templateObject4$3||(_templateObject4$3=_taggedTemplateLiteralLoose(["\n\tbackground-color: ",";\n\tcolor: ",";\n\t",";\n\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor,t.colors.textColor,dark$1(t),t.colors.backgroundColor)},Input=index$1("input")(_templateObject5$2||(_templateObject5$2=_taggedTemplateLiteralLoose(["\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&&css(_templateObject6$2||(_templateObject6$2=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-left: 36px;\n\t\t"])))}),(function(e){return e.showIcon&&"right"===e.iconPosition&&css(_templateObject7$2||(_templateObject7$2=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showClear&&css(_templateObject8$2||(_templateObject8$2=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&css(_templateObject9$1||(_templateObject9$1=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showClear&&e.showIcon&&"right"===e.iconPosition&&css(_templateObject10$1||(_templateObject10$1=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&e.showIcon&&"right"===e.iconPosition&&css(_templateObject11$1||(_templateObject11$1=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&e.showIcon&&css(_templateObject12||(_templateObject12=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showClear&&e.showIcon&&e.showVoiceSearch&&"right"===e.iconPosition&&css(_templateObject13||(_templateObject13=_taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 90px;\n\t\t"])))}),(function(e){return e.alert&&alertBorder})),suggestions$1=function(e,t){return css(_templateObject14||(_templateObject14=_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(_templateObject15||(_templateObject15=_taggedTemplateLiteralLoose(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"]))),noSuggestions=function(e,t){return css(_templateObject16||(_templateObject16=_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,_templateObject2$6,_templateObject3$5,_templateObject4$4,IconGroup=index$1("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?css(_templateObject2$6||(_templateObject2$6=_taggedTemplateLiteralLoose(["\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 css("right"===t?_templateObject3$5||(_templateObject3$5=_taggedTemplateLiteralLoose(["\n\t\t\t\t\tright: 0;\n\t\t\t "])):_templateObject4$4||(_templateObject4$4=_taggedTemplateLiteralLoose(["\n\t\t\t\t\tleft: 0;\n\t\t\t "])))})),_templateObject$d,IconWrapper=index$1("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%;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 t(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function e(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e(r.overflowY,n)||e(r.overflowX,n)||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)}(t)}return!1}function r(e,t,n,r,o,s,a,i){return s<e&&a>t||s>e&&a<t?0:s<=e&&i<=n||a>=t&&i>=n?s-e-r:a>t&&i<n||s<e&&i>n?a-t+o:0}var i=function(e,o){var s=window,a=o.scrollMode,i=o.block,u=o.inline,l=o.boundary,c=o.skipOverflowHiddenElements,p="function"==typeof l?l:function(e){return e!==l};if(!t(e))throw new TypeError("Invalid target");for(var d,h,f=document.scrollingElement||document.documentElement,m=[],g=e;t(g)&&p(g);){if((g=null==(h=(d=g).parentElement)?d.getRootNode().host||null:h)===f){m.push(g);break}null!=g&&g===document.body&&n(g)&&!n(document.documentElement)||null!=g&&n(g,c)&&m.push(g)}for(var y=s.visualViewport?s.visualViewport.width:innerWidth,v=s.visualViewport?s.visualViewport.height:innerHeight,_=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,$=e.getBoundingClientRect(),C=$.height,O=$.width,T=$.top,S=$.right,w=$.bottom,P=$.left,E="start"===i||"nearest"===i?T:"end"===i?w:T+C/2,R="center"===u?P+O/2:"end"===u?S:P,k=[],I=0;I<m.length;I++){var x=m[I],A=x.getBoundingClientRect(),L=A.height,j=A.width,V=A.top,M=A.right,Q=A.bottom,D=A.left;if("if-needed"===a&&T>=0&&P>=0&&w<=v&&S<=y&&T>=V&&w<=Q&&P>=D&&S<=M)return k;var F=getComputedStyle(x),N=parseInt(F.borderLeftWidth,10),q=parseInt(F.borderTopWidth,10),B=parseInt(F.borderRightWidth,10),U=parseInt(F.borderBottomWidth,10),H=0,z=0,W="offsetWidth"in x?x.offsetWidth-x.clientWidth-N-B:0,G="offsetHeight"in x?x.offsetHeight-x.clientHeight-q-U:0,K="offsetWidth"in x?0===x.offsetWidth?0:j/x.offsetWidth:0,Y="offsetHeight"in x?0===x.offsetHeight?0:L/x.offsetHeight:0;if(f===x)H="start"===i?E:"end"===i?E-v:"nearest"===i?r(b,b+v,v,q,U,b+E,b+E+C,C):E-v/2,z="start"===u?R:"center"===u?R-y/2:"end"===u?R-y:r(_,_+y,y,N,B,_+R,_+R+O,O),H=Math.max(0,H+b),z=Math.max(0,z+_);else{H="start"===i?E-V-q:"end"===i?E-Q+U+G:"nearest"===i?r(V,Q,L,q,U+G,E,E+C,C):E-(V+L/2)+G/2,z="start"===u?R-D-N:"center"===u?R-(D+j/2)+W/2:"end"===u?R-M+B+W:r(D,M,j,N,B+W,R,R+O,O);var Z=x.scrollLeft,X=x.scrollTop;E+=X-(H=Math.max(0,Math.min(X+H/Y,x.scrollHeight-L/Y+G))),R+=Z-(z=Math.max(0,Math.min(Z+z/K,x.scrollWidth-j/K+W)))}k.push({el:x,top:H,left:z})}return k},scrollIntoView=function(e,t){null!==e&&i(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)},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);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,s=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){s&&s(e)}}},getInputEvents:function(e){var t=this,n=e.onInput,r=e.onBlur,o=e.onFocus,s=e.onKeyPress,a=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),a&&a(e)},keypress:function(e){s&&s(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(){var e=arguments[0];return this.items=[],e("div",{ref:"rootNode"},[this.$scopedSlots.default&&this.$scopedSlots.default(_extends({},this.getHelpersAndState()))])}},_templateObject$e,Container=index$1("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=arguments[0],t=this.$props,n=t.themePreset,r=t.innerClass,o=t.innerClassName;return e("div",{class:noSuggestions(n)+" "+getClassName$2(r,o||"")},[e("li",[this.$scopedSlots.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,s=e.caseSensitive,a=void 0!==s&&s,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: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?s:r,a=e.searchWords,i=e.textToHighlight;return i=o(i),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var s=new RegExp(r,n?"g":"gi"),a=void 0;a=s.exec(i);){var u=a.index,l=s.lastIndex;l>u&&e.push({highlight:!1,start:u,end:l}),a.index===s.lastIndex&&s.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 s=0;t.forEach((function(e){o(s,e.start,!1),o(e.start,e.end,!0),s=e.end})),o(s,n,!1)}return r};function s(e){return e}}])}));unwrapExports(dist);var dist_1=dist.findAll;
21
21
  /*!
22
22
  * vue-highlight-words © Yichang Liu, 2019
23
23
  *
@@ -27,13 +27,13 @@
27
27
  *
28
28
  * https://github.com/Astray-git/vue-highlight-words
29
29
  *
30
- */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,s=void 0===o?"":o,a=r.activeIndex,i=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,m=r.highlightStyle,g=void 0===m?{}:m,y=r.highlightTag,v=void 0===y?"mark":y,_=r.sanitize,b=r.searchWords,$=r.textToHighlight,C=r.unhighlightClassName,O=void 0===C?"":C,T=r.unhighlightStyle,S=t.data,w=dist_1({autoEscape:l,caseSensitive:p,findChunks:d,sanitize:_,searchWords:b,textToHighlight:$}),P=v,E=-1,R="";return e("span",_objectSpread({},S),w.map((function(t,r){var o=$.substr(t.start,t.end-t.start);if(t.highlight){var a=++E===+i;R="".concat(f," ").concat(a?s:""),n=!0===a&&null!=u?Object.assign({},g,u):g;var l={class:R,key:r,style:n};return"string"!=typeof P&&(l.props={highlightIndex:E}),S.scopedSlots?e(P,l,[S.scopedSlots.default({children:o,highlightIndex:E})]):e(P,l,o)}return e("span",{class:O,key:r,style:T},o)})))}},_templateObject$f,highlightStyle={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},PredictiveSuggestion=index$1("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=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,s=t.description,a=t.image,i=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?e("div",{class:"trim"},[l||!i&&!u?e(VueHighlightWords,{attrs:{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:highlightStyle}}):e(PredictiveSuggestion,{domProps:{innerHTML:n}})]):n:o||a||s?e(Flex,{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(Flex,{attrs:{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(VueHighlightWords,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:highlightStyle},class:css({fontSize:"1rem"})})]),s&&e("div",{class:cx("trim",css({marginTop:3}))},[e(VueHighlightWords,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:s,highlightStyle:highlightStyle}})])])]):r}},SearchSvg={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:_extends({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"}})])}},CancelSvg={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"}})])}},_templateObject$g;injectGlobal(_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(){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"}})])])])}},_templateObject$h;injectGlobal(_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(){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"}})])])])}},_templateObject$i;injectGlobal(_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(){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"}})])])])])}},STATUS={inactive:"INACTIVE",stopped:"STOPPED",active:"ACTIVE",denied:"DENIED"},Mic={name:"Mic",props:{children:types.title,lang:VueTypes.string.def("en-US"),iconPosition:VueTypes.string.def("left"),handleResult:types.func,onNoMatch:types.func,onError:types.func,getInstance:types.func,render:types.func,className:types.string,applyClearStyle:VueTypes.bool,showIcon:VueTypes.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,s=t.lang,a=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=s,a&&a(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.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case STATUS.active:return e(ListenSvg,{attrs:{className:n},nativeOn:{click:this.handleClick}});case STATUS.stopped:case STATUS.denied:return e(MuteSvg,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(MicSvg,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},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=arguments[0];return this.hasCustomRenderer?this.getComponent():e(IconWrapper,[this.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(){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(SearchSvg,{attrs:{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}}})}},_templateObject$j,_templateObject2$7,TagsContainer=index$1("div")(_templateObject$j||(_templateObject$j=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),TagItem=index$1("span")(_templateObject2$7||(_templateObject2$7=_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"]))),updateQuery$1=lib_5.updateQuery,setQueryOptions$1=lib_5.setQueryOptions,setCustomQuery=lib_5.setCustomQuery,setDefaultQuery$1=lib_5.setDefaultQuery,setCustomHighlightOptions=lib_5.setCustomHighlightOptions,recordSuggestionClick=lib_5.recordSuggestionClick,loadPopularSuggestions=lib_5.loadPopularSuggestions,getRecentSearches=lib_5.getRecentSearches,resetStoreForComponent=lib_5.resetStoreForComponent,debounce$1=lib_8.debounce,checkValueChange=lib_8.checkValueChange,getClassName$3=lib_8.getClassName,extractQueryFromCustomQuery$1=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$1=lib_8.getOptionsForCustomQuery,isEqual$4=lib_8.isEqual,getCompositeAggsQuery$1=lib_8.getCompositeAggsQuery,withClickIds=lib_8.withClickIds,getResultStats$1=lib_8.getResultStats,handleOnSuggestions=lib_8.handleOnSuggestions,getTopSuggestions=lib_8.getTopSuggestions,normalizeDataField=lib_8.normalizeDataField,DataSearch={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.enableRecentSearches,n=e.distinctField,r=e.distinctFieldConfig,o=e.index;e.mode===constants_5$1.TAG&&(this.$options.isTagsMode=!0),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`."),this.currentValue="",this.$options.isTagsMode&&(this.currentValue=""),(this.$props.enableDefaultSuggestions||this.currentValue)&&(this.loadPopularSuggestions(this.$props.componentId),t&&this.getRecentSearches()),this.handleTextChange=debounce$1(this.handleText,this.$props.debounce),this.updateDefaultQueryHandlerDebounced=debounce$1(this.updateDefaultQueryHandler,this.$props.debounce),this.updateQueryHandlerDebounced=debounce$1(this.updateQueryHandler,this.$props.debounce),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue),this.updateDefaultQueryHandlerDebounced(this.currentValue,this.$props,!1)},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),withClickIds(e)},topSuggestions:function(){return this.currentValue&&this.enablePopularSuggestions?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return getTopSuggestions(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enablePopularSuggestions;if(this.currentValue||!this.enableDefaultSuggestions)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return _extends({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return _extends({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return getTopSuggestions(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return hasCustomRenderer(this)},stats:function(){return getResultStats$1(this)}},props:{options:types.options,autoFocus:VueTypes.bool,autosuggest:VueTypes.bool.def(!0),beforeValueChange:types.func,className:VueTypes.string.def(""),clearIcon:types.children,componentId:types.stringRequired,compoundClause:types.compoundClause,customHighlight:types.func,customQuery:types.func,defaultQuery:types.func,dataField:VueTypes.oneOfType([VueTypes.string,VueTypes.shape({field:VueTypes.string,weight:VueTypes.number}),VueTypes.arrayOf(VueTypes.string),VueTypes.arrayOf({field:VueTypes.string,weight:VueTypes.number})]),aggregationField:types.string,aggregationSize:VueTypes.number,size:VueTypes.number,debounce:VueTypes.number.def(0),defaultValue:types.string,excludeFields:types.excludeFields,value:VueTypes.oneOfType([VueTypes.arrayOf(VueTypes.string),types.value]),defaultSuggestions:types.suggestions,enableSynonyms:VueTypes.bool.def(!0),enablePopularSuggestions:VueTypes.bool.def(!1),enableRecentSearches:VueTypes.bool.def(!1),fieldWeights:types.fieldWeights,filterLabel:types.string,fuzziness:types.fuzziness,highlight:VueTypes.bool,highlightField:types.stringOrArray,icon:types.children,iconPosition:VueTypes.oneOf(["left","right"]).def("left"),includeFields:types.includeFields,innerClass:types.style,innerRef:VueTypes.string.def("searchInputField"),render:types.func,renderPopularSuggestions:types.func,parseSuggestion:types.func,renderNoSuggestion:types.title,renderError:types.title,placeholder:VueTypes.string.def("Search"),queryFormat:VueTypes.oneOf(["and","or"]).def("or"),react:types.react,showClear:VueTypes.bool.def(!0),showDistinctSuggestions:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showIcon:VueTypes.bool.def(!0),title:types.title,theme:types.style,URLParams:VueTypes.bool.def(!1),strictSelection:VueTypes.bool.def(!1),nestedField:types.string,enablePredictiveSuggestions:VueTypes.bool.def(!1),recentSearchesIcon:VueTypes.any,popularSearchesIcon:VueTypes.any,showVoiceSearch:VueTypes.bool.def(!1),getMicInstance:types.func,renderMic:types.func,distinctField:types.string,distinctFieldConfig:types.props,focusShortcuts:VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string,VueTypes.number])).def(["/"]),addonBefore:VueTypes.any,addonAfter:VueTypes.any,expandSuggestionsContainer:VueTypes.bool.def(!0),index:VueTypes.string,enableDefaultSuggestions:VueTypes.bool.def(!0),mode:VueTypes.oneOf(["select","tag"]).def("select"),renderSelectedTags:VueTypes.any,endpoint:types.endpointConfig},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=DataSearch.highlightQuery(this.$props)||{};this.queryOptions=_extends({},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?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:{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){(!isEqual$4(e,t)||this.$options.isTagsMode&&!isEqual$4(e,this.selectedTags))&&(this.isPending&&this.$options.isTagsMode&&Array.isArray(e)&&(this.isPending=!1),this.setValue(e,!0,this.$props,""===e?lib_7.CLEAR_VALUE:void 0,!1,"string"!=typeof e&&this.$options.isTagsMode))},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandlerDebounced(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)},suggestions:function(e){Array.isArray(e)&&this.$data.currentValue.trim().length&&(this.$emit("suggestions",e),this.normalizedSuggestions=this.onSuggestions(e))},selectedValue:function(e,t){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=[]),this.setValue(e||"",!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandlerDebounced(e,this.$props):this.$options.isTagsMode?this.$options.isTagsMode&&(this.$data.currentValue=e):this.updateQueryHandlerDebounced(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=DataSearch.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=DataSearch.highlightQuery(this.$props)||{};this.queryOptions=_extends({},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?getQuerySuggestionsComponent({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):getComponent(r,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},onSuggestions:function(e){return handleOnSuggestions(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,lib_7.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,s){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===s&&(s=this.$options.isTagsMode);checkValueChange(n.componentId,e,n.beforeValueChange,(function(){if(!s||!isEqual$4(e,a.selectedTags)){if(e||!1!==n.enableDefaultSuggestions?!e&&a.currentValue&&a.enableRecentSearches&&a.getRecentSearches():a.resetStoreForComponent(n.componentId),s){if(Array.isArray(a.selectedTags)&&a.selectedTags.length){if("string"==typeof e&&a.selectedTags.includes(e))return void(a.isOpen=!1);a.selectedTags=[].concat(a.selectedTags),"string"==typeof e&&e?a.selectedTags.push(e):Array.isArray(e)&&!isEqual$4(a.selectedTags,e)&&(a.selectedTags=e)}else e&&(a.selectedTags="string"!=typeof e?e:[].concat(e));a.currentValue=""}else a.currentValue=e;var i=e;s&&(i=Array.isArray(a.selectedTags)&&a.selectedTags.length?a.selectedTags:void 0),t?(a.$props.autosuggest&&(o&&(a.isOpen=!1),"string"==typeof e&&a.updateDefaultQueryHandlerDebounced(e,a.$props)),n.strictSelection&&n.autosuggest?r===lib_7.SUGGESTION_SELECT||void 0!==n.value?a.updateQueryHandler(n.componentId,i,n):""!==a.currentValue&&a.setValue("",!0):a.updateQueryHandler(n.componentId,i,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,n){if(void 0===t&&(t=this.$props),e||!1!==t.enableDefaultSuggestions){var r,o=DataSearch.defaultQuery(e,t);if(this.defaultQuery){var s=this.defaultQuery(e,t)||{},a=extractQueryFromCustomQuery$1(s);a&&(o=a),r=getOptionsForCustomQuery$1(s),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,_extends({},this.queryOptions,r),n),this.updateQuery({componentId:this.internalComponent,query:o,value:e,componentType:constants_1$1.dataSearch},n)}else this.resetStoreForComponent(t.componentId)},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,s=n.filterLabel,a=n.showFilter,i=n.URLParams,u=DataSearch.defaultQuery(t,n);if(o){var l=o(t,n),c=extractQueryFromCustomQuery$1(l);c&&(u=c),r=getOptionsForCustomQuery$1(l),updateCustomQuery(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,_extends({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:s,showFilter:a,URLParams:i,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("",lib_7.CLEAR_VALUE)},handleKeyDown:function(e,t){var n=e.target.value,r=this.$props,o=r.value,s=r.strictSelection,a=r.size,i=r.autosuggest;void 0!==o&&(this.isPending=!0),"Enter"===e.key&&(null===t||t<0||t===[].concat([].concat(this.suggestionsList).slice(0,a||10),this.defaultSearchSuggestions,this.topSuggestions).length)&&(this.isPending=!1,this.setValue(this.$options.isTagsMode&&i&&s?"":n,!0,this.$props,void 0,!1),this.onValueSelectedHandler(n,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.isOpen=!0);var r=this.$props,o=r.value,s=r.autosuggest;void 0===o?this.setValue(n,!1,this.$props,void 0,!0,!1):(this.isPending=!0,this.currentValue=n,this.$emit("change",n,(function(e){var n=(void 0===e?{}:e).isOpen,r=void 0!==n&&n;if(t.$options.isTagsMode&&s)return t.isOpen=r,void t.updateDefaultQueryHandlerDebounced(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,lib_7.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,lib_7.SUGGESTION_SELECT,!0),this.$emit("change",n,this.triggerQuery)}else this.$emit("change",e.value,this.triggerQuery);this.isPending=!1,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(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(SearchSvg):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(SuggestionWrapper,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[isFunction$1(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(CancelSvg):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,s=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,i=this.$data,u=i.isOpen,l=i.currentValue;return!s||!u||e.length||this.isLoading||!l||a&&this.error?null:t(SuggestionWrapper,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof s?s(l):s}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(InputAddon,[t()]):null},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(TagItem,{class:getClassName$3(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(CancelSvg)])])},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,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(TagsContainer,[n.map((function(t){return e.renderTag(t)})),r&&t(TagItem,{class:getClassName$3(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(CancelSvg)])])])},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(InputAddon,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,s=t.getMicInstance,a=t.showVoiceSearch,i=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(IconGroup,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(IconWrapper,{on:{click:this.clearValue},attrs:{showIcon:i,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Mic,{attrs:{getInstance:s,render:u,handleResult:this.handleVoiceResults,className:getClassName$3(o,"mic")||null}}),"right"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(IconGroup,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&i&&e(IconWrapper,{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;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}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,s=n.expandSuggestionsContainer,a=n.enableDefaultSuggestions,i=this.$scopedSlots,u=i.recentSearchesIcon,l=i.popularSearchesIcon,c=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return!1!==a||this.currentValue||(c=!1),t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$3(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(Downshift,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var a=n.getInputEvents,i=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,m=n.setHighlightedIndex,g=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:suggestions$1(e.themePreset,r)+" "+getClassName$3(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:_extends({},p({item:n})),on:_extends({},d({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:_extends({},p({item:n})),on:_extends({},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(CustomSvg,{attrs:{className:getClassName$3(e.$props.innerClass,"recent-search-icon")||null,icon:u,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(CustomSvg,{attrs:{className:getClassName$3(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),hasQuerySuggestionsRenderer(e)?e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:_extends({},p({item:n})),on:_extends({},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(CustomSvg,{attrs:{className:getClassName$3(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:suggestionsContainer},[t(InputGroup,[e.renderInputAddonBefore(),t(InputWrapper,[t(Input,{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:getClassName$3(e.$props.innerClass,"input"),on:_extends({},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(){m(null)}})),domProps:_extends({},i({value:null===e.$data.currentValue||"string"!=typeof e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!s&&g()])," ",e.renderInputAddonAfter()]),s&&g(),e.renderTags()])}}}):t("div",{class:suggestionsContainer},[t(InputGroup,[this.renderInputAddonBefore(),t(InputWrapper,[t(Input,{class:getClassName$3(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:_extends({},{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.handleKeyDown(t,null)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:_extends({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()]),this.renderTags()])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=normalizeDataField(t.dataField,t.fieldWeights);n={bool:{should:DataSearch.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=[],s=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:s,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:s,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:s,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:s,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:s,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:_extends({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}},hasInternalComponent:function(){return!0}},mapStateToProps$3=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}},mapDispatchToProps$2={setQueryOptions:setQueryOptions$1,updateQuery:updateQuery$1,setCustomQuery:setCustomQuery,setDefaultQuery:setDefaultQuery$1,setCustomHighlightOptions:setCustomHighlightOptions,recordSuggestionClick:recordSuggestionClick,loadPopularSuggestions:loadPopularSuggestions,getRecentSearches:getRecentSearches,resetStoreForComponent:resetStoreForComponent},DSConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$3,mapDispatchToProps$2)(DataSearch),{componentType:constants_1$1.dataSearch,internalComponent:DataSearch.hasInternalComponent()})),_templateObject$k;DSConnected.defaultQuery=DataSearch.defaultQuery,DSConnected.shouldQuery=DataSearch.shouldQuery,DSConnected.highlightQuery=DataSearch.highlightQuery,DSConnected.hasInternalComponent=DataSearch.hasInternalComponent,DSConnected.name=DataSearch.name,DSConnected.install=function(e){e.component(DSConnected.name,DSConnected)},DSConnected.componentType=constants_1$1.dataSearch;var AutofillSvgIcon=index$1("button")(_templateObject$k||(_templateObject$k=_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(){var e=arguments[0];return e(AutofillSvgIcon,{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)}}},updateQuery$2=lib_5.updateQuery,setCustomQuery$1=lib_5.setCustomQuery,setDefaultQuery$2=lib_5.setDefaultQuery,recordSuggestionClick$1=lib_5.recordSuggestionClick,_debounce=lib_8.debounce,checkValueChange$1=lib_8.checkValueChange,getClassName$4=lib_8.getClassName,isEqual$5=lib_8.isEqual,getCompositeAggsQuery$2=lib_8.getCompositeAggsQuery,withClickIds$1=lib_8.withClickIds,getResultStats$2=lib_8.getResultStats,normalizeDataField$1=lib_8.normalizeDataField,SearchBox={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===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.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=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$2(this)}},props:{autoFocus:VueTypes.bool,autosuggest:VueTypes.bool.def(!0),beforeValueChange:types.func,className:VueTypes.string.def(""),clearIcon:types.children,componentId:types.stringRequired,compoundClause:types.compoundClause,customHighlight:types.func,customQuery:types.func,defaultQuery:types.func,dataField:VueTypes.oneOfType([VueTypes.string,VueTypes.shape({field:VueTypes.string,weight:VueTypes.number}),VueTypes.arrayOf(VueTypes.string),VueTypes.arrayOf({field:VueTypes.string,weight:VueTypes.number})]),aggregationField:types.string,aggregationSize:VueTypes.number,size:VueTypes.number,debounce:VueTypes.number.def(0),defaultValue:types.string,excludeFields:types.excludeFields,value:VueTypes.oneOfType([VueTypes.arrayOf(VueTypes.string),types.value]),defaultSuggestions:types.suggestions,enableSynonyms:VueTypes.bool.def(!0),enableQuerySuggestions:VueTypes.bool.def(!1),enablePopularSuggestions:VueTypes.bool.def(!1),enableRecentSuggestions:VueTypes.bool.def(!1),fieldWeights:types.fieldWeights,filterLabel:types.string,fuzziness:types.fuzziness,highlight:VueTypes.bool,highlightField:types.stringOrArray,icon:types.children,iconPosition:VueTypes.oneOf(["left","right"]).def("left"),includeFields:types.includeFields,innerClass:types.style,innerRef:VueTypes.string.def("searchInputField"),render:types.func,renderNoSuggestion:types.title,renderError:types.title,placeholder:VueTypes.string.def("Search"),queryFormat:VueTypes.oneOf(["and","or"]).def("or"),react:types.react,showClear:VueTypes.bool.def(!0),showDistinctSuggestions:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showIcon:VueTypes.bool.def(!0),title:types.title,theme:types.style,URLParams:VueTypes.bool.def(!1),strictSelection:VueTypes.bool.def(!1),nestedField:types.string,enablePredictiveSuggestions:VueTypes.bool.def(!1),recentSearchesIcon:VueTypes.any,popularSearchesIcon:VueTypes.any,showVoiceSearch:VueTypes.bool.def(!1),getMicInstance:types.func,renderMic:types.func,distinctField:types.string,distinctFieldConfig:types.props,focusShortcuts:VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string,VueTypes.number])).def(["/"]),addonBefore:VueTypes.any,addonAfter:VueTypes.any,expandSuggestionsContainer:VueTypes.bool.def(!0),index:VueTypes.string,popularSuggestionsConfig:VueTypes.object,recentSuggestionsConfig:VueTypes.object,applyStopwords:VueTypes.bool,customStopwords:types.stringArray,onData:types.func,renderItem:types.func,enterButton:VueTypes.bool.def(!1),renderEnterButton:VueTypes.any,mode:VueTypes.oneOf(["select","tag"]).def("select"),renderSelectedTags:VueTypes.any,searchboxId:VueTypes.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$5(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$5(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$1(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(withClickIds$1(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){if(!isEqual$5(e,t)&&(this.$options.isTagsMode?!isEqual$5(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$5(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)},validateDataField:function(){var e=SearchBox.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 getComponent(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=helper_36(this.$props);return e&&(t.aggs=getCompositeAggsQuery$2({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,s){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===s&&(s=void 0);checkValueChange$1(n.componentId,e,n.beforeValueChange,(function(){if(!a.$options.isTagsMode||!isEqual$5(e,a.selectedTags)){if(a.$options.isTagsMode&&r===lib_7.SUGGESTION_SELECT){if(Array.isArray(a.selectedTags)&&a.selectedTags.length){if("string"==typeof e&&a.selectedTags.includes(e))return void(a.isOpen=!1);a.selectedTags=[].concat(a.selectedTags),"string"==typeof e&&e?a.selectedTags.push(e):Array.isArray(e)&&!isEqual$5(a.selectedTags,e)&&(a.selectedTags=e)}else e&&(a.selectedTags="string"!=typeof e?e:[].concat(e));a.currentValue=""}else a.currentValue=decodeHtml(e);var i=e;a.$options.isTagsMode&&r===lib_7.SUGGESTION_SELECT&&(i=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===lib_7.SUGGESTION_SELECT||(a.$options.isTagsMode?0===a.selectedTags.length:""===e)?a.triggerCustomQuery(i,a.$options.isTagsMode?void 0:s):a.setValue("",!0):void 0!==n.value&&r!==lib_7.SUGGESTION_SELECT&&r!==lib_7.CLEAR_VALUE||a.triggerCustomQuery(i,a.$options.isTagsMode?void 0:s)):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=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,s=n.showFilter,a=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:s,URLParams:a,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,s=e.defaultQuery,a=void 0===s||s,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),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,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(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(SearchSvg):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(SuggestionWrapper,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[isFunction$1(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(CancelSvg):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,s=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,i=this.$data,u=i.isOpen,l=i.currentValue;return!s||!u||e.length||this.isLoading||!l||a&&this.error?null:t(SuggestionWrapper,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof s?s(l):s}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(InputAddon,{class:"addon-before"},[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(InputAddon,{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,s=this.$scopedSlots.renderEnterButton;if(r){return t("div",{class:"enter-button-wrapper"},[s?s(e.enterButtonOnClick):t(Button,{class:"enter-btn "+getClassName$4(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,s=t.getMicInstance,a=t.showVoiceSearch,i=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(IconGroup,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(IconWrapper,{on:{click:this.clearValue},attrs:{showIcon:i,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Mic,{attrs:{getInstance:s,render:u,handleResult:this.handleVoiceResults,className:getClassName$4(o,"mic")||null}}),"right"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(IconGroup,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&i&&e(IconWrapper,{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;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,n=this.$createElement;return e._category?null:n(AutoFillSvg,{on:{click:function(n){n.stopPropagation(),t.onAutofillClick(e)}}})},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(TagItem,{class:getClassName$4(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(CancelSvg)])])},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,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(TagsContainer,[n.map((function(t){return e.renderTag(t)})),r&&t(TagItem,{class:getClassName$4(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(CancelSvg)])])])}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.expandSuggestionsContainer,s=this.$scopedSlots,a=s.recentSearchesIcon,i=s.popularSearchesIcon,u=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,l=this.$scopedSlots.renderItem||this.$props.renderItem;return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$4(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.autosuggest?t(Downshift,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var s=n.getInputEvents,c=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,m=n.setHighlightedIndex,g=function(){var n=function(e){switch(e){case helper_13.Recent:return a;case helper_13.Popular:return i;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:suggestions$1(e.themePreset,r)+" "+getClassName$4(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(r,o){return t("li",{domProps:_extends({},p({item:r})),on:_extends({},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(CustomSvg,{attrs:{className:getClassName$4(e.$props.innerClass,r._suggestion_type+"-search-icon")||null,icon:n(r._suggestion_type),type:r._suggestion_type+"-search-icon"}})]),t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:r}}),e.renderAutoFill(r)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return t("div",{class:suggestionsContainer},[t(InputGroup,[e.renderInputAddonBefore(),t(InputWrapper,[t(Input,{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:getClassName$4(e.$props.innerClass,"input"),on:_extends({},s({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(){m(null)}})),domProps:_extends({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!o&&g()]),e.renderInputAddonAfter(),e.renderEnterButtonElement()]),o&&g(),e.renderTags()])}}}):t("div",{class:suggestionsContainer},[t(InputGroup,[this.renderInputAddonBefore(),t(InputWrapper,[t(Input,{class:getClassName$4(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:_extends({},{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:_extends({},{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)},hasInternalComponent:function(){return!0},defaultQuery:function(e,t){var n,r=normalizeDataField$1(t.dataField,t.fieldWeights);return(n={bool:{should:SearchBox.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=[],s=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:s,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:s,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:s,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:s,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:s,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)}},mapStateToProps$4=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}},mapDispatchToProps$3={updateQuery:updateQuery$2,setCustomQuery:setCustomQuery$1,setDefaultQuery:setDefaultQuery$2,recordSuggestionClick:recordSuggestionClick$1},SBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$4,mapDispatchToProps$3)(SearchBox),{componentType:constants_1$1.searchBox,internalComponent:!0})),_templateObject$l,_templateObject2$8,_templateObject3$6,_templateObject4$5,_templateObject5$3,_templateObject6$3;SBConnected.name=SearchBox.name,SBConnected.defaultQuery=SearchBox.defaultQuery,SBConnected.shouldQuery=SearchBox.shouldQuery,SBConnected.hasInternalComponent=SearchBox.hasInternalComponent,SBConnected.install=function(e){e.component(SBConnected.name,SBConnected)},SBConnected.componentType=constants_1$1.searchBox;var item={width:"15px",height:"15px",scale:"4px"},vh=css(_templateObject$l||(_templateObject$l=_taggedTemplateLiteralLoose(["\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=css(_templateObject2$8||(_templateObject2$8=_taggedTemplateLiteralLoose(["\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;return css(_templateObject3$6||(_templateObject3$6=_taggedTemplateLiteralLoose(["\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"])),vh,curriedLighten(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||curriedLighten(.1,t.colors.textColor),t.colors.primaryColor,item.width,item.width,item.height,t.colors.primaryColor,item.scale,item.width,item.scale,item.height,item.scale,item.height,item.scale)},Radio=index$1("input")(_templateObject4$5||(_templateObject4$5=_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=index$1("input")(_templateObject5$3||(_templateObject5$3=_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=index$1("ul")(_templateObject6$3||(_templateObject6$3=_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,s=t.size,a=t.sortBy,i=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:_extends({field:o,size:s,order:getAggsOrder(a||"count")},i?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),_extends({},r,extractQuery(t))},updateQuery$3=lib_5.updateQuery,setQueryOptions$2=lib_5.setQueryOptions,setCustomQuery$2=lib_5.setCustomQuery,setDefaultQuery$3=lib_5.setDefaultQuery,getQueryOptions$1=lib_8.getQueryOptions,checkValueChange$2=lib_8.checkValueChange,getClassName$5=lib_8.getClassName,isEqual$6=lib_8.isEqual,extractQueryFromCustomQuery$2=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$2=lib_8.getOptionsForCustomQuery,SingleList={name:"SingleList",props:{beforeValueChange:types.func,className:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.string,value:types.value,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showRadio:VueTypes.bool.def(!0),showSearch:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),nestedField:types.string,index:VueTypes.string,enableStrictSelection:VueTypes.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(){!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:[],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$6(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=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,s=n.renderError,a=this.$scopedSlots.renderItem||o,i=this.$scopedSlots.renderError||s;if(i&&this.error)return isFunction$1(i)?i(this.error):i;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResults)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||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm.toLowerCase())))}));return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$5(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(UL,{class:getClassName$5(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(Radio,{class:getClassName$5(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,type:"radio",show:this.$props.showRadio},on:{click:this.handleClick},domProps:_extends({},{checked:this.$data.currentValue===r})}),t("label",{class:getClassName$5(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[t("span",[r,this.$props.showCount&&t("span",{class:getClassName$5(this.$props.innerClass,"count")||null},[" (",this.totalDocumentCount,")"])])])]):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(Radio,{class:getClassName$5(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:_extends({},{checked:e.currentValue===String(n.key)})}),t("label",{class:getClassName$5(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:getClassName$5(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="");checkValueChange$2(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$2(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$2(r);this.setQueryOptions(this.internalComponent,s,!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$2(o);var s=getOptionsForCustomQuery$2(o);updateCustomQuery(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,s,!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$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(){var e=this.$createElement;return this.$props.showSearch?e(Input,{class:getClassName$5(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 s={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(s,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.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:getClassName$5(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},generateQueryOptions:function(e){var t=getQueryOptions$1(e);return getAggsQuery(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}},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||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$2={setQueryOptions:setQueryOptions$2,updateQuery:updateQuery$3,setCustomQuery:setCustomQuery$2,setDefaultQuery:setDefaultQuery$3},ListConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$5,mapDispatchtoProps$2)(SingleList),{componentType:constants_1$1.singleList,internalComponent:SingleList.hasInternalComponent()}));ListConnected.name=SingleList.name,ListConnected.defaultQuery=SingleList.defaultQuery,ListConnected.generateQueryOptions=SingleList.generateQueryOptions,ListConnected.hasInternalComponent=SingleList.hasInternalComponent,ListConnected.componentType=constants_1$1.singleList,ListConnected.install=function(e){e.component(ListConnected.name,ListConnected)};var updateQuery$4=lib_5.updateQuery,setQueryOptions$3=lib_5.setQueryOptions,setCustomQuery$3=lib_5.setCustomQuery,setDefaultQuery$4=lib_5.setDefaultQuery,isEqual$7=lib_8.isEqual,getQueryOptions$2=lib_8.getQueryOptions,checkValueChange$3=lib_8.checkValueChange,getClassName$6=lib_8.getClassName,extractQueryFromCustomQuery$3=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$3=lib_8.getOptionsForCustomQuery,MultiList={name:"MultiList",props:{defaultValue:types.stringArray,value:types.stringArray,queryFormat:VueTypes.oneOf(["and","or"]).def("or"),showCheckbox:VueTypes.bool.def(!0),beforeValueChange:types.func,className:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showSearch:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),nestedField:types.string,index:VueTypes.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(){!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:[],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$7(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$7(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){isEqual$7(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$7(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=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,s=n.renderError,a=this.$scopedSlots.renderItem||o,i=this.$scopedSlots.renderError||s;if(i&&this.error)return isFunction$1(i)?i(this.error):i;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResults)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||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm).toLowerCase()))}));return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$6(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(UL,{class:getClassName$6(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(Checkbox,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:getClassName$6(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:_extends({},{checked:!!this.currentValue[r]})}),t("label",{class:getClassName$6(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[t("span",[r,this.$props.showCount&&t("span",{class:getClassName$6(this.$props.innerClass,"count")},[" (",this.totalDocumentCount,")"])])])]):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(Checkbox,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:getClassName$6(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:_extends({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:getClassName$6(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:getClassName$6(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,s=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))s[o]?(s={},a=[]):(this.$data.modifiedOptions.forEach((function(e){s[e.key]=!0})),s[o]=!0,a=[o]);else if(t){if(a=e,s={},e&&e.length&&e.forEach((function(e){s[e]=!0})),o&&o in s){var i=s,u=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey)));s=_extends({},u)}}else{if(s[e]){var l=s,c=(l[e],_objectWithoutPropertiesLoose(l,[e].map(_toPropertyKey)));s=_extends({},c)}else Array.isArray(e)?e.forEach((function(e){s[e]=!0})):s[e]=!0;if(o&&o in s){var p=s,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey)));s=_extends({},d)}a=Object.keys(s)}checkValueChange$3(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},s),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=MultiList.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 s=getOptionsForCustomQuery$3(r);this.setQueryOptions(this.internalComponent,s,!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$3(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$3(o);this.setQueryOptions(t.componentId,s,!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$3(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(){var e=this.$createElement;return this.$props.showSearch?e(Input,{class:getClassName$6(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;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 s={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(s,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:getClassName$6(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(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 s;if("or"===r)if(t.showMissing){var a,i,u=e.includes(t.missingLabel),l=[(i={},i[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),i)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),s={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),s=p}else s={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?s:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=getQueryOptions$2(e);return getAggsQuery(t,e)}},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||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],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$3={setQueryOptions:setQueryOptions$3,updateQuery:updateQuery$4,setCustomQuery:setCustomQuery$3,setDefaultQuery:setDefaultQuery$4};MultiList.hasInternalComponent=function(){return!0};var ListConnected$1=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$6,mapDispatchtoProps$3)(MultiList),{componentType:constants_1$1.multiList,internalComponent:MultiList.hasInternalComponent()})),_templateObject$m,_templateObject2$9,_templateObject3$7,_templateObject4$6;ListConnected$1.name=MultiList.name,ListConnected$1.defaultQuery=MultiList.defaultQuery,ListConnected$1.generateQueryOptions=MultiList.generateQueryOptions,ListConnected$1.hasInternalComponent=MultiList.hasInternalComponent,ListConnected$1.componentType=constants_1$1.multiList,ListConnected$1.install=function(e){e.component(ListConnected$1.name,ListConnected$1)};var small=css(_templateObject$m||(_templateObject$m=_taggedTemplateLiteralLoose(["\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 css(_templateObject2$9||(_templateObject2$9=_taggedTemplateLiteralLoose(["\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)},Select=index$1("button")(_templateObject3$7||(_templateObject3$7=_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=index$1("span")(_templateObject4$6||(_templateObject4$6=_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,_templateObject2$a,open=css(_templateObject$n||(_templateObject$n=_taggedTemplateLiteralLoose(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),Chevron=index$1("span")(_templateObject2$a||(_templateObject2$a=_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$7=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:VueTypes.string.def("key"),labelField:VueTypes.string.def("label"),multi:VueTypes.bool,placeholder:types.string,returnsObject:VueTypes.bool,customLabelRenderer:types.func,hasCustomRenderer:VueTypes.bool,customRenderer:types.func,renderItem:types.func,renderNoResults:VueTypes.any,handleChange:types.func,transformData:types.func,selectedItem:types.selectedValue,showCount:VueTypes.bool,single:VueTypes.bool,small:VueTypes.bool.def(!1),themePreset:types.themePreset,showSearch:VueTypes.bool,showClear:VueTypes.bool,searchPlaceholder:VueTypes.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,s=n.placeholder,a=n.labelField,i=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,p=n.footer,d=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,m=r;c&&(m=c(m));var g=m.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 t(Downshift,{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,_=n.getItemEvents,b=n.getInputEvents;return t("div",{class:suggestionsContainer},[t(Select,{on:_extends({},_extends({},v({onClick:e.toggle}))),class:getClassName$7(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):s,small:e.$props.small,themePreset:e.$props.themePreset}},[d?d(o):t("div",[o?e.renderToString(o):s]),t(Chevron,{attrs:{open:c}})]),h?f(m,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:_}):c&&m.length?t("ul",{class:suggestions$1(u,e.theme)+" "+(e.$props.small?"small":"")+" "+getClassName$7(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:b({onInput:e.handleInputChange}).input}}):null,h||0!==g.length?g.map((function(n,s){var u=e.$props.multi&&(o&&!!o[n[i]]||Array.isArray(o)&&o.find((function(e){return e[a]===n[a]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:_extends({},r({item:n})),on:_extends({},_({item:n})),key:n[i],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===s,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:getClassName$7(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(Tick,{class:getClassName$7(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:getClassName$7(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])},renderSearchbox:function(e){var t=this.$createElement,n=this.$props,r=n.componentId,o=n.searchPlaceholder,s=n.showClear,a=n.themePreset,i=n.innerClass,u=t(Input,helper$1([{attrs:{id:r+"-input",showIcon:!1,showClear:s,placeholder:o,value:this.$data.searchTerm,themePreset:a},style:{border:0,borderBottom:"1px solid #ddd"},class:getClassName$7(i,"input")},e]));return s?t(InputWrapper,[u,this.searchTerm&&t(IconGroup,{attrs:{groupPosition:"right",positionType:"absolute"}},[t(IconWrapper,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[t(CancelSvg)])])]):u}}},updateQuery$5=lib_5.updateQuery,setQueryOptions$4=lib_5.setQueryOptions,setCustomQuery$4=lib_5.setCustomQuery,setDefaultQuery$5=lib_5.setDefaultQuery,getQueryOptions$3=lib_8.getQueryOptions,checkValueChange$4=lib_8.checkValueChange,checkPropChange$1=lib_8.checkPropChange,getClassName$8=lib_8.getClassName,isEqual$8=lib_8.isEqual,getCompositeAggsQuery$3=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$4=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$4=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:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,defaultValue:types.string,value:types.value,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Select a value"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),showSearch:VueTypes.bool.def(!1),showClear:VueTypes.bool.def(!1),showLoadMore:VueTypes.bool.def(!1),loadMoreLabel:VueTypes.oneOfType([VueTypes.string,VueTypes.any]).def("Load More"),nestedField:types.string,index:VueTypes.string,searchPlaceholder:VueTypes.string.def("Type here to search..."),endpoint:types.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:[],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,s=n.$data.modifiedOptions;if(r){var a=e[o].buckets,i=[].concat(s,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=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$8(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=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,s=t.renderError,a=t.renderLabel,i=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||s,p=this.$scopedSlots.renderLabel||a,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?isFunction$1(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}]),e(Container,{class:this.$props.className},[this.$props.title&&e(Title,{class:getClassName$8(this.$props.innerClass,"title")||""},[this.$props.title]),e(Dropdown,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},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&&!i&&e("div",{attrs:{css:loadMoreContainer}},[e(Button,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:p}})])):d&&isFunction$1(d)?e("div",[d()]):d&&!isFunction$1(d)?d:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);checkValueChange$4(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$4(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$4(r);this.setQueryOptions(this.internalComponent,s,!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$4(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$4(o);this.setQueryOptions(t.componentId,s,!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$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=SingleDropdownList.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=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){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=getQueryOptions$3(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||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$4={setQueryOptions:setQueryOptions$4,updateQuery:updateQuery$5,setCustomQuery:setCustomQuery$4,setDefaultQuery:setDefaultQuery$5},ListConnected$2=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$7,mapDispatchtoProps$4)(SingleDropdownList),{componentType:constants_1$1.singleDropdownList,internalComponent:SingleDropdownList.hasInternalComponent()}));ListConnected$2.defaultQuery=SingleDropdownList.defaultQuery,ListConnected$2.generateQueryOptions=SingleDropdownList.generateQueryOptions,ListConnected$2.hasInternalComponent=SingleDropdownList.hasInternalComponent,ListConnected$2.name=SingleDropdownList.name,ListConnected$2.componentType=constants_1$1.singleDropdownList,ListConnected$2.install=function(e){e.component(ListConnected$2.name,ListConnected$2)};var updateQuery$6=lib_5.updateQuery,setQueryOptions$5=lib_5.setQueryOptions,setCustomQuery$5=lib_5.setCustomQuery,setDefaultQuery$6=lib_5.setDefaultQuery,isEqual$9=lib_8.isEqual,getQueryOptions$4=lib_8.getQueryOptions,checkValueChange$5=lib_8.checkValueChange,checkPropChange$2=lib_8.checkPropChange,getClassName$9=lib_8.getClassName,getCompositeAggsQuery$4=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$5=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$5=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:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.stringArray,value:types.stringArray,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Select values"),queryFormat:VueTypes.oneOf(["and","or"]).def("or"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),showSearch:VueTypes.bool.def(!1),showClear:VueTypes.bool.def(!1),showLoadMore:VueTypes.bool.def(!1),loadMoreLabel:VueTypes.oneOfType([VueTypes.string,VueTypes.any]).def("Load More"),nestedField:types.string,index:VueTypes.string,searchPlaceholder:VueTypes.string.def("Type here to search..."),endpoint:types.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:[],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$9(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,s=n.$data.modifiedOptions;if(r){var a=e[o].buckets,i=[].concat(s,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=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$9(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=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,s=t.renderError,a=t.renderLabel,i=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||s,l=this.$scopedSlots.renderLabel||a,c=this.$data.isLastBucket,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,d=[];return u&&this.error?isFunction$1(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}]),e(Container,{class:this.$props.className},[this.$props.title&&e(Title,{class:getClassName$9(this.$props.innerClass,"title")||""},[this.$props.title]),e(Dropdown,{attrs:{innerClass:this.$props.innerClass,items:[].concat(d,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},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:i,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:loadMoreContainer}},[e(Button,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):p&&isFunction$1(p)?e("div",[p()]):p&&!isFunction$1(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,s=this.$data.currentValue,a=null;if(o&&e.includes(o))s[o]?(s={},a=[]):(this.$data.modifiedOptions.forEach((function(e){s[e.key]=!0})),s[o]=!0,a=[o]);else if(t){if(a=e,s={},Array.isArray(e)&&e.forEach((function(e){s[e]=!0})),o&&o in s){var i=s,u=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey)));s=_extends({},u)}}else{if(s[e]){var l=s,c=(l[e],_objectWithoutPropertiesLoose(l,[e].map(_toPropertyKey)));s=_extends({},c)}else s[e]=!0;if(o&&o in s){var p=s,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey)));s=_extends({},d)}a=Object.keys(s)}checkValueChange$5(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=_extends({},s),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=MultiDropdownList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$5(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$5(r);this.setQueryOptions(this.internalComponent,s,!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$5(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$5(o);this.setQueryOptions(t.componentId,s,!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$4({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$5(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){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 s;if("or"===r)if(t.showMissing){var a,i,u=e.includes(t.missingLabel),l=[(i={},i[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),i)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),s={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),s=p}else s={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?s:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=getQueryOptions$4(e);return e.showLoadMore?getCompositeAggsQuery$4({query:n,props:e,after:t}):getAggsQuery(n,e)},hasInternalComponent:function(){return!0}},mapStateToProps$8=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],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$5={setQueryOptions:setQueryOptions$5,updateQuery:updateQuery$6,setCustomQuery:setCustomQuery$5,setDefaultQuery:setDefaultQuery$6},ListConnected$3=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$8,mapDispatchtoProps$5)(MultiDropdownList),{componentType:constants_1$1.multiDropdownList,internalComponent:MultiDropdownList.hasInternalComponent()}));ListConnected$3.name=MultiDropdownList.name,ListConnected$3.componentType=constants_1$1.multiDropdownList,ListConnected$3.defaultQuery=MultiDropdownList.defaultQuery,ListConnected$3.generateQueryOptions=MultiDropdownList.generateQueryOptions,ListConnected$3.hasInternalComponent=MultiDropdownList.hasInternalComponent,ListConnected$3.install=function(e){e.component(ListConnected$3.name,ListConnected$3)};var updateQuery$7=lib_5.updateQuery,setQueryOptions$6=lib_5.setQueryOptions,setCustomQuery$6=lib_5.setCustomQuery,isEqual$a=lib_8.isEqual,checkValueChange$6=lib_8.checkValueChange,getClassName$a=lib_8.getClassName,getOptionsFromQuery=lib_8.getOptionsFromQuery,handleA11yAction$1=lib_8.handleA11yAction,ToggleButton={name:"ToggleButton",props:{componentId:types.stringRequired,compoundClause:types.compoundClause,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:VueTypes.bool,react:types.react,showFilter:VueTypes.bool,title:types.title,URLParams:VueTypes.bool,renderItem:types.func,index:VueTypes.string,enableStrictSelection:VueTypes.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(){!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`."),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$a(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)isEqual$a(this.$data.currentValue,e)||isEqual$a(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;isEqual$a(n,this.selectedValue)||isEqual$a(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,s=e,a=[];a=t?ToggleButton.parseValue(s,n):this.$props.multiSelect?o.some((function(e){return e.value===s.value}))?o.filter((function(e){return e.value!==s.value})):o.concat(s):o.some((function(e){return e.value===s.value}))?[]:[s],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);checkValueChange$6(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$a(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(Button,{class:getClassName$a(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return handleA11yAction$1(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(Container,{class:toggleButtons},[this.$props.title&&t(Title,{class:getClassName$a(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}},mapStateToProps$9=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$6={updateQueryHandler:updateQuery$7,setQueryOptions:setQueryOptions$6,setCustomQuery:setCustomQuery$6},TBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$9,mapDispatchtoProps$6)(ToggleButton),{componentType:constants_1$1.toggleButton}));TBConnected.parseValue=ToggleButton.parseValue,TBConnected.defaultQuery=ToggleButton.defaultQuery,TBConnected.name=ToggleButton.name,TBConnected.install=function(e){e.component(TBConnected.name,TBConnected)},TBConnected.componentType=constants_1$1.toggleButton;var _excluded=["options"],updateQuery$8=lib_5.updateQuery,setQueryOptions$7=lib_5.setQueryOptions,setCustomQuery$7=lib_5.setCustomQuery,setDefaultQuery$7=lib_5.setDefaultQuery,parseHits$1=lib_8.parseHits,isEqual$b=lib_8.isEqual,getCompositeAggsQuery$5=lib_8.getCompositeAggsQuery,getResultStats$3=lib_8.getResultStats,extractQueryFromCustomQuery$6=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$6=lib_8.getOptionsForCustomQuery,ReactiveComponent={name:"ReactiveComponent",props:{componentId:types.stringRequired,compoundClause:types.compoundClause,aggregationField:types.string,aggregationSize:VueTypes.number,size:VueTypes.number,defaultQuery:types.func,customQuery:types.func,filterLabel:types.string,react:types.react,showFilter:VueTypes.bool.def(!0),URLParams:VueTypes.bool.def(!1),distinctField:types.string,distinctFieldConfig:types.props,index:VueTypes.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,s=t.showFilter,a=t.URLParams,i=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||!i&&!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=extractQueryFromCustomQuery$6(c),d=c?getOptionsForCustomQuery$6(c):null;d?this.setQueryOptions(r,_extends({},d,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:p,value:this.selectedValue||null,label:o,showFilter:s,URLParams:a})}if(this.setQuery=function(n){var r=n.options,o=_objectWithoutPropertiesLoose(n,_excluded),s=o.query;s&&s.query&&(s=s.query);var a=_extends({},r,{query:s}),i=a;s&&s.id&&(i=s),e.setCustomQuery(t.componentId,i),r&&e.setQueryOptions(t.componentId,_extends({},e.getAggsQuery(),r),!1),e.updateQuery(_extends({},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){updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var h=extractQueryFromCustomQuery$6(this.$defaultQuery),f=getOptionsForCustomQuery$6(this.$defaultQuery);f?this.setQueryOptions(this.internalComponent,_extends({},f,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:h})}},watch:{hits:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},total:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$b(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(){var e=arguments[0];try{var t=this.$scopedSlots.default,n=this.error,r=this.isLoading,o=this.selectedValue,s=_extends({error:n,loading:r},this.getData(),{value:o,setQuery:this.setQuery});return e("div",[t(s)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:getCompositeAggsQuery$5({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,s=parseHits$1(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(s=s.filter((function(e){return!a.includes(e._id)}))),s=[].concat(r,s)}return{data:s,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return getResultStats$3(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},mapStateToProps$a=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}},mapDispatchtoProps$7={setQueryOptions:setQueryOptions$7,updateQuery:updateQuery$8,setCustomQuery:setCustomQuery$7,setDefaultQuery:setDefaultQuery$7},ConnectedComponent=ComponentWrapper$1(connect(mapStateToProps$a,mapDispatchtoProps$7)(ReactiveComponent),{componentType:constants_1$1.reactiveComponent}),RcConnected=PreferencesConsumer({name:"RcConnected",render:function(e){return e(ConnectedComponent,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots})}});RcConnected.name=ReactiveComponent.name,RcConnected.hasInternalComponent=ReactiveComponent.hasInternalComponent,RcConnected.componentType=constants_1$1.reactiveComponent,RcConnected.install=function(e){e.component(RcConnected.name,RcConnected)};
30
+ */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,s=void 0===o?"":o,a=r.activeIndex,i=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,m=r.highlightStyle,g=void 0===m?{}:m,y=r.highlightTag,v=void 0===y?"mark":y,_=r.sanitize,b=r.searchWords,$=r.textToHighlight,C=r.unhighlightClassName,O=void 0===C?"":C,T=r.unhighlightStyle,S=t.data,w=dist_1({autoEscape:l,caseSensitive:p,findChunks:d,sanitize:_,searchWords:b,textToHighlight:$}),P=v,E=-1,R="";return e("span",_objectSpread({},S),w.map((function(t,r){var o=$.substr(t.start,t.end-t.start);if(t.highlight){var a=++E===+i;R="".concat(f," ").concat(a?s:""),n=!0===a&&null!=u?Object.assign({},g,u):g;var l={class:R,key:r,style:n};return"string"!=typeof P&&(l.props={highlightIndex:E}),S.scopedSlots?e(P,l,[S.scopedSlots.default({children:o,highlightIndex:E})]):e(P,l,o)}return e("span",{class:O,key:r,style:T},o)})))}},_templateObject$f,highlightStyle={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},PredictiveSuggestion=index$1("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=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,s=t.description,a=t.image,i=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?e("div",{class:"trim"},[l||!i&&!u?e(VueHighlightWords,{attrs:{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:highlightStyle}}):e(PredictiveSuggestion,{domProps:{innerHTML:n}})]):n:o||a||s?e(Flex,{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(Flex,{attrs:{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(VueHighlightWords,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:highlightStyle},class:css({fontSize:"1rem"})})]),s&&e("div",{class:cx("trim",css({marginTop:3}))},[e(VueHighlightWords,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:s,highlightStyle:highlightStyle}})])])]):r}},SearchSvg={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:_extends({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"}})])}},CancelSvg={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"}})])}},_templateObject$g;injectGlobal(_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(){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"}})])])])}},_templateObject$h;injectGlobal(_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(){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"}})])])])}},_templateObject$i;injectGlobal(_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(){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"}})])])])])}},STATUS={inactive:"INACTIVE",stopped:"STOPPED",active:"ACTIVE",denied:"DENIED"},Mic={name:"Mic",props:{children:types.title,lang:VueTypes.string.def("en-US"),iconPosition:VueTypes.string.def("left"),handleResult:types.func,onNoMatch:types.func,onError:types.func,getInstance:types.func,render:types.func,className:types.string,applyClearStyle:VueTypes.bool,showIcon:VueTypes.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,s=t.lang,a=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=s,a&&a(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.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case STATUS.active:return e(ListenSvg,{attrs:{className:n},nativeOn:{click:this.handleClick}});case STATUS.stopped:case STATUS.denied:return e(MuteSvg,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(MicSvg,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},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=arguments[0];return this.hasCustomRenderer?this.getComponent():e(IconWrapper,[this.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(){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(SearchSvg,{attrs:{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}}})}},_templateObject$j,_templateObject2$7,TagsContainer=index$1("div")(_templateObject$j||(_templateObject$j=_taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),TagItem=index$1("span")(_templateObject2$7||(_templateObject2$7=_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"]))),updateQuery$1=lib_5.updateQuery,setQueryOptions$1=lib_5.setQueryOptions,setCustomQuery=lib_5.setCustomQuery,setDefaultQuery$1=lib_5.setDefaultQuery,setCustomHighlightOptions=lib_5.setCustomHighlightOptions,recordSuggestionClick=lib_5.recordSuggestionClick,loadPopularSuggestions=lib_5.loadPopularSuggestions,getRecentSearches=lib_5.getRecentSearches,resetStoreForComponent=lib_5.resetStoreForComponent,debounce$1=lib_8.debounce,checkValueChange=lib_8.checkValueChange,getClassName$3=lib_8.getClassName,extractQueryFromCustomQuery$1=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$1=lib_8.getOptionsForCustomQuery,isEqual$4=lib_8.isEqual,getCompositeAggsQuery$1=lib_8.getCompositeAggsQuery,withClickIds=lib_8.withClickIds,getResultStats$1=lib_8.getResultStats,handleOnSuggestions=lib_8.handleOnSuggestions,getTopSuggestions=lib_8.getTopSuggestions,normalizeDataField=lib_8.normalizeDataField,DataSearch={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.enableRecentSearches,n=e.distinctField,r=e.distinctFieldConfig,o=e.index;e.mode===constants_5$1.TAG&&(this.$options.isTagsMode=!0),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`."),this.currentValue="",this.$options.isTagsMode&&(this.currentValue=""),(this.$props.enableDefaultSuggestions||this.currentValue)&&(this.loadPopularSuggestions(this.$props.componentId),t&&this.getRecentSearches()),this.handleTextChange=debounce$1(this.handleText,this.$props.debounce),this.updateDefaultQueryHandlerDebounced=debounce$1(this.updateDefaultQueryHandler,this.$props.debounce),this.updateQueryHandlerDebounced=debounce$1(this.updateQueryHandler,this.$props.debounce),updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,this.currentValue),updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.currentValue),this.updateDefaultQueryHandlerDebounced(this.currentValue,this.$props,!1)},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),withClickIds(e)},topSuggestions:function(){return this.currentValue&&this.enablePopularSuggestions?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return getTopSuggestions(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enablePopularSuggestions;if(this.currentValue||!this.enableDefaultSuggestions)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return _extends({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return _extends({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return getTopSuggestions(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return hasCustomRenderer(this)},stats:function(){return getResultStats$1(this)}},props:{options:types.options,autoFocus:VueTypes.bool,autosuggest:VueTypes.bool.def(!0),beforeValueChange:types.func,className:VueTypes.string.def(""),clearIcon:types.children,componentId:types.stringRequired,compoundClause:types.compoundClause,customHighlight:types.func,customQuery:types.func,defaultQuery:types.func,dataField:VueTypes.oneOfType([VueTypes.string,VueTypes.shape({field:VueTypes.string,weight:VueTypes.number}),VueTypes.arrayOf(VueTypes.string),VueTypes.arrayOf({field:VueTypes.string,weight:VueTypes.number})]),aggregationField:types.string,aggregationSize:VueTypes.number,size:VueTypes.number,debounce:VueTypes.number.def(0),defaultValue:types.string,excludeFields:types.excludeFields,value:VueTypes.oneOfType([VueTypes.arrayOf(VueTypes.string),types.value]),defaultSuggestions:types.suggestions,enableSynonyms:VueTypes.bool.def(!0),enablePopularSuggestions:VueTypes.bool.def(!1),enableRecentSearches:VueTypes.bool.def(!1),fieldWeights:types.fieldWeights,filterLabel:types.string,fuzziness:types.fuzziness,highlight:VueTypes.bool,highlightField:types.stringOrArray,icon:types.children,iconPosition:VueTypes.oneOf(["left","right"]).def("left"),includeFields:types.includeFields,innerClass:types.style,innerRef:VueTypes.string.def("searchInputField"),render:types.func,renderPopularSuggestions:types.func,parseSuggestion:types.func,renderNoSuggestion:types.title,renderError:types.title,placeholder:VueTypes.string.def("Search"),queryFormat:VueTypes.oneOf(["and","or"]).def("or"),react:types.react,showClear:VueTypes.bool.def(!0),showDistinctSuggestions:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showIcon:VueTypes.bool.def(!0),title:types.title,theme:types.style,URLParams:VueTypes.bool.def(!1),strictSelection:VueTypes.bool.def(!1),nestedField:types.string,enablePredictiveSuggestions:VueTypes.bool.def(!1),recentSearchesIcon:VueTypes.any,popularSearchesIcon:VueTypes.any,showVoiceSearch:VueTypes.bool.def(!1),getMicInstance:types.func,renderMic:types.func,distinctField:types.string,distinctFieldConfig:types.props,focusShortcuts:VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string,VueTypes.number])).def(["/"]),addonBefore:VueTypes.any,addonAfter:VueTypes.any,expandSuggestionsContainer:VueTypes.bool.def(!0),index:VueTypes.string,enableDefaultSuggestions:VueTypes.bool.def(!0),mode:VueTypes.oneOf(["select","tag"]).def("select"),renderSelectedTags:VueTypes.any,endpoint:types.endpointConfig},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=DataSearch.highlightQuery(this.$props)||{};this.queryOptions=_extends({},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?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:{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){(!isEqual$4(e,t)||this.$options.isTagsMode&&!isEqual$4(e,this.selectedTags))&&(this.isPending&&this.$options.isTagsMode&&Array.isArray(e)&&(this.isPending=!1),this.setValue(e,!0,this.$props,""===e?lib_7.CLEAR_VALUE:void 0,!1,"string"!=typeof e&&this.$options.isTagsMode))},defaultQuery:function(e,t){isQueryIdentical(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandlerDebounced(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)},suggestions:function(e){Array.isArray(e)&&this.$data.currentValue.trim().length&&(this.$emit("suggestions",e),this.normalizedSuggestions=this.onSuggestions(e))},selectedValue:function(e,t){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=[]),this.setValue(e||"",!0,this.$props,this.$options.isTagsMode?lib_7.SUGGESTION_SELECT:void 0))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandlerDebounced(e,this.$props):this.$options.isTagsMode?this.$options.isTagsMode&&(this.$data.currentValue=e):this.updateQueryHandlerDebounced(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=DataSearch.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=DataSearch.highlightQuery(this.$props)||{};this.queryOptions=_extends({},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?getQuerySuggestionsComponent({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):getComponent(r,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},onSuggestions:function(e){return handleOnSuggestions(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,lib_7.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,s){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===s&&(s=this.$options.isTagsMode);checkValueChange(n.componentId,e,n.beforeValueChange,(function(){if(!s||!isEqual$4(e,a.selectedTags)){if(e||!1!==n.enableDefaultSuggestions?!e&&a.currentValue&&a.enableRecentSearches&&a.getRecentSearches():a.resetStoreForComponent(n.componentId),s){if(Array.isArray(a.selectedTags)&&a.selectedTags.length){if("string"==typeof e&&a.selectedTags.includes(e))return void(a.isOpen=!1);a.selectedTags=[].concat(a.selectedTags),"string"==typeof e&&e?a.selectedTags.push(e):Array.isArray(e)&&!isEqual$4(a.selectedTags,e)&&(a.selectedTags=e)}else e&&(a.selectedTags="string"!=typeof e?e:[].concat(e));a.currentValue=""}else a.currentValue=e;var i=e;s&&(i=Array.isArray(a.selectedTags)&&a.selectedTags.length?a.selectedTags:void 0),t?(a.$props.autosuggest&&(o&&(a.isOpen=!1),"string"==typeof e&&a.updateDefaultQueryHandlerDebounced(e,a.$props)),n.strictSelection&&n.autosuggest?r===lib_7.SUGGESTION_SELECT||void 0!==n.value?a.updateQueryHandler(n.componentId,i,n):""!==a.currentValue&&a.setValue("",!0):a.updateQueryHandler(n.componentId,i,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,n){if(void 0===t&&(t=this.$props),e||!1!==t.enableDefaultSuggestions){var r,o=DataSearch.defaultQuery(e,t);if(this.defaultQuery){var s=this.defaultQuery(e,t)||{},a=extractQueryFromCustomQuery$1(s);a&&(o=a),r=getOptionsForCustomQuery$1(s),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,_extends({},this.queryOptions,r),n),this.updateQuery({componentId:this.internalComponent,query:o,value:e,componentType:constants_1$1.dataSearch},n)}else this.resetStoreForComponent(t.componentId)},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,s=n.filterLabel,a=n.showFilter,i=n.URLParams,u=DataSearch.defaultQuery(t,n);if(o){var l=o(t,n),c=extractQueryFromCustomQuery$1(l);c&&(u=c),r=getOptionsForCustomQuery$1(l),updateCustomQuery(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,_extends({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:s,showFilter:a,URLParams:i,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("",lib_7.CLEAR_VALUE)},handleKeyDown:function(e,t){var n=e.target.value,r=this.$props,o=r.value,s=r.strictSelection,a=r.size,i=r.autosuggest;void 0!==o&&(this.isPending=!0),"Enter"===e.key&&(null===t||t<0||t===[].concat([].concat(this.suggestionsList).slice(0,a||10),this.defaultSearchSuggestions,this.topSuggestions).length)&&(this.isPending=!1,this.setValue(this.$options.isTagsMode&&i&&s?"":n,!0,this.$props,void 0,!1),this.onValueSelectedHandler(n,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.isOpen=!0);var r=this.$props,o=r.value,s=r.autosuggest;void 0===o?this.setValue(n,!1,this.$props,void 0,!0,!1):(this.isPending=!0,this.currentValue=n,this.$emit("change",n,(function(e){var n=(void 0===e?{}:e).isOpen,r=void 0!==n&&n;if(t.$options.isTagsMode&&s)return t.isOpen=r,void t.updateDefaultQueryHandlerDebounced(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,lib_7.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,lib_7.SUGGESTION_SELECT,!0),this.$emit("change",n,this.triggerQuery)}else this.$emit("change",e.value,this.triggerQuery);this.isPending=!1,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(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(SearchSvg):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(SuggestionWrapper,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[isFunction$1(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(CancelSvg):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,s=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,i=this.$data,u=i.isOpen,l=i.currentValue;return!s||!u||e.length||this.isLoading||!l||a&&this.error?null:t(SuggestionWrapper,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof s?s(l):s}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(InputAddon,[t()]):null},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(TagItem,{class:getClassName$3(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(CancelSvg)])])},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,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(TagsContainer,[n.map((function(t){return e.renderTag(t)})),r&&t(TagItem,{class:getClassName$3(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(CancelSvg)])])])},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(InputAddon,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,s=t.getMicInstance,a=t.showVoiceSearch,i=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(IconGroup,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(IconWrapper,{on:{click:this.clearValue},attrs:{showIcon:i,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Mic,{attrs:{getInstance:s,render:u,handleResult:this.handleVoiceResults,className:getClassName$3(o,"mic")||null}}),"right"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(IconGroup,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n=e.target||e.srcElement,r=n.tagName;n.isContentEditable||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||null==(t=this.$refs)||null==(t=t[this.$props.innerRef])||t.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}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,s=n.expandSuggestionsContainer,a=n.enableDefaultSuggestions,i=this.$scopedSlots,u=i.recentSearchesIcon,l=i.popularSearchesIcon,c=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return!1!==a||this.currentValue||(c=!1),t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$3(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(Downshift,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var a=n.getInputEvents,i=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,m=n.setHighlightedIndex,g=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:suggestions$1(e.themePreset,r)+" "+getClassName$3(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:_extends({},p({item:n})),on:_extends({},d({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:_extends({},p({item:n})),on:_extends({},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(CustomSvg,{attrs:{className:getClassName$3(e.$props.innerClass,"recent-search-icon")||null,icon:u,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(CustomSvg,{attrs:{className:getClassName$3(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),hasQuerySuggestionsRenderer(e)?e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:_extends({},p({item:n})),on:_extends({},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(CustomSvg,{attrs:{className:getClassName$3(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:suggestionsContainer},[t(InputGroup,[e.renderInputAddonBefore(),t(InputWrapper,[t(Input,{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:getClassName$3(e.$props.innerClass,"input"),on:_extends({},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(){m(null)}})),domProps:_extends({},i({value:null===e.$data.currentValue||"string"!=typeof e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!s&&g()])," ",e.renderInputAddonAfter()]),s&&g(),e.renderTags()])}}}):t("div",{class:suggestionsContainer},[t(InputGroup,[this.renderInputAddonBefore(),t(InputWrapper,[t(Input,{class:getClassName$3(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:_extends({},{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.handleKeyDown(t,null)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:_extends({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()]),this.renderTags()])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=normalizeDataField(t.dataField,t.fieldWeights);n={bool:{should:DataSearch.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=[],s=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:s,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:s,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:s,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:s,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:s,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:_extends({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}},hasInternalComponent:function(){return!0}},mapStateToProps$3=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}},mapDispatchToProps$2={setQueryOptions:setQueryOptions$1,updateQuery:updateQuery$1,setCustomQuery:setCustomQuery,setDefaultQuery:setDefaultQuery$1,setCustomHighlightOptions:setCustomHighlightOptions,recordSuggestionClick:recordSuggestionClick,loadPopularSuggestions:loadPopularSuggestions,getRecentSearches:getRecentSearches,resetStoreForComponent:resetStoreForComponent},DSConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$3,mapDispatchToProps$2)(DataSearch),{componentType:constants_1$1.dataSearch,internalComponent:DataSearch.hasInternalComponent()})),_templateObject$k;DSConnected.defaultQuery=DataSearch.defaultQuery,DSConnected.shouldQuery=DataSearch.shouldQuery,DSConnected.highlightQuery=DataSearch.highlightQuery,DSConnected.hasInternalComponent=DataSearch.hasInternalComponent,DSConnected.name=DataSearch.name,DSConnected.install=function(e){e.component(DSConnected.name,DSConnected)},DSConnected.componentType=constants_1$1.dataSearch;var AutofillSvgIcon=index$1("button")(_templateObject$k||(_templateObject$k=_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(){var e=arguments[0];return e(AutofillSvgIcon,{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)}}},updateQuery$2=lib_5.updateQuery,setCustomQuery$1=lib_5.setCustomQuery,setDefaultQuery$2=lib_5.setDefaultQuery,recordSuggestionClick$1=lib_5.recordSuggestionClick,_debounce=lib_8.debounce,checkValueChange$1=lib_8.checkValueChange,getClassName$4=lib_8.getClassName,isEqual$5=lib_8.isEqual,getCompositeAggsQuery$2=lib_8.getCompositeAggsQuery,withClickIds$1=lib_8.withClickIds,getResultStats$2=lib_8.getResultStats,normalizeDataField$1=lib_8.normalizeDataField,SearchBox={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===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.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=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$2(this)}},props:{autoFocus:VueTypes.bool,autosuggest:VueTypes.bool.def(!0),beforeValueChange:types.func,className:VueTypes.string.def(""),clearIcon:types.children,componentId:types.stringRequired,compoundClause:types.compoundClause,customHighlight:types.func,customQuery:types.func,defaultQuery:types.func,dataField:VueTypes.oneOfType([VueTypes.string,VueTypes.shape({field:VueTypes.string,weight:VueTypes.number}),VueTypes.arrayOf(VueTypes.string),VueTypes.arrayOf({field:VueTypes.string,weight:VueTypes.number})]),aggregationField:types.string,aggregationSize:VueTypes.number,size:VueTypes.number,debounce:VueTypes.number.def(0),defaultValue:types.string,excludeFields:types.excludeFields,value:VueTypes.oneOfType([VueTypes.arrayOf(VueTypes.string),types.value]),defaultSuggestions:types.suggestions,enableSynonyms:VueTypes.bool.def(!0),enableQuerySuggestions:VueTypes.bool.def(!1),enablePopularSuggestions:VueTypes.bool.def(!1),enableRecentSuggestions:VueTypes.bool.def(!1),fieldWeights:types.fieldWeights,filterLabel:types.string,fuzziness:types.fuzziness,highlight:VueTypes.bool,highlightField:types.stringOrArray,icon:types.children,iconPosition:VueTypes.oneOf(["left","right"]).def("left"),includeFields:types.includeFields,innerClass:types.style,innerRef:VueTypes.string.def("searchInputField"),render:types.func,renderNoSuggestion:types.title,renderError:types.title,placeholder:VueTypes.string.def("Search"),queryFormat:VueTypes.oneOf(["and","or"]).def("or"),react:types.react,showClear:VueTypes.bool.def(!0),showDistinctSuggestions:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showIcon:VueTypes.bool.def(!0),title:types.title,theme:types.style,URLParams:VueTypes.bool.def(!1),strictSelection:VueTypes.bool.def(!1),nestedField:types.string,enablePredictiveSuggestions:VueTypes.bool.def(!1),recentSearchesIcon:VueTypes.any,popularSearchesIcon:VueTypes.any,showVoiceSearch:VueTypes.bool.def(!1),getMicInstance:types.func,renderMic:types.func,distinctField:types.string,distinctFieldConfig:types.props,focusShortcuts:VueTypes.arrayOf(VueTypes.oneOfType([VueTypes.string,VueTypes.number])).def(["/"]),addonBefore:VueTypes.any,addonAfter:VueTypes.any,expandSuggestionsContainer:VueTypes.bool.def(!0),index:VueTypes.string,popularSuggestionsConfig:VueTypes.object,recentSuggestionsConfig:VueTypes.object,applyStopwords:VueTypes.bool,customStopwords:types.stringArray,onData:types.func,renderItem:types.func,enterButton:VueTypes.bool.def(!1),renderEnterButton:VueTypes.any,mode:VueTypes.oneOf(["select","tag"]).def("select"),renderSelectedTags:VueTypes.any,searchboxId:VueTypes.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$5(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$5(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$1(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(withClickIds$1(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){if(!isEqual$5(e,t)&&(this.$options.isTagsMode?!isEqual$5(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$5(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)},validateDataField:function(){var e=SearchBox.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 getComponent(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=helper_36(this.$props);return e&&(t.aggs=getCompositeAggsQuery$2({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,s){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===s&&(s=void 0);checkValueChange$1(n.componentId,e,n.beforeValueChange,(function(){if(!a.$options.isTagsMode||!isEqual$5(e,a.selectedTags)){if(a.$options.isTagsMode&&r===lib_7.SUGGESTION_SELECT){if(Array.isArray(a.selectedTags)&&a.selectedTags.length){if("string"==typeof e&&a.selectedTags.includes(e))return void(a.isOpen=!1);a.selectedTags=[].concat(a.selectedTags),"string"==typeof e&&e?a.selectedTags.push(e):Array.isArray(e)&&!isEqual$5(a.selectedTags,e)&&(a.selectedTags=e)}else e&&(a.selectedTags="string"!=typeof e?e:[].concat(e));a.currentValue=""}else a.currentValue=decodeHtml(e);var i=e;a.$options.isTagsMode&&r===lib_7.SUGGESTION_SELECT&&(i=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===lib_7.SUGGESTION_SELECT||(a.$options.isTagsMode?0===a.selectedTags.length:""===e)?a.triggerCustomQuery(i,a.$options.isTagsMode?void 0:s):a.setValue("",!0):void 0!==n.value&&r!==lib_7.SUGGESTION_SELECT&&r!==lib_7.CLEAR_VALUE||a.triggerCustomQuery(i,a.$options.isTagsMode?void 0:s)):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=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,s=n.showFilter,a=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:s,URLParams:a,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,s=e.defaultQuery,a=void 0===s||s,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),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,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(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(SearchSvg):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(SuggestionWrapper,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[isFunction$1(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(CancelSvg):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,s=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,i=this.$data,u=i.isOpen,l=i.currentValue;return!s||!u||e.length||this.isLoading||!l||a&&this.error?null:t(SuggestionWrapper,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof s?s(l):s}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(InputAddon,{class:"addon-before"},[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(InputAddon,{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,s=this.$scopedSlots.renderEnterButton;if(r){return t("div",{class:"enter-button-wrapper"},[s?s(e.enterButtonOnClick):t(Button,{class:"enter-btn "+getClassName$4(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,s=t.getMicInstance,a=t.showVoiceSearch,i=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(IconGroup,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(IconWrapper,{on:{click:this.clearValue},attrs:{showIcon:i,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Mic,{attrs:{getInstance:s,render:u,handleResult:this.handleVoiceResults,className:getClassName$4(o,"mic")||null}}),"right"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(IconGroup,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&i&&e(IconWrapper,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n=e.target||e.srcElement,r=n.tagName;n.isContentEditable||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||null==(t=this.$refs)||null==(t=t[this.$props.innerRef])||t.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,n=this.$createElement;return e._category?null:n(AutoFillSvg,{on:{click:function(n){n.stopPropagation(),t.onAutofillClick(e)}}})},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(TagItem,{class:getClassName$4(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(CancelSvg)])])},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,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(TagsContainer,[n.map((function(t){return e.renderTag(t)})),r&&t(TagItem,{class:getClassName$4(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(CancelSvg)])])])}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.expandSuggestionsContainer,s=this.$scopedSlots,a=s.recentSearchesIcon,i=s.popularSearchesIcon,u=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,l=this.$scopedSlots.renderItem||this.$props.renderItem;return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$4(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.autosuggest?t(Downshift,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var s=n.getInputEvents,c=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,m=n.setHighlightedIndex,g=function(){var n=function(e){switch(e){case helper_13.Recent:return a;case helper_13.Popular:return i;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:suggestions$1(e.themePreset,r)+" "+getClassName$4(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(r,o){return t("li",{domProps:_extends({},p({item:r})),on:_extends({},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(CustomSvg,{attrs:{className:getClassName$4(e.$props.innerClass,r._suggestion_type+"-search-icon")||null,icon:n(r._suggestion_type),type:r._suggestion_type+"-search-icon"}})]),t(SuggestionItem,{attrs:{currentValue:e.currentValue,suggestion:r}}),e.renderAutoFill(r)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return t("div",{class:suggestionsContainer},[t(InputGroup,[e.renderInputAddonBefore(),t(InputWrapper,[t(Input,{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:getClassName$4(e.$props.innerClass,"input"),on:_extends({},s({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(){m(null)}})),domProps:_extends({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!o&&g()]),e.renderInputAddonAfter(),e.renderEnterButtonElement()]),o&&g(),e.renderTags()])}}}):t("div",{class:suggestionsContainer},[t(InputGroup,[this.renderInputAddonBefore(),t(InputWrapper,[t(Input,{class:getClassName$4(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:_extends({},{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:_extends({},{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)},hasInternalComponent:function(){return!0},defaultQuery:function(e,t){var n,r=normalizeDataField$1(t.dataField,t.fieldWeights);return(n={bool:{should:SearchBox.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=[],s=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:s,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:s,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:s,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:s,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:s,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)}},mapStateToProps$4=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}},mapDispatchToProps$3={updateQuery:updateQuery$2,setCustomQuery:setCustomQuery$1,setDefaultQuery:setDefaultQuery$2,recordSuggestionClick:recordSuggestionClick$1},SBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$4,mapDispatchToProps$3)(SearchBox),{componentType:constants_1$1.searchBox,internalComponent:!0})),_templateObject$l,_templateObject2$8,_templateObject3$6,_templateObject4$5,_templateObject5$3,_templateObject6$3;SBConnected.name=SearchBox.name,SBConnected.defaultQuery=SearchBox.defaultQuery,SBConnected.shouldQuery=SearchBox.shouldQuery,SBConnected.hasInternalComponent=SearchBox.hasInternalComponent,SBConnected.install=function(e){e.component(SBConnected.name,SBConnected)},SBConnected.componentType=constants_1$1.searchBox;var item={width:"15px",height:"15px",scale:"4px"},vh=css(_templateObject$l||(_templateObject$l=_taggedTemplateLiteralLoose(["\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=css(_templateObject2$8||(_templateObject2$8=_taggedTemplateLiteralLoose(["\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;return css(_templateObject3$6||(_templateObject3$6=_taggedTemplateLiteralLoose(["\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"])),vh,curriedLighten(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||curriedLighten(.1,t.colors.textColor),t.colors.primaryColor,item.width,item.width,item.height,t.colors.primaryColor,item.scale,item.width,item.scale,item.height,item.scale,item.height,item.scale)},Radio=index$1("input")(_templateObject4$5||(_templateObject4$5=_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=index$1("input")(_templateObject5$3||(_templateObject5$3=_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=index$1("ul")(_templateObject6$3||(_templateObject6$3=_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,s=t.size,a=t.sortBy,i=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:_extends({field:o,size:s,order:getAggsOrder(a||"count")},i?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),_extends({},r,extractQuery(t))},updateQuery$3=lib_5.updateQuery,setQueryOptions$2=lib_5.setQueryOptions,setCustomQuery$2=lib_5.setCustomQuery,setDefaultQuery$3=lib_5.setDefaultQuery,getQueryOptions$1=lib_8.getQueryOptions,checkValueChange$2=lib_8.checkValueChange,getClassName$5=lib_8.getClassName,isEqual$6=lib_8.isEqual,extractQueryFromCustomQuery$2=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$2=lib_8.getOptionsForCustomQuery,SingleList={name:"SingleList",props:{beforeValueChange:types.func,className:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.string,value:types.value,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showRadio:VueTypes.bool.def(!0),showSearch:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),nestedField:types.string,index:VueTypes.string,enableStrictSelection:VueTypes.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(){!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:[],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$6(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=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,s=n.renderError,a=this.$scopedSlots.renderItem||o,i=this.$scopedSlots.renderError||s;if(i&&this.error)return isFunction$1(i)?i(this.error):i;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResults)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||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm.toLowerCase())))}));return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$5(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(UL,{class:getClassName$5(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(Radio,{class:getClassName$5(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,type:"radio",show:this.$props.showRadio},on:{click:this.handleClick},domProps:_extends({},{checked:this.$data.currentValue===r})}),t("label",{class:getClassName$5(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[t("span",[r,this.$props.showCount&&t("span",{class:getClassName$5(this.$props.innerClass,"count")||null},[" (",this.totalDocumentCount,")"])])])]):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(Radio,{class:getClassName$5(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:_extends({},{checked:e.currentValue===String(n.key)})}),t("label",{class:getClassName$5(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:getClassName$5(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="");checkValueChange$2(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$2(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$2(r);this.setQueryOptions(this.internalComponent,s,!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$2(o);var s=getOptionsForCustomQuery$2(o);updateCustomQuery(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,s,!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$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(){var e=this.$createElement;return this.$props.showSearch?e(Input,{class:getClassName$5(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 s={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(s,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.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:getClassName$5(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(this)}},generateQueryOptions:function(e){var t=getQueryOptions$1(e);return getAggsQuery(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}},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||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$2={setQueryOptions:setQueryOptions$2,updateQuery:updateQuery$3,setCustomQuery:setCustomQuery$2,setDefaultQuery:setDefaultQuery$3},ListConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$5,mapDispatchtoProps$2)(SingleList),{componentType:constants_1$1.singleList,internalComponent:SingleList.hasInternalComponent()}));ListConnected.name=SingleList.name,ListConnected.defaultQuery=SingleList.defaultQuery,ListConnected.generateQueryOptions=SingleList.generateQueryOptions,ListConnected.hasInternalComponent=SingleList.hasInternalComponent,ListConnected.componentType=constants_1$1.singleList,ListConnected.install=function(e){e.component(ListConnected.name,ListConnected)};var updateQuery$4=lib_5.updateQuery,setQueryOptions$3=lib_5.setQueryOptions,setCustomQuery$3=lib_5.setCustomQuery,setDefaultQuery$4=lib_5.setDefaultQuery,isEqual$7=lib_8.isEqual,getQueryOptions$2=lib_8.getQueryOptions,checkValueChange$3=lib_8.checkValueChange,getClassName$6=lib_8.getClassName,extractQueryFromCustomQuery$3=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$3=lib_8.getOptionsForCustomQuery,MultiList={name:"MultiList",props:{defaultValue:types.stringArray,value:types.stringArray,queryFormat:VueTypes.oneOf(["and","or"]).def("or"),showCheckbox:VueTypes.bool.def(!0),beforeValueChange:types.func,className:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Search"),react:types.react,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),showSearch:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),nestedField:types.string,index:VueTypes.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(){!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:[],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$7(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$7(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){isEqual$7(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$7(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=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,s=n.renderError,a=this.$scopedSlots.renderItem||o,i=this.$scopedSlots.renderError||s;if(i&&this.error)return isFunction$1(i)?i(this.error):i;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResults)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||suggestions_1(String(t.key)).toLowerCase().includes(suggestions_1(e.$data.searchTerm).toLowerCase()))}));return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$6(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(UL,{class:getClassName$6(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(Checkbox,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:getClassName$6(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:_extends({},{checked:!!this.currentValue[r]})}),t("label",{class:getClassName$6(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[t("span",[r,this.$props.showCount&&t("span",{class:getClassName$6(this.$props.innerClass,"count")},[" (",this.totalDocumentCount,")"])])])]):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(Checkbox,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:getClassName$6(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:_extends({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:getClassName$6(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:getClassName$6(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,s=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))s[o]?(s={},a=[]):(this.$data.modifiedOptions.forEach((function(e){s[e.key]=!0})),s[o]=!0,a=[o]);else if(t){if(a=e,s={},e&&e.length&&e.forEach((function(e){s[e]=!0})),o&&o in s){var i=s,u=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey$1)));s=_extends({},u)}}else{if(s[e]){var l=s,c=(l[e],_objectWithoutPropertiesLoose(l,[e].map(_toPropertyKey$1)));s=_extends({},c)}else Array.isArray(e)?e.forEach((function(e){s[e]=!0})):s[e]=!0;if(o&&o in s){var p=s,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey$1)));s=_extends({},d)}a=Object.keys(s)}checkValueChange$3(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},s),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=MultiList.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 s=getOptionsForCustomQuery$3(r);this.setQueryOptions(this.internalComponent,s,!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$3(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$3(o);this.setQueryOptions(t.componentId,s,!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$3(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(){var e=this.$createElement;return this.$props.showSearch?e(Input,{class:getClassName$6(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;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 s={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return getComponent(s,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:getClassName$6(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])}},computed:{hasCustomRenderer:function(){return hasCustomRenderer(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 s;if("or"===r)if(t.showMissing){var a,i,u=e.includes(t.missingLabel),l=[(i={},i[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),i)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),s={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),s=p}else s={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?s:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=getQueryOptions$2(e);return getAggsQuery(t,e)}},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||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],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$3={setQueryOptions:setQueryOptions$3,updateQuery:updateQuery$4,setCustomQuery:setCustomQuery$3,setDefaultQuery:setDefaultQuery$4};MultiList.hasInternalComponent=function(){return!0};var ListConnected$1=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$6,mapDispatchtoProps$3)(MultiList),{componentType:constants_1$1.multiList,internalComponent:MultiList.hasInternalComponent()})),_templateObject$m,_templateObject2$9,_templateObject3$7,_templateObject4$6;ListConnected$1.name=MultiList.name,ListConnected$1.defaultQuery=MultiList.defaultQuery,ListConnected$1.generateQueryOptions=MultiList.generateQueryOptions,ListConnected$1.hasInternalComponent=MultiList.hasInternalComponent,ListConnected$1.componentType=constants_1$1.multiList,ListConnected$1.install=function(e){e.component(ListConnected$1.name,ListConnected$1)};var small=css(_templateObject$m||(_templateObject$m=_taggedTemplateLiteralLoose(["\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 css(_templateObject2$9||(_templateObject2$9=_taggedTemplateLiteralLoose(["\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)},Select=index$1("button")(_templateObject3$7||(_templateObject3$7=_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=index$1("span")(_templateObject4$6||(_templateObject4$6=_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,_templateObject2$a,open=css(_templateObject$n||(_templateObject$n=_taggedTemplateLiteralLoose(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),Chevron=index$1("span")(_templateObject2$a||(_templateObject2$a=_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$7=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:VueTypes.string.def("key"),labelField:VueTypes.string.def("label"),multi:VueTypes.bool,placeholder:types.string,returnsObject:VueTypes.bool,customLabelRenderer:types.func,hasCustomRenderer:VueTypes.bool,customRenderer:types.func,renderItem:types.func,renderNoResults:VueTypes.any,handleChange:types.func,transformData:types.func,selectedItem:types.selectedValue,showCount:VueTypes.bool,single:VueTypes.bool,small:VueTypes.bool.def(!1),themePreset:types.themePreset,showSearch:VueTypes.bool,showClear:VueTypes.bool,searchPlaceholder:VueTypes.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,s=n.placeholder,a=n.labelField,i=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,p=n.footer,d=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,m=r;c&&(m=c(m));var g=m.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 t(Downshift,{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,_=n.getItemEvents,b=n.getInputEvents;return t("div",{class:suggestionsContainer},[t(Select,{on:_extends({},_extends({},v({onClick:e.toggle}))),class:getClassName$7(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):s,small:e.$props.small,themePreset:e.$props.themePreset}},[d?d(o):t("div",[o?e.renderToString(o):s]),t(Chevron,{attrs:{open:c}})]),h?f(m,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:_}):c&&m.length?t("ul",{class:suggestions$1(u,e.theme)+" "+(e.$props.small?"small":"")+" "+getClassName$7(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:b({onInput:e.handleInputChange}).input}}):null,h||0!==g.length?g.map((function(n,s){var u=e.$props.multi&&(o&&!!o[n[i]]||Array.isArray(o)&&o.find((function(e){return e[a]===n[a]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:_extends({},r({item:n})),on:_extends({},_({item:n})),key:n[i],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===s,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:getClassName$7(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(Tick,{class:getClassName$7(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:getClassName$7(this.$props.innerClass,"noResults")||null},[isFunction$1(t)?t():t])},renderSearchbox:function(e){var t=this.$createElement,n=this.$props,r=n.componentId,o=n.searchPlaceholder,s=n.showClear,a=n.themePreset,i=n.innerClass,u=t(Input,helper$1([{attrs:{id:r+"-input",showIcon:!1,showClear:s,placeholder:o,value:this.$data.searchTerm,themePreset:a},style:{border:0,borderBottom:"1px solid #ddd"},class:getClassName$7(i,"input")},e]));return s?t(InputWrapper,[u,this.searchTerm&&t(IconGroup,{attrs:{groupPosition:"right",positionType:"absolute"}},[t(IconWrapper,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[t(CancelSvg)])])]):u}}},updateQuery$5=lib_5.updateQuery,setQueryOptions$4=lib_5.setQueryOptions,setCustomQuery$4=lib_5.setCustomQuery,setDefaultQuery$5=lib_5.setDefaultQuery,getQueryOptions$3=lib_8.getQueryOptions,checkValueChange$4=lib_8.checkValueChange,checkPropChange$1=lib_8.checkPropChange,getClassName$8=lib_8.getClassName,isEqual$8=lib_8.isEqual,getCompositeAggsQuery$3=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$4=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$4=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:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultQuery:types.func,defaultValue:types.string,value:types.value,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Select a value"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),showSearch:VueTypes.bool.def(!1),showClear:VueTypes.bool.def(!1),showLoadMore:VueTypes.bool.def(!1),loadMoreLabel:VueTypes.oneOfType([VueTypes.string,VueTypes.any]).def("Load More"),nestedField:types.string,index:VueTypes.string,searchPlaceholder:VueTypes.string.def("Type here to search..."),endpoint:types.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:[],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,s=n.$data.modifiedOptions;if(r){var a=e[o].buckets,i=[].concat(s,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=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$8(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=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,s=t.renderError,a=t.renderLabel,i=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||s,p=this.$scopedSlots.renderLabel||a,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?isFunction$1(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}]),e(Container,{class:this.$props.className},[this.$props.title&&e(Title,{class:getClassName$8(this.$props.innerClass,"title")||""},[this.$props.title]),e(Dropdown,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},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&&!i&&e("div",{attrs:{css:loadMoreContainer}},[e(Button,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:p}})])):d&&isFunction$1(d)?e("div",[d()]):d&&!isFunction$1(d)?d:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);checkValueChange$4(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$4(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$4(r);this.setQueryOptions(this.internalComponent,s,!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$4(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$4(o);this.setQueryOptions(t.componentId,s,!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$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=SingleDropdownList.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=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){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=getQueryOptions$3(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||"",totalDocumentCount:e.hits[t.componentId]&&e.hits[t.componentId].total,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$4={setQueryOptions:setQueryOptions$4,updateQuery:updateQuery$5,setCustomQuery:setCustomQuery$4,setDefaultQuery:setDefaultQuery$5},ListConnected$2=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$7,mapDispatchtoProps$4)(SingleDropdownList),{componentType:constants_1$1.singleDropdownList,internalComponent:SingleDropdownList.hasInternalComponent()}));ListConnected$2.defaultQuery=SingleDropdownList.defaultQuery,ListConnected$2.generateQueryOptions=SingleDropdownList.generateQueryOptions,ListConnected$2.hasInternalComponent=SingleDropdownList.hasInternalComponent,ListConnected$2.name=SingleDropdownList.name,ListConnected$2.componentType=constants_1$1.singleDropdownList,ListConnected$2.install=function(e){e.component(ListConnected$2.name,ListConnected$2)};var updateQuery$6=lib_5.updateQuery,setQueryOptions$5=lib_5.setQueryOptions,setCustomQuery$5=lib_5.setCustomQuery,setDefaultQuery$6=lib_5.setDefaultQuery,isEqual$9=lib_8.isEqual,getQueryOptions$4=lib_8.getQueryOptions,checkValueChange$5=lib_8.checkValueChange,checkPropChange$2=lib_8.checkPropChange,getClassName$9=lib_8.getClassName,getCompositeAggsQuery$4=lib_8.getCompositeAggsQuery,extractQueryFromCustomQuery$5=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$5=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:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,dataField:types.stringRequired,defaultValue:types.stringArray,value:types.stringArray,defaultQuery:types.func,filterLabel:types.string,innerClass:types.style,placeholder:VueTypes.string.def("Select values"),queryFormat:VueTypes.oneOf(["and","or"]).def("or"),react:types.react,renderLabel:types.func,render:types.func,renderItem:types.func,renderError:types.title,renderNoResults:VueTypes.any,transformData:types.func,selectAllLabel:types.string,showCount:VueTypes.bool.def(!0),showFilter:VueTypes.bool.def(!0),size:VueTypes.number,sortBy:VueTypes.oneOf(["asc","desc","count"]).def("count"),title:types.title,URLParams:VueTypes.bool.def(!1),showMissing:VueTypes.bool.def(!1),missingLabel:VueTypes.string.def("N/A"),showSearch:VueTypes.bool.def(!1),showClear:VueTypes.bool.def(!1),showLoadMore:VueTypes.bool.def(!1),loadMoreLabel:VueTypes.oneOfType([VueTypes.string,VueTypes.any]).def("Load More"),nestedField:types.string,index:VueTypes.string,searchPlaceholder:VueTypes.string.def("Type here to search..."),endpoint:types.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:[],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$9(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,s=n.$data.modifiedOptions;if(r){var a=e[o].buckets,i=[].concat(s,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=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$9(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=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,s=t.renderError,a=t.renderLabel,i=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||s,l=this.$scopedSlots.renderLabel||a,c=this.$data.isLastBucket,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,d=[];return u&&this.error?isFunction$1(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}]),e(Container,{class:this.$props.className},[this.$props.title&&e(Title,{class:getClassName$9(this.$props.innerClass,"title")||""},[this.$props.title]),e(Dropdown,{attrs:{innerClass:this.$props.innerClass,items:[].concat(d,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return _extends({},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:i,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:loadMoreContainer}},[e(Button,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):p&&isFunction$1(p)?e("div",[p()]):p&&!isFunction$1(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,s=this.$data.currentValue,a=null;if(o&&e.includes(o))s[o]?(s={},a=[]):(this.$data.modifiedOptions.forEach((function(e){s[e.key]=!0})),s[o]=!0,a=[o]);else if(t){if(a=e,s={},Array.isArray(e)&&e.forEach((function(e){s[e]=!0})),o&&o in s){var i=s,u=(i[o],_objectWithoutPropertiesLoose(i,[o].map(_toPropertyKey$1)));s=_extends({},u)}}else{if(s[e]){var l=s,c=(l[e],_objectWithoutPropertiesLoose(l,[e].map(_toPropertyKey$1)));s=_extends({},c)}else s[e]=!0;if(o&&o in s){var p=s,d=(p[o],_objectWithoutPropertiesLoose(p,[o].map(_toPropertyKey$1)));s=_extends({},d)}a=Object.keys(s)}checkValueChange$5(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=_extends({},s),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=MultiDropdownList.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=extractQueryFromCustomQuery$5(r);o&&(n=o),updateDefaultQuery(t.componentId,this.setDefaultQuery,t,e);var s=getOptionsForCustomQuery$5(r);this.setQueryOptions(this.internalComponent,s,!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$5(o),updateCustomQuery(t.componentId,this.setCustomQuery,t,e);var s=getOptionsForCustomQuery$5(o);this.setQueryOptions(t.componentId,s,!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$4({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$5(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){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 s;if("or"===r)if(t.showMissing){var a,i,u=e.includes(t.missingLabel),l=[(i={},i[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),i)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),s={bool:{should:l}}}else{var c,p;(p={})[o]=((c={})[t.dataField]=e,c),s=p}else s={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?s:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=getQueryOptions$4(e);return e.showLoadMore?getCompositeAggsQuery$4({query:n,props:e,after:t}):getAggsQuery(n,e)},hasInternalComponent:function(){return!0}},mapStateToProps$8=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],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$5={setQueryOptions:setQueryOptions$5,updateQuery:updateQuery$6,setCustomQuery:setCustomQuery$5,setDefaultQuery:setDefaultQuery$6},ListConnected$3=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$8,mapDispatchtoProps$5)(MultiDropdownList),{componentType:constants_1$1.multiDropdownList,internalComponent:MultiDropdownList.hasInternalComponent()}));ListConnected$3.name=MultiDropdownList.name,ListConnected$3.componentType=constants_1$1.multiDropdownList,ListConnected$3.defaultQuery=MultiDropdownList.defaultQuery,ListConnected$3.generateQueryOptions=MultiDropdownList.generateQueryOptions,ListConnected$3.hasInternalComponent=MultiDropdownList.hasInternalComponent,ListConnected$3.install=function(e){e.component(ListConnected$3.name,ListConnected$3)};var updateQuery$7=lib_5.updateQuery,setQueryOptions$6=lib_5.setQueryOptions,setCustomQuery$6=lib_5.setCustomQuery,isEqual$a=lib_8.isEqual,checkValueChange$6=lib_8.checkValueChange,getClassName$a=lib_8.getClassName,getOptionsFromQuery=lib_8.getOptionsFromQuery,handleA11yAction$1=lib_8.handleA11yAction,ToggleButton={name:"ToggleButton",props:{componentId:types.stringRequired,compoundClause:types.compoundClause,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:VueTypes.bool,react:types.react,showFilter:VueTypes.bool,title:types.title,URLParams:VueTypes.bool,renderItem:types.func,index:VueTypes.string,enableStrictSelection:VueTypes.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(){!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`."),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$a(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)isEqual$a(this.$data.currentValue,e)||isEqual$a(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;isEqual$a(n,this.selectedValue)||isEqual$a(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,s=e,a=[];a=t?ToggleButton.parseValue(s,n):this.$props.multiSelect?o.some((function(e){return e.value===s.value}))?o.filter((function(e){return e.value!==s.value})):o.concat(s):o.some((function(e){return e.value===s.value}))?[]:[s],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);checkValueChange$6(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$a(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(Button,{class:getClassName$a(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return handleA11yAction$1(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(Container,{class:toggleButtons},[this.$props.title&&t(Title,{class:getClassName$a(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}},mapStateToProps$9=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$6={updateQueryHandler:updateQuery$7,setQueryOptions:setQueryOptions$6,setCustomQuery:setCustomQuery$6},TBConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$9,mapDispatchtoProps$6)(ToggleButton),{componentType:constants_1$1.toggleButton}));TBConnected.parseValue=ToggleButton.parseValue,TBConnected.defaultQuery=ToggleButton.defaultQuery,TBConnected.name=ToggleButton.name,TBConnected.install=function(e){e.component(TBConnected.name,TBConnected)},TBConnected.componentType=constants_1$1.toggleButton;var _excluded=["options"],updateQuery$8=lib_5.updateQuery,setQueryOptions$7=lib_5.setQueryOptions,setCustomQuery$7=lib_5.setCustomQuery,setDefaultQuery$7=lib_5.setDefaultQuery,parseHits$1=lib_8.parseHits,isEqual$b=lib_8.isEqual,getCompositeAggsQuery$5=lib_8.getCompositeAggsQuery,getResultStats$3=lib_8.getResultStats,extractQueryFromCustomQuery$6=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$6=lib_8.getOptionsForCustomQuery,ReactiveComponent={name:"ReactiveComponent",props:{componentId:types.stringRequired,compoundClause:types.compoundClause,aggregationField:types.string,aggregationSize:VueTypes.number,size:VueTypes.number,defaultQuery:types.func,customQuery:types.func,filterLabel:types.string,react:types.react,showFilter:VueTypes.bool.def(!0),URLParams:VueTypes.bool.def(!1),distinctField:types.string,distinctFieldConfig:types.props,index:VueTypes.string,endpoint:types.endpointConfig},data:function(){return{currentValue:this.selectedValue}},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,s=t.showFilter,a=t.URLParams,i=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||!i&&!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=extractQueryFromCustomQuery$6(c),d=c?getOptionsForCustomQuery$6(c):null;d?this.setQueryOptions(r,_extends({},d,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:p,value:this.selectedValue||null,label:o,showFilter:s,URLParams:a})}if(this.setQuery=function(n){var r=n.options,o=_objectWithoutPropertiesLoose(n,_excluded),s=o.query;s&&s.query&&(s=s.query);var a=_extends({},r,{query:s}),i=a;s&&s.id&&(i=s),e.setCustomQuery(t.componentId,i),r&&e.setQueryOptions(t.componentId,_extends({},e.getAggsQuery(),r),!1),e.updateQuery(_extends({},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){updateDefaultQuery(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var h=extractQueryFromCustomQuery$6(this.$defaultQuery),f=getOptionsForCustomQuery$6(this.$defaultQuery);f?this.setQueryOptions(this.internalComponent,_extends({},f,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:h})}},watch:{selectedValue:function(e,t){isEqual$b(e,t)||(this.$emit("data",this.getData()),this.currentValue=e)},hits:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},total:function(e,t){isEqual$b(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$b(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(){var e=arguments[0];try{var t=this.$scopedSlots.default,n=this.error,r=this.isLoading,o=_extends({error:n,loading:r},this.getData(),{setQuery:this.setQuery,value:this.currentValue});return e("div",[t(o)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:getCompositeAggsQuery$5({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,s=parseHits$1(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(s=s.filter((function(e){return!a.includes(e._id)}))),s=[].concat(r,s)}return{data:s,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return getResultStats$3(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},mapStateToProps$a=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}},mapDispatchtoProps$7={setQueryOptions:setQueryOptions$7,updateQuery:updateQuery$8,setCustomQuery:setCustomQuery$7,setDefaultQuery:setDefaultQuery$7},ConnectedComponent=ComponentWrapper$1(connect(mapStateToProps$a,mapDispatchtoProps$7)(ReactiveComponent),{componentType:constants_1$1.reactiveComponent}),RcConnected=PreferencesConsumer({name:"RcConnected",render:function(e){return e(ConnectedComponent,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots})}});RcConnected.name=ReactiveComponent.name,RcConnected.hasInternalComponent=ReactiveComponent.hasInternalComponent,RcConnected.componentType=constants_1$1.reactiveComponent,RcConnected.install=function(e){e.component(RcConnected.name,RcConnected)};
31
31
  /*!
32
32
  * vue-no-ssr v1.1.1
33
33
  * (c) 2018-present egoist <0x142857@gmail.com>
34
34
  * Released under the MIT License.
35
35
  */
36
- var index$3={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,s=r(),a=s.default;void 0===a&&(a=[]);var i=s.placeholder;return n._isMounted?a:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||i)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||i):a.length>0?a.map((function(){return e(!1)})):e(!1))}},vueNoSsr_common=index$3,_templateObject$o,Slider=index$1("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:vueNoSsr_common};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$9=lib_5.updateQuery,setQueryListener$1=lib_5.setQueryListener,setQueryOptions$8=lib_5.setQueryOptions,setComponentProps$1=lib_5.setComponentProps,setCustomQuery$8=lib_5.setCustomQuery,updateComponentProps$2=lib_5.updateComponentProps,checkValueChange$7=lib_8.checkValueChange,getClassName$b=lib_8.getClassName,isEqual$c=lib_8.isEqual,checkSomePropChange$1=lib_8.checkSomePropChange,extractQueryFromCustomQuery$7=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$7=lib_8.getOptionsForCustomQuery,DynamicRangeSlider={name:"DynamicRangeSlider",components:getComponents(),props:{beforeValueChange:types.func,className:VueTypes.string.def(""),rangeLabels:types.func,componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.func,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:VueTypes.bool.def(!0),destroyOnUnmount:VueTypes.bool,showCheckbox:VueTypes.bool.def(!0),title:types.title,URLParams:VueTypes.bool.def(!1),sliderOptions:VueTypes.object.def({}),nestedField:types.string,index:VueTypes.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.$timestamp=(new Date).getTime();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),!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`."),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.$timestamp),this.addComponent(this.internalRangeComponent,this.$timestamp),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)},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,s=r.end;this.handleChange([o,s])}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$7(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$7(n);r&&(t=r);var o=getOptionsForCustomQuery$7(n);updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var s=this.range||{start:e[0],end:e[1]},a=s.start,i=s.end,u=e[0],l=e[1],c=u===a&&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$c(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$c(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],s=t||{},a=s.start,i=s.end,u=r===a?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$c(e,t)||this.handleChange(DynamicRangeSlider.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(Container,{class:this.$props.className},[this.$props.title&&e(Title,{class:getClassName$b(this.$props.innerClass,"title")},[this.$props.title]),e(vueNoSsr_common,[e(Slider,{class:getClassName$b(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:_extends({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:getClassName$b(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:getClassName$b(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}},mapStateToProps$b=function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],s=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:[],s=s&&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:[],s=s&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:s,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$8={addComponent:addComponent$1,removeComponent:removeComponent$1,updateQuery:updateQuery$9,watchComponent:watchComponent$1,setQueryListener:setQueryListener$1,setQueryOptions:setQueryOptions$8,setComponentProps:setComponentProps$1,setCustomQuery:setCustomQuery$8,updateComponentProps:updateComponentProps$2},RangeConnected=PreferencesConsumer(connect(mapStateToProps$b,mapDispatchtoProps$8)(DynamicRangeSlider));RangeConnected.defaultQuery=DynamicRangeSlider.defaultQuery,RangeConnected.parseValue=DynamicRangeSlider.parseValue,RangeConnected.hasInternalComponent=DynamicRangeSlider.hasInternalComponent,RangeConnected.name=DynamicRangeSlider.name,RangeConnected.componentType=constants_1$1.dynamicRangeSlider,RangeConnected.install=function(e){e.component(RangeConnected.name,RangeConnected)};var updateQuery$a=lib_5.updateQuery,setQueryOptions$9=lib_5.setQueryOptions,setCustomQuery$9=lib_5.setCustomQuery,isEqual$d=lib_8.isEqual,checkValueChange$8=lib_8.checkValueChange,getClassName$c=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:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,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:VueTypes.bool.def(!0),showRadio:VueTypes.bool.def(!0),title:types.title,URLParams:VueTypes.bool.def(!1),nestedField:types.string,index:VueTypes.string,endpoint:types.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`."),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$d(e,t)||this.setValue(e)},selectedValue:function(e){isEqual$d(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=this,t=arguments[0];return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$c(this.$props.innerClass,"title")},[this.$props.title]),t(UL,{class:getClassName$c(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(Radio,{class:getClassName$c(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:getClassName$c(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?SingleRange.parseValue(e,t):e;checkValueChange$8(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){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}},mapStateToProps$c=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$9={updateQuery:updateQuery$a,setQueryOptions:setQueryOptions$9,setCustomQuery:setCustomQuery$9},RangeConnected$1=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$c,mapDispatchtoProps$9)(SingleRange),{componentType:constants_1$1.singleRange}));RangeConnected$1.name=SingleRange.name,RangeConnected$1.defaultQuery=SingleRange.defaultQuery,RangeConnected$1.parseValue=SingleRange.parseValue,RangeConnected$1.hasInternalComponent=SingleRange.hasInternalComponent,RangeConnected$1.install=function(e){e.component(RangeConnected$1.name,RangeConnected$1)},RangeConnected$1.componentType=constants_1$1.singleRange;var updateQuery$b=lib_5.updateQuery,setQueryOptions$a=lib_5.setQueryOptions,setCustomQuery$a=lib_5.setCustomQuery,isEqual$e=lib_8.isEqual,checkValueChange$9=lib_8.checkValueChange,getClassName$d=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:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,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:VueTypes.bool.def(!0),showCheckbox:VueTypes.bool.def(!0),title:types.title,URLParams:VueTypes.bool.def(!1),nestedField:types.string,index:VueTypes.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 s=this.currentValue,a=this.selectedValues;if(e)if(t){s=MultiRange.parseValue(e,n);var i={};s.forEach((function(e){i[[e.label]]=!0})),a=r?i:_extends({},a,i)}else if(a[e]){s=s.filter((function(t){return t.label!==e}));var u=a,l=(u[e],_objectWithoutPropertiesLoose(u,[e].map(_toPropertyKey)));a=l}else{var c,p=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));s=[].concat(s,p),a=_extends({},a,((c={})["object"==typeof e?e.label:e]=!0,c))}else s=[],a={};checkValueChange$9(n.componentId,s,n.beforeValueChange,(function(){o.currentValue=s,o.selectedValues=a,o.updateQueryHandler(s,n),o.$emit("valueChange",Object.keys(a)),o.$emit("value-change",Object.keys(a))}))},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$e(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){if(!isEqual$e(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(){!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`."),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=this,t=arguments[0];return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$d(this.$props.innerClass,"title")},[this.$props.title]),t(UL,{class:getClassName$d(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(Checkbox,{class:getClassName$d(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:_extends({},{checked:e.selectedValues[n.label]}),on:_extends({},{click:e.handleClick})}),t("label",{class:getClassName$d(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}},mapStateToProps$d=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$a={updateQuery:updateQuery$b,setQueryOptions:setQueryOptions$a,setCustomQuery:setCustomQuery$a},RangeConnected$2=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$d,mapDispatchtoProps$a)(MultiRange),{componentType:constants_1$1.multiRange}));RangeConnected$2.name=MultiRange.name,RangeConnected$2.defaultQuery=MultiRange.defaultQuery,RangeConnected$2.parseValue=MultiRange.parseValue,RangeConnected$2.hasInternalComponent=MultiRange.hasInternalComponent,RangeConnected$2.install=function(e){e.component(RangeConnected$2.name,RangeConnected$2)},RangeConnected$2.componentType=constants_1$1.multiRange;var updateQuery$c=lib_5.updateQuery,setQueryOptions$b=lib_5.setQueryOptions,setCustomQuery$b=lib_5.setCustomQuery,checkValueChange$a=lib_8.checkValueChange,getClassName$e=lib_8.getClassName,getOptionsFromQuery$3=lib_8.getOptionsFromQuery,isEqual$f=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:VueTypes.string.def(""),range:VueTypes.shape({start:VueTypes.integer.def(0),end:VueTypes.integer.def(10)}),rangeLabels:types.rangeLabels,componentId:types.stringRequired,compoundClause:types.compoundClause,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:VueTypes.bool.def(!0),showCheckbox:VueTypes.bool.def(!0),title:types.title,URLParams:VueTypes.bool.def(!1),sliderOptions:VueTypes.object.def({}),nestedField:types.string,index:VueTypes.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$a(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 s=t.showFilter,a=t.range,i=a.start,u=a.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:s&&!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$f(e,t)||this.handleChange(RangeSlider.parseValue(e,this.$props))},selectedValue:function(e){isEqual$f(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;"),!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`."),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=arguments[0];return e(Container,{class:this.$props.className},[this.$props.title&&e(Title,{class:getClassName$e(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(vueNoSsr_common,[e(Slider,{class:getClassName$e(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:_extends({},this.$props.sliderOptions)}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:getClassName$e(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:getClassName$e(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]:[]}},mapStateToProps$e=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}},mapDispatchtoProps$b={updateQuery:updateQuery$c,setQueryOptions:setQueryOptions$b,setCustomQuery:setCustomQuery$b},RangeConnected$3=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$e,mapDispatchtoProps$b)(RangeSlider),{componentType:constants_1$1.rangeSlider})),_templateObject$p,_templateObject2$b;RangeConnected$3.name=RangeSlider.name,RangeConnected$3.defaultQuery=RangeSlider.defaultQuery,RangeConnected$3.parseValue=RangeSlider.parseValue,RangeConnected$3.hasInternalComponent=RangeSlider.hasInternalComponent,RangeConnected$3.install=function(e){e.component(RangeConnected$3.name,RangeConnected$3)},RangeConnected$3.componentType=constants_1$1.rangeSlider;var alert=function(e){var t=e.theme;return css(_templateObject$p||(_templateObject$p=_taggedTemplateLiteralLoose(["\n\tcolor: ",";\n"])),t.colors.alertColor)},Content=index$1("div")(_templateObject2$b||(_templateObject2$b=_taggedTemplateLiteralLoose(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&alert})),getClassName$f=lib_8.getClassName,isEqual$g=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,compoundClause:types.compoundClause,includeNullValues:VueTypes.bool,beforeValueChange:types.func,customQuery:types.func,data:types.data,filterLabel:types.string,react:types.react,showFilter:VueTypes.bool.def(!0),showCheckbox:VueTypes.bool.def(!0),title:types.title,URLParams:VueTypes.bool.def(!1),sliderOptions:VueTypes.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.$listeners)},handleChange:function(e,t){var n=e;if(this.shouldUpdate(e)&&!isEqual$g(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=_extends({},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=_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.$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){isEqual$g(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,s=t.rangeLabels,a=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,_=t.title,b=t.URLParams,$=t.sliderOptions,C=t.nestedField;return e(Container,{style:l,class:n},[e(RangeConnected$3,{attrs:{componentId:a,value:{start:this.currentValue.start,end:this.currentValue.end},range:o,dataField:r,rangeLabels:s,includeNullValues:p,beforeValueChange:d,customQuery:h,data:f,filterLabel:m,react:g,showFilter:y,showCheckbox:v,title:_,uRLParams:b,sliderOptions:$,nestedField:C},on:{change:this.handleOnChange,"value-change":this.handleValueChange}}),e(Flex,{class:getClassName$f(i,"input-container")||""},[e(Flex,{attrs:{direction:"column",flex:2}},[e(Input,{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:getClassName$f(i,"input")||"",domProps:_extends({},{value:this.currentValue.start})}),!this.isStartValid&&e(Content,{attrs:{alert:!0}},["Input range is invalid"])]),e(Flex,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(Flex,{attrs:{direction:"column",flex:2}},[e(Input,{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:getClassName$f(i,"input")||"",domProps:_extends({},{value:this.currentValue.end})}),!this.isEndValid&&e(Content,{attrs:{alert:!0}},["Input range is invalid"])])])])}},mapStateToProps$f=function(e){return{themePreset:e.config.themePreset}},RangeConnected$4=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$f,{})(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 RcConnected$1=PreferencesConsumer({name:"RcConnected",render:function(e){var t=RcConnected;switch(this.$attrs.componentType){case constants_1$1.reactiveList:t=RLConnected;break;case constants_1$1.searchBox:t=SBConnected;break;case constants_1$1.singleList:t=ListConnected;break;case constants_1$1.multiList:t=ListConnected$1;break;case constants_1$1.singleDropdownList:t=ListConnected$2;break;case constants_1$1.multiDropdownList:t=ListConnected$3;break;case constants_1$1.toggleButton:t=TBConnected;break;case constants_1$1.dynamicRangeSlider:t=RangeConnected;break;case constants_1$1.singleRange:t=RangeConnected$1;break;case constants_1$1.multiRange:t=RangeConnected$2;break;case constants_1$1.rangeSlider:t=RangeConnected$3;break;case constants_1$1.rangeInput:t=RangeConnected$4}return e(t,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots})}});RcConnected$1.name="ReactiveComponentPrivate",RcConnected$1.hasInternalComponent=RcConnected.hasInternalComponent,RcConnected$1.componentType=constants_1$1.reactiveComponent,RcConnected$1.install=function(e){e.component(RcConnected$1.name,RcConnected$1)};var setValue$2=lib_5.setValue,clearValues=lib_5.clearValues,resetValuesToDefault=lib_5.resetValuesToDefault,getClassName$g=lib_8.getClassName,handleA11yAction$2=lib_8.handleA11yAction,SelectedFilters={name:"SelectedFilters",props:{className:VueTypes.string.def(""),clearAllLabel:VueTypes.string.def("Clear All"),innerClass:types.style,showClearAll:VueTypes.bool.def(!0),title:types.title,resetToDefault:VueTypes.bool.def(!1),clearAllBlacklistComponents:VueTypes.array,resetToValues:VueTypes.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(Container,{class:filters(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(Title,{class:getClassName$g(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r&&n.length>1?t(Button,{class:getClassName$g(this.$props.innerClass,"button")||"",on:_extends({},{click:this.clearValues,keypress:function(t){return handleA11yAction$2(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(Button,{class:getClassName$g(this.$props.innerClass,"button")||"",key:t,on:_extends({},{click:n,keypress:function(e){return handleA11yAction$2(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],s=o.label,a=o.value,i=Array.isArray(a);if(s&&(i&&a.length||!i&&a)){var u=e.renderValue(a,i);return e.renderFilterButton(n,n+"-"+(r+1),(function(){return e.remove(n,a)}),t[n].label+": "+decodeHtml(u))}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},mapStateToProps$g=function(e){return{components:e.components,selectedValues:e.selectedValues}},mapDispatchtoProps$c={clearValuesAction:clearValues,setValue:setValue$2,resetValuesToDefault:resetValuesToDefault},RcConnected$2=connect(mapStateToProps$g,mapDispatchtoProps$c)(SelectedFilters);RcConnected$2.name=SelectedFilters.name,RcConnected$2.install=function(e){e.component(RcConnected$2.name,RcConnected$2)};var ResultCardTitle={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(Title,helper$1([{},this.$props]),[t])},install:function(e){e.component(ResultCardTitle.name,ResultCardTitle)}},_excluded$1=["src"],ResultCardImage={name:"ResultCardImage",props:{src:VueTypes.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=_objectWithoutPropertiesLoose(t,_excluded$1);return e(Image$1,helper$1([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(ResultCardImage.name,ResultCardImage)}},ResultCardDescription={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",helper$1([{},n]),[r])},install:function(e){e.component(ResultCardDescription.name,ResultCardDescription)}},_excluded$2=["href","target"],ResultCard={name:"ResultCard",components:{ResultCardTitle:ResultCardTitle,ResultCardImage:ResultCardImage,ResultCardDescription:ResultCardDescription},props:{target:VueTypes.string.def("_blank"),href:types.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,s=_objectWithoutPropertiesLoose(n,_excluded$2);return e(Card,helper$1([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},s]),[t])},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,t){var n=t.props,r=t.children,o=arguments[0];return o("article",helper$1([{},n]),[r])},install:function(e){e.component(ResultListContent.name,ResultListContent)}},ResultListDescription={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",helper$1([{},n]),[r])},install:function(e){e.component(ResultListDescription.name,ResultListDescription)}},_excluded$3=["src","small"],ResultListImage={name:"ResultListImage",props:{src:VueTypes.string.isRequired,small:VueTypes.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=_objectWithoutPropertiesLoose(t,_excluded$3);return e(Image,helper$1([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(ResultListImage.name,ResultListImage)}},ResultListTitle={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(Title,helper$1([{},this.$props]),[t])},install:function(e){e.component(ResultListTitle.name,ResultListTitle)}},_excluded$4=["href","target"],ResultList={name:"ResultList",props:{href:types.string,target:VueTypes.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.componentOptions&&e.componentOptions.tag===ResultListImage.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=_objectWithoutPropertiesLoose(t,_excluded$4),s=this.hasImage,a=this.isSmall,i=this.$slots.default;return e(ListItem,helper$1([{attrs:{href:n,image:s,small:a,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[i])},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 s;if("string"==typeof r)return(s={})[r]=e[r],s;if(Array.isArray(r)&&r.length){var a={};return r.forEach((function(t){a[t]=e[t]})),a}}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:VueTypes.func,componentIds:VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.string)]),includeKeys:VueTypes.arrayOf(VueTypes.string).def(defaultKeys),strict:VueTypes.bool.def(!0),includeInternalComponents:VueTypes.bool.def(!1),excludeComponentIds:VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.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.$scopedSlots.default;return t?t({searchState:e,setSearchState:this.setSearchState}):null}},mapStateToProps$h=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$h,mapDispatchtoProps$d)(StateProvider);function ownKeys$1(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$1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$1(Object(n),!0).forEach((function(t){_defineProperty$2(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _typeof$2(e){return(_typeof$2="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 _defineProperty$2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bindEvents(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}function capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}function getPropsValues(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function getLazyValue(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}function downArrowSimulator(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 twoWayBindingWrapper(e){var t=0;e((function(){t+=1}),(function(){t=Math.max(0,t-1)}),(function(){return 0===t}))}function watchPrimitiveProperties(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;function s(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,s,{immediate:r})}))}function bindProps(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],s=o.twoWay,a=o.type,i=o.trackProperties;if(!o.noBind){var u="set".concat(capitalizeFirstLetter(r)),l="get".concat(capitalizeFirstLetter(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&&i?watchPrimitiveProperties(e,i.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}),s&&(e.$gmapOptions.autoBindAllEvents||e.$listeners[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}StateProviderConnected.name=StateProvider.name,StateProviderConnected.install=function(e){e.component(StateProviderConnected.name,StateProviderConnected)};var autocompleteMappedProps={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},drawingManagerMappedProps={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}},heatMapLayerMappedProps={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},infoWindowMappedProps={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},kmlLayerMappedProps={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{}}}},mapMappedProps={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{}}}},markerMappedProps={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}},streetViewPanoramaMappedProps={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{}}}},polygonMappedProps={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}},polylineMappedProps={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}},rectangleMappedProps={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}},circleMappedProps={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}},placeInputMappedProps={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}},clusterIconMappedProps={algorithm:{type:Object},onClusterClick:{type:Function},renderer:{type:Object},options:{type:Object}},script={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 _asyncToGenerator(_regeneratorRuntime().mark((function t(){var n,r;return _regeneratorRuntime().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&&downArrowSimulator(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=_extends({},getPropsValues(e,autocompleteMappedProps),e.options),e.$autocomplete=new google.maps.places.Autocomplete(e.$refs.input,r),bindProps(e,e.$autocomplete,autocompleteMappedProps),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)}};function normalizeComponent(e,t,n,r,o,s,a,i,u,l){"boolean"!=typeof a&&(u=i,i=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),s?(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(s)},p._ssrRegister=c):t&&(c=a?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,i(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 __vue_script__=script,__vue_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)},__vue_staticRenderFns__=[],__vue_inject_styles__=void 0,__vue_scope_id__=void 0,__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,__vue_component__=normalizeComponent({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,!1,void 0,void 0,void 0),mapElementMixin={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then((function(t){e.$map=t})),{}}},_excluded$5=["options"],script$1={name:"CircleShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,circleMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$5));return e.$circleObject=new google.maps.Circle(o),bindProps(e,e.$circleObject,circleMappedProps),bindEvents(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)}},__vue_script__$1=script$1,__vue_inject_styles__$1=void 0,__vue_scope_id__$1=void 0,__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=void 0,__vue_component__$1=normalizeComponent({},__vue_inject_styles__$1,__vue_script__$1,__vue_scope_id__$1,__vue_is_functional_template__$1,__vue_module_identifier__$1,!1,void 0,void 0,void 0);function sortKD(e,t,n,r,o,s){if(!(o-r<=n)){var a=r+o>>1;select(e,t,a,r,o,s%2),sortKD(e,t,n,r,a-1,s+1),sortKD(e,t,n,a+1,o,s+1)}}function select(e,t,n,r,o,s){for(;o>r;){if(o-r>600){var a=o-r+1,i=n-r+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a)*(i-a/2<0?-1:1);select(e,t,n,Math.max(r,Math.floor(n-i*l/a+c)),Math.min(o,Math.floor(n+(a-i)*l/a+c)),s)}var p=t[2*n+s],d=r,h=o;for(swapItem(e,t,r,n),t[2*o+s]>p&&swapItem(e,t,r,o);d<h;){for(swapItem(e,t,d,h),d++,h--;t[2*d+s]<p;)d++;for(;t[2*h+s]>p;)h--}t[2*r+s]===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,s,a){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<=a)for(var f=h;f<=d;f++)i=t[2*f],u=t[2*f+1],i>=n&&i<=o&&u>=r&&u<=s&&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<=s&&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:s>=u)&&(l.push(m+1),l.push(d),l.push(g))}}return c}function within(e,t,n,r,o,s){for(var a=[0,e.length-1,0],i=[],u=o*o;a.length;){var l=a.pop(),c=a.pop(),p=a.pop();if(c-p<=s)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)&&(a.push(p),a.push(h-1),a.push(g)),(0===l?n+o>=f:r+o>=m)&&(a.push(h+1),a.push(c),a.push(g))}}return i}function sqDist(e,t,n,r){var o=e-n,s=t-r;return o*o+s*s}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 s=e.length<65536?Uint16Array:Uint32Array,a=this.ids=new s(e.length),i=this.coords=new o(2*e.length),u=0;u<e.length;u++)a[u]=u,i[2*u]=t(e[u]),i[2*u+1]=n(e[u]);sortKD(a,i,r,0,a.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,s=t.nodeSize;n&&console.time("total time");var a="prepare "+e.length+" points";n&&console.time(a),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,s,Float32Array),n&&console.timeEnd(a);for(var l=o;l>=r;l--){var c=+Date.now();i=this._cluster(i,l),this.trees[l]=new KDBush(i,getX,getY,s,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,s=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,s],t),i=this.getClusters([-180,r,o,s],t);return a.concat(i)}for(var u,l=this.trees[this._limitZoom(t)],c=[],p=_createForOfIteratorHelperLoose(l.range(lngX(n),latY(s),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 s=o.points[t];if(!s)throw new Error(r);for(var a,i=this.options.radius/(this.options.extent*Math.pow(2,n-1)),u=[],l=_createForOfIteratorHelperLoose(o.within(s.x,s.y,i));!(a=l()).done;){var c=a.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),s=this.options,a=s.extent,i=s.radius/a,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 s,a=_createForOfIteratorHelperLoose(this.getChildren(t));!(s=a()).done;){var i=s.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,s){for(var a,i=_createForOfIteratorHelperLoose(e);!(a=i()).done;){var u=t[a.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),s.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,s=r.extent,a=r.reduce,i=r.minPoints,u=o/(s*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=a&&f>1?this._map(c,!0):null,O=(l<<5)+(t+1)+this.points.length,T=_createForOfIteratorHelperLoose(h);!(_=T()).done;){var S=_.value,w=d.points[S];if(!(w.zoom<=t)){w.zoom=t;var P=w.numPoints||1;b+=w.x*P,$+=w.y*P,w.parentId=O,a&&(C||(C=this._map(c,!0)),a(C,this._map(w)))}}c.parentId=O,n.push(createCluster(b/m,$/m,O,m,C))}else if(n.push(c),m>1)for(var E,R=_createForOfIteratorHelperLoose(h);!(E=R()).done;){var k=E.value,I=d.points[k];I.zoom<=t||(I.zoom=t,n.push(I))}}}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}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,s;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=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=r;0!=o--;){var a=s[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};
36
+ var index$3={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,s=r(),a=s.default;void 0===a&&(a=[]);var i=s.placeholder;return n._isMounted?a:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||i)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||i):a.length>0?a.map((function(){return e(!1)})):e(!1))}},vueNoSsr_common=index$3,_templateObject$o,Slider=index$1("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:vueNoSsr_common};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$9=lib_5.updateQuery,setQueryListener$1=lib_5.setQueryListener,setQueryOptions$8=lib_5.setQueryOptions,setComponentProps$1=lib_5.setComponentProps,setCustomQuery$8=lib_5.setCustomQuery,updateComponentProps$2=lib_5.updateComponentProps,checkValueChange$7=lib_8.checkValueChange,getClassName$b=lib_8.getClassName,isEqual$c=lib_8.isEqual,checkSomePropChange$1=lib_8.checkSomePropChange,extractQueryFromCustomQuery$7=lib_8.extractQueryFromCustomQuery,getOptionsForCustomQuery$7=lib_8.getOptionsForCustomQuery,DynamicRangeSlider={name:"DynamicRangeSlider",components:getComponents(),props:{beforeValueChange:types.func,className:VueTypes.string.def(""),rangeLabels:types.func,componentId:types.stringRequired,compoundClause:types.compoundClause,customQuery:types.func,data:types.data,dataField:types.stringRequired,defaultValue:types.func,filterLabel:types.string,innerClass:types.style,react:types.react,showFilter:VueTypes.bool.def(!0),destroyOnUnmount:VueTypes.bool,showCheckbox:VueTypes.bool.def(!0),title:types.title,URLParams:VueTypes.bool.def(!1),sliderOptions:VueTypes.object.def({}),nestedField:types.string,index:VueTypes.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.$timestamp=(new Date).getTime();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),!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`."),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.$timestamp),this.addComponent(this.internalRangeComponent,this.$timestamp),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)},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,s=r.end;this.handleChange([o,s])}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$7(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$7(n);r&&(t=r);var o=getOptionsForCustomQuery$7(n);updateCustomQuery(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var s=this.range||{start:e[0],end:e[1]},a=s.start,i=s.end,u=e[0],l=e[1],c=u===a&&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$c(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$c(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],s=t||{},a=s.start,i=s.end,u=r===a?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$c(e,t)||this.handleChange(DynamicRangeSlider.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(Container,{class:this.$props.className},[this.$props.title&&e(Title,{class:getClassName$b(this.$props.innerClass,"title")},[this.$props.title]),e(vueNoSsr_common,[e(Slider,{class:getClassName$b(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:_extends({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:getClassName$b(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:getClassName$b(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}},mapStateToProps$b=function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],s=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:[],s=s&&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:[],s=s&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:s,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$8={addComponent:addComponent$1,removeComponent:removeComponent$1,updateQuery:updateQuery$9,watchComponent:watchComponent$1,setQueryListener:setQueryListener$1,setQueryOptions:setQueryOptions$8,setComponentProps:setComponentProps$1,setCustomQuery:setCustomQuery$8,updateComponentProps:updateComponentProps$2},RangeConnected=PreferencesConsumer(connect(mapStateToProps$b,mapDispatchtoProps$8)(DynamicRangeSlider));RangeConnected.defaultQuery=DynamicRangeSlider.defaultQuery,RangeConnected.parseValue=DynamicRangeSlider.parseValue,RangeConnected.hasInternalComponent=DynamicRangeSlider.hasInternalComponent,RangeConnected.name=DynamicRangeSlider.name,RangeConnected.componentType=constants_1$1.dynamicRangeSlider,RangeConnected.install=function(e){e.component(RangeConnected.name,RangeConnected)};var updateQuery$a=lib_5.updateQuery,setQueryOptions$9=lib_5.setQueryOptions,setCustomQuery$9=lib_5.setCustomQuery,isEqual$d=lib_8.isEqual,checkValueChange$8=lib_8.checkValueChange,getClassName$c=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:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,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:VueTypes.bool.def(!0),showRadio:VueTypes.bool.def(!0),title:types.title,URLParams:VueTypes.bool.def(!1),nestedField:types.string,index:VueTypes.string,endpoint:types.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`."),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$d(e,t)||this.setValue(e)},selectedValue:function(e){isEqual$d(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=this,t=arguments[0];return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$c(this.$props.innerClass,"title")},[this.$props.title]),t(UL,{class:getClassName$c(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(Radio,{class:getClassName$c(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:getClassName$c(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?SingleRange.parseValue(e,t):e;checkValueChange$8(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){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}},mapStateToProps$c=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$9={updateQuery:updateQuery$a,setQueryOptions:setQueryOptions$9,setCustomQuery:setCustomQuery$9},RangeConnected$1=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$c,mapDispatchtoProps$9)(SingleRange),{componentType:constants_1$1.singleRange}));RangeConnected$1.name=SingleRange.name,RangeConnected$1.defaultQuery=SingleRange.defaultQuery,RangeConnected$1.parseValue=SingleRange.parseValue,RangeConnected$1.hasInternalComponent=SingleRange.hasInternalComponent,RangeConnected$1.install=function(e){e.component(RangeConnected$1.name,RangeConnected$1)},RangeConnected$1.componentType=constants_1$1.singleRange;var updateQuery$b=lib_5.updateQuery,setQueryOptions$a=lib_5.setQueryOptions,setCustomQuery$a=lib_5.setCustomQuery,isEqual$e=lib_8.isEqual,checkValueChange$9=lib_8.checkValueChange,getClassName$d=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:VueTypes.string.def(""),componentId:types.stringRequired,compoundClause:types.compoundClause,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:VueTypes.bool.def(!0),showCheckbox:VueTypes.bool.def(!0),title:types.title,URLParams:VueTypes.bool.def(!1),nestedField:types.string,index:VueTypes.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 s=this.currentValue,a=this.selectedValues;if(e)if(t){s=MultiRange.parseValue(e,n);var i={};s.forEach((function(e){i[[e.label]]=!0})),a=r?i:_extends({},a,i)}else if(a[e]){s=s.filter((function(t){return t.label!==e}));var u=a,l=(u[e],_objectWithoutPropertiesLoose(u,[e].map(_toPropertyKey$1)));a=l}else{var c,p=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));s=[].concat(s,p),a=_extends({},a,((c={})["object"==typeof e?e.label:e]=!0,c))}else s=[],a={};checkValueChange$9(n.componentId,s,n.beforeValueChange,(function(){o.currentValue=s,o.selectedValues=a,o.updateQueryHandler(s,n),o.$emit("valueChange",Object.keys(a)),o.$emit("value-change",Object.keys(a))}))},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$e(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){if(!isEqual$e(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(){!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`."),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=this,t=arguments[0];return t(Container,{class:this.$props.className},[this.$props.title&&t(Title,{class:getClassName$d(this.$props.innerClass,"title")},[this.$props.title]),t(UL,{class:getClassName$d(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(Checkbox,{class:getClassName$d(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:_extends({},{checked:e.selectedValues[n.label]}),on:_extends({},{click:e.handleClick})}),t("label",{class:getClassName$d(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}},mapStateToProps$d=function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}},mapDispatchtoProps$a={updateQuery:updateQuery$b,setQueryOptions:setQueryOptions$a,setCustomQuery:setCustomQuery$a},RangeConnected$2=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$d,mapDispatchtoProps$a)(MultiRange),{componentType:constants_1$1.multiRange}));RangeConnected$2.name=MultiRange.name,RangeConnected$2.defaultQuery=MultiRange.defaultQuery,RangeConnected$2.parseValue=MultiRange.parseValue,RangeConnected$2.hasInternalComponent=MultiRange.hasInternalComponent,RangeConnected$2.install=function(e){e.component(RangeConnected$2.name,RangeConnected$2)},RangeConnected$2.componentType=constants_1$1.multiRange;var updateQuery$c=lib_5.updateQuery,setQueryOptions$b=lib_5.setQueryOptions,setCustomQuery$b=lib_5.setCustomQuery,checkValueChange$a=lib_8.checkValueChange,getClassName$e=lib_8.getClassName,getOptionsFromQuery$3=lib_8.getOptionsFromQuery,isEqual$f=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:VueTypes.string.def(""),range:VueTypes.shape({start:VueTypes.integer.def(0),end:VueTypes.integer.def(10)}),rangeLabels:types.rangeLabels,componentId:types.stringRequired,compoundClause:types.compoundClause,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:VueTypes.bool.def(!0),showCheckbox:VueTypes.bool.def(!0),title:types.title,URLParams:VueTypes.bool.def(!1),sliderOptions:VueTypes.object.def({}),nestedField:types.string,index:VueTypes.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$a(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 s=t.showFilter,a=t.range,i=a.start,u=a.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:s&&!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$f(e,t)||this.handleChange(RangeSlider.parseValue(e,this.$props))},selectedValue:function(e){isEqual$f(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;"),!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`."),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=arguments[0];return e(Container,{class:this.$props.className},[this.$props.title&&e(Title,{class:getClassName$e(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(vueNoSsr_common,[e(Slider,{class:getClassName$e(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:_extends({},this.$props.sliderOptions)}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:getClassName$e(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:getClassName$e(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]:[]}},mapStateToProps$e=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}},mapDispatchtoProps$b={updateQuery:updateQuery$c,setQueryOptions:setQueryOptions$b,setCustomQuery:setCustomQuery$b},RangeConnected$3=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$e,mapDispatchtoProps$b)(RangeSlider),{componentType:constants_1$1.rangeSlider})),_templateObject$p,_templateObject2$b;RangeConnected$3.name=RangeSlider.name,RangeConnected$3.defaultQuery=RangeSlider.defaultQuery,RangeConnected$3.parseValue=RangeSlider.parseValue,RangeConnected$3.hasInternalComponent=RangeSlider.hasInternalComponent,RangeConnected$3.install=function(e){e.component(RangeConnected$3.name,RangeConnected$3)},RangeConnected$3.componentType=constants_1$1.rangeSlider;var alert=function(e){var t=e.theme;return css(_templateObject$p||(_templateObject$p=_taggedTemplateLiteralLoose(["\n\tcolor: ",";\n"])),t.colors.alertColor)},Content=index$1("div")(_templateObject2$b||(_templateObject2$b=_taggedTemplateLiteralLoose(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&alert})),getClassName$f=lib_8.getClassName,isEqual$g=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,compoundClause:types.compoundClause,includeNullValues:VueTypes.bool,beforeValueChange:types.func,customQuery:types.func,data:types.data,filterLabel:types.string,react:types.react,showFilter:VueTypes.bool.def(!0),showCheckbox:VueTypes.bool.def(!0),title:types.title,URLParams:VueTypes.bool.def(!1),sliderOptions:VueTypes.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.$listeners)},handleChange:function(e,t){var n=e;if(this.shouldUpdate(e)&&!isEqual$g(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=_extends({},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=_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.$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){isEqual$g(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,s=t.rangeLabels,a=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,_=t.title,b=t.URLParams,$=t.sliderOptions,C=t.nestedField;return e(Container,{style:l,class:n},[e(RangeConnected$3,{attrs:{componentId:a,value:{start:this.currentValue.start,end:this.currentValue.end},range:o,dataField:r,rangeLabels:s,includeNullValues:p,beforeValueChange:d,customQuery:h,data:f,filterLabel:m,react:g,showFilter:y,showCheckbox:v,title:_,uRLParams:b,sliderOptions:$,nestedField:C},on:{change:this.handleOnChange,"value-change":this.handleValueChange}}),e(Flex,{class:getClassName$f(i,"input-container")||""},[e(Flex,{attrs:{direction:"column",flex:2}},[e(Input,{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:getClassName$f(i,"input")||"",domProps:_extends({},{value:this.currentValue.start})}),!this.isStartValid&&e(Content,{attrs:{alert:!0}},["Input range is invalid"])]),e(Flex,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(Flex,{attrs:{direction:"column",flex:2}},[e(Input,{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:getClassName$f(i,"input")||"",domProps:_extends({},{value:this.currentValue.end})}),!this.isEndValid&&e(Content,{attrs:{alert:!0}},["Input range is invalid"])])])])}},mapStateToProps$f=function(e){return{themePreset:e.config.themePreset}},RangeConnected$4=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$f,{})(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 RcConnected$1=PreferencesConsumer({name:"RcConnected",render:function(e){var t=RcConnected;switch(this.$attrs.componentType){case constants_1$1.reactiveList:t=RLConnected;break;case constants_1$1.searchBox:t=SBConnected;break;case constants_1$1.singleList:t=ListConnected;break;case constants_1$1.multiList:t=ListConnected$1;break;case constants_1$1.singleDropdownList:t=ListConnected$2;break;case constants_1$1.multiDropdownList:t=ListConnected$3;break;case constants_1$1.toggleButton:t=TBConnected;break;case constants_1$1.dynamicRangeSlider:t=RangeConnected;break;case constants_1$1.singleRange:t=RangeConnected$1;break;case constants_1$1.multiRange:t=RangeConnected$2;break;case constants_1$1.rangeSlider:t=RangeConnected$3;break;case constants_1$1.rangeInput:t=RangeConnected$4}return e(t,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots})}});RcConnected$1.name="ReactiveComponentPrivate",RcConnected$1.hasInternalComponent=RcConnected.hasInternalComponent,RcConnected$1.componentType=constants_1$1.reactiveComponent,RcConnected$1.install=function(e){e.component(RcConnected$1.name,RcConnected$1)};var setValue$2=lib_5.setValue,clearValues=lib_5.clearValues,resetValuesToDefault=lib_5.resetValuesToDefault,getClassName$g=lib_8.getClassName,handleA11yAction$2=lib_8.handleA11yAction,SelectedFilters={name:"SelectedFilters",props:{className:VueTypes.string.def(""),clearAllLabel:VueTypes.string.def("Clear All"),innerClass:types.style,showClearAll:VueTypes.bool.def(!0),title:types.title,resetToDefault:VueTypes.bool.def(!1),clearAllBlacklistComponents:VueTypes.array,resetToValues:VueTypes.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(Container,{class:filters(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(Title,{class:getClassName$g(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r&&n.length>1?t(Button,{class:getClassName$g(this.$props.innerClass,"button")||"",on:_extends({},{click:this.clearValues,keypress:function(t){return handleA11yAction$2(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(Button,{class:getClassName$g(this.$props.innerClass,"button")||"",key:t,on:_extends({},{click:n,keypress:function(e){return handleA11yAction$2(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],s=o.label,a=o.value,i=Array.isArray(a);if(s&&(i&&a.length||!i&&a)){var u=e.renderValue(a,i);return e.renderFilterButton(n,n+"-"+(r+1),(function(){return e.remove(n,a)}),t[n].label+": "+decodeHtml(u))}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},mapStateToProps$g=function(e){return{components:e.components,selectedValues:e.selectedValues}},mapDispatchtoProps$c={clearValuesAction:clearValues,setValue:setValue$2,resetValuesToDefault:resetValuesToDefault},RcConnected$2=connect(mapStateToProps$g,mapDispatchtoProps$c)(SelectedFilters);RcConnected$2.name=SelectedFilters.name,RcConnected$2.install=function(e){e.component(RcConnected$2.name,RcConnected$2)};var ResultCardTitle={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(Title,helper$1([{},this.$props]),[t])},install:function(e){e.component(ResultCardTitle.name,ResultCardTitle)}},_excluded$1=["src"],ResultCardImage={name:"ResultCardImage",props:{src:VueTypes.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=_objectWithoutPropertiesLoose(t,_excluded$1);return e(Image$1,helper$1([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(ResultCardImage.name,ResultCardImage)}},ResultCardDescription={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",helper$1([{},n]),[r])},install:function(e){e.component(ResultCardDescription.name,ResultCardDescription)}},_excluded$2=["href","target"],ResultCard={name:"ResultCard",components:{ResultCardTitle:ResultCardTitle,ResultCardImage:ResultCardImage,ResultCardDescription:ResultCardDescription},props:{target:VueTypes.string.def("_blank"),href:types.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,s=_objectWithoutPropertiesLoose(n,_excluded$2);return e(Card,helper$1([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},s]),[t])},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,t){var n=t.props,r=t.children,o=arguments[0];return o("article",helper$1([{},n]),[r])},install:function(e){e.component(ResultListContent.name,ResultListContent)}},ResultListDescription={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",helper$1([{},n]),[r])},install:function(e){e.component(ResultListDescription.name,ResultListDescription)}},_excluded$3=["src","small"],ResultListImage={name:"ResultListImage",props:{src:VueTypes.string.isRequired,small:VueTypes.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=_objectWithoutPropertiesLoose(t,_excluded$3);return e(Image,helper$1([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(ResultListImage.name,ResultListImage)}},ResultListTitle={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(Title,helper$1([{},this.$props]),[t])},install:function(e){e.component(ResultListTitle.name,ResultListTitle)}},_excluded$4=["href","target"],ResultList={name:"ResultList",props:{href:types.string,target:VueTypes.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.componentOptions&&e.componentOptions.tag===ResultListImage.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=_objectWithoutPropertiesLoose(t,_excluded$4),s=this.hasImage,a=this.isSmall,i=this.$slots.default;return e(ListItem,helper$1([{attrs:{href:n,image:s,small:a,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[i])},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 s;if("string"==typeof r)return(s={})[r]=e[r],s;if(Array.isArray(r)&&r.length){var a={};return r.forEach((function(t){a[t]=e[t]})),a}}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:VueTypes.func,componentIds:VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.string)]),includeKeys:VueTypes.arrayOf(VueTypes.string).def(defaultKeys),strict:VueTypes.bool.def(!0),includeInternalComponents:VueTypes.bool.def(!1),excludeComponentIds:VueTypes.oneOfType([VueTypes.string,VueTypes.arrayOf(VueTypes.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.$scopedSlots.default;return t?t({searchState:e,setSearchState:this.setSearchState}):null}},mapStateToProps$h=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$h,mapDispatchtoProps$d)(StateProvider);function ownKeys$1(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$1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$1(Object(n),!0).forEach((function(t){_defineProperty$2(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$1(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _typeof$3(e){return(_typeof$3="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 _defineProperty$2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bindEvents(e,t,n){n.forEach((function(n){(e.$gmapOptions.autoBindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}function capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}function getPropsValues(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function getLazyValue(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}function downArrowSimulator(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 twoWayBindingWrapper(e){var t=0;e((function(){t+=1}),(function(){t=Math.max(0,t-1)}),(function(){return 0===t}))}function watchPrimitiveProperties(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;function s(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,s,{immediate:r})}))}function bindProps(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],s=o.twoWay,a=o.type,i=o.trackProperties;if(!o.noBind){var u="set".concat(capitalizeFirstLetter(r)),l="get".concat(capitalizeFirstLetter(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&&i?watchPrimitiveProperties(e,i.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}),s&&(e.$gmapOptions.autoBindAllEvents||e.$listeners[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}StateProviderConnected.name=StateProvider.name,StateProviderConnected.install=function(e){e.component(StateProviderConnected.name,StateProviderConnected)};var autocompleteMappedProps={bounds:{type:Object},componentRestrictions:{type:Object,noBind:!0},types:{type:Array,default:function(){return[]}}},drawingManagerMappedProps={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}},heatMapLayerMappedProps={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},infoWindowMappedProps={content:{type:Object,twoWay:!0},options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},kmlLayerMappedProps={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{}}}},mapMappedProps={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{}}}},markerMappedProps={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}},streetViewPanoramaMappedProps={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{}}}},polygonMappedProps={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}},polylineMappedProps={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}},rectangleMappedProps={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}},circleMappedProps={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}},placeInputMappedProps={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}},clusterIconMappedProps={algorithm:{type:Object},onClusterClick:{type:Function},renderer:{type:Object},options:{type:Object}},script={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 _asyncToGenerator(_regeneratorRuntime().mark((function t(){var n,r;return _regeneratorRuntime().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&&downArrowSimulator(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=_extends({},getPropsValues(e,autocompleteMappedProps),e.options),e.$autocomplete=new google.maps.places.Autocomplete(e.$refs.input,r),bindProps(e,e.$autocomplete,autocompleteMappedProps),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)}};function normalizeComponent(e,t,n,r,o,s,a,i,u,l){"boolean"!=typeof a&&(u=i,i=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),s?(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(s)},p._ssrRegister=c):t&&(c=a?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,i(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 __vue_script__=script,__vue_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)},__vue_staticRenderFns__=[],__vue_inject_styles__=void 0,__vue_scope_id__=void 0,__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,__vue_component__=normalizeComponent({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,!1,void 0,void 0,void 0),mapElementMixin={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then((function(t){e.$map=t})),{}}},_excluded$5=["options"],script$1={name:"CircleShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,circleMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$5));return e.$circleObject=new google.maps.Circle(o),bindProps(e,e.$circleObject,circleMappedProps),bindEvents(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)}},__vue_script__$1=script$1,__vue_inject_styles__$1=void 0,__vue_scope_id__$1=void 0,__vue_module_identifier__$1=void 0,__vue_is_functional_template__$1=void 0,__vue_component__$1=normalizeComponent({},__vue_inject_styles__$1,__vue_script__$1,__vue_scope_id__$1,__vue_is_functional_template__$1,__vue_module_identifier__$1,!1,void 0,void 0,void 0);function sortKD(e,t,n,r,o,s){if(!(o-r<=n)){var a=r+o>>1;select(e,t,a,r,o,s%2),sortKD(e,t,n,r,a-1,s+1),sortKD(e,t,n,a+1,o,s+1)}}function select(e,t,n,r,o,s){for(;o>r;){if(o-r>600){var a=o-r+1,i=n-r+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a)*(i-a/2<0?-1:1);select(e,t,n,Math.max(r,Math.floor(n-i*l/a+c)),Math.min(o,Math.floor(n+(a-i)*l/a+c)),s)}var p=t[2*n+s],d=r,h=o;for(swapItem(e,t,r,n),t[2*o+s]>p&&swapItem(e,t,r,o);d<h;){for(swapItem(e,t,d,h),d++,h--;t[2*d+s]<p;)d++;for(;t[2*h+s]>p;)h--}t[2*r+s]===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,s,a){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<=a)for(var f=h;f<=d;f++)i=t[2*f],u=t[2*f+1],i>=n&&i<=o&&u>=r&&u<=s&&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<=s&&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:s>=u)&&(l.push(m+1),l.push(d),l.push(g))}}return c}function within(e,t,n,r,o,s){for(var a=[0,e.length-1,0],i=[],u=o*o;a.length;){var l=a.pop(),c=a.pop(),p=a.pop();if(c-p<=s)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)&&(a.push(p),a.push(h-1),a.push(g)),(0===l?n+o>=f:r+o>=m)&&(a.push(h+1),a.push(c),a.push(g))}}return i}function sqDist(e,t,n,r){var o=e-n,s=t-r;return o*o+s*s}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 s=e.length<65536?Uint16Array:Uint32Array,a=this.ids=new s(e.length),i=this.coords=new o(2*e.length),u=0;u<e.length;u++)a[u]=u,i[2*u]=t(e[u]),i[2*u+1]=n(e[u]);sortKD(a,i,r,0,a.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,s=t.nodeSize;n&&console.time("total time");var a="prepare "+e.length+" points";n&&console.time(a),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,s,Float32Array),n&&console.timeEnd(a);for(var l=o;l>=r;l--){var c=+Date.now();i=this._cluster(i,l),this.trees[l]=new KDBush(i,getX,getY,s,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,s=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,s],t),i=this.getClusters([-180,r,o,s],t);return a.concat(i)}for(var u,l=this.trees[this._limitZoom(t)],c=[],p=_createForOfIteratorHelperLoose(l.range(lngX(n),latY(s),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 s=o.points[t];if(!s)throw new Error(r);for(var a,i=this.options.radius/(this.options.extent*Math.pow(2,n-1)),u=[],l=_createForOfIteratorHelperLoose(o.within(s.x,s.y,i));!(a=l()).done;){var c=a.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),s=this.options,a=s.extent,i=s.radius/a,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 s,a=_createForOfIteratorHelperLoose(this.getChildren(t));!(s=a()).done;){var i=s.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,s){for(var a,i=_createForOfIteratorHelperLoose(e);!(a=i()).done;){var u=t[a.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),s.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,s=r.extent,a=r.reduce,i=r.minPoints,u=o/(s*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=a&&f>1?this._map(c,!0):null,O=(l<<5)+(t+1)+this.points.length,T=_createForOfIteratorHelperLoose(h);!(_=T()).done;){var S=_.value,w=d.points[S];if(!(w.zoom<=t)){w.zoom=t;var P=w.numPoints||1;b+=w.x*P,$+=w.y*P,w.parentId=O,a&&(C||(C=this._map(c,!0)),a(C,this._map(w)))}}c.parentId=O,n.push(createCluster(b/m,$/m,O,m,C))}else if(n.push(c),m>1)for(var E,R=_createForOfIteratorHelperLoose(h);!(E=R()).done;){var k=E.value,I=d.points[k];I.zoom<=t||(I.zoom=t,n.push(I))}}}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}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,s;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=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=r;0!=o--;){var a=s[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};
37
37
  /*! *****************************************************************************
38
38
  Copyright (c) Microsoft Corporation.
39
39
 
@@ -47,5 +47,5 @@ var index$3={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag
47
47
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
48
48
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
49
49
  PERFORMANCE OF THIS SOFTWARE.
50
- ***************************************************************************** */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,s=void 0===o?60:o,a=__rest(t,["maxZoom","radius"]);return(n=e.call(this,{maxZoom:r})||this).superCluster=new Supercluster(Object.assign({maxZoom:n.maxZoom,radius:s},a)),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 s=o.marker;return new Cluster({markers:[s],position:s.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",s=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,"+s,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,s=void 0===o?[]:o,a=t.algorithm,i=void 0===a?new SuperClusterAlgorithm({}):a,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(s),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$6=["options"],script$2={name:"ClusterIcon",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,clusterIconMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$6));if(void 0===MarkerClusterer)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 s=o.map,a=o.markers,i=o.algorithm,u=o.onClusterClick,l=o.renderer;return e.$clusterObject=new MarkerClusterer({map:s,markers:a,algorithm:i,onClusterClick:u,renderer:l}),bindProps(e,e.$clusterObject,{}),bindEvents(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)}}},__vue_script__$2=script$2,__vue_render__$1=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default")],2)},__vue_staticRenderFns__$1=[],__vue_inject_styles__$2=void 0,__vue_scope_id__$2=void 0,__vue_module_identifier__$2=void 0,__vue_is_functional_template__$2=!1,__vue_component__$2=normalizeComponent({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$2,__vue_script__$2,__vue_scope_id__$2,__vue_is_functional_template__$2,__vue_module_identifier__$2,!1,void 0,void 0,void 0),_excluded$7=["options"],script$3={name:"DrawingManager",mixins:[mapElementMixin],provide:function(){var e=this,t=this.$mapPromise.then((function(t){e.$map=t;var n=_extends({},e.options,{map:t},getPropsValues(e,drawingManagerMappedProps)),r=(n.options,_objectWithoutPropertiesLoose(n,_excluded$7));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),bindProps(e,e.$drawingManagerObject,drawingManagerMappedProps),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)}}},__vue_script__$3=script$3,__vue_render__$2=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default",null,{setDrawingMode:this.setDrawingMode,deleteSelection:this.deleteSelection})],2)},__vue_staticRenderFns__$2=[],__vue_inject_styles__$3=void 0,__vue_scope_id__$3=void 0,__vue_module_identifier__$3=void 0,__vue_is_functional_template__$3=!1,__vue_component__$3=normalizeComponent({render:__vue_render__$2,staticRenderFns:__vue_staticRenderFns__$2},__vue_inject_styles__$3,__vue_script__$3,__vue_scope_id__$3,__vue_is_functional_template__$3,__vue_module_identifier__$3,!1,void 0,void 0,void 0),_excluded$8=["options"],script$4={name:"HeatmapLayer",mixins:[mapElementMixin],render:function(){return""},provide:function(){var e=this,t=[],n=this.$mapPromise.then((function(n){e.$map=n;var r=_extends({},e.options,{map:e.$map},getPropsValues(e,heatMapLayerMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$8));return e.$heatmapLayerObject=new google.maps.visualization.HeatmapLayer(o),bindProps(e,e.$heatmapLayerObject,heatMapLayerMappedProps),bindEvents(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)}},__vue_script__$4=script$4,__vue_inject_styles__$4=void 0,__vue_scope_id__$4=void 0,__vue_module_identifier__$4=void 0,__vue_is_functional_template__$4=void 0,__vue_component__$4=normalizeComponent({},__vue_inject_styles__$4,__vue_script__$4,__vue_scope_id__$4,__vue_is_functional_template__$4,__vue_module_identifier__$4,!1,void 0,void 0,void 0),_excluded$9=["options","position"],script$5={name:"InfoWindow",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,infoWindowMappedProps)),o=(r.options,r.position,_objectWithoutPropertiesLoose(r,_excluded$9));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),bindProps(e,e.$infoWindowObject,infoWindowMappedProps),bindEvents(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()}}},__vue_script__$5=script$5,__vue_render__$3=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{ref:"flyaway"},[this._t("default")],2)])},__vue_staticRenderFns__$3=[],__vue_inject_styles__$5=void 0,__vue_scope_id__$5=void 0,__vue_module_identifier__$5=void 0,__vue_is_functional_template__$5=!1,__vue_component__$5=normalizeComponent({render:__vue_render__$3,staticRenderFns:__vue_staticRenderFns__$3},__vue_inject_styles__$5,__vue_script__$5,__vue_scope_id__$5,__vue_is_functional_template__$5,__vue_module_identifier__$5,!1,void 0,void 0,void 0),_excluded$a=["options"],script$6={name:"KmlLayer",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,kmlLayerMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$a));return e.$kmlLayerObject=new google.maps.KmlLayer(o),bindProps(e,e.$kmlLayerObject,kmlLayerMappedProps),bindEvents(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)}},__vue_script__$6=script$6,__vue_inject_styles__$6=void 0,__vue_scope_id__$6=void 0,__vue_module_identifier__$6=void 0,__vue_is_functional_template__$6=void 0,__vue_component__$6=normalizeComponent({},__vue_inject_styles__$6,__vue_script__$6,__vue_scope_id__$6,__vue_is_functional_template__$6,__vue_module_identifier__$6,!1,void 0,void 0,void 0),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()},_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)}},_excluded$b=["options"],script$7={name:"MapLayer",mixins:[mountableMixin],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=_extends({},e.options,getPropsValues(e,mapMappedProps)),r=(n.options,_objectWithoutPropertiesLoose(n,_excluded$b)),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}),bindProps(e,e.$mapObject,mapMappedProps),bindEvents(e,e.$mapObject,["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"]),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:{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)}},isOldIE="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()),HEAD;function createInjector(e){return function(e,t){return addStyle(e,t)}}var styles={};function addStyle(e,t){var n=isOldIE?t.media||"default":e,r=styles[n]||(styles[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===HEAD&&(HEAD=document.head||document.getElementsByTagName("head")[0]),HEAD.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(o),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var s=r.ids.size-1,a=document.createTextNode(o),i=r.element.childNodes;i[s]&&r.element.removeChild(i[s]),i.length?r.element.insertBefore(a,i[s]):r.element.appendChild(a)}}}var __vue_script__$7=script$7,__vue_render__$4=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)},__vue_staticRenderFns__$4=[],__vue_inject_styles__$7=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})},__vue_scope_id__$7=void 0,__vue_module_identifier__$7=void 0,__vue_is_functional_template__$7=!1,__vue_component__$7=normalizeComponent({render:__vue_render__$4,staticRenderFns:__vue_staticRenderFns__$4},__vue_inject_styles__$7,__vue_script__$7,__vue_scope_id__$7,__vue_is_functional_template__$7,__vue_module_identifier__$7,!1,createInjector,void 0,void 0),_excluded$c=["options"],script$8={name:"MarkerIcon",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,markerMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$c));return e.$clusterPromise&&(o.map=null),e.$markerObject=new google.maps.Marker(o),bindProps(e,e.$markerObject,markerMappedProps),bindEvents(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):""}},__vue_script__$8=script$8,__vue_inject_styles__$8=void 0,__vue_scope_id__$8=void 0,__vue_module_identifier__$8=void 0,__vue_is_functional_template__$8=void 0,__vue_component__$8=normalizeComponent({},__vue_inject_styles__$8,__vue_script__$8,__vue_scope_id__$8,__vue_is_functional_template__$8,__vue_module_identifier__$8,!1,void 0,void 0,void 0),_excluded$d=["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"],script$9={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=getPropsValues(e,placeInputMappedProps);if(e.selectFirstOnEnter&&downArrowSimulator(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=_objectWithoutPropertiesLoose(placeInputMappedProps,_excluded$d);bindProps(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)}},__vue_script__$9=script$9,__vue_render__$5=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}})])},__vue_staticRenderFns__$5=[],__vue_inject_styles__$9=void 0,__vue_scope_id__$9=void 0,__vue_module_identifier__$9=void 0,__vue_is_functional_template__$9=!1,__vue_component__$9=normalizeComponent({render:__vue_render__$5,staticRenderFns:__vue_staticRenderFns__$5},__vue_inject_styles__$9,__vue_script__$9,__vue_scope_id__$9,__vue_is_functional_template__$9,__vue_module_identifier__$9,!1,void 0,void 0,void 0),_excluded$e=["options","path","paths"],script$a={name:"PolygonShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,polygonMappedProps)),o=(r.options,r.path,r.paths,_objectWithoutPropertiesLoose(r,_excluded$e));e.$polygonObject=new google.maps.Polygon(o),bindProps(e,e.$polygonObject,polygonMappedProps),bindEvents(e,e.$polygonObject,t);var s=function(){};return e.$watch("paths",(function(t){if(t){s(),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 i=o.getAt(a);r.push([i,i.addListener("insert_at",n)]),r.push([i,i.addListener("remove_at",n)]),r.push([i,i.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)]),s=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){s(),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)]),s=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)}},__vue_script__$a=script$a,__vue_inject_styles__$a=void 0,__vue_scope_id__$a=void 0,__vue_module_identifier__$a=void 0,__vue_is_functional_template__$a=void 0,__vue_component__$a=normalizeComponent({},__vue_inject_styles__$a,__vue_script__$a,__vue_scope_id__$a,__vue_is_functional_template__$a,__vue_module_identifier__$a,!1,void 0,void 0,void 0),_excluded$f=["options"],script$b={name:"PolylineShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,polylineMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$f));e.$polylineObject=new google.maps.Polyline(o),bindProps(e,e.$polylineObject,polylineMappedProps),bindEvents(e,e.$polylineObject,t);var s=function(){};return e.$watch("path",(function(t){if(t){s(),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)]),s=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)}},__vue_script__$b=script$b,__vue_inject_styles__$b=void 0,__vue_scope_id__$b=void 0,__vue_module_identifier__$b=void 0,__vue_is_functional_template__$b=void 0,__vue_component__$b=normalizeComponent({},__vue_inject_styles__$b,__vue_script__$b,__vue_scope_id__$b,__vue_is_functional_template__$b,__vue_module_identifier__$b,!1,void 0,void 0,void 0),_excluded$g=["options"],script$c={name:"RectangleShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,rectangleMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$g));return e.$rectangleObject=new google.maps.Rectangle(o),bindProps(e,e.$rectangleObject,rectangleMappedProps),bindEvents(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)}},__vue_script__$c=script$c,__vue_inject_styles__$c=void 0,__vue_scope_id__$c=void 0,__vue_module_identifier__$c=void 0,__vue_is_functional_template__$c=void 0,__vue_component__$c=normalizeComponent({},__vue_inject_styles__$c,__vue_script__$c,__vue_scope_id__$c,__vue_is_functional_template__$c,__vue_module_identifier__$c,!1,void 0,void 0,void 0),_excluded$h=["options"],script$d={name:"StreetViewPanorama",mixins:[mountableMixin],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=_extends({},e.options,getPropsValues(e,streetViewPanoramaMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$h));return e.$panoObject=new google.maps.StreetViewPanorama(n,o),bindProps(e,e.$panoObject,streetViewPanoramaMappedProps),bindEvents(e,e.$panoObject,t),twoWayBindingWrapper((function(t,n,r){t(),e.$panoObject.addListener("position_changed",(function(){r()&&e.$emit("position_changed",e.$panoObject.getPosition()),n()}));watchPrimitiveProperties(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)}},__vue_script__$d=script$d,__vue_render__$6=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)},__vue_staticRenderFns__$6=[],__vue_inject_styles__$d=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})},__vue_scope_id__$d=void 0,__vue_module_identifier__$d=void 0,__vue_is_functional_template__$d=!1,__vue_component__$d=normalizeComponent({render:__vue_render__$6,staticRenderFns:__vue_staticRenderFns__$6},__vue_inject_styles__$d,__vue_script__$d,__vue_scope_id__$d,__vue_is_functional_template__$d,__vue_module_identifier__$d,!1,createInjector,void 0,void 0);function createCallbackAndChecksIfMapIsLoaded(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)}function getPromiseLazyCreatorFn(e,t){return function(n){function r(){return t.isReady=!0,window.google}if(n&&n.load&&n.load.key||n.dynamicLoad)return getLazyValue((function(){return"undefined"==typeof window?new Promise((function(){})).then(r):new Promise((function(t,r){try{createCallbackAndChecksIfMapIsLoaded(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&&createCallbackAndChecksIfMapIsLoaded(e,window[n&&n.load&&n.load.customCallback])})).then(r);return getLazyValue((function(){return o}))}}function createGoogleMapsAPIInitializer(){var e=!1;return function(t,n){if("object"!==_typeof$2(t))throw new Error("options should be an object");if("undefined"!=typeof document){var r=_objectSpread2$1({},t),o=r.libraries;if(e)window.console.info("You already started the loading of google maps");else{e=!0;var s="boolean"==typeof n&&n?"https://maps.google.cn":"https://maps.googleapis.com",a=document.createElement("SCRIPT");Array.isArray(o)&&(r.libraries=o.join(",")),r.callback="GoogleMapsCallback";var i=Object.keys(r).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(r[e]))})).join("&"),u="".concat(s,"/maps/api/js?").concat(i);a.setAttribute("src",u),a.setAttribute("async",""),a.setAttribute("defer",""),document.head.appendChild(a)}}}}var googleMapsApiInitializer=createGoogleMapsAPIInitializer(),GoogleMapsApi,components={HeatmapLayer:__vue_component__$4,KmlLayer:__vue_component__$6,Marker:__vue_component__$8,Polyline:__vue_component__$b,Polygon:__vue_component__$a,Circle:__vue_component__$1,Cluster:__vue_component__$2,Rectangle:__vue_component__$c,DrawingManager:__vue_component__$3,InfoWindow:__vue_component__$5,MapLayer:__vue_component__$7,PlaceInput:__vue_component__$9,Autocomplete:__vue_component__,StreetViewPanorama:__vue_component__$d,MapElementMixin:mapElementMixin,MountableMixin:mountableMixin};function gmapVuePluginInstallFn(e,t){var n=_objectSpread2$1({dynamicLoad:!1,installComponents:!0,autoBindAllEvents:!1,load:{libraries:"places"}},t);GoogleMapsApi=new e({data:{isReady:!1}});var r=new e,o=getPromiseLazyCreatorFn(googleMapsApiInitializer,GoogleMapsApi)(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",__vue_component__$7),e.component("GmapMarker",__vue_component__$8),e.component("GmapInfoWindow",__vue_component__$5),e.component("GmapHeatmapLayer",__vue_component__$4),e.component("GmapKmlLayer",__vue_component__$6),e.component("GmapPolyline",__vue_component__$b),e.component("GmapPolygon",__vue_component__$a),e.component("GmapCircle",__vue_component__$1),e.component("GmapRectangle",__vue_component__$c),e.component("GmapDrawingManager",__vue_component__$3),e.component("GmapAutocomplete",__vue_component__),e.component("GmapPlaceInput",__vue_component__$9),e.component("GmapStreetViewPanorama",__vue_component__$d))}for(var main={install:gmapVuePluginInstallFn},BASE32_CODES="0123456789bcdefghjkmnpqrstuvwxyz",BASE32_CODES_DICT={},i=0;i<BASE32_CODES.length;i++)BASE32_CODES_DICT[BASE32_CODES.charAt(i)]=i;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,s=Math.max(r,o);n=SIGFIG_HASH_LENGTH[s]}else void 0===n&&(n=9);for(var a,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>(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 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,s=MAX_LAT,a=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=(s+a)/2)?(l+=1,a=r):s=r,o++;return l},decode_bbox=function(e){for(var t,n=!0,r=MAX_LAT,o=MIN_LAT,s=MAX_LON,a=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=(s+a)/2,1===d?a=t:s=t):(t=(r+o)/2,1===d?o=t:r=t),n=!n}}return[o,a,r,s]},decode_bbox_int=function(e,t){for(var n=MAX_LAT,r=MIN_LAT,o=MAX_LON,s=MIN_LON,a=0,i=(t=t||52)/2,u=0;u<i;u++)a=get_bit(e,2*(i-u)-1),0===get_bit(e,2*(i-u)-2)?n=(n+r)/2:r=(n+r)/2,0===a?o=(o+s)/2:s=(o+s)/2;return[r,s,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,s=r.longitude+t[1]*r.error.longitude*2;return s=ensure_valid_lon(s),o=ensure_valid_lat(o),encode_int(o,s,n)},neighbors=function(e){var t,n,r=e.length,o=decode$1(e),s=o.latitude,a=o.longitude,i=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=s+e*i,n=ensure_valid_lon(n=a+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),s=o.latitude,a=o.longitude,i=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=s+e*i,r=ensure_valid_lon(r=a+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 s=encode$1(e,t,o=o||9),a=encode$1(n,r,o),i=decode$1(s),u=2*i.error.latitude,l=2*i.error.longitude,c=decode_bbox(s),p=decode_bbox(a),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(s,[m,g]));return f},bboxes_int=function(e,t,n,r,o){for(var s=encode_int(e,t,o=o||52),a=encode_int(n,r,o),i=decode_int(s,o),u=2*i.error.latitude,l=2*i.error.longitude,c=decode_bbox_int(s,o),p=decode_bbox_int(a,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(s,[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$1=geohash,setStreaming=lib_5.setStreaming,setQueryOptions$c=lib_5.setQueryOptions,updateQuery$d=lib_5.updateQuery,loadMore$1=lib_5.loadMore,setValue$3=lib_5.setValue,updateComponentProps$3=lib_5.updateComponentProps,setDefaultQuery$8=lib_5.setDefaultQuery,recordResultClick$1=lib_5.recordResultClick,setMapData=lib_5.setMapData,isEqual$h=lib_8.isEqual,getQueryOptions$5=lib_8.getQueryOptions,getClassName$h=lib_8.getClassName,parseHits$2=lib_8.parseHits,getOptionsFromQuery$4=lib_8.getOptionsFromQuery,getResultStats$4=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$1.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,compoundClause:types.compoundClause,dataField:types.stringRequired,react:types.react,size:types.number,sortBy:types.sortBy,URLParams:VueTypes.bool,autoCenter:VueTypes.bool,getMapRef:VueTypes.func.isRequired,getMapPromise:VueTypes.func,center:types.location,defaultCenter:types.location,defaultPin:types.string,defaultZoom:VueTypes.number.def(13),defaultQuery:types.func,innerClass:types.style,loader:types.title,render:types.func,renderItem:types.func,renderError:types.title,pages:VueTypes.number.def(5),currentPage:VueTypes.number.def(0),pagination:VueTypes.bool,showMarkers:VueTypes.bool,defaultSearchAsMove:VueTypes.bool,showSearchAsMove:VueTypes.bool,defaultRadius:types.number,unit:types.string,autoClosePopover:VueTypes.bool,renderMap:VueTypes.func.isRequired,renderPopover:VueTypes.func,calculateMarkers:VueTypes.func,searchAsMoveLabel:VueTypes.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$4(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){var n=this;isQueryIdentical(e,t,null,this.$props)||this.getMapPromise().then((function(){var t=getQueryOptions$5(n.$props);if(t.from=0,n.$defaultQuery=e(null,n.$props),n.setDefaultQueryForRSAPI(),n.$defaultQuery){var r=n.$defaultQuery||{},o=r.sort,s=r.query;o&&(t.sort=n.$defaultQuery.sort),getOptionsFromQuery$4(n.$defaultQuery)&&(t=_extends({},t,getOptionsFromQuery$4(n.$defaultQuery))),n.setQueryOptions(n.$props.componentId,t,!1);var a={mapBoxBounds:n.mapBoxBounds};n.setMapData(n.componentId,s,!0,!0,a),n.currentPageState=0,n.from=0}}))},promotedResults:function(e,t){isEqual$h(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$h(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$h(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$h(e,t)){var r=this.promotedResults,o=this.hits,s=parseHits$2(o)||[],a=parseHits$2(r)||[],i=s;if(a.length){var u=a.map((function(e){return e._id})).filter(Boolean);u&&(i=i.filter((function(e){return!u.includes(e._id)}))),i=[].concat(a,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$h(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),s=t.parseLocation(e[t.dataField]),a=JSON.stringify(s),i=n[a]||0;o[t.dataField]=i?withDistinctLat(s,i):s,r=[].concat(r,[o]),n[a]=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,s=0,a=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,s+=u,a+=l}})),o/=r,s/=r,a/=r;var i=Math.atan2(s,o),u=Math.sqrt(o*o+s*s);return{lat:180*Math.atan2(a,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(),this.$defaultQuery)){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,s=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:s,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,s=parseHits$2(o)||[],a=parseHits$2(t)||[],i=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:s,resultsToRender:u,customData:n||{},promotedResults:a,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(),s=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(s){var a;t=s.getNorthEast().lat(),n=s.getSouthWest().lat(),r=s.getNorthEast().lng();var i={top_left:[s.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=i;var u={geo_bounding_box:(a={},a[this.dataField]=i,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=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.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?isFunction$1(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:getClassName$h(this.innerClass,"checkboxContainer")||null}},[e(Checkbox,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:getClassName$h(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:getClassName$h(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},[this.searchAsMoveLabel])]):null},renderPagination:function(){return(0,this.$createElement)(Pagination,{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},constants_1$1.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},constants_1$1.reactiveMap),this.setDefaultQueryForRSAPI()},mounted:function(){var e=this;this.getMapPromise().then((function(){e.defaultPage<0&&e.currentPage>0&&e.$props.URLParams&&e.setPageURL(e.$props.componentId,e.currentPage,e.$props.componentId,!1,!0);var t,n=getQueryOptions$5(e.$props);(n.from=e.$data.from,e.$props.sortBy)&&(n.sort=[(t={},t[e.$props.dataField]={order:e.$props.sortBy},t)]);if(e.$defaultQuery=null,e.$props.defaultQuery){if(e.$defaultQuery=e.$props.defaultQuery(),e.setDefaultQueryForRSAPI(),e.$defaultQuery){n=_extends({},n,getOptionsFromQuery$4(e.$defaultQuery)),e.$defaultQuery.sort&&(n.sort=e.$defaultQuery.sort);var r={mapBoxBounds:e.mapBoxBounds};e.$defaultQuery&&(e.setMapData(e.componentId,e.$defaultQuery.query,!0,!1,r),e.setQueryOptions(e.componentId,n))}}else{var o=e.getGeoDistanceQuery();if(o){var s=!!e.center,a=e.searchAsMove,i=e.center||e.defaultCenter,u=e.getArrPosition(i),l={distance:e.defaultRadius,coordinates:u.lat+", "+u.lon};e.setMapData(e.componentId,o,s,a,l)}e.setQueryOptions(e.componentId,n)}}))},render:function(){var e=arguments[0],t=this.$scopedSlots.loader||this.$props.loader;return e("div",{style:_extends({},style,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])}},mapStateToProps$i=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$4={loadMoreAction:loadMore$1,setPageURL:setValue$3,setQueryOptions:setQueryOptions$c,setStreaming:setStreaming,updateQuery:updateQuery$d,updateComponentProps:updateComponentProps$3,setDefaultQuery:setDefaultQuery$8,recordResultClick:recordResultClick$1,setMapData:setMapData},RMConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$i,mapDispatchToProps$4)(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$1={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.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}function capitalizeFirstLetter$1(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$1(e,t,n,r){void 0===r&&(r=!1);var o=!1;function s(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,s,{immediate:r})}))}function bindProps$1(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],s=o.twoWay,a=o.type,i=o.trackProperties;if(!o.noBind){var u="set"+capitalizeFirstLetter$1(r),l="get"+capitalizeFirstLetter$1(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&&i?watchPrimitiveProperties$1(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:a===Object}),s&&(e.$gmapOptions.autoBindAllEvents||e.$listeners[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}var _excluded$i=["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$1)),o=(r.options,r.position,_objectWithoutPropertiesLoose(r,_excluded$i));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$1),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(){var e=arguments[0];return e("div",[e("div",{ref:"flyaway"},[this.$scopedSlots.default()])])}},InfoWindowWrapper={name:"InfoWindowWrapperClusterManager",props:{id:VueTypes.string,renderPopover:VueTypes.func,infoWindowProps:VueTypes.object,events:VueTypes.object,marker:VueTypes.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(InfoWindowClusterManager,{ref:this.id+"-Info-Window",props:_extends({},this.infoWindowProps),on:_extends({},n)},[e("div",[t(this.handleClose)])])}},_excluded$j=["options"],isEqual$i=lib_8.isEqual,recordResultClick$2=lib_5.recordResultClick,ClusterMarkers={name:"ClusterMarkers",props:{markers:VueTypes.array,getPosition:VueTypes.func,defaultPin:VueTypes.string,renderItem:VueTypes.func,markerProps:VueTypes.object,handlePreserveCenter:VueTypes.func.isRequired,autoClosePopover:VueTypes.bool,renderPopover:VueTypes.func,highlightMarkerOnHover:VueTypes.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$i(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,s=this.openMarkers,a=(s[o],_objectWithoutPropertiesLoose(s,[o].map(_toPropertyKey))),i=n?{}:a;this.setOpenMarkers(i),r(!0),this.$emit("close-marker-popover",e)},openMarker:function(e,t){var n,r,o=this.autoClosePopover,s=this.handlePreserveCenter,a=e.metaData&&e.metaData._id,i=o?((n={})[a]=e,n):_extends({},this.openMarkers,((r={})[a]=e,r));this.setOpenMarkers(i),s(!0),this.triggerAnalytics(a,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=[],s=[],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 s=_extends({},t.markerProps,{metaData:e,map:n,position:t.getPosition(e)});if(t.renderItem){var i=t.renderItem(e);"label"in i&&(s.label=i.label),"icon"in i&&(s.icon=i.icon)}else t.defaultPin&&(s.icon={url:t.defaultPin});s.options;var u=_objectWithoutPropertiesLoose(s,_excluded$j);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&&(a[e.metaData._id]?i.push(e):s.push(e))})),r.removeMarkers(s),r.addMarkers(o),t.$clusterObject=r,t.$map=n,t.$markers=i}))})).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(InfoWindowWrapper,{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}},mapDispatchToProps$5={recordResultClick:recordResultClick$2},ClusterManager=connect((function(){return null}),mapDispatchToProps$5)(ClusterMarkers),InfoWindow=components.InfoWindow,InfoWindowWrapper$1={name:"InfoWindowWrapper",props:{id:VueTypes.string,renderPopover:VueTypes.func,infoWindowProps:VueTypes.object,events:VueTypes.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(InfoWindow,{ref:this.id+"-Info-Window",props:_extends({},this.infoWindowProps),on:_extends({},n)},[e("div",[t(this.handleClose)])])}},MapElementMixin=components.MapElementMixin,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:VueTypes.func.isRequired,handleMouseOver:VueTypes.func,handleFocus:VueTypes.func,handleMouseOut:VueTypes.func,handleBlur:VueTypes.func,handleClick:VueTypes.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,s=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=s.x-e.offsetWidth/2,o=s.y-e.offsetHeight;break;case"bottom":r=s.x-e.offsetWidth/2,o=s.y;break;case"left":r=s.x-e.offsetWidth,o=s.y-e.offsetHeight/2;break;case"right":r=s.x,o=s.y-e.offsetHeight/2;break;case"center":r=s.x-e.offsetWidth/2,o=s.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=s.x-e.offsetWidth,o=s.y-e.offsetHeight;break;case"topright":case"righttop":r=s.x,o=s.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=s.x-e.offsetWidth,o=s.y;break;case"bottomright":case"rightbottom":r=s.x,o=s.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()])}},_templateObject$q,_templateObject2$c,_templateObject3$8,MapPin=index$1("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=index$1("div")(_templateObject2$c||(_templateObject2$c=_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$8||(_templateObject3$8=_taggedTemplateLiteralLoose(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),Marker=components.Marker,recordResultClick$3=lib_5.recordResultClick,GoogleMapMarker={name:"GoogleMapMarker",props:{index:VueTypes.number,marker:VueTypes.object.isRequired,getPosition:VueTypes.func.isRequired,defaultPin:VueTypes.string,renderItem:VueTypes.func,setOpenMarkers:VueTypes.func.isRequired,handlePreserveCenter:VueTypes.func.isRequired,autoClosePopover:VueTypes.bool,openMarkers:VueTypes.object,renderPopover:VueTypes.func,highlightMarkerOnHover:VueTypes.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,s=n.marker,a=n.autoClosePopover,i=n.handlePreserveCenter,u=s._id;r(a?((e={})[u]=!0,e):_extends({},o,((t={})[u]=!0,t))),i(!0),this.triggerAnalytics(),s.setIcon=this.setIcon,this.$emit("open-marker-popover",s)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,s=e.openMarkers,a=n._id,i=(s[a],_objectWithoutPropertiesLoose(s,[a].map(_toPropertyKey)));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.$createElement,o=this.$props,s=o.getPosition,a=o.renderPopover,i=o.openMarkers;return t={position:s(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}},e._id in i?r(InfoWindowWrapper$1,{key:e._id+"-InfoWindow",attrs:{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}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.getPosition,o=n.renderItem,s=n.defaultPin,a=n.renderPopover,i=n.markerProps,u=n.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),o){u.setIcon=this.setIcon;var c=o(u);if("label"in c)return t(MarkerWithLabel,{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:mapPinWrapper}},[t(MapPin,[c.label]),t(MapPinArrow),a?e.renderPopoverClick(u,!0):null])}},props:_extends({},i)});if(!("icon"in c))return t(MarkerWithLabel,{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:mapPinWrapper}},["function"==typeof c.custom?c.custom(u):c.custom,a?e.renderPopoverClick(u,!0):null])}},props:_extends({},i)});l.icon=c.icon}else s&&(l.icon={url:s});return t(Marker,{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:_extends({},i)},[a?this.renderPopoverClick(u):null])}},mapDispatchToProps$6={recordResultClick:recordResultClick$3},GoogleMapMarker$1=connect((function(){return null}),mapDispatchToProps$6)(GoogleMapMarker),Cluster$1=components.Cluster,GoogleMapMarkers={name:"GoogleMapMarkers",props:{resultsToRender:VueTypes.array,getPosition:VueTypes.func,renderItem:VueTypes.func,renderClusterPopover:VueTypes.func,defaultPin:VueTypes.string,autoClosePopover:VueTypes.bool,handlePreserveCenter:VueTypes.func,renderPopover:VueTypes.func,markerProps:VueTypes.object,clusterProps:VueTypes.object,showMarkerClusters:VueTypes.bool,highlightMarkerOnHover:VueTypes.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(Cluster$1,{props:_extends({},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(ClusterManager,{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:_extends({},this.$listeners)})]),this.clickedCluster&&this.renderClusterPopover?t(InfoWindowWrapper$1,{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(GoogleMapMarker$1,{attrs:{index:r,marker:n},props:_extends({},o),on:_extends({},e.$listeners)})}))])}},Map=components.MapLayer,ReactiveGoogleMap={name:"ReactiveGoogleMap",props:{className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,defaultQuery:VueTypes.func,loader:types.title,defaultZoom:VueTypes.number.def(13),react:types.react,size:types.number,sortBy:types.sortBy,URLParams:VueTypes.bool,mapProps:VueTypes.object,showMarkers:VueTypes.bool.def(!0),showMarkerClusters:VueTypes.bool.def(!1),searchAsMove:VueTypes.bool.def(!1),searchAsMoveLabel:VueTypes.string,markerProps:VueTypes.object,clusterProps:VueTypes.object,renderItem:VueTypes.func,showSearchAsMove:VueTypes.bool.def(!0),autoClosePopover:VueTypes.bool,pagination:VueTypes.bool,defaultPin:VueTypes.string,autoCenter:VueTypes.bool,defaultCenter:types.location,center:types.location,defaultRadius:types.number,unit:types.string,pages:VueTypes.number.def(5),calculateMarkers:VueTypes.func,highlightMarkerOnHover:VueTypes.bool.def(!0)},created:function(){var e=this;this.mapRefPromiseResolve=null,this.mapRefPromiseRejecter=null,this.mapRefPromise=new Promise((function(t,n){e.mapRefPromiseResolver=t,e.mapRefPromiseRejecter=n}))},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,s=e.handleZoomChange,a=e.handleOnDragEnd,i=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(Map,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:_extends({},this.mapProps),on:{zoom_changed:s,dragend:a,idle:i}},[this.showMarkers?h(GoogleMapMarkers,{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:_extends({},this.$listeners)}):null]),u()])},getMapRef:function(){return this.mapRef},getMapRefPromise:function(){return this.mapRefPromise},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,e.mapRefPromiseResolver(e.mapRef)})).catch(this.mapRefPromiseRejecter)},render:function(){var e=arguments[0];return e(RMConnected,helper$1([{attrs:{getMapRef:this.getMapRef,getMapPromise:this.getMapRefPromise,renderMap:this.renderMap,componentId:this.componentId,compoundClause:this.compoundClause,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(ReactiveGoogleMap.name,ReactiveGoogleMap),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(main,{load:{key:t.key,libraries:"places"},installComponents:!1})}};ReactiveGoogleMap.componentType=constants_1$1.reactiveMap;var _excluded$k=["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 s=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,a=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,i=_extends({},n.enableAppbase&&_extends({"X-Search-Client":X_SEARCH_CLIENT$1},!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=helper_1(e,n.endpoint);return n.transformRequest?n.transformRequest(t):t});var c={url:u,app:n.app,credentials:s,transformRequest:l,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:i,analyticsConfig:n.appbaseConfig||null,enableAppbase:n.enableAppbase,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={},T={},S={},w={},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 s=resultComponents.includes(n),a=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&&(S[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&(w[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 _=m||{},b=_.aggs,$=_.size,C=_objectWithoutPropertiesLoose(_,_excluded$k);if(b&&Object.keys(b).length&&(o=!0,m=_extends({},m,{aggs:b,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)),s){var T=e.currentPage?e.currentPage-1:0;h[e.componentId]&&h[e.componentId].value&&(T=h[e.componentId].value-1||0);var E=e.size||10,R=T*E;r.from=R,O=_extends({},O,v,{size:E,from:R})}m=_extends({},m,O)}}if(e.react||o||s){var k=e.react;(o||s)&&(k=helper_38(k,a)),y=dependencyTreeReducer(y,{type:"WATCH_COMPONENT",component:e.componentId,react:k})}if(o&&!transform_8(e.componentType)){var I=getDefaultQuery(e,l)||{},x=I.query,A=_objectWithoutPropertiesLoose(I,_excluded2);f=queryReducer(f,{type:"SET_QUERY",component:a,query:x}),g=queryOptionsReducer(g,{type:"SET_QUERY_OPTIONS",component:a,options:_extends({},m,A)})}var L=getCustomQuery(e,l)||{},j=L.query,V=_objectWithoutPropertiesLoose(L,_excluded3),M=j;f=queryReducer(f,{type:"SET_QUERY",component:e.componentId,query:M}),g=queryOptionsReducer(g,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:_extends({},V)}),r.componentType=n,P[e.componentId]=r})),T={components:d,dependencyTree:y,queryList:f,queryOptions:g,selectedValues:h,internalValues:{},props:P,customQueries:S,defaultQueries:w},e.forEach((function(e){var t=helper_37(e.componentId,y,f,g),r=t.queryObj,o=t.options,s=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return s.includes(e)}))){var a;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),b=[].concat(b,[e.componentId]);var i=_extends({query:_extends({},r)},o,g[e.componentId]);if(m=_extends({},m,((a={})[e.componentId]=i,a)),n.enableAppbase){var u,l=transform_5(e.componentId,transform_3(T,e.componentId,g&&Object.keys(g[e.componentId]).length?{from:g[e.componentId].from}:null));if(l)_=_extends({},_,((u={})[e.componentId]=l,u),transform_2(T,e.componentId,b))}else{var p=c&&c.analyticsConfig&&c.analyticsConfig.userId?c.analyticsConfig.userId+"_"+e:e;v=[].concat(v,[{preference:p},i])}}})),T.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)}))},R=function(e){var t=b.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(){T=_extends({},T,{hits:$,aggregations:C}),r(T)}))};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){R(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(_).length){v=Object.keys(_).map((function(e){return _[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={},s={},a=b.map((function(r){return new Promise((function(a,i){E(e[r],r).then((function(e){if(e){var i,u;if(e.promoted&&(t[r]=e.promoted.map((function(e){return _extends({},e.doc,{_position:e.position})}))),n[r]=e,e.customData&&(o[r]=e.customData),e.settings&&(s[r]=e.settings),e.aggregations)C=_extends({},C,((u={})[r]=e.aggregations,u));var l=e.hits?e.hits:e[r].hits;$=_extends({},$,((i={})[r]={hits:l.hits,total:"object"==typeof l.total?l.total.value:l.total,time:e.took},i)),a()}})).catch((function(e){return i(e)}))}))}));Promise.all(a).then((function(){T=_extends({},T,{hits:$,aggregations:C,compositeAggregations:O,promotedResults:t,settings:s,customData:o,rawData:n}),r(T)}))}(e)})).catch((function(e){return o(e)}))}else p.msearch({type:"*"===c.type?"":c.type,body:v}).then((function(e){R(e)})).catch((function(e){return o(e)}))}))}var version="1.35.0",components$1=[RLConnected,ResultCard,ResultList,ReactiveBase,DSConnected,SBConnected,ListConnected,ListConnected$1,RangeConnected$1,RangeConnected$2,RangeConnected$3,RangeConnected,RcConnected,RcConnected$1,RcConnected$2,TBConnected,ListConnected$2,ListConnected$3,StateProviderConnected,RangeConnected$4];function install(e){components$1.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&install(window.Vue);var index$4={version:version,install:install};exports.DataSearch=DSConnected,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.ReactiveComponentPrivate=RcConnected$1,exports.ReactiveGoogleMap=ReactiveGoogleMap,exports.ReactiveList=RLConnected,exports.ResultCard=ResultCard,exports.ResultList=ResultList,exports.SearchBox=SBConnected,exports.SelectedFilters=RcConnected$2,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$4,exports.initReactivesearch=initReactivesearch,exports.install=install,exports.version=version,Object.defineProperty(exports,"__esModule",{value:!0})}));
50
+ ***************************************************************************** */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,s=void 0===o?60:o,a=__rest(t,["maxZoom","radius"]);return(n=e.call(this,{maxZoom:r})||this).superCluster=new Supercluster(Object.assign({maxZoom:n.maxZoom,radius:s},a)),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 s=o.marker;return new Cluster({markers:[s],position:s.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",s=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,"+s,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,s=void 0===o?[]:o,a=t.algorithm,i=void 0===a?new SuperClusterAlgorithm({}):a,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(s),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$6=["options"],script$2={name:"ClusterIcon",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,clusterIconMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$6));if(void 0===MarkerClusterer)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 s=o.map,a=o.markers,i=o.algorithm,u=o.onClusterClick,l=o.renderer;return e.$clusterObject=new MarkerClusterer({map:s,markers:a,algorithm:i,onClusterClick:u,renderer:l}),bindProps(e,e.$clusterObject,{}),bindEvents(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)}}},__vue_script__$2=script$2,__vue_render__$1=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default")],2)},__vue_staticRenderFns__$1=[],__vue_inject_styles__$2=void 0,__vue_scope_id__$2=void 0,__vue_module_identifier__$2=void 0,__vue_is_functional_template__$2=!1,__vue_component__$2=normalizeComponent({render:__vue_render__$1,staticRenderFns:__vue_staticRenderFns__$1},__vue_inject_styles__$2,__vue_script__$2,__vue_scope_id__$2,__vue_is_functional_template__$2,__vue_module_identifier__$2,!1,void 0,void 0,void 0),_excluded$7=["options"],script$3={name:"DrawingManager",mixins:[mapElementMixin],provide:function(){var e=this,t=this.$mapPromise.then((function(t){e.$map=t;var n=_extends({},e.options,{map:t},getPropsValues(e,drawingManagerMappedProps)),r=(n.options,_objectWithoutPropertiesLoose(n,_excluded$7));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),bindProps(e,e.$drawingManagerObject,drawingManagerMappedProps),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)}}},__vue_script__$3=script$3,__vue_render__$2=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default",null,{setDrawingMode:this.setDrawingMode,deleteSelection:this.deleteSelection})],2)},__vue_staticRenderFns__$2=[],__vue_inject_styles__$3=void 0,__vue_scope_id__$3=void 0,__vue_module_identifier__$3=void 0,__vue_is_functional_template__$3=!1,__vue_component__$3=normalizeComponent({render:__vue_render__$2,staticRenderFns:__vue_staticRenderFns__$2},__vue_inject_styles__$3,__vue_script__$3,__vue_scope_id__$3,__vue_is_functional_template__$3,__vue_module_identifier__$3,!1,void 0,void 0,void 0),_excluded$8=["options"],script$4={name:"HeatmapLayer",mixins:[mapElementMixin],render:function(){return""},provide:function(){var e=this,t=[],n=this.$mapPromise.then((function(n){e.$map=n;var r=_extends({},e.options,{map:e.$map},getPropsValues(e,heatMapLayerMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$8));return e.$heatmapLayerObject=new google.maps.visualization.HeatmapLayer(o),bindProps(e,e.$heatmapLayerObject,heatMapLayerMappedProps),bindEvents(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)}},__vue_script__$4=script$4,__vue_inject_styles__$4=void 0,__vue_scope_id__$4=void 0,__vue_module_identifier__$4=void 0,__vue_is_functional_template__$4=void 0,__vue_component__$4=normalizeComponent({},__vue_inject_styles__$4,__vue_script__$4,__vue_scope_id__$4,__vue_is_functional_template__$4,__vue_module_identifier__$4,!1,void 0,void 0,void 0),_excluded$9=["options","position"],script$5={name:"InfoWindow",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,infoWindowMappedProps)),o=(r.options,r.position,_objectWithoutPropertiesLoose(r,_excluded$9));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),bindProps(e,e.$infoWindowObject,infoWindowMappedProps),bindEvents(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()}}},__vue_script__$5=script$5,__vue_render__$3=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{ref:"flyaway"},[this._t("default")],2)])},__vue_staticRenderFns__$3=[],__vue_inject_styles__$5=void 0,__vue_scope_id__$5=void 0,__vue_module_identifier__$5=void 0,__vue_is_functional_template__$5=!1,__vue_component__$5=normalizeComponent({render:__vue_render__$3,staticRenderFns:__vue_staticRenderFns__$3},__vue_inject_styles__$5,__vue_script__$5,__vue_scope_id__$5,__vue_is_functional_template__$5,__vue_module_identifier__$5,!1,void 0,void 0,void 0),_excluded$a=["options"],script$6={name:"KmlLayer",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,kmlLayerMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$a));return e.$kmlLayerObject=new google.maps.KmlLayer(o),bindProps(e,e.$kmlLayerObject,kmlLayerMappedProps),bindEvents(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)}},__vue_script__$6=script$6,__vue_inject_styles__$6=void 0,__vue_scope_id__$6=void 0,__vue_module_identifier__$6=void 0,__vue_is_functional_template__$6=void 0,__vue_component__$6=normalizeComponent({},__vue_inject_styles__$6,__vue_script__$6,__vue_scope_id__$6,__vue_is_functional_template__$6,__vue_module_identifier__$6,!1,void 0,void 0,void 0),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()},_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)}},_excluded$b=["options"],script$7={name:"MapLayer",mixins:[mountableMixin],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=_extends({},e.options,getPropsValues(e,mapMappedProps)),r=(n.options,_objectWithoutPropertiesLoose(n,_excluded$b)),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}),bindProps(e,e.$mapObject,mapMappedProps),bindEvents(e,e.$mapObject,["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"]),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:{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)}},isOldIE="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()),HEAD;function createInjector(e){return function(e,t){return addStyle(e,t)}}var styles={};function addStyle(e,t){var n=isOldIE?t.media||"default":e,r=styles[n]||(styles[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===HEAD&&(HEAD=document.head||document.getElementsByTagName("head")[0]),HEAD.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(o),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var s=r.ids.size-1,a=document.createTextNode(o),i=r.element.childNodes;i[s]&&r.element.removeChild(i[s]),i.length?r.element.insertBefore(a,i[s]):r.element.appendChild(a)}}}var __vue_script__$7=script$7,__vue_render__$4=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)},__vue_staticRenderFns__$4=[],__vue_inject_styles__$7=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})},__vue_scope_id__$7=void 0,__vue_module_identifier__$7=void 0,__vue_is_functional_template__$7=!1,__vue_component__$7=normalizeComponent({render:__vue_render__$4,staticRenderFns:__vue_staticRenderFns__$4},__vue_inject_styles__$7,__vue_script__$7,__vue_scope_id__$7,__vue_is_functional_template__$7,__vue_module_identifier__$7,!1,createInjector,void 0,void 0),_excluded$c=["options"],script$8={name:"MarkerIcon",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,markerMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$c));return e.$clusterPromise&&(o.map=null),e.$markerObject=new google.maps.Marker(o),bindProps(e,e.$markerObject,markerMappedProps),bindEvents(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):""}},__vue_script__$8=script$8,__vue_inject_styles__$8=void 0,__vue_scope_id__$8=void 0,__vue_module_identifier__$8=void 0,__vue_is_functional_template__$8=void 0,__vue_component__$8=normalizeComponent({},__vue_inject_styles__$8,__vue_script__$8,__vue_scope_id__$8,__vue_is_functional_template__$8,__vue_module_identifier__$8,!1,void 0,void 0,void 0),_excluded$d=["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"],script$9={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=getPropsValues(e,placeInputMappedProps);if(e.selectFirstOnEnter&&downArrowSimulator(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=_objectWithoutPropertiesLoose(placeInputMappedProps,_excluded$d);bindProps(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)}},__vue_script__$9=script$9,__vue_render__$5=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}})])},__vue_staticRenderFns__$5=[],__vue_inject_styles__$9=void 0,__vue_scope_id__$9=void 0,__vue_module_identifier__$9=void 0,__vue_is_functional_template__$9=!1,__vue_component__$9=normalizeComponent({render:__vue_render__$5,staticRenderFns:__vue_staticRenderFns__$5},__vue_inject_styles__$9,__vue_script__$9,__vue_scope_id__$9,__vue_is_functional_template__$9,__vue_module_identifier__$9,!1,void 0,void 0,void 0),_excluded$e=["options","path","paths"],script$a={name:"PolygonShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,polygonMappedProps)),o=(r.options,r.path,r.paths,_objectWithoutPropertiesLoose(r,_excluded$e));e.$polygonObject=new google.maps.Polygon(o),bindProps(e,e.$polygonObject,polygonMappedProps),bindEvents(e,e.$polygonObject,t);var s=function(){};return e.$watch("paths",(function(t){if(t){s(),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 i=o.getAt(a);r.push([i,i.addListener("insert_at",n)]),r.push([i,i.addListener("remove_at",n)]),r.push([i,i.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)]),s=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){s(),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)]),s=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)}},__vue_script__$a=script$a,__vue_inject_styles__$a=void 0,__vue_scope_id__$a=void 0,__vue_module_identifier__$a=void 0,__vue_is_functional_template__$a=void 0,__vue_component__$a=normalizeComponent({},__vue_inject_styles__$a,__vue_script__$a,__vue_scope_id__$a,__vue_is_functional_template__$a,__vue_module_identifier__$a,!1,void 0,void 0,void 0),_excluded$f=["options"],script$b={name:"PolylineShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,polylineMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$f));e.$polylineObject=new google.maps.Polyline(o),bindProps(e,e.$polylineObject,polylineMappedProps),bindEvents(e,e.$polylineObject,t);var s=function(){};return e.$watch("path",(function(t){if(t){s(),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)]),s=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)}},__vue_script__$b=script$b,__vue_inject_styles__$b=void 0,__vue_scope_id__$b=void 0,__vue_module_identifier__$b=void 0,__vue_is_functional_template__$b=void 0,__vue_component__$b=normalizeComponent({},__vue_inject_styles__$b,__vue_script__$b,__vue_scope_id__$b,__vue_is_functional_template__$b,__vue_module_identifier__$b,!1,void 0,void 0,void 0),_excluded$g=["options"],script$c={name:"RectangleShape",mixins:[mapElementMixin],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=_extends({},e.options,{map:n},getPropsValues(e,rectangleMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$g));return e.$rectangleObject=new google.maps.Rectangle(o),bindProps(e,e.$rectangleObject,rectangleMappedProps),bindEvents(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)}},__vue_script__$c=script$c,__vue_inject_styles__$c=void 0,__vue_scope_id__$c=void 0,__vue_module_identifier__$c=void 0,__vue_is_functional_template__$c=void 0,__vue_component__$c=normalizeComponent({},__vue_inject_styles__$c,__vue_script__$c,__vue_scope_id__$c,__vue_is_functional_template__$c,__vue_module_identifier__$c,!1,void 0,void 0,void 0),_excluded$h=["options"],script$d={name:"StreetViewPanorama",mixins:[mountableMixin],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=_extends({},e.options,getPropsValues(e,streetViewPanoramaMappedProps)),o=(r.options,_objectWithoutPropertiesLoose(r,_excluded$h));return e.$panoObject=new google.maps.StreetViewPanorama(n,o),bindProps(e,e.$panoObject,streetViewPanoramaMappedProps),bindEvents(e,e.$panoObject,t),twoWayBindingWrapper((function(t,n,r){t(),e.$panoObject.addListener("position_changed",(function(){r()&&e.$emit("position_changed",e.$panoObject.getPosition()),n()}));watchPrimitiveProperties(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)}},__vue_script__$d=script$d,__vue_render__$6=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)},__vue_staticRenderFns__$6=[],__vue_inject_styles__$d=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})},__vue_scope_id__$d=void 0,__vue_module_identifier__$d=void 0,__vue_is_functional_template__$d=!1,__vue_component__$d=normalizeComponent({render:__vue_render__$6,staticRenderFns:__vue_staticRenderFns__$6},__vue_inject_styles__$d,__vue_script__$d,__vue_scope_id__$d,__vue_is_functional_template__$d,__vue_module_identifier__$d,!1,createInjector,void 0,void 0);function createCallbackAndChecksIfMapIsLoaded(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)}function getPromiseLazyCreatorFn(e,t){return function(n){function r(){return t.isReady=!0,window.google}if(n&&n.load&&n.load.key||n.dynamicLoad)return getLazyValue((function(){return"undefined"==typeof window?new Promise((function(){})).then(r):new Promise((function(t,r){try{createCallbackAndChecksIfMapIsLoaded(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&&createCallbackAndChecksIfMapIsLoaded(e,window[n&&n.load&&n.load.customCallback])})).then(r);return getLazyValue((function(){return o}))}}function createGoogleMapsAPIInitializer(){var e=!1;return function(t,n){if("object"!==_typeof$3(t))throw new Error("options should be an object");if("undefined"!=typeof document){var r=_objectSpread2$1({},t),o=r.libraries;if(e)window.console.info("You already started the loading of google maps");else{e=!0;var s="boolean"==typeof n&&n?"https://maps.google.cn":"https://maps.googleapis.com",a=document.createElement("SCRIPT");Array.isArray(o)&&(r.libraries=o.join(",")),r.callback="GoogleMapsCallback";var i=Object.keys(r).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(r[e]))})).join("&"),u="".concat(s,"/maps/api/js?").concat(i);a.setAttribute("src",u),a.setAttribute("async",""),a.setAttribute("defer",""),document.head.appendChild(a)}}}}var googleMapsApiInitializer=createGoogleMapsAPIInitializer(),GoogleMapsApi,components={HeatmapLayer:__vue_component__$4,KmlLayer:__vue_component__$6,Marker:__vue_component__$8,Polyline:__vue_component__$b,Polygon:__vue_component__$a,Circle:__vue_component__$1,Cluster:__vue_component__$2,Rectangle:__vue_component__$c,DrawingManager:__vue_component__$3,InfoWindow:__vue_component__$5,MapLayer:__vue_component__$7,PlaceInput:__vue_component__$9,Autocomplete:__vue_component__,StreetViewPanorama:__vue_component__$d,MapElementMixin:mapElementMixin,MountableMixin:mountableMixin};function gmapVuePluginInstallFn(e,t){var n=_objectSpread2$1({dynamicLoad:!1,installComponents:!0,autoBindAllEvents:!1,load:{libraries:"places"}},t);GoogleMapsApi=new e({data:{isReady:!1}});var r=new e,o=getPromiseLazyCreatorFn(googleMapsApiInitializer,GoogleMapsApi)(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",__vue_component__$7),e.component("GmapMarker",__vue_component__$8),e.component("GmapInfoWindow",__vue_component__$5),e.component("GmapHeatmapLayer",__vue_component__$4),e.component("GmapKmlLayer",__vue_component__$6),e.component("GmapPolyline",__vue_component__$b),e.component("GmapPolygon",__vue_component__$a),e.component("GmapCircle",__vue_component__$1),e.component("GmapRectangle",__vue_component__$c),e.component("GmapDrawingManager",__vue_component__$3),e.component("GmapAutocomplete",__vue_component__),e.component("GmapPlaceInput",__vue_component__$9),e.component("GmapStreetViewPanorama",__vue_component__$d))}for(var main={install:gmapVuePluginInstallFn},BASE32_CODES="0123456789bcdefghjkmnpqrstuvwxyz",BASE32_CODES_DICT={},i$1=0;i$1<BASE32_CODES.length;i$1++)BASE32_CODES_DICT[BASE32_CODES.charAt(i$1)]=i$1;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,s=Math.max(r,o);n=SIGFIG_HASH_LENGTH[s]}else void 0===n&&(n=9);for(var a,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>(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 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,s=MAX_LAT,a=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=(s+a)/2)?(l+=1,a=r):s=r,o++;return l},decode_bbox=function(e){for(var t,n=!0,r=MAX_LAT,o=MIN_LAT,s=MAX_LON,a=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=(s+a)/2,1===d?a=t:s=t):(t=(r+o)/2,1===d?o=t:r=t),n=!n}}return[o,a,r,s]},decode_bbox_int=function(e,t){for(var n=MAX_LAT,r=MIN_LAT,o=MAX_LON,s=MIN_LON,a=0,i=(t=t||52)/2,u=0;u<i;u++)a=get_bit(e,2*(i-u)-1),0===get_bit(e,2*(i-u)-2)?n=(n+r)/2:r=(n+r)/2,0===a?o=(o+s)/2:s=(o+s)/2;return[r,s,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,s=r.longitude+t[1]*r.error.longitude*2;return s=ensure_valid_lon(s),o=ensure_valid_lat(o),encode_int(o,s,n)},neighbors=function(e){var t,n,r=e.length,o=decode$1(e),s=o.latitude,a=o.longitude,i=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=s+e*i,n=ensure_valid_lon(n=a+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),s=o.latitude,a=o.longitude,i=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=s+e*i,r=ensure_valid_lon(r=a+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 s=encode$1(e,t,o=o||9),a=encode$1(n,r,o),i=decode$1(s),u=2*i.error.latitude,l=2*i.error.longitude,c=decode_bbox(s),p=decode_bbox(a),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(s,[m,g]));return f},bboxes_int=function(e,t,n,r,o){for(var s=encode_int(e,t,o=o||52),a=encode_int(n,r,o),i=decode_int(s,o),u=2*i.error.latitude,l=2*i.error.longitude,c=decode_bbox_int(s,o),p=decode_bbox_int(a,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(s,[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$1=geohash,setStreaming=lib_5.setStreaming,setQueryOptions$c=lib_5.setQueryOptions,updateQuery$d=lib_5.updateQuery,loadMore$1=lib_5.loadMore,setValue$3=lib_5.setValue,updateComponentProps$3=lib_5.updateComponentProps,setDefaultQuery$8=lib_5.setDefaultQuery,recordResultClick$1=lib_5.recordResultClick,setMapData=lib_5.setMapData,isEqual$h=lib_8.isEqual,getQueryOptions$5=lib_8.getQueryOptions,getClassName$h=lib_8.getClassName,parseHits$2=lib_8.parseHits,getOptionsFromQuery$4=lib_8.getOptionsFromQuery,getResultStats$4=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$1.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,compoundClause:types.compoundClause,dataField:types.stringRequired,react:types.react,size:types.number,sortBy:types.sortBy,URLParams:VueTypes.bool,autoCenter:VueTypes.bool,getMapRef:VueTypes.func.isRequired,getMapPromise:VueTypes.func,center:types.location,defaultCenter:types.location,defaultPin:types.string,defaultZoom:VueTypes.number.def(13),defaultQuery:types.func,innerClass:types.style,loader:types.title,render:types.func,renderItem:types.func,renderError:types.title,pages:VueTypes.number.def(5),currentPage:VueTypes.number.def(0),pagination:VueTypes.bool,showMarkers:VueTypes.bool,defaultSearchAsMove:VueTypes.bool,showSearchAsMove:VueTypes.bool,defaultRadius:types.number,unit:types.string,autoClosePopover:VueTypes.bool,renderMap:VueTypes.func.isRequired,renderPopover:VueTypes.func,calculateMarkers:VueTypes.func,searchAsMoveLabel:VueTypes.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$4(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){var n=this;isQueryIdentical(e,t,null,this.$props)||this.getMapPromise().then((function(){var t=getQueryOptions$5(n.$props);if(t.from=0,n.$defaultQuery=e(null,n.$props),n.setDefaultQueryForRSAPI(),n.$defaultQuery){var r=n.$defaultQuery||{},o=r.sort,s=r.query;o&&(t.sort=n.$defaultQuery.sort),getOptionsFromQuery$4(n.$defaultQuery)&&(t=_extends({},t,getOptionsFromQuery$4(n.$defaultQuery))),n.setQueryOptions(n.$props.componentId,t,!1);var a={mapBoxBounds:n.mapBoxBounds};n.setMapData(n.componentId,s,!0,!0,a),n.currentPageState=0,n.from=0}}))},promotedResults:function(e,t){isEqual$h(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){isEqual$h(e,t)||this.$emit("data",this.getData())},time:function(e,t){isEqual$h(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$h(e,t)){var r=this.promotedResults,o=this.hits,s=parseHits$2(o)||[],a=parseHits$2(r)||[],i=s;if(a.length){var u=a.map((function(e){return e._id})).filter(Boolean);u&&(i=i.filter((function(e){return!u.includes(e._id)}))),i=[].concat(a,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$h(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),s=t.parseLocation(e[t.dataField]),a=JSON.stringify(s),i=n[a]||0;o[t.dataField]=i?withDistinctLat(s,i):s,r=[].concat(r,[o]),n[a]=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,s=0,a=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,s+=u,a+=l}})),o/=r,s/=r,a/=r;var i=Math.atan2(s,o),u=Math.sqrt(o*o+s*s);return{lat:180*Math.atan2(a,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(),this.$defaultQuery)){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,s=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:s,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,s=parseHits$2(o)||[],a=parseHits$2(t)||[],i=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:s,resultsToRender:u,customData:n||{},promotedResults:a,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(),s=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(s){var a;t=s.getNorthEast().lat(),n=s.getSouthWest().lat(),r=s.getNorthEast().lng();var i={top_left:[s.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=i;var u={geo_bounding_box:(a={},a[this.dataField]=i,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=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.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?isFunction$1(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:getClassName$h(this.innerClass,"checkboxContainer")||null}},[e(Checkbox,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:getClassName$h(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:getClassName$h(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},[this.searchAsMoveLabel])]):null},renderPagination:function(){return(0,this.$createElement)(Pagination,{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},constants_1$1.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},constants_1$1.reactiveMap),this.setDefaultQueryForRSAPI()},mounted:function(){var e=this;this.getMapPromise().then((function(){e.defaultPage<0&&e.currentPage>0&&e.$props.URLParams&&e.setPageURL(e.$props.componentId,e.currentPage,e.$props.componentId,!1,!0);var t,n=getQueryOptions$5(e.$props);(n.from=e.$data.from,e.$props.sortBy)&&(n.sort=[(t={},t[e.$props.dataField]={order:e.$props.sortBy},t)]);if(e.$defaultQuery=null,e.$props.defaultQuery){if(e.$defaultQuery=e.$props.defaultQuery(),e.setDefaultQueryForRSAPI(),e.$defaultQuery){n=_extends({},n,getOptionsFromQuery$4(e.$defaultQuery)),e.$defaultQuery.sort&&(n.sort=e.$defaultQuery.sort);var r={mapBoxBounds:e.mapBoxBounds};e.$defaultQuery&&(e.setMapData(e.componentId,e.$defaultQuery.query,!0,!1,r),e.setQueryOptions(e.componentId,n))}}else{var o=e.getGeoDistanceQuery();if(o){var s=!!e.center,a=e.searchAsMove,i=e.center||e.defaultCenter,u=e.getArrPosition(i),l={distance:e.defaultRadius,coordinates:u.lat+", "+u.lon};e.setMapData(e.componentId,o,s,a,l)}e.setQueryOptions(e.componentId,n)}}))},render:function(){var e=arguments[0],t=this.$scopedSlots.loader||this.$props.loader;return e("div",{style:_extends({},style,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])}},mapStateToProps$i=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$4={loadMoreAction:loadMore$1,setPageURL:setValue$3,setQueryOptions:setQueryOptions$c,setStreaming:setStreaming,updateQuery:updateQuery$d,updateComponentProps:updateComponentProps$3,setDefaultQuery:setDefaultQuery$8,recordResultClick:recordResultClick$1,setMapData:setMapData},RMConnected=PreferencesConsumer(ComponentWrapper$1(connect(mapStateToProps$i,mapDispatchToProps$4)(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$1={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.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}function capitalizeFirstLetter$1(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$1(e,t,n,r){void 0===r&&(r=!1);var o=!1;function s(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,s,{immediate:r})}))}function bindProps$1(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],s=o.twoWay,a=o.type,i=o.trackProperties;if(!o.noBind){var u="set"+capitalizeFirstLetter$1(r),l="get"+capitalizeFirstLetter$1(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&&i?watchPrimitiveProperties$1(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:a===Object}),s&&(e.$gmapOptions.autoBindAllEvents||e.$listeners[c])&&t.addListener(c,(function(){e.$emit(c,t[l]())}))}}))}var _excluded$i=["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$1)),o=(r.options,r.position,_objectWithoutPropertiesLoose(r,_excluded$i));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$1),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(){var e=arguments[0];return e("div",[e("div",{ref:"flyaway"},[this.$scopedSlots.default()])])}},InfoWindowWrapper={name:"InfoWindowWrapperClusterManager",props:{id:VueTypes.string,renderPopover:VueTypes.func,infoWindowProps:VueTypes.object,events:VueTypes.object,marker:VueTypes.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(InfoWindowClusterManager,{ref:this.id+"-Info-Window",props:_extends({},this.infoWindowProps),on:_extends({},n)},[e("div",[t(this.handleClose)])])}},_excluded$j=["options"],isEqual$i=lib_8.isEqual,recordResultClick$2=lib_5.recordResultClick,ClusterMarkers={name:"ClusterMarkers",props:{markers:VueTypes.array,getPosition:VueTypes.func,defaultPin:VueTypes.string,renderItem:VueTypes.func,markerProps:VueTypes.object,handlePreserveCenter:VueTypes.func.isRequired,autoClosePopover:VueTypes.bool,renderPopover:VueTypes.func,highlightMarkerOnHover:VueTypes.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$i(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,s=this.openMarkers,a=(s[o],_objectWithoutPropertiesLoose(s,[o].map(_toPropertyKey$1))),i=n?{}:a;this.setOpenMarkers(i),r(!0),this.$emit("close-marker-popover",e)},openMarker:function(e,t){var n,r,o=this.autoClosePopover,s=this.handlePreserveCenter,a=e.metaData&&e.metaData._id,i=o?((n={})[a]=e,n):_extends({},this.openMarkers,((r={})[a]=e,r));this.setOpenMarkers(i),s(!0),this.triggerAnalytics(a,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=[],s=[],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 s=_extends({},t.markerProps,{metaData:e,map:n,position:t.getPosition(e)});if(t.renderItem){var i=t.renderItem(e);"label"in i&&(s.label=i.label),"icon"in i&&(s.icon=i.icon)}else t.defaultPin&&(s.icon={url:t.defaultPin});s.options;var u=_objectWithoutPropertiesLoose(s,_excluded$j);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&&(a[e.metaData._id]?i.push(e):s.push(e))})),r.removeMarkers(s),r.addMarkers(o),t.$clusterObject=r,t.$map=n,t.$markers=i}))})).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(InfoWindowWrapper,{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}},mapDispatchToProps$5={recordResultClick:recordResultClick$2},ClusterManager=connect((function(){return null}),mapDispatchToProps$5)(ClusterMarkers),InfoWindow=components.InfoWindow,InfoWindowWrapper$1={name:"InfoWindowWrapper",props:{id:VueTypes.string,renderPopover:VueTypes.func,infoWindowProps:VueTypes.object,events:VueTypes.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(InfoWindow,{ref:this.id+"-Info-Window",props:_extends({},this.infoWindowProps),on:_extends({},n)},[e("div",[t(this.handleClose)])])}},MapElementMixin=components.MapElementMixin,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:VueTypes.func.isRequired,handleMouseOver:VueTypes.func,handleFocus:VueTypes.func,handleMouseOut:VueTypes.func,handleBlur:VueTypes.func,handleClick:VueTypes.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,s=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=s.x-e.offsetWidth/2,o=s.y-e.offsetHeight;break;case"bottom":r=s.x-e.offsetWidth/2,o=s.y;break;case"left":r=s.x-e.offsetWidth,o=s.y-e.offsetHeight/2;break;case"right":r=s.x,o=s.y-e.offsetHeight/2;break;case"center":r=s.x-e.offsetWidth/2,o=s.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=s.x-e.offsetWidth,o=s.y-e.offsetHeight;break;case"topright":case"righttop":r=s.x,o=s.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=s.x-e.offsetWidth,o=s.y;break;case"bottomright":case"rightbottom":r=s.x,o=s.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()])}},_templateObject$q,_templateObject2$c,_templateObject3$8,MapPin=index$1("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=index$1("div")(_templateObject2$c||(_templateObject2$c=_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$8||(_templateObject3$8=_taggedTemplateLiteralLoose(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),Marker=components.Marker,recordResultClick$3=lib_5.recordResultClick,GoogleMapMarker={name:"GoogleMapMarker",props:{index:VueTypes.number,marker:VueTypes.object.isRequired,getPosition:VueTypes.func.isRequired,defaultPin:VueTypes.string,renderItem:VueTypes.func,setOpenMarkers:VueTypes.func.isRequired,handlePreserveCenter:VueTypes.func.isRequired,autoClosePopover:VueTypes.bool,openMarkers:VueTypes.object,renderPopover:VueTypes.func,highlightMarkerOnHover:VueTypes.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,s=n.marker,a=n.autoClosePopover,i=n.handlePreserveCenter,u=s._id;r(a?((e={})[u]=!0,e):_extends({},o,((t={})[u]=!0,t))),i(!0),this.triggerAnalytics(),s.setIcon=this.setIcon,this.$emit("open-marker-popover",s)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,s=e.openMarkers,a=n._id,i=(s[a],_objectWithoutPropertiesLoose(s,[a].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.$createElement,o=this.$props,s=o.getPosition,a=o.renderPopover,i=o.openMarkers;return t={position:s(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}},e._id in i?r(InfoWindowWrapper$1,{key:e._id+"-InfoWindow",attrs:{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}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.getPosition,o=n.renderItem,s=n.defaultPin,a=n.renderPopover,i=n.markerProps,u=n.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),o){u.setIcon=this.setIcon;var c=o(u);if("label"in c)return t(MarkerWithLabel,{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:mapPinWrapper}},[t(MapPin,[c.label]),t(MapPinArrow),a?e.renderPopoverClick(u,!0):null])}},props:_extends({},i)});if(!("icon"in c))return t(MarkerWithLabel,{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:mapPinWrapper}},["function"==typeof c.custom?c.custom(u):c.custom,a?e.renderPopoverClick(u,!0):null])}},props:_extends({},i)});l.icon=c.icon}else s&&(l.icon={url:s});return t(Marker,{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:_extends({},i)},[a?this.renderPopoverClick(u):null])}},mapDispatchToProps$6={recordResultClick:recordResultClick$3},GoogleMapMarker$1=connect((function(){return null}),mapDispatchToProps$6)(GoogleMapMarker),Cluster$1=components.Cluster,GoogleMapMarkers={name:"GoogleMapMarkers",props:{resultsToRender:VueTypes.array,getPosition:VueTypes.func,renderItem:VueTypes.func,renderClusterPopover:VueTypes.func,defaultPin:VueTypes.string,autoClosePopover:VueTypes.bool,handlePreserveCenter:VueTypes.func,renderPopover:VueTypes.func,markerProps:VueTypes.object,clusterProps:VueTypes.object,showMarkerClusters:VueTypes.bool,highlightMarkerOnHover:VueTypes.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(Cluster$1,{props:_extends({},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(ClusterManager,{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:_extends({},this.$listeners)})]),this.clickedCluster&&this.renderClusterPopover?t(InfoWindowWrapper$1,{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(GoogleMapMarker$1,{attrs:{index:r,marker:n},props:_extends({},o),on:_extends({},e.$listeners)})}))])}},Map=components.MapLayer,ReactiveGoogleMap={name:"ReactiveGoogleMap",props:{className:types.string,componentId:types.stringRequired,compoundClause:types.compoundClause,dataField:types.stringRequired,defaultQuery:VueTypes.func,loader:types.title,defaultZoom:VueTypes.number.def(13),react:types.react,size:types.number,sortBy:types.sortBy,URLParams:VueTypes.bool,mapProps:VueTypes.object,showMarkers:VueTypes.bool.def(!0),showMarkerClusters:VueTypes.bool.def(!1),searchAsMove:VueTypes.bool.def(!1),searchAsMoveLabel:VueTypes.string,markerProps:VueTypes.object,clusterProps:VueTypes.object,renderItem:VueTypes.func,showSearchAsMove:VueTypes.bool.def(!0),autoClosePopover:VueTypes.bool,pagination:VueTypes.bool,defaultPin:VueTypes.string,autoCenter:VueTypes.bool,defaultCenter:types.location,center:types.location,defaultRadius:types.number,unit:types.string,pages:VueTypes.number.def(5),calculateMarkers:VueTypes.func,highlightMarkerOnHover:VueTypes.bool.def(!0)},created:function(){var e=this;this.mapRefPromiseResolve=null,this.mapRefPromiseRejecter=null,this.mapRefPromise=new Promise((function(t,n){e.mapRefPromiseResolver=t,e.mapRefPromiseRejecter=n}))},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,s=e.handleZoomChange,a=e.handleOnDragEnd,i=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(Map,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:_extends({},this.mapProps),on:{zoom_changed:s,dragend:a,idle:i}},[this.showMarkers?h(GoogleMapMarkers,{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:_extends({},this.$listeners)}):null]),u()])},getMapRef:function(){return this.mapRef},getMapRefPromise:function(){return this.mapRefPromise},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,e.mapRefPromiseResolver(e.mapRef)})).catch(this.mapRefPromiseRejecter)},render:function(){var e=arguments[0];return e(RMConnected,helper$1([{attrs:{getMapRef:this.getMapRef,getMapPromise:this.getMapRefPromise,renderMap:this.renderMap,componentId:this.componentId,compoundClause:this.compoundClause,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(ReactiveGoogleMap.name,ReactiveGoogleMap),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(main,{load:{key:t.key,libraries:"places"},installComponents:!1})}};ReactiveGoogleMap.componentType=constants_1$1.reactiveMap;var _excluded$k=["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 s=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,a=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,i=_extends({},n.enableAppbase&&_extends({"X-Search-Client":X_SEARCH_CLIENT$1},!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=helper_1(e,n.endpoint);return n.transformRequest?n.transformRequest(t):t});var c={url:u,app:n.app,credentials:s,transformRequest:l,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:i,analyticsConfig:n.appbaseConfig||null,enableAppbase:n.enableAppbase,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={},T={},S={},w={},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 s=resultComponents.includes(n),a=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&&(S[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&(w[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 _=m||{},b=_.aggs,$=_.size,C=_objectWithoutPropertiesLoose(_,_excluded$k);if(b&&Object.keys(b).length&&(o=!0,m=_extends({},m,{aggs:b,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)),s){var T=e.currentPage?e.currentPage-1:0;h[e.componentId]&&h[e.componentId].value&&(T=h[e.componentId].value-1||0);var E=e.size||10,R=T*E;r.from=R,O=_extends({},O,v,{size:E,from:R})}m=_extends({},m,O)}}if(e.react||o||s){var k=e.react;(o||s)&&(k=helper_38(k,a)),y=dependencyTreeReducer(y,{type:"WATCH_COMPONENT",component:e.componentId,react:k})}if(o&&!transform_8(e.componentType)){var I=getDefaultQuery(e,l)||{},x=I.query,A=_objectWithoutPropertiesLoose(I,_excluded2);f=queryReducer(f,{type:"SET_QUERY",component:a,query:x}),g=queryOptionsReducer(g,{type:"SET_QUERY_OPTIONS",component:a,options:_extends({},m,A)})}var L=getCustomQuery(e,l)||{},j=L.query,V=_objectWithoutPropertiesLoose(L,_excluded3),M=j;f=queryReducer(f,{type:"SET_QUERY",component:e.componentId,query:M}),g=queryOptionsReducer(g,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:_extends({},V)}),r.componentType=n,P[e.componentId]=r})),T={components:d,dependencyTree:y,queryList:f,queryOptions:g,selectedValues:h,internalValues:{},props:P,customQueries:S,defaultQueries:w},e.forEach((function(e){var t=helper_37(e.componentId,y,f,g),r=t.queryObj,o=t.options,s=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return s.includes(e)}))){var a;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),b=[].concat(b,[e.componentId]);var i=_extends({query:_extends({},r)},o,g[e.componentId]);if(m=_extends({},m,((a={})[e.componentId]=i,a)),n.enableAppbase){var u,l=transform_5(e.componentId,transform_3(T,e.componentId,g&&Object.keys(g[e.componentId]).length?{from:g[e.componentId].from}:null));if(l)_=_extends({},_,((u={})[e.componentId]=l,u),transform_2(T,e.componentId,b))}else{var p=c&&c.analyticsConfig&&c.analyticsConfig.userId?c.analyticsConfig.userId+"_"+e:e;v=[].concat(v,[{preference:p},i])}}})),T.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)}))},R=function(e){var t=b.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(){T=_extends({},T,{hits:$,aggregations:C}),r(T)}))};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){R(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(_).length){v=Object.keys(_).map((function(e){return _[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={},s={},a=b.map((function(r){return new Promise((function(a,i){E(e[r],r).then((function(e){if(e){var i,u;if(e.promoted&&(t[r]=e.promoted.map((function(e){return _extends({},e.doc,{_position:e.position})}))),n[r]=e,e.customData&&(o[r]=e.customData),e.settings&&(s[r]=e.settings),e.aggregations)C=_extends({},C,((u={})[r]=e.aggregations,u));var l=e.hits?e.hits:e[r].hits;$=_extends({},$,((i={})[r]={hits:l.hits,total:"object"==typeof l.total?l.total.value:l.total,time:e.took},i)),a()}})).catch((function(e){return i(e)}))}))}));Promise.all(a).then((function(){T=_extends({},T,{hits:$,aggregations:C,compositeAggregations:O,promotedResults:t,settings:s,customData:o,rawData:n}),r(T)}))}(e)})).catch((function(e){return o(e)}))}else p.msearch({type:"*"===c.type?"":c.type,body:v}).then((function(e){R(e)})).catch((function(e){return o(e)}))}))}var version="1.35.2",components$1=[RLConnected,ResultCard,ResultList,ReactiveBase,DSConnected,SBConnected,ListConnected,ListConnected$1,RangeConnected$1,RangeConnected$2,RangeConnected$3,RangeConnected,RcConnected,RcConnected$1,RcConnected$2,TBConnected,ListConnected$2,ListConnected$3,StateProviderConnected,RangeConnected$4];function install(e){components$1.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&install(window.Vue);var index$4={version:version,install:install};exports.DataSearch=DSConnected,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.ReactiveComponentPrivate=RcConnected$1,exports.ReactiveGoogleMap=ReactiveGoogleMap,exports.ReactiveList=RLConnected,exports.ResultCard=ResultCard,exports.ResultList=ResultList,exports.SearchBox=SBConnected,exports.SelectedFilters=RcConnected$2,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$4,exports.initReactivesearch=initReactivesearch,exports.install=install,exports.version=version,Object.defineProperty(exports,"__esModule",{value:!0})}));
51
51
  //# sourceMappingURL=reactivesearch-vue.umd.min.js.map