@appbaseio/reactivesearch-vue 1.25.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +176 -125
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{CancelSvg-62d42af4.js → CancelSvg-4aa35935.js} +1 -14
- package/dist/cjs/DataSearch.js +4 -4
- package/dist/cjs/{DropDown-5847d6e4.js → DropDown-cf9bfffc.js} +2 -2
- package/dist/cjs/DynamicRangeSlider.js +9 -6
- package/dist/cjs/MultiDropdownList.js +5 -5
- package/dist/cjs/MultiList.js +3 -3
- package/dist/cjs/MultiRange.js +2 -2
- package/dist/cjs/RangeInput.js +3 -3
- package/dist/cjs/RangeSlider.js +17 -20
- package/dist/cjs/ReactiveBase.js +1 -1
- package/dist/cjs/ReactiveComponent.js +1 -1
- package/dist/cjs/ReactiveList.js +1 -1
- package/dist/cjs/ResultCard.js +1 -1
- package/dist/cjs/ResultList.js +1 -1
- package/dist/cjs/SelectedFilters.js +7 -5
- package/dist/cjs/SingleDropdownList.js +5 -5
- package/dist/cjs/SingleList.js +3 -3
- package/dist/cjs/SingleRange.js +2 -2
- package/dist/cjs/StateProvider.js +6 -2
- package/dist/cjs/ToggleButton.js +2 -2
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/install.js +4 -4
- package/dist/cjs/ssr-0ee35a09.js +39 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-4c19b4c8.js → vueTypes-57d01f18.js} +3 -3
- package/dist/es/{CancelSvg-e0cace2d.js → CancelSvg-c2c03a35.js} +1 -14
- package/dist/es/DataSearch.js +4 -4
- package/dist/es/{DropDown-1ee01031.js → DropDown-c8da0a2c.js} +2 -2
- package/dist/es/DynamicRangeSlider.js +9 -6
- package/dist/es/MultiDropdownList.js +5 -5
- package/dist/es/MultiList.js +3 -3
- package/dist/es/MultiRange.js +2 -2
- package/dist/es/RangeInput.js +3 -3
- package/dist/es/RangeSlider.js +17 -20
- package/dist/es/ReactiveBase.js +1 -1
- package/dist/es/ReactiveComponent.js +1 -1
- package/dist/es/ReactiveList.js +1 -1
- package/dist/es/ResultCard.js +1 -1
- package/dist/es/ResultList.js +1 -1
- package/dist/es/SelectedFilters.js +7 -5
- package/dist/es/SingleDropdownList.js +5 -5
- package/dist/es/SingleList.js +3 -3
- package/dist/es/SingleRange.js +2 -2
- package/dist/es/StateProvider.js +6 -2
- package/dist/es/ToggleButton.js +2 -2
- package/dist/es/index.js +4 -4
- package/dist/es/install.js +4 -4
- package/dist/es/ssr-a41dfea9.js +33 -0
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-fb61bb7b.js → vueTypes-687b2304.js} +3 -3
- package/package.json +3 -3
- package/dist/cjs/ssr-08e95ede.js +0 -39
- package/dist/es/ssr-5d255b08.js +0 -33
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=e||self).ReactiveSearchVue={},e.Vue)}(this,(function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var l="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function d(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function h(e,t){return function(){return t(e.apply(this,arguments))}}function f(e,t){if("function"==typeof e)return h(e,t);if("object"!=typeof e||null===e)throw new Error(u(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=h(o,t))}return n}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var m=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:p,applyMiddleware:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(u(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=g.apply(void 0,i)(n.dispatch),s(s({},n),{},{dispatch:r})}}},bindActionCreators:f,combineReducers:function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:p.INIT}))throw new Error(u(12));if(void 0===n(void 0,{type:p.PROBE_UNKNOWN_ACTION()}))throw new Error(u(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],p=e[l],d=c(p,t);if(void 0===d){t&&t.type;throw new Error(u(14))}o[l]=d,r=r||d!==p}return(r=r||a.length!==Object.keys(e).length)?o:e}},compose:g,createStore:function e(t,n,r){var o;if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw new Error(u(1));return r(e)(t,n)}if("function"!=typeof t)throw new Error(u(2));var i=t,a=n,s=[],c=s,h=!1;function f(){c===s&&(c=s.slice())}function g(){if(h)throw new Error(u(3));return a}function m(e){if("function"!=typeof e)throw new Error(u(4));if(h)throw new Error(u(5));var t=!0;return f(),c.push(e),function(){if(t){if(h)throw new Error(u(6));t=!1,f();var n=c.indexOf(e);c.splice(n,1),s=null}}}function y(e){if(!d(e))throw new Error(u(7));if(void 0===e.type)throw new Error(u(8));if(h)throw new Error(u(9));try{h=!0,a=i(a,e)}finally{h=!1}for(var t=s=c,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error(u(10));i=e,y({type:p.REPLACE})}function b(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(u(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[l]=function(){return this},e}return y({type:p.INIT}),(o={dispatch:y,subscribe:m,getState:g,replaceReducer:v})[l]=b,o}});function y(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 v=y();v.withExtraArgument=y;var b=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.ADD_COMPONENT="ADD_COMPONENT",t.REMOVE_COMPONENT="REMOVE_COMPONENT",t.WATCH_COMPONENT="WATCH_COMPONENT",t.SET_QUERY="SET_QUERY",t.SET_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.ADD_APPBASE_REF="ADD_APPBASE_REF",t.LOG_QUERY="LOG_QUERY",t.LOG_COMBINED_QUERY="LOG_COMBINED_QUERY",t.SET_INTERNAL_VALUE="SET_INTERNAL_VALUE",t.PATCH_VALUE="PATCH_VALUE",t.CLEAR_VALUES="CLEAR_VALUES",t.SET_LOADING="SET_LOADING",t.SET_ERROR="SET_ERROR",t.SET_TIMESTAMP="SET_TIMESTAMP",t.SET_HEADERS="SET_HEADERS",t.SET_MAP_DATA="SET_MAP_DATA",t.SET_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.RESET_TO_DEFAULT="RESET_TO_DEFAULT"}));r(b);b.ADD_COMPONENT,b.REMOVE_COMPONENT,b.WATCH_COMPONENT,b.SET_QUERY,b.SET_QUERY_OPTIONS,b.EXECUTE_QUERY,b.UPDATE_HITS,b.UPDATE_AGGS;var C=b.UPDATE_COMPOSITE_AGGS,O=(b.ADD_CONFIG,b.ADD_APPBASE_REF,b.LOG_QUERY,b.LOG_COMBINED_QUERY,b.SET_INTERNAL_VALUE,b.PATCH_VALUE,b.CLEAR_VALUES,b.SET_LOADING,b.SET_ERROR,b.SET_TIMESTAMP,b.SET_HEADERS,b.SET_MAP_DATA,b.SET_QUERY_LISTENER,b.STORE_KEY,b.SET_SEARCH_ID,b.SET_PROMOTED_RESULTS,b.SET_DEFAULT_QUERY,b.SET_CUSTOM_QUERY,b.SET_CUSTOM_HIGHLIGHT_OPTIONS,b.SET_CUSTOM_DATA,b.SET_APPLIED_SETTINGS,b.SET_PROPS,b.UPDATE_PROPS,b.REMOVE_PROPS,b.SET_SUGGESTIONS_SEARCH_VALUE,b.CLEAR_SUGGESTIONS_SEARCH_VALUE,b.SET_SUGGESTIONS_SEARCH_ID,b.UPDATE_ANALYTICS_CONFIG,b.SET_RAW_DATA,b.SET_POPULAR_SUGGESTIONS,b.SET_DEFAULT_POPULAR_SUGGESTIONS,b.SET_QUERY_TO_HITS,b.RECENT_SEARCHES_SUCCESS,b.RECENT_SEARCHES_ERROR,b.SET_VALUE,b.RESET_TO_DEFAULT,o((function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(t.type===b.ADD_COMPONENT)return[].concat(n(e),[t.component]);if(t.type===b.REMOVE_COMPONENT)return e.filter((function(e){return e!==t.component}));return e}})));r(O);var w=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=Object.values(e),n=[];return t.forEach((function(e){"string"==typeof e?n.push(e):Array.isArray(e)?e.forEach((function(e){"string"==typeof e?n.push(e):n.push.apply(n,r(o(e)))})):"object"==typeof e&&null!==e&&n.push.apply(n,r(o(e)))})),n.filter((function(e,t,n){return n.indexOf(e)===t}))}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.WATCH_COMPONENT){var i=o(t.react),a=n({},e);return Object.keys(a).forEach((function(e){a[e]=a[e].filter((function(e){return e!==t.component}))})),i.forEach((function(e){Array.isArray(a[e])?a[e]=[].concat(r(a[e]),[t.component]):a[e]=[t.component]})),a}return e}}));r(w);var S=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.WATCH_COMPONENT)return n({},e,o({},t.component,t.react));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),_=r(S),T=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};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===b.SET_QUERY)return n({},e,o({},t.component,t.query));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),E=r(T),I=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_QUERY_OPTIONS)return n({},e,o({},t.component,t.options));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),A=r(I),P=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",searchBox:"SUGGESTION",singleList:"SINGLELIST",multiList:"MULTILIST",singleDataList:"SINGLEDATALIST",singleDropdownList:"SINGLEDROPDOWNLIST",multiDataList:"MULTIDATALIST",multiDropdownList:"MULTIDROPDOWNLIST",singleDropdownRange:"SINGLEDROPDOWNRANGE",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"},t.queryTypes={search:"search",term:"term",range:"range",geo:"geo",suggestion:"suggestion"},t.validProps=["componentType","aggregationField","aggregationSize","distinctField","distinctFieldConfig","index","dataField","includeFields","excludeFields","size","from","sortBy","sortOptions","pagination","autoFocus","autosuggest","debounce","defaultValue","defaultSuggestions","fieldWeights","filterLabel","fuzziness","highlight","highlightField","nestedField","placeholder","queryFormat","searchOperators","enableSynonyms","enableQuerySuggestions","enablePopularSuggestions","queryString","categoryField","strictSelection","selectAllLabel","showCheckbox","showFilter","showSearch","showCount","showLoadMore","loadMoreLabel","showMissing","missingLabel","data","showRadio","multiSelect","includeNullValues","interval","showHistogram","snap","stepValue","range","showSlider","parseDate","calendarInterval","unit","enablePopularSuggestions","popularSuggestionsConfig","enableRecentSuggestions","recentSuggestionsConfig","enablePredictiveSuggestions","applyStopwords","customStopwords"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"}}));r(P);var $=P.componentTypes,R=(P.queryTypes,P.validProps),k=(P.CLEAR_ALL,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomEvents=t.parseRangeObject=t.parseFilterValue=t.rangeObjectComponents=t.rangeComponents=t.filterComponents=t.defaultAnalyticsConfig=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=[P.componentTypes.numberBox,P.componentTypes.tagCloud,P.componentTypes.toggleButton,P.componentTypes.datePicker,P.componentTypes.dateRange,P.componentTypes.multiDataList,P.componentTypes.multiDropdownList,P.componentTypes.multiList,P.componentTypes.singleDataList,P.componentTypes.singleDropdownList,P.componentTypes.singleList,P.componentTypes.dynamicRangeSlider,P.componentTypes.multiDropdownRange,P.componentTypes.multiRange,P.componentTypes.rangeSlider,P.componentTypes.ratingsFilter,P.componentTypes.singleDropdownRange,P.componentTypes.singleRange],o=[P.componentTypes.dateRange,P.componentTypes.dynamicRangeSlider,P.componentTypes.rangeSlider,P.componentTypes.rangeInput,P.componentTypes.ratingsFilter],i=[P.componentTypes.singleRange,P.componentTypes.singleDropdownRange,P.componentTypes.multiRange,P.componentTypes.multiDropdownRange];function a(e,t){return e+"="+t.start+"~"+t.end}function s(e,t){var n=t.label,r=t.value,s=t.componentType,u=n||e;return o.includes(s)?u+"="+r[0]+"~"+r[1]:i.includes(s)?Array.isArray(r)?r.map((function(e){return a(u,e)})).join():a(u,r):Array.isArray(r)?"object"==typeof r[0]&&null!==r[0]?r.map((function(e){return u+"="+e.value})).join():r.map((function(e){return u+"="+e})).join():u+"="+r}t.defaultAnalyticsConfig={searchStateHeader:!1,emptyQuery:!0,suggestionAnalytics:!0,userId:null,customEvents:null,enableQueryRules:!0};t.filterComponents=r,t.rangeComponents=o,t.rangeObjectComponents=i,t.parseFilterValue=s,t.parseRangeObject=a,t.parseCustomEvents=function(e){var t="";return Object.keys(e).forEach((function(n,r){t+=n+"="+e[n],r<Object.keys(e).length-1&&(t+=",")})),t},t.default=function(e){return e&&Object.keys(e).length?Object.entries(e).filter((function(e){var t=n(e,2)[1];return r.includes(t.componentType)&&(t.value&&t.value.length||t.value&&t.value.start||t.value&&t.value.end)})).map((function(e){var t=n(e,2);return s(t[0],t[1])})).join():null}})));r(k);k.parseCustomEvents,k.parseRangeObject,k.parseFilterValue,k.rangeObjectComponents,k.rangeComponents,k.filterComponents,k.defaultAnalyticsConfig;var x=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{analyticsConfig:k.defaultAnalyticsConfig},t=arguments[1];if(t.type===b.ADD_CONFIG)return n({},e,{analyticsConfig:n({},k.defaultAnalyticsConfig,t.analyticsConfig)});if(t.type===b.UPDATE_ANALYTICS_CONFIG)return n({},e,{analyticsConfig:n({},e.analyticsConfig,t.analyticsConfig)});return e}}));r(x);var Q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.ADD_APPBASE_REF)return t.appbaseRef;return e}}));r(Q);var L=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.UPDATE_HITS)return t.append?n({},e,o({},t.component,{hits:[].concat(i(e[t.component].hits),i(t.hits)),total:t.total,time:t.time,hidden:t.hidden||0})):n({},e,o({},t.component,{hits:t.hits,total:t.total,time:t.time,hidden:t.hidden||0}));if(t.type===b.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));r(L);var V=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.LOG_QUERY)return n({},e,o({},t.component,t.query));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(V);var j=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.LOG_COMBINED_QUERY)return n({},e,o({},t.component,t.query));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(j);var D=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case b.SET_VALUE:return n({},e,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 b.PATCH_VALUE:return n({},e,o({},t.component,n({},e[t.component],t.payload)));case b.CLEAR_VALUES:return{};case b.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;case b.RESET_TO_DEFAULT:return n({},e,t.defaultValues);default:return e}}})),F=r(D),M=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case b.SET_INTERNAL_VALUE:return n({},e,o({},t.component,{value:t.value,componentType:t.componentType,category:t.category,meta:t.meta}));case b.CLEAR_VALUES:return{};case b.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default:return e}}}));r(M);var N=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_LOADING){var i,a=e[t.component+"_active"]||0;return t.isLoading?a+=1:a&&(a-=1),n({},e,(o(i={},t.component,t.isLoading),o(i,t.component+"_active",a),i),t.isLoading?o({},t.component+"_timestamp",(new Date).getTime()):null)}if(t.type===b.REMOVE_COMPONENT){e[t.component],e[t.component+"_active"];var s=r(e,[t.component,t.component+"_active"]);return s}return e}}));r(N);var U=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_ERROR)return n({},e,o({},t.component,t.error));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(U);var q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};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===b.SET_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(q);var H=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_HEADERS)return t.headers;return e}}));r(H);var z=o((function(e,t){function n(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 r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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===b.SET_MAP_DATA)return r({},t.componentId,{query:t.query,persistMapQuery:t.persistMapQuery});if(t.type===b.REMOVE_COMPONENT){e[t.component];var o=n(e,[t.component]);return o}return e}}));r(z);var B=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_QUERY_LISTENER)return n({},e,o({},t.component,{onQueryChange:t.onQueryChange,onError:t.onError}));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(B);var G=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case b.SET_VALUE:return o.includes(t.componentType)?{searchValue:t.value,searchId:null}:e;case b.SET_SEARCH_ID:return n({},e,{searchId:t.searchId});case b.SET_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:t.value,suggestionsSearchId:null});case b.SET_SUGGESTIONS_SEARCH_ID:return n({},e,{suggestionsSearchId:t.searchId});case b.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=[P.componentTypes.dataSearch,P.componentTypes.categorySearch]}));r(G);var W=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_PROMOTED_RESULTS)return n({},e,o({},t.component,t.results.map((function(e){return n({},e,{_promoted:!0})}))));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(W);var Y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};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===b.SET_CUSTOM_DATA)return n({},e,o({},t.component,t.data));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(Y);var K=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_DEFAULT_QUERY)return n({},e,o({},t.component,t.query));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(K);var X=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_CUSTOM_QUERY)return n({},e,o({},t.component,t.query));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(X);var Z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case b.SET_PROPS:return n({},e,o({},t.component,t.options));case b.UPDATE_PROPS:return n({},e,o({},t.component,n({},e[t.component],t.options)));case b.REMOVE_PROPS:case b.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default:return e}}}));r(Z);var J=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.UPDATE_AGGS){if(t.append){var a=Object.keys(e[t.component])[0],s=t.aggregations[a],u=s.buckets,l=i(s,["buckets"]);return n({},e,r({},t.component,r({},a,n({buckets:[].concat(o(e[t.component][a].buckets),o(u))},l))))}return n({},e,r({},t.component,t.aggregations))}if(t.type===b.REMOVE_COMPONENT){e[t.component];var c=i(e,[t.component]);return c}return e}}));r(J);var ee=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.UPDATE_COMPOSITE_AGGS){var a=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],s=Object.keys(t.aggregations)[0];if(!a)return e;var u=[];a.buckets&&Array.isArray(a.buckets)&&(u=a.buckets);var l=u.map((function(e){var t=e.doc_count,r=e.key,o=e[s],a={},u={};if(o&&o.hits){var l=o.hits.hits[0];u=l._source,a=i(l,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[s],top_hits:o},a,u)}));return n({},e,r({},t.component,t.append?[].concat(o(e[t.component]),o(l)):l))}return e}})),te=r(ee),ne=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,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===b.SET_APPLIED_SETTINGS)return n({},e,r({},t.component,t.data));return e}}));r(ne);var re=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){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===b.SET_CUSTOM_HIGHLIGHT_OPTIONS)return n({},e,o({},t.component,t.data));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(re);var oe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){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===b.SET_RAW_DATA)return n({},e,o({},t.component,t.response));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(oe);var ie=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(ie);var ae=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_DEFAULT_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(ae);var se=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_QUERY_TO_HITS)return n({},e,o({},t.component,t.query));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(se);var ue=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.RECENT_SEARCHES_SUCCESS)return{error:null,data:t.data};if(t.type===b.RECENT_SEARCHES_ERROR)return{error:t.error};return e}}));r(ue);var le=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=ge(O),r=ge(w),o=ge(S),i=ge(T),a=ge(I),s=ge(x),u=ge(Q),l=ge(L),c=ge(V),p=ge(j),d=ge(D),h=ge(M),f=ge(N),g=ge(U),y=ge(q),v=ge(H),b=ge(z),C=ge(B),_=ge(G),E=ge(W),A=ge(Y),P=ge(K),$=ge(X),R=ge(Z),k=ge(J),F=ge(ee),te=ge(ne),le=ge(re),ce=ge(oe),pe=ge(ie),de=ge(ae),he=ge(se),fe=ge(ue);function ge(e){return e&&e.__esModule?e:{default:e}}t.default=(0,m.combineReducers)({components:n.default,customQueries:$.default,defaultQueries:P.default,customHighlightOptions:le.default,settings:te.default,watchMan:r.default,queryList:i.default,queryOptions:a.default,dependencyTree:o.default,appbaseRef:u.default,config:s.default,hits:l.default,promotedResults:E.default,customData:A.default,aggregations:k.default,compositeAggregations:F.default,queryLog:c.default,combinedLog:p.default,selectedValues:d.default,internalValues:h.default,isLoading:f.default,error:g.default,timestamp:y.default,headers:v.default,mapData:b.default,queryListener:C.default,analytics:_.default,props:R.default,rawData:ce.default,querySuggestions:pe.default,defaultPopularSuggestions:de.default,queryToHits:he.default,recentSearches:fe.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e}})}));r(le);var ce=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={date:"yyyy-MM-dd",basic_date:"yyyyMMdd",basic_date_time:"yyyyMMdd'T'HHmmss.fffzzz",basic_date_time_no_millis:"yyyyMMdd'T'HHmmsszzz",date_time_no_millis:"yyyy-MM-dd'T'HH:mm:sszzz",basic_time:"HHmmss.fffzzz",basic_time_no_millis:"HHmmsszzz",epoch_millis:"epoch_millis",epoch_second:"epoch_second"}}));r(ce);var pe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={"«":'"',"²":"2","³":"3","¹":"1","»":'"',"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"q","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƀ":"b","Ɓ":"B","Ƃ":"B","ƃ":"b","Ɔ":"O","Ƈ":"C","ƈ":"c","Ɖ":"D","Ɗ":"D","Ƌ":"D","ƌ":"d","Ǝ":"E","Ə":"A","Ɛ":"E","Ƒ":"F","ƒ":"f","Ɠ":"G","ƕ":"hv","Ɩ":"I","Ɨ":"I","Ƙ":"K","ƙ":"k","ƚ":"l","Ɯ":"M","Ɲ":"N","ƞ":"n","Ɵ":"O","Ơ":"O","ơ":"o","Ƥ":"P","ƥ":"p","ƫ":"t","Ƭ":"T","ƭ":"t","Ʈ":"T","Ư":"U","ư":"u","Ʋ":"V","Ƴ":"Y","ƴ":"y","Ƶ":"Z","ƶ":"z","ƿ":"w","DŽ":"DZ","Dž":"Dz","dž":"dz","LJ":"LJ","Lj":"Lj","lj":"lj","NJ":"NJ","Nj":"Nj","nj":"nj","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","ǝ":"e","Ǟ":"A","ǟ":"a","Ǡ":"A","ǡ":"a","Ǣ":"AE","ǣ":"ae","Ǥ":"G","ǥ":"G","Ǧ":"G","ǧ":"G","Ǩ":"K","ǩ":"k","Ǫ":"O","ǫ":"o","Ǭ":"O","ǭ":"o","ǰ":"j","DZ":"DZ","Dz":"Dz","dz":"dz","Ǵ":"G","ǵ":"g","Ƕ":"HV","Ƿ":"W","Ǹ":"N","ǹ":"n","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Ȁ":"A","ȁ":"a","Ȃ":"A","ȃ":"a","Ȅ":"E","ȅ":"e","Ȇ":"E","ȇ":"e","Ȉ":"I","ȉ":"i","Ȋ":"I","ȋ":"i","Ȍ":"O","ȍ":"o","Ȏ":"O","ȏ":"o","Ȑ":"R","ȑ":"r","Ȓ":"R","ȓ":"r","Ȕ":"U","ȕ":"u","Ȗ":"U","ȗ":"u","Ș":"S","ș":"s","Ț":"T","ț":"t","Ȝ":"Z","ȝ":"z","Ȟ":"H","ȟ":"h","Ƞ":"N","ȡ":"d","Ȣ":"OU","ȣ":"ou","Ȥ":"Z","ȥ":"z","Ȧ":"A","ȧ":"a","Ȩ":"E","ȩ":"e","Ȫ":"O","ȫ":"o","Ȭ":"O","ȭ":"o","Ȯ":"O","ȯ":"o","Ȱ":"O","ȱ":"o","Ȳ":"Y","ȳ":"y","ȴ":"l","ȵ":"n","ȶ":"t","ȷ":"j","ȸ":"db","ȹ":"qp","Ⱥ":"A","Ȼ":"C","ȼ":"c","Ƚ":"L","Ⱦ":"T","ȿ":"s","ɀ":"z","Ƀ":"B","Ʉ":"U","Ʌ":"V","Ɇ":"E","ɇ":"e","Ɉ":"J","ɉ":"j","Ɋ":"Q","ɋ":"q","Ɍ":"R","ɍ":"r","Ɏ":"Y","ɏ":"y","ɐ":"a","ɓ":"b","ɔ":"o","ɕ":"c","ɖ":"d","ɗ":"d","ɘ":"e","ə":"a","ɚ":"a","ɛ":"e","ɜ":"e","ɝ":"e","ɞ":"e","ɟ":"j","ɠ":"g","ɡ":"g","ɢ":"G","ɥ":"h","ɦ":"h","ɨ":"i","ɪ":"I","ɫ":"l","ɬ":"l","ɭ":"l","ɯ":"m","ɰ":"m","ɱ":"m","ɲ":"n","ɳ":"n","ɴ":"N","ɵ":"o","ɶ":"OE","ɼ":"r","ɽ":"r","ɾ":"r","ɿ":"r","ʀ":"R","ʁ":"R","ʂ":"s","ʄ":"j","ʇ":"t","ʈ":"t","ʉ":"u","ʋ":"v","ʌ":"v","ʍ":"w","ʎ":"y","ʏ":"Y","ʐ":"z","ʑ":"z","ʗ":"C","ʙ":"B","ʚ":"e","ʛ":"G","ʜ":"H","ʝ":"j","ʞ":"k","ʟ":"L","ʠ":"q","ʣ":"dz","ʥ":"dz","ʦ":"ts","ʨ":"tc","ʪ":"ls","ʫ":"lz","ʮ":"h","ʯ":"h","ᴀ":"A","ᴁ":"AE","ᴂ":"ae","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴆ":"D","ᴇ":"E","ᴈ":"e","ᴉ":"i","ᴊ":"J","ᴋ":"K","ᴌ":"L","ᴍ":"M","ᴎ":"N","ᴏ":"O","ᴐ":"O","ᴔ":"oe","ᴕ":"OU","ᴖ":"o","ᴗ":"o","ᴘ":"P","ᴙ":"R","ᴚ":"R","ᴛ":"T","ᴜ":"U","ᴠ":"V","ᴡ":"W","ᴢ":"Z","ᵢ":"i","ᵣ":"r","ᵤ":"u","ᵥ":"v","ᵫ":"ue","ᵬ":"b","ᵭ":"d","ᵮ":"f","ᵯ":"m","ᵰ":"n","ᵱ":"p","ᵲ":"r","ᵳ":"r","ᵴ":"s","ᵵ":"t","ᵶ":"z","ᵷ":"g","ᵹ":"g","ᵺ":"th","ᵻ":"I","ᵼ":"i","ᵽ":"p","ᵾ":"U","ᶀ":"b","ᶁ":"d","ᶂ":"f","ᶃ":"g","ᶄ":"k","ᶅ":"l","ᶆ":"m","ᶇ":"n","ᶈ":"p","ᶉ":"r","ᶊ":"s","ᶌ":"v","ᶍ":"x","ᶎ":"z","ᶏ":"a","ᶑ":"d","ᶒ":"e","ᶓ":"e","ᶔ":"e","ᶕ":"a","ᶖ":"i","ᶗ":"o","ᶙ":"u","Ḁ":"A","ḁ":"a","Ḃ":"B","ḃ":"b","Ḅ":"B","ḅ":"b","Ḇ":"B","ḇ":"b","Ḉ":"C","ḉ":"c","Ḋ":"D","ḋ":"d","Ḍ":"D","ḍ":"d","Ḏ":"D","ḏ":"d","Ḑ":"D","ḑ":"d","Ḓ":"D","ḓ":"d","Ḕ":"E","ḕ":"e","Ḗ":"E","ḗ":"e","Ḙ":"E","ḙ":"e","Ḛ":"E","ḛ":"e","Ḝ":"E","ḝ":"e","Ḟ":"F","ḟ":"f","Ḡ":"G","ḡ":"g","Ḣ":"H","ḣ":"h","Ḥ":"H","ḥ":"h","Ḧ":"H","ḧ":"h","Ḩ":"H","ḩ":"h","Ḫ":"H","ḫ":"h","Ḭ":"I","ḭ":"i","Ḯ":"I","ḯ":"i","Ḱ":"K","ḱ":"k","Ḳ":"K","ḳ":"k","Ḵ":"K","ḵ":"k","Ḷ":"L","ḷ":"l","Ḹ":"L","ḹ":"l","Ḻ":"L","ḻ":"l","Ḽ":"L","ḽ":"l","Ḿ":"M","ḿ":"m","Ṁ":"M","ṁ":"m","Ṃ":"M","ṃ":"m","Ṅ":"N","ṅ":"n","Ṇ":"N","ṇ":"n","Ṉ":"N","ṉ":"n","Ṋ":"N","ṋ":"n","Ṍ":"O","ṍ":"o","Ṏ":"O","ṏ":"o","Ṑ":"O","ṑ":"o","Ṓ":"O","ṓ":"o","Ṕ":"P","ṕ":"p","Ṗ":"P","ṗ":"p","Ṙ":"R","ṙ":"r","Ṛ":"R","ṛ":"r","Ṝ":"R","ṝ":"r","Ṟ":"R","ṟ":"r","Ṡ":"S","ṡ":"s","Ṣ":"S","ṣ":"s","Ṥ":"S","ṥ":"s","Ṧ":"S","ṧ":"s","Ṩ":"S","ṩ":"s","Ṫ":"T","ṫ":"t","Ṭ":"T","ṭ":"t","Ṯ":"T","ṯ":"t","Ṱ":"T","ṱ":"t","Ṳ":"U","ṳ":"u","Ṵ":"U","ṵ":"u","Ṷ":"U","ṷ":"u","Ṹ":"U","ṹ":"u","Ṻ":"U","ṻ":"u","Ṽ":"V","ṽ":"v","Ṿ":"V","ṿ":"v","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","Ẇ":"W","ẇ":"w","Ẉ":"W","ẉ":"w","Ẋ":"X","ẋ":"x","Ẍ":"X","ẍ":"x","Ẏ":"Y","ẏ":"y","Ẑ":"Z","ẑ":"z","Ẓ":"Z","ẓ":"z","Ẕ":"Z","ẕ":"z","ẖ":"h","ẗ":"t","ẘ":"w","ẙ":"y","ẚ":"a","ẛ":"f","ẜ":"s","ẝ":"s","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","Ỻ":"LL","ỻ":"ll","Ỽ":"V","Ỿ":"Y","ỿ":"y","‐":"-","‑":"-","‒":"-","–":"-","—":"-","‘":'"',"’":'"',"‚":'"',"‛":'"',"“":'"',"”":'"',"„":'"',"′":'"',"″":'"',"‵":'"',"‶":'"',"‸":"^","‹":'"',"›":'"',"‼":"!!","⁄":"/","⁅":"[","⁆":"]","⁇":"??","⁈":"?!","⁉":"!?","⁎":"*","⁏":";","⁒":"%","⁓":"~","⁰":"0","ⁱ":"i","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","ⁿ":"n","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","₊":"+","₋":"-","₌":"=","₍":"(","₎":")","ₐ":"a","ₑ":"e","ₒ":"o","ₓ":"x","ₔ":"a","ↄ":"c","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"19","⑳":"20","⑴":"(1)","⑵":"(2)","⑶":"(3)","⑷":"(4)","⑸":"(5)","⑹":"(6)","⑺":"(7)","⑻":"(8)","⑼":"(9)","⑽":"(10)","⑾":"(11)","⑿":"(12)","⒀":"(13)","⒁":"(14)","⒂":"(15)","⒃":"(16)","⒄":"(17)","⒅":"(18)","⒆":"(19)","⒇":"(20)","⒈":"1.","⒉":"2.","⒊":"3.","⒋":"4.","⒌":"5.","⒍":"6.","⒎":"7.","⒏":"8.","⒐":"9.","⒑":"10.","⒒":"11.","⒓":"12.","⒔":"13.","⒕":"14.","⒖":"15.","⒗":"16.","⒘":"17.","⒙":"18.","⒚":"19.","⒛":"20.","⒜":"(a)","⒝":"(b)","⒞":"(c)","⒟":"(d)","⒠":"(e)","⒡":"(f)","⒢":"(g)","⒣":"(h)","⒤":"(i)","⒥":"(j)","⒦":"(k)","⒧":"(l)","⒨":"(m)","⒩":"(n)","⒪":"(o)","⒫":"(p)","⒬":"(q)","⒭":"(r)","⒮":"(s)","⒯":"(t)","⒰":"(u)","⒱":"(v)","⒲":"(w)","⒳":"(x)","⒴":"(y)","⒵":"(z)","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓥ":"v","ⓦ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","⓪":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","❛":'"',"❜":'"',"❝":'"',"❞":'"',"❨":"(","❩":")","❪":"(","❫":")","❬":"<","❭":">","❮":'"',"❯":'"',"❰":"<","❱":">","❲":"[","❳":"]","❴":"{","❵":"}","❶":"1","❷":"2","❸":"3","❹":"4","❺":"5","❻":"6","❼":"7","❽":"8","❾":"9","❿":"10","➀":"1","➁":"2","➂":"3","➃":"4","➄":"5","➅":"6","➆":"7","➇":"8","➈":"9","➉":"10","➊":"1","➋":"2","➌":"3","➍":"4","➎":"5","➏":"6","➐":"7","➑":"8","➒":"9","➓":"10","Ⱡ":"L","ⱡ":"l","Ɫ":"L","Ᵽ":"P","Ɽ":"R","ⱥ":"a","ⱦ":"t","Ⱨ":"H","ⱨ":"h","Ⱪ":"K","ⱪ":"k","Ⱬ":"Z","ⱬ":"z","Ɱ":"M","Ɐ":"a","ⱱ":"v","Ⱳ":"W","ⱳ":"w","ⱴ":"v","Ⱶ":"H","ⱶ":"h","ⱸ":"e","ⱺ":"o","ⱻ":"E","ⱼ":"j","⸨":"((","⸩":"))","Ꜩ":"TZ","ꜩ":"tz","ꜰ":"F","ꜱ":"S","Ꜳ":"AA","ꜳ":"aa","Ꜵ":"AO","ꜵ":"ao","Ꜷ":"AU","ꜷ":"au","Ꜹ":"AV","ꜹ":"av","Ꜻ":"AV","ꜻ":"av","Ꜽ":"AY","ꜽ":"ay","Ꜿ":"c","ꜿ":"c","Ꝁ":"K","ꝁ":"k","Ꝃ":"K","ꝃ":"k","Ꝅ":"K","ꝅ":"k","Ꝇ":"L","ꝇ":"l","Ꝉ":"L","ꝉ":"l","Ꝋ":"O","ꝋ":"o","Ꝍ":"O","ꝍ":"o","Ꝏ":"OO","ꝏ":"oo","Ꝑ":"P","ꝑ":"p","Ꝓ":"P","ꝓ":"p","Ꝕ":"P","ꝕ":"p","Ꝗ":"Q","ꝗ":"q","Ꝙ":"Q","ꝙ":"q","Ꝛ":"R","ꝛ":"r","Ꝟ":"V","ꝟ":"v","Ꝡ":"VY","ꝡ":"vy","Ꝣ":"Z","ꝣ":"z","Ꝧ":"TH","ꝧ":"th","Ꝩ":"V","Ꝺ":"D","ꝺ":"d","Ꝼ":"F","ꝼ":"f","Ᵹ":"G","Ꝿ":"G","ꝿ":"g","Ꞁ":"L","ꞁ":"l","Ꞃ":"R","ꞃ":"r","Ꞅ":"s","ꞅ":"S","Ꞇ":"T","ꟻ":"F","ꟼ":"p","ꟽ":"M","ꟾ":"I","ꟿ":"M","ff":"ff","fi":"fi","fl":"fl","ffi":"ffi","ffl":"ffl","st":"st","!":"!",""":'"',"#":"#","$":"$","%":"%","&":"&","'":'"',"(":"(",")":")","*":"*","+":"+",",":",","-":"-",".":".","/":"/","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9",":":":",";":";","<":"<","=":"=",">":">","?":"?","@":"@","A":"A","B":"B","C":"C","D":"D","E":"E","F":"F","G":"G","H":"H","I":"I","J":"J","K":"K","L":"L","M":"M","N":"N","O":"O","P":"P","Q":"Q","R":"R","S":"S","T":"T","U":"U","V":"V","W":"W","X":"X","Y":"Y","Z":"Z","[":"[","\":"\\","]":"]","^":"^","_":"_","a":"a","b":"b","c":"c","d":"d","e":"e","f":"f","g":"g","h":"h","i":"i","j":"j","k":"k","l":"l","m":"m","n":"n","o":"o","p":"p","q":"q","r":"r","s":"s","t":"t","u":"u","v":"v","w":"w","x":"x","y":"y","z":"z","{":"{","}":"}","~":"~"}}));r(pe);var de=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.replaceDiacritics=s;var r,o=(r=pe)&&r.__esModule?r:{default:r};function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=function(e){switch(typeof e){case"string":return e;case"object":return Array.isArray(e)?function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])}(e):null;default:return e}};function s(e){for(var t=e?String(e):"",n=0;n<t.length;n++){var r=t.charAt(n);o.default[r]&&(t=t.replaceAll(r,o.default[r]))}return t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var l=function(e){var t=e.suggestions,r=e.currentValue,o=e.wordsToShowAfterHighlight,a={};if(r){var s=r.trim();return t.reduce((function(e,t){var r=t.label,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["label"]),c=(new DOMParser).parseFromString(r,"text/html").documentElement.textContent,p="^("+u(s)+")\\w+",d=new RegExp(p,"i"),h=d.exec(c);if(h||(p="^("+u(s)+")",h=(d=new RegExp(p,"i")).exec(c)),h){var f=c.slice(h.index,c.length).slice(s.length).split(" ").slice(0,o+1).join(" "),g=s+'<mark class="highlight">'+f+"</mark>",m=""+s+f;return a[g]?e:(a[g]=1,[].concat(i(e),[n({},l,{label:g,value:m,isPredictiveSuggestion:!0})]))}return e}),[])}return[]};t.default=function(e){var t=e.fields,r=e.suggestions,o=e.currentValue,u=e.suggestionProperties,c=void 0===u?[]:u,p=e.showDistinctSuggestions,d=void 0!==p&&p,h=e.enablePredictiveSuggestions,f=void 0!==h&&h,g=e.wordsToShowAfterHighlight,m=void 0===g?2:g,y=e.enableSynonyms,v=[],b=[],C=!1,O=function(e,t,r){if((C||o.trim().split(" ").some((function(t){return s(e).toLowerCase().includes(s(t))})))&&!b.includes(e)||r._promoted){var a={label:e,value:e,source:r},u={};Array.isArray(c)&&c.length>0&&c.forEach((function(e){t.hasOwnProperty(e)&&(u=n({},u,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t[e])))}));var l=n({},a,u);if(b=[].concat(i(b),[e]),v=[].concat(i(v),[l]),d)return!0}return!1},w=function(){r.forEach((function(e){t.forEach((function(t){!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if("object"==typeof t){var i=n.split("."),s=t[i[0]];if(t[n]){var u=t[n],l=a(u);if(l&&"string"==typeof l)return O(l,t,r)}if(Array.isArray(s)&&(s.length>1&&(s=s.filter((function(e){return e&&e.toString().toLowerCase().includes(o.toString().toLowerCase())}))),s=s[0]),s)if(i.length>1){var c=n.substring(i[0].length+1);e(s,c,r)}else{var p=a(s);if(p)return O(p,t,r)}}return!1}(e,t)}))}))};if(w(),v.length<r.length&&!C&&y&&(C=!0,w()),f){var S=l({suggestions:v,currentValue:o,wordsToShowAfterHighlight:m});v=S}if(d){var _={},T=[];return v.forEach((function(e){e.source&&e.source._id&&(_[e.source._id]||(T.push(e),_[e.source._id]=!0))})),T}return v}}));r(de);var he=de.replaceDiacritics,fe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getTopSuggestions=t.withClickIds=t.getCompositeAggsQuery=t.getAggsQuery=t.extractQueryFromDefaultQuery=t.updateInternalQuery=t.getSearchState=t.getOptionsFromQuery=t.parseHits=t.handleA11yAction=t.getInnerKey=t.getClassName=t.checkSomePropChange=t.checkPropChange=t.updateDefaultQuery=t.updateCustomQuery=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isEqual=c,t.debounce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,r=null,o=null,i=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(i,t)}},t.getQueryOptions=function(e){var t={};void 0!==e.size&&(t.size=e.size);if(e.includeFields||e.excludeFields){var n={};e.includeFields&&(n.includes=e.includeFields),e.excludeFields&&(n.excludes=e.excludeFields),t._source=n}return t},t.buildQuery=function(e,t,r,o){var i=null,a=null;e in t&&(i=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var i=d(p(o),t[o].map((function(t){return"string"!=typeof t?e(t,n):t in n?n[t]:null})).filter((function(e){return!!e})));i&&(r=[].concat(s(r),[i]))}else if("string"==typeof t[o]){var a=d(p(o),n[t[o]]);a&&(r=[].concat(s(r),[a]))}else if("object"==typeof t[o]&&null!==t[o]){var u=e(t[o],n);u&&(r=[].concat(s(r),[u]))}})),Array.isArray(r)&&r.length)return{bool:{must:r}};if(r&&Object.keys(r).length)return r;return null}(t[e],r),a=function e(t,r,o){var i={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){r[e]&&(i=n({},i,r[e]))})):"string"==typeof t[o]?r[t[o]]&&(i=n({},i,r[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(i=n({},i,e(t[o],r)))})),r[o]&&(i=n({},i,r[o]));return i}(t[e],o,e));return{queryObj:i,options:a}},t.pushToAndClause=function e(t,r){var o=n({},t);if(o.and)return Array.isArray(o.and)?(o.and=[].concat(s(o.and),[r]),o):"string"==typeof o.and?(o.and=[o.and,r],o):(o.and=e(o.and,r),o);return n({},o,{and:r})},t.checkValueChange=function(e,t,n,r){var o=t;Array.isArray(t)&&!t.length&&(o=null);var i=function(t){console.warn(e+" - beforeValueChange rejected the promise with ",t)};if(n)try{var a=n(o);a instanceof Promise?a.then(r).catch(i):r()}catch(e){i(e)}else r()},t.getAggsOrder=h,t.formatDate=function(e,t){if(t.parseDate)return t.parseDate(e,t);switch(t.queryFormat){case"epoch_millis":return e.getTime();case"epoch_second":return Math.floor(e.getTime()/1e3);default:return r.default[t.queryFormat]?e.toString(r.default[t.queryFormat]):e.getTime()}},t.getResultStats=function(e){var t=e.total,r=e.size,o=e.time,i=e.hidden,a=e.promotedResults;return n({numberOfResults:t},r>0?{numberOfPages:Math.ceil(t/r)}:null,{time:o||0,hidden:i,promoted:a&&a.length})},t.extractFieldsFromSource=O,t.normalizeDataField=w,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,i=n.promotedResults,a=n.enablePredictiveSuggestions,u=[];n.dataField?u=w(n.dataField).map((function(e){return e.field})):e&&Array.isArray(e)&&e.length>0&&e[0]&&e[0]._source&&(u=O(e[0]._source));var l=m(e,!1),c=m(i,!1);if(c&&c.length){var p=c.map((function(e){return e._id})).filter(Boolean);p&&(l=l.filter((function(e){return!p.includes(e._id)}))),l=[].concat(s(c),s(l))}var d=(0,o.default)({fields:u,suggestions:l,currentValue:t.toLowerCase(),showDistinctSuggestions:n.showDistinctSuggestions,enablePredictiveSuggestions:a,enableSynonyms:n.enableSynonyms});if(r)return d.map((function(e){return r(e)}));return d},t.isValidDateRangeQueryFormat=function(e){return Object.keys(r.default).includes(e)};var r=i(ce),o=i(de);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.updateCustomQuery=function(e,t,n){t.customQuery&&"function"==typeof t.customQuery&&t.setCustomQuery(e,t.customQuery(n,t))};var l=t.updateDefaultQuery=function(e,t,n){t.defaultQuery&&"function"==typeof t.defaultQuery&&t.setDefaultQuery(e,t.defaultQuery(n,t))};function c(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;if(e.constructor!==t.constructor)return!1;for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))return!1;if(e[n]!==t[n]){if("object"!=typeof e[n])return!1;if(!c(e[n],t[n]))return!1}}for(var r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}function p(e){return"and"===e?"must":"or"===e?"should":"must_not"}function d(e,t){var r=null;return(Array.isArray(t)&&t.length||!Array.isArray(t)&&t)&&(r={bool:u({},e,t)}),"should"===e&&r&&(r={bool:n({},r.bool,{minimum_should_match:1})}),r}function h(e){return"count"===e?{_count:"desc"}:{_term:e}}var f=t.checkPropChange=function(e,t,n){return!c(e,t)&&(n(),!0)},g=(t.checkSomePropChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];n.some((function(n){return f(e[n],t[n],r)}))},t.getClassName=function(e,t){return e&&e[t]||""},t.getInnerKey=function(e,t){return e&&e[t]||{}},t.handleA11yAction=function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())},function(e){var t=n({},e);return t.highlight&&Object.keys(t.highlight).forEach((function(e){var r=t.highlight[e][0];t._source=n({},t._source,u({},e,r))})),t}),m=t.parseHits=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null;return e&&(r=[].concat(s(e)).map((function(e){var r=n({},e);return t&&(r=g(e)),Object.keys(r).filter((function(e){return"_source"!==e})).reduce((function(e,t){return e[t]=r[t],e}),n({highlight:r.highlight||{}},r._source))}))),r};var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query;var t=a(e,["query"]);return Object.keys(t).length?t:null}return null};function v(e,t,r){Object.keys(e).forEach((function(o){var i=e[o]||{},a=i.hidden,s=i.total,u=i.time;t[o]=n({},t[o],{resultStats:n({},t[o].resultStats,{numberOfResults:s,time:u,promoted:r[o]&&r[o].length,hidden:a||0})})}))}t.getOptionsFromQuery=y;t.getSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.selectedValues,o=e.queryLog,i=e.dependencyTree,a=e.props,s=e.hits,l=e.aggregations,c=e.isLoading,p=e.error,d=e.promotedResults,h=e.settings,f=e.customData,g=e.rawData,m={},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return Object.keys(e).forEach((function(r){m[r]=n({},m[r],t?u({},t,e[r]):e[r])}))};return y(a),Object.keys(r).forEach((function(e){var t=m[e],o=r[e];o&&(m[e]=n({},t,n({title:o.label,componentType:o.componentType,value:o.value},o.category&&{category:o.category},{URLParams:o.URLParams})))})),t||(y(o),y(s,"hits"),y(l,"aggregations"),y(c,"isLoading"),y(p,"error"),y(d,"promotedData"),y(h,"settings"),y(f,"customData"),y(g,"rawData"),v(s,m,d)),y(i,"react"),m},t.updateInternalQuery=function(e,t,r,o,i,a){var s=o.defaultQuery,u=void 0,c=void 0;if(s){var p=s(r,o);c=(p||{}).query,u=y(p),l(e,o,r)}o.setQueryOptions(e,n({},u,t||i)),c&&o.updateQuery(n({componentId:e,query:c,value:r},a))};var b=function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var i=a(o,["query"]);i&&(n=i)}}return n};t.extractQueryFromDefaultQuery=b;t.getAggsQuery=function(e,t,r){var o=t,i=r.dataField,a=r.size,s=r.sortBy,l=r.showMissing,c=r.missingLabel;return o.size=0,o.aggs=u({},i,{terms:n({field:i,size:a,order:h(s||"count")},l?{missing:c}:{})}),r.nestedField&&(o.aggs={reactivesearch_nested:{nested:{path:r.nestedField},aggs:o.aggs}}),n({},o,b(r,e))},t.getCompositeAggsQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,r=void 0===t?{}:t,o=e.props,i=e.after,a=void 0===i?null:i,s=e.showTopHits,l=void 0!==s&&s,c=e.value,p=r,d=o.dataField,h=o.size,f=o.sortBy,g=o.showMissing,m=o.aggregationField,y=m||d,v="count"===f?{}:{order:f};return p.aggs=u({},y,n({composite:n({sources:[u({},y,{terms:n({field:y},v,g?{missing_bucket:!0}:{})})],size:h},a)},l?{aggs:u({},y,{top_hits:{size:1}})}:{})),p.size=0,o.nestedField&&(p.aggs={reactivesearch_nested:{nested:{path:o.nestedField},aggs:p.aggs}}),n({},p,b(o,c))};var C=t.withClickIds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e,t){return n({},e,{_click_id:t})}))};function O(e){var t=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1],a=r?r+"."+i:i;return Number.isNaN(parseInt(i,10))||(a=r||i),t[i]&&"object"==typeof t[i]?n({},o,e(t[i],a)):n({},o,u({},a,!0))}),[])}(e);return Object.keys(t)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"string"==typeof e?[{field:e,weight:t.length?t[0]:void 0}]:Array.isArray(e)?e.map((function(e,n){var r={};return"string"==typeof e?(r.field=e,t.length>n&&(r.weight=t[n])):"object"==typeof e&&e&&e.field&&(r.field=e.field,r.weight=e.weight),r})):"object"==typeof e&&e?[{field:e.field,weight:e.weight}]:[]}t.getTopSuggestions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],r=m(e,!1),i=(0,o.default)({fields:["key","key.autosuggest","key.search"],suggestions:r||[],currentValue:t.toLowerCase(),showDistinctSuggestions:n});return C(i)}}));r(fe);fe.getTopSuggestions;var ge=fe.withClickIds,me=(fe.getCompositeAggsQuery,fe.getAggsQuery,fe.extractQueryFromDefaultQuery,fe.updateInternalQuery,fe.getSearchState,fe.getOptionsFromQuery,fe.parseHits,fe.handleA11yAction,fe.getInnerKey,fe.getClassName,fe.checkSomePropChange,fe.checkPropChange,fe.updateDefaultQuery,fe.updateCustomQuery,fe.isEqual),ye=(fe.debounce,fe.getQueryOptions),ve=fe.buildQuery,be=fe.pushToAndClause,Ce=(fe.checkValueChange,fe.getAggsOrder,fe.formatDate,fe.getResultStats,fe.extractFieldsFromSource,fe.normalizeDataField,fe.handleOnSuggestions,fe.isValidDateRangeQueryFormat,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.setValue=function(e,t,n,r,o,i,a,s){return function(u,l){var c=l().urlValues,p=void 0;(0,fe.isEqual)(c[e],t)&&(p="URL"),u({type:b.SET_VALUE,component:e,reference:p,value:t,label:n,showFilter:r,URLParams:o,componentType:i,category:a,meta:s})}},t.resetValuesToDefault=function(){return function(e,t){var r=t(),o=r.selectedValues,i=r.props,a={},s=void 0;Object.keys(o).forEach((function(e){return i[e]&&i[e].componentType&&i[e].defaultValue?[P.componentTypes.rangeSlider,P.componentTypes.rangeInput,P.componentTypes.ratingsFilter,P.componentTypes.dateRange].includes(i[e].componentType)?s="object"==typeof i[e].defaultValue?[i[e].defaultValue.start,i[e].defaultValue.end]:null:[P.componentTypes.multiDropdownList,P.componentTypes.multiDataList,P.componentTypes.multiList,P.componentTypes.singleDataList,P.componentTypes.singleDropdownList,P.componentTypes.singleList,P.componentTypes.tagCloud,P.componentTypes.toggleButton,P.componentTypes.multiDropdownRange,P.componentTypes.multiRange,P.componentTypes.singleDropdownRange,P.componentTypes.singleRange,P.componentTypes.dataSearch,P.componentTypes.datePicker].includes(i[e].componentType)?s=i[e].defaultValue:[P.componentTypes.categorySearch].includes(i[e].componentType)&&(s=i[e].defaultValue?i[e].defaultValue.term:""):s=null,(0,fe.isEqual)(o[e].value,s)||(a=n({},a,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},e,n({},o[e],{value:s})))),!0})),e({type:b.RESET_TO_DEFAULT,defaultValues:a})}},t.setInternalValue=function(e,t,n,r,o){return{type:b.SET_INTERNAL_VALUE,component:e,value:t,componentType:n,category:r,meta:o}},t.patchValue=function(e,t){return{type:b.PATCH_VALUE,component:e,payload:t}},t.clearValues=function(){return{type:b.CLEAR_VALUES}}})));r(Ce);Ce.setValue,Ce.resetValuesToDefault,Ce.setInternalValue,Ce.patchValue,Ce.clearValues;var Oe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setRawData=function(e,t){return{type:b.SET_RAW_DATA,component:e,response:t}},t.setLoading=function(e,t){return{type:b.SET_LOADING,component:e,isLoading:t}},t.setError=function(e,t){return{type:b.SET_ERROR,component:e,error:t}},t.setTimestamp=function(e,t){return{type:b.SET_TIMESTAMP,component:e,timestamp:t}},t.setSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:b.SET_SEARCH_ID,searchId:e}},t.setSuggestionsSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:b.SET_SUGGESTIONS_SEARCH_ID,searchId:e}},t.setQuery=function(e,t){return{type:b.SET_QUERY,component:e,query:t}},t.setCustomQuery=function(e,t){return{type:b.SET_CUSTOM_QUERY,component:e,query:t}},t.setDefaultQuery=function(e,t){return{type:b.SET_DEFAULT_QUERY,component:e,query:t}},t.setCustomHighlightOptions=function(e,t){return{type:b.SET_CUSTOM_HIGHLIGHT_OPTIONS,component:e,data:t}},t.updateQueryOptions=function(e,t){return{type:b.SET_QUERY_OPTIONS,component:e,options:t}},t.logQuery=function(e,t){return{type:b.LOG_QUERY,component:e,query:t}},t.logCombinedQuery=function(e,t){return{type:b.LOG_COMBINED_QUERY,component:e,query:t}},t.setHeaders=function(e){return{type:b.SET_HEADERS,headers:e}},t.setPromotedResults=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:b.SET_PROMOTED_RESULTS,results:e,component:t}},t.setPopularSuggestions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:b.SET_POPULAR_SUGGESTIONS,suggestions:e,component:t}},t.setDefaultPopularSuggestions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:b.SET_DEFAULT_POPULAR_SUGGESTIONS,suggestions:e,component:t}},t.setCustomData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:b.SET_CUSTOM_DATA,data:e,component:t}},t.setAppliedSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:b.SET_APPLIED_SETTINGS,data:e,component:t}},t.setQueryListener=function(e,t,n){return{type:b.SET_QUERY_LISTENER,component:e,onQueryChange:t,onError:n}}}));r(Oe);Oe.setRawData,Oe.setLoading,Oe.setError,Oe.setTimestamp,Oe.setSearchId,Oe.setSuggestionsSearchId,Oe.setQuery,Oe.setCustomQuery,Oe.setDefaultQuery,Oe.setCustomHighlightOptions,Oe.updateQueryOptions,Oe.logQuery,Oe.logCombinedQuery,Oe.setHeaders,Oe.setPromotedResults,Oe.setPopularSuggestions,Oe.setDefaultPopularSuggestions,Oe.setCustomData,Oe.setAppliedSettings,Oe.setQueryListener;var we=o((function(e,t){function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:b.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:b.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:b.UPDATE_COMPOSITE_AGGS,component:e,aggregations:t,append:n}},t.updateHits=r,t.saveQueryToHits=function(e,t){return{type:b.SET_QUERY_TO_HITS,component:e,query:t}},t.mockDataForTesting=function(e,t){return function(o){t.hasOwnProperty("aggregations")&&o(n(e,t.aggregations)),t.hasOwnProperty("hits")&&o(r(e,t,t.time||void 0))}}}));r(we);we.updateAggs,we.updateCompositeAggs,we.updateHits,we.saveQueryToHits,we.mockDataForTesting;var Se=o((function(e){
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=e||self).ReactiveSearchVue={},e.Vue)}(this,(function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var l="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function d(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function h(e,t){return function(){return t(e.apply(this,arguments))}}function f(e,t){if("function"==typeof e)return h(e,t);if("object"!=typeof e||null===e)throw new Error(u(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=h(o,t))}return n}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var m=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:p,applyMiddleware:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(u(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=g.apply(void 0,i)(n.dispatch),s(s({},n),{},{dispatch:r})}}},bindActionCreators:f,combineReducers:function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:p.INIT}))throw new Error(u(12));if(void 0===n(void 0,{type:p.PROBE_UNKNOWN_ACTION()}))throw new Error(u(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],p=e[l],d=c(p,t);if(void 0===d){t&&t.type;throw new Error(u(14))}o[l]=d,r=r||d!==p}return(r=r||a.length!==Object.keys(e).length)?o:e}},compose:g,createStore:function e(t,n,r){var o;if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw new Error(u(1));return r(e)(t,n)}if("function"!=typeof t)throw new Error(u(2));var i=t,a=n,s=[],c=s,h=!1;function f(){c===s&&(c=s.slice())}function g(){if(h)throw new Error(u(3));return a}function m(e){if("function"!=typeof e)throw new Error(u(4));if(h)throw new Error(u(5));var t=!0;return f(),c.push(e),function(){if(t){if(h)throw new Error(u(6));t=!1,f();var n=c.indexOf(e);c.splice(n,1),s=null}}}function y(e){if(!d(e))throw new Error(u(7));if(void 0===e.type)throw new Error(u(8));if(h)throw new Error(u(9));try{h=!0,a=i(a,e)}finally{h=!1}for(var t=s=c,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error(u(10));i=e,y({type:p.REPLACE})}function b(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(u(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[l]=function(){return this},e}return y({type:p.INIT}),(o={dispatch:y,subscribe:m,getState:g,replaceReducer:v})[l]=b,o}});function y(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 v=y();v.withExtraArgument=y;var b=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.ADD_COMPONENT="ADD_COMPONENT",t.REMOVE_COMPONENT="REMOVE_COMPONENT",t.WATCH_COMPONENT="WATCH_COMPONENT",t.SET_QUERY="SET_QUERY",t.SET_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.ADD_APPBASE_REF="ADD_APPBASE_REF",t.LOG_QUERY="LOG_QUERY",t.LOG_COMBINED_QUERY="LOG_COMBINED_QUERY",t.SET_INTERNAL_VALUE="SET_INTERNAL_VALUE",t.PATCH_VALUE="PATCH_VALUE",t.CLEAR_VALUES="CLEAR_VALUES",t.SET_LOADING="SET_LOADING",t.SET_ERROR="SET_ERROR",t.SET_TIMESTAMP="SET_TIMESTAMP",t.SET_HEADERS="SET_HEADERS",t.SET_MAP_DATA="SET_MAP_DATA",t.SET_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.RESET_TO_DEFAULT="RESET_TO_DEFAULT"}));r(b);b.ADD_COMPONENT,b.REMOVE_COMPONENT,b.WATCH_COMPONENT,b.SET_QUERY,b.SET_QUERY_OPTIONS,b.EXECUTE_QUERY,b.UPDATE_HITS,b.UPDATE_AGGS;var O=b.UPDATE_COMPOSITE_AGGS,C=(b.ADD_CONFIG,b.ADD_APPBASE_REF,b.LOG_QUERY,b.LOG_COMBINED_QUERY,b.SET_INTERNAL_VALUE,b.PATCH_VALUE,b.CLEAR_VALUES,b.SET_LOADING,b.SET_ERROR,b.SET_TIMESTAMP,b.SET_HEADERS,b.SET_MAP_DATA,b.SET_QUERY_LISTENER,b.STORE_KEY,b.SET_SEARCH_ID,b.SET_PROMOTED_RESULTS,b.SET_DEFAULT_QUERY,b.SET_CUSTOM_QUERY,b.SET_CUSTOM_HIGHLIGHT_OPTIONS,b.SET_CUSTOM_DATA,b.SET_APPLIED_SETTINGS,b.SET_PROPS,b.UPDATE_PROPS,b.REMOVE_PROPS,b.SET_SUGGESTIONS_SEARCH_VALUE,b.CLEAR_SUGGESTIONS_SEARCH_VALUE,b.SET_SUGGESTIONS_SEARCH_ID,b.UPDATE_ANALYTICS_CONFIG,b.SET_RAW_DATA,b.SET_POPULAR_SUGGESTIONS,b.SET_DEFAULT_POPULAR_SUGGESTIONS,b.SET_QUERY_TO_HITS,b.RECENT_SEARCHES_SUCCESS,b.RECENT_SEARCHES_ERROR,b.SET_VALUE,b.RESET_TO_DEFAULT,o((function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(t.type===b.ADD_COMPONENT)return[].concat(n(e),[t.component]);if(t.type===b.REMOVE_COMPONENT)return e.filter((function(e){return e!==t.component}));return e}})));r(C);var w=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=Object.values(e),n=[];return t.forEach((function(e){"string"==typeof e?n.push(e):Array.isArray(e)?e.forEach((function(e){"string"==typeof e?n.push(e):n.push.apply(n,r(o(e)))})):"object"==typeof e&&null!==e&&n.push.apply(n,r(o(e)))})),n.filter((function(e,t,n){return n.indexOf(e)===t}))}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.WATCH_COMPONENT){var i=o(t.react),a=n({},e);return Object.keys(a).forEach((function(e){a[e]=a[e].filter((function(e){return e!==t.component}))})),i.forEach((function(e){Array.isArray(a[e])?a[e]=[].concat(r(a[e]),[t.component]):a[e]=[t.component]})),a}return e}}));r(w);var S=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.WATCH_COMPONENT)return n({},e,o({},t.component,t.react));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),_=r(S),T=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};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===b.SET_QUERY)return n({},e,o({},t.component,t.query));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),E=r(T),I=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_QUERY_OPTIONS)return n({},e,o({},t.component,t.options));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),A=r(I),P=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",searchBox:"SUGGESTION",singleList:"SINGLELIST",multiList:"MULTILIST",singleDataList:"SINGLEDATALIST",singleDropdownList:"SINGLEDROPDOWNLIST",multiDataList:"MULTIDATALIST",multiDropdownList:"MULTIDROPDOWNLIST",singleDropdownRange:"SINGLEDROPDOWNRANGE",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"},t.queryTypes={search:"search",term:"term",range:"range",geo:"geo",suggestion:"suggestion"},t.validProps=["componentType","aggregationField","aggregationSize","distinctField","distinctFieldConfig","index","dataField","includeFields","excludeFields","size","from","sortBy","sortOptions","pagination","autoFocus","autosuggest","debounce","defaultValue","defaultSuggestions","fieldWeights","filterLabel","fuzziness","highlight","highlightField","nestedField","placeholder","queryFormat","searchOperators","enableSynonyms","enableQuerySuggestions","enablePopularSuggestions","queryString","categoryField","strictSelection","selectAllLabel","showCheckbox","showFilter","showSearch","showCount","showLoadMore","loadMoreLabel","showMissing","missingLabel","data","showRadio","multiSelect","includeNullValues","interval","showHistogram","snap","stepValue","range","showSlider","parseDate","calendarInterval","unit","enablePopularSuggestions","popularSuggestionsConfig","enableRecentSuggestions","recentSuggestionsConfig","enablePredictiveSuggestions","applyStopwords","customStopwords"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"}}));r(P);var $=P.componentTypes,R=(P.queryTypes,P.validProps),k=(P.CLEAR_ALL,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomEvents=t.parseRangeObject=t.parseFilterValue=t.rangeObjectComponents=t.rangeComponents=t.filterComponents=t.defaultAnalyticsConfig=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=[P.componentTypes.numberBox,P.componentTypes.tagCloud,P.componentTypes.toggleButton,P.componentTypes.datePicker,P.componentTypes.dateRange,P.componentTypes.multiDataList,P.componentTypes.multiDropdownList,P.componentTypes.multiList,P.componentTypes.singleDataList,P.componentTypes.singleDropdownList,P.componentTypes.singleList,P.componentTypes.dynamicRangeSlider,P.componentTypes.multiDropdownRange,P.componentTypes.multiRange,P.componentTypes.rangeSlider,P.componentTypes.ratingsFilter,P.componentTypes.singleDropdownRange,P.componentTypes.singleRange],o=[P.componentTypes.dateRange,P.componentTypes.dynamicRangeSlider,P.componentTypes.rangeSlider,P.componentTypes.rangeInput,P.componentTypes.ratingsFilter],i=[P.componentTypes.singleRange,P.componentTypes.singleDropdownRange,P.componentTypes.multiRange,P.componentTypes.multiDropdownRange];function a(e,t){return e+"="+t.start+"~"+t.end}function s(e,t){var n=t.label,r=t.value,s=t.componentType,u=n||e;return o.includes(s)?u+"="+r[0]+"~"+r[1]:i.includes(s)?Array.isArray(r)?r.map((function(e){return a(u,e)})).join():a(u,r):Array.isArray(r)?"object"==typeof r[0]&&null!==r[0]?r.map((function(e){return u+"="+e.value})).join():r.map((function(e){return u+"="+e})).join():u+"="+r}t.defaultAnalyticsConfig={emptyQuery:!0,suggestionAnalytics:!0,userId:null,customEvents:null,enableQueryRules:!0};t.filterComponents=r,t.rangeComponents=o,t.rangeObjectComponents=i,t.parseFilterValue=s,t.parseRangeObject=a,t.parseCustomEvents=function(e){var t="";return Object.keys(e).forEach((function(n,r){t+=n+"="+e[n],r<Object.keys(e).length-1&&(t+=",")})),t},t.default=function(e){return e&&Object.keys(e).length?Object.entries(e).filter((function(e){var t=n(e,2)[1];return r.includes(t.componentType)&&(t.value&&t.value.length||t.value&&t.value.start||t.value&&t.value.end)})).map((function(e){var t=n(e,2);return s(t[0],t[1])})).join():null}})));r(k);k.parseCustomEvents,k.parseRangeObject,k.parseFilterValue,k.rangeObjectComponents,k.rangeComponents,k.filterComponents,k.defaultAnalyticsConfig;var x=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{analyticsConfig:k.defaultAnalyticsConfig},t=arguments[1];if(t.type===b.ADD_CONFIG)return n({},e,{analyticsConfig:n({},k.defaultAnalyticsConfig,t.analyticsConfig)});if(t.type===b.UPDATE_ANALYTICS_CONFIG)return n({},e,{analyticsConfig:n({},e.analyticsConfig,t.analyticsConfig)});return e}}));r(x);var Q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.ADD_APPBASE_REF)return t.appbaseRef;return e}}));r(Q);var V=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.UPDATE_HITS)return t.append?n({},e,o({},t.component,{hits:[].concat(i(e[t.component].hits),i(t.hits)),total:t.total,time:t.time,hidden:t.hidden||0})):n({},e,o({},t.component,{hits:t.hits,total:t.total,time:t.time,hidden:t.hidden||0}));if(t.type===b.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));r(V);var L=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.LOG_QUERY)return n({},e,o({},t.component,t.query));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(L);var j=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.LOG_COMBINED_QUERY)return n({},e,o({},t.component,t.query));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(j);var D=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case b.SET_VALUE:return n({},e,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 b.PATCH_VALUE:return n({},e,o({},t.component,n({},e[t.component],t.payload)));case b.CLEAR_VALUES:if(t.resetValues){var i={};return Object.keys(t.resetValues).forEach((function(r){i[r]=n({},e[r],{value:t.resetValues[r]})})),i}return{};case b.REMOVE_COMPONENT:e[t.component];var a=r(e,[t.component]);return a;case b.RESET_TO_DEFAULT:return n({},e,t.defaultValues);default:return e}}})),F=r(D),M=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case b.SET_INTERNAL_VALUE:return n({},e,o({},t.component,{value:t.value,componentType:t.componentType,category:t.category,meta:t.meta}));case b.CLEAR_VALUES:return{};case b.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default:return e}}}));r(M);var N=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_LOADING){var i,a=e[t.component+"_active"]||0;return t.isLoading?a+=1:a&&(a-=1),n({},e,(o(i={},t.component,t.isLoading),o(i,t.component+"_active",a),i),t.isLoading?o({},t.component+"_timestamp",(new Date).getTime()):null)}if(t.type===b.REMOVE_COMPONENT){e[t.component],e[t.component+"_active"];var s=r(e,[t.component,t.component+"_active"]);return s}return e}}));r(N);var U=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_ERROR)return n({},e,o({},t.component,t.error));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(U);var q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};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===b.SET_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(q);var H=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_HEADERS)return t.headers;return e}}));r(H);var z=o((function(e,t){function n(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 r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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===b.SET_MAP_DATA)return r({},t.componentId,{query:t.query,persistMapQuery:t.persistMapQuery});if(t.type===b.REMOVE_COMPONENT){e[t.component];var o=n(e,[t.component]);return o}return e}}));r(z);var B=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_QUERY_LISTENER)return n({},e,o({},t.component,{onQueryChange:t.onQueryChange,onError:t.onError}));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(B);var G=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case b.SET_VALUE:return o.includes(t.componentType)?{searchValue:t.value,searchId:null}:e;case b.SET_SEARCH_ID:return n({},e,{searchId:t.searchId});case b.SET_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:t.value,suggestionsSearchId:null});case b.SET_SUGGESTIONS_SEARCH_ID:return n({},e,{suggestionsSearchId:t.searchId});case b.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=[P.componentTypes.dataSearch,P.componentTypes.categorySearch]}));r(G);var W=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_PROMOTED_RESULTS)return n({},e,o({},t.component,t.results.map((function(e){return n({},e,{_promoted:!0})}))));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(W);var Y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};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===b.SET_CUSTOM_DATA)return n({},e,o({},t.component,t.data));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(Y);var K=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_DEFAULT_QUERY)return n({},e,o({},t.component,t.query));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(K);var X=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_CUSTOM_QUERY)return n({},e,o({},t.component,t.query));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(X);var Z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case b.SET_PROPS:return n({},e,o({},t.component,t.options));case b.UPDATE_PROPS:return n({},e,o({},t.component,n({},e[t.component],t.options)));case b.REMOVE_PROPS:case b.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default:return e}}}));r(Z);var J=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.UPDATE_AGGS){if(t.append){var a=Object.keys(e[t.component])[0],s=t.aggregations[a],u=s.buckets,l=i(s,["buckets"]);return n({},e,r({},t.component,r({},a,n({buckets:[].concat(o(e[t.component][a].buckets),o(u))},l))))}return n({},e,r({},t.component,t.aggregations))}if(t.type===b.REMOVE_COMPONENT){e[t.component];var c=i(e,[t.component]);return c}return e}}));r(J);var ee=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.UPDATE_COMPOSITE_AGGS){var a=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],s=Object.keys(t.aggregations)[0];if(!a)return e;var u=[];a.buckets&&Array.isArray(a.buckets)&&(u=a.buckets);var l=u.map((function(e){var t=e.doc_count,r=e.key,o=e[s],a={},u={};if(o&&o.hits){var l=o.hits.hits[0];u=l._source,a=i(l,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[s],top_hits:o},a,u)}));return n({},e,r({},t.component,t.append?[].concat(o(e[t.component]),o(l)):l))}return e}})),te=r(ee),ne=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,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===b.SET_APPLIED_SETTINGS)return n({},e,r({},t.component,t.data));return e}}));r(ne);var re=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){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===b.SET_CUSTOM_HIGHLIGHT_OPTIONS)return n({},e,o({},t.component,t.data));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(re);var oe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){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===b.SET_RAW_DATA)return n({},e,o({},t.component,t.response));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(oe);var ie=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(ie);var ae=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_DEFAULT_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(ae);var se=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.SET_QUERY_TO_HITS)return n({},e,o({},t.component,t.query));if(t.type===b.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(se);var ue=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===b.RECENT_SEARCHES_SUCCESS)return{error:null,data:t.data};if(t.type===b.RECENT_SEARCHES_ERROR)return{error:t.error};return e}}));r(ue);var le=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=ge(C),r=ge(w),o=ge(S),i=ge(T),a=ge(I),s=ge(x),u=ge(Q),l=ge(V),c=ge(L),p=ge(j),d=ge(D),h=ge(M),f=ge(N),g=ge(U),y=ge(q),v=ge(H),b=ge(z),O=ge(B),_=ge(G),E=ge(W),A=ge(Y),P=ge(K),$=ge(X),R=ge(Z),k=ge(J),F=ge(ee),te=ge(ne),le=ge(re),ce=ge(oe),pe=ge(ie),de=ge(ae),he=ge(se),fe=ge(ue);function ge(e){return e&&e.__esModule?e:{default:e}}t.default=(0,m.combineReducers)({components:n.default,customQueries:$.default,defaultQueries:P.default,customHighlightOptions:le.default,settings:te.default,watchMan:r.default,queryList:i.default,queryOptions:a.default,dependencyTree:o.default,appbaseRef:u.default,config:s.default,hits:l.default,promotedResults:E.default,customData:A.default,aggregations:k.default,compositeAggregations:F.default,queryLog:c.default,combinedLog:p.default,selectedValues:d.default,internalValues:h.default,isLoading:f.default,error:g.default,timestamp:y.default,headers:v.default,mapData:b.default,queryListener:O.default,analytics:_.default,props:R.default,rawData:ce.default,querySuggestions:pe.default,defaultPopularSuggestions:de.default,queryToHits:he.default,recentSearches:fe.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e}})}));r(le);var ce=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={date:"yyyy-MM-dd",basic_date:"yyyyMMdd",basic_date_time:"yyyyMMdd'T'HHmmss.fffzzz",basic_date_time_no_millis:"yyyyMMdd'T'HHmmsszzz",date_time_no_millis:"yyyy-MM-dd'T'HH:mm:sszzz",basic_time:"HHmmss.fffzzz",basic_time_no_millis:"HHmmsszzz",epoch_millis:"epoch_millis",epoch_second:"epoch_second"}}));r(ce);var pe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={"«":'"',"²":"2","³":"3","¹":"1","»":'"',"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"q","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƀ":"b","Ɓ":"B","Ƃ":"B","ƃ":"b","Ɔ":"O","Ƈ":"C","ƈ":"c","Ɖ":"D","Ɗ":"D","Ƌ":"D","ƌ":"d","Ǝ":"E","Ə":"A","Ɛ":"E","Ƒ":"F","ƒ":"f","Ɠ":"G","ƕ":"hv","Ɩ":"I","Ɨ":"I","Ƙ":"K","ƙ":"k","ƚ":"l","Ɯ":"M","Ɲ":"N","ƞ":"n","Ɵ":"O","Ơ":"O","ơ":"o","Ƥ":"P","ƥ":"p","ƫ":"t","Ƭ":"T","ƭ":"t","Ʈ":"T","Ư":"U","ư":"u","Ʋ":"V","Ƴ":"Y","ƴ":"y","Ƶ":"Z","ƶ":"z","ƿ":"w","DŽ":"DZ","Dž":"Dz","dž":"dz","LJ":"LJ","Lj":"Lj","lj":"lj","NJ":"NJ","Nj":"Nj","nj":"nj","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","ǝ":"e","Ǟ":"A","ǟ":"a","Ǡ":"A","ǡ":"a","Ǣ":"AE","ǣ":"ae","Ǥ":"G","ǥ":"G","Ǧ":"G","ǧ":"G","Ǩ":"K","ǩ":"k","Ǫ":"O","ǫ":"o","Ǭ":"O","ǭ":"o","ǰ":"j","DZ":"DZ","Dz":"Dz","dz":"dz","Ǵ":"G","ǵ":"g","Ƕ":"HV","Ƿ":"W","Ǹ":"N","ǹ":"n","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Ȁ":"A","ȁ":"a","Ȃ":"A","ȃ":"a","Ȅ":"E","ȅ":"e","Ȇ":"E","ȇ":"e","Ȉ":"I","ȉ":"i","Ȋ":"I","ȋ":"i","Ȍ":"O","ȍ":"o","Ȏ":"O","ȏ":"o","Ȑ":"R","ȑ":"r","Ȓ":"R","ȓ":"r","Ȕ":"U","ȕ":"u","Ȗ":"U","ȗ":"u","Ș":"S","ș":"s","Ț":"T","ț":"t","Ȝ":"Z","ȝ":"z","Ȟ":"H","ȟ":"h","Ƞ":"N","ȡ":"d","Ȣ":"OU","ȣ":"ou","Ȥ":"Z","ȥ":"z","Ȧ":"A","ȧ":"a","Ȩ":"E","ȩ":"e","Ȫ":"O","ȫ":"o","Ȭ":"O","ȭ":"o","Ȯ":"O","ȯ":"o","Ȱ":"O","ȱ":"o","Ȳ":"Y","ȳ":"y","ȴ":"l","ȵ":"n","ȶ":"t","ȷ":"j","ȸ":"db","ȹ":"qp","Ⱥ":"A","Ȼ":"C","ȼ":"c","Ƚ":"L","Ⱦ":"T","ȿ":"s","ɀ":"z","Ƀ":"B","Ʉ":"U","Ʌ":"V","Ɇ":"E","ɇ":"e","Ɉ":"J","ɉ":"j","Ɋ":"Q","ɋ":"q","Ɍ":"R","ɍ":"r","Ɏ":"Y","ɏ":"y","ɐ":"a","ɓ":"b","ɔ":"o","ɕ":"c","ɖ":"d","ɗ":"d","ɘ":"e","ə":"a","ɚ":"a","ɛ":"e","ɜ":"e","ɝ":"e","ɞ":"e","ɟ":"j","ɠ":"g","ɡ":"g","ɢ":"G","ɥ":"h","ɦ":"h","ɨ":"i","ɪ":"I","ɫ":"l","ɬ":"l","ɭ":"l","ɯ":"m","ɰ":"m","ɱ":"m","ɲ":"n","ɳ":"n","ɴ":"N","ɵ":"o","ɶ":"OE","ɼ":"r","ɽ":"r","ɾ":"r","ɿ":"r","ʀ":"R","ʁ":"R","ʂ":"s","ʄ":"j","ʇ":"t","ʈ":"t","ʉ":"u","ʋ":"v","ʌ":"v","ʍ":"w","ʎ":"y","ʏ":"Y","ʐ":"z","ʑ":"z","ʗ":"C","ʙ":"B","ʚ":"e","ʛ":"G","ʜ":"H","ʝ":"j","ʞ":"k","ʟ":"L","ʠ":"q","ʣ":"dz","ʥ":"dz","ʦ":"ts","ʨ":"tc","ʪ":"ls","ʫ":"lz","ʮ":"h","ʯ":"h","ᴀ":"A","ᴁ":"AE","ᴂ":"ae","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴆ":"D","ᴇ":"E","ᴈ":"e","ᴉ":"i","ᴊ":"J","ᴋ":"K","ᴌ":"L","ᴍ":"M","ᴎ":"N","ᴏ":"O","ᴐ":"O","ᴔ":"oe","ᴕ":"OU","ᴖ":"o","ᴗ":"o","ᴘ":"P","ᴙ":"R","ᴚ":"R","ᴛ":"T","ᴜ":"U","ᴠ":"V","ᴡ":"W","ᴢ":"Z","ᵢ":"i","ᵣ":"r","ᵤ":"u","ᵥ":"v","ᵫ":"ue","ᵬ":"b","ᵭ":"d","ᵮ":"f","ᵯ":"m","ᵰ":"n","ᵱ":"p","ᵲ":"r","ᵳ":"r","ᵴ":"s","ᵵ":"t","ᵶ":"z","ᵷ":"g","ᵹ":"g","ᵺ":"th","ᵻ":"I","ᵼ":"i","ᵽ":"p","ᵾ":"U","ᶀ":"b","ᶁ":"d","ᶂ":"f","ᶃ":"g","ᶄ":"k","ᶅ":"l","ᶆ":"m","ᶇ":"n","ᶈ":"p","ᶉ":"r","ᶊ":"s","ᶌ":"v","ᶍ":"x","ᶎ":"z","ᶏ":"a","ᶑ":"d","ᶒ":"e","ᶓ":"e","ᶔ":"e","ᶕ":"a","ᶖ":"i","ᶗ":"o","ᶙ":"u","Ḁ":"A","ḁ":"a","Ḃ":"B","ḃ":"b","Ḅ":"B","ḅ":"b","Ḇ":"B","ḇ":"b","Ḉ":"C","ḉ":"c","Ḋ":"D","ḋ":"d","Ḍ":"D","ḍ":"d","Ḏ":"D","ḏ":"d","Ḑ":"D","ḑ":"d","Ḓ":"D","ḓ":"d","Ḕ":"E","ḕ":"e","Ḗ":"E","ḗ":"e","Ḙ":"E","ḙ":"e","Ḛ":"E","ḛ":"e","Ḝ":"E","ḝ":"e","Ḟ":"F","ḟ":"f","Ḡ":"G","ḡ":"g","Ḣ":"H","ḣ":"h","Ḥ":"H","ḥ":"h","Ḧ":"H","ḧ":"h","Ḩ":"H","ḩ":"h","Ḫ":"H","ḫ":"h","Ḭ":"I","ḭ":"i","Ḯ":"I","ḯ":"i","Ḱ":"K","ḱ":"k","Ḳ":"K","ḳ":"k","Ḵ":"K","ḵ":"k","Ḷ":"L","ḷ":"l","Ḹ":"L","ḹ":"l","Ḻ":"L","ḻ":"l","Ḽ":"L","ḽ":"l","Ḿ":"M","ḿ":"m","Ṁ":"M","ṁ":"m","Ṃ":"M","ṃ":"m","Ṅ":"N","ṅ":"n","Ṇ":"N","ṇ":"n","Ṉ":"N","ṉ":"n","Ṋ":"N","ṋ":"n","Ṍ":"O","ṍ":"o","Ṏ":"O","ṏ":"o","Ṑ":"O","ṑ":"o","Ṓ":"O","ṓ":"o","Ṕ":"P","ṕ":"p","Ṗ":"P","ṗ":"p","Ṙ":"R","ṙ":"r","Ṛ":"R","ṛ":"r","Ṝ":"R","ṝ":"r","Ṟ":"R","ṟ":"r","Ṡ":"S","ṡ":"s","Ṣ":"S","ṣ":"s","Ṥ":"S","ṥ":"s","Ṧ":"S","ṧ":"s","Ṩ":"S","ṩ":"s","Ṫ":"T","ṫ":"t","Ṭ":"T","ṭ":"t","Ṯ":"T","ṯ":"t","Ṱ":"T","ṱ":"t","Ṳ":"U","ṳ":"u","Ṵ":"U","ṵ":"u","Ṷ":"U","ṷ":"u","Ṹ":"U","ṹ":"u","Ṻ":"U","ṻ":"u","Ṽ":"V","ṽ":"v","Ṿ":"V","ṿ":"v","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","Ẇ":"W","ẇ":"w","Ẉ":"W","ẉ":"w","Ẋ":"X","ẋ":"x","Ẍ":"X","ẍ":"x","Ẏ":"Y","ẏ":"y","Ẑ":"Z","ẑ":"z","Ẓ":"Z","ẓ":"z","Ẕ":"Z","ẕ":"z","ẖ":"h","ẗ":"t","ẘ":"w","ẙ":"y","ẚ":"a","ẛ":"f","ẜ":"s","ẝ":"s","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","Ỻ":"LL","ỻ":"ll","Ỽ":"V","Ỿ":"Y","ỿ":"y","‐":"-","‑":"-","‒":"-","–":"-","—":"-","‘":'"',"’":'"',"‚":'"',"‛":'"',"“":'"',"”":'"',"„":'"',"′":'"',"″":'"',"‵":'"',"‶":'"',"‸":"^","‹":'"',"›":'"',"‼":"!!","⁄":"/","⁅":"[","⁆":"]","⁇":"??","⁈":"?!","⁉":"!?","⁎":"*","⁏":";","⁒":"%","⁓":"~","⁰":"0","ⁱ":"i","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","ⁿ":"n","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","₊":"+","₋":"-","₌":"=","₍":"(","₎":")","ₐ":"a","ₑ":"e","ₒ":"o","ₓ":"x","ₔ":"a","ↄ":"c","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"19","⑳":"20","⑴":"(1)","⑵":"(2)","⑶":"(3)","⑷":"(4)","⑸":"(5)","⑹":"(6)","⑺":"(7)","⑻":"(8)","⑼":"(9)","⑽":"(10)","⑾":"(11)","⑿":"(12)","⒀":"(13)","⒁":"(14)","⒂":"(15)","⒃":"(16)","⒄":"(17)","⒅":"(18)","⒆":"(19)","⒇":"(20)","⒈":"1.","⒉":"2.","⒊":"3.","⒋":"4.","⒌":"5.","⒍":"6.","⒎":"7.","⒏":"8.","⒐":"9.","⒑":"10.","⒒":"11.","⒓":"12.","⒔":"13.","⒕":"14.","⒖":"15.","⒗":"16.","⒘":"17.","⒙":"18.","⒚":"19.","⒛":"20.","⒜":"(a)","⒝":"(b)","⒞":"(c)","⒟":"(d)","⒠":"(e)","⒡":"(f)","⒢":"(g)","⒣":"(h)","⒤":"(i)","⒥":"(j)","⒦":"(k)","⒧":"(l)","⒨":"(m)","⒩":"(n)","⒪":"(o)","⒫":"(p)","⒬":"(q)","⒭":"(r)","⒮":"(s)","⒯":"(t)","⒰":"(u)","⒱":"(v)","⒲":"(w)","⒳":"(x)","⒴":"(y)","⒵":"(z)","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓥ":"v","ⓦ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","⓪":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","❛":'"',"❜":'"',"❝":'"',"❞":'"',"❨":"(","❩":")","❪":"(","❫":")","❬":"<","❭":">","❮":'"',"❯":'"',"❰":"<","❱":">","❲":"[","❳":"]","❴":"{","❵":"}","❶":"1","❷":"2","❸":"3","❹":"4","❺":"5","❻":"6","❼":"7","❽":"8","❾":"9","❿":"10","➀":"1","➁":"2","➂":"3","➃":"4","➄":"5","➅":"6","➆":"7","➇":"8","➈":"9","➉":"10","➊":"1","➋":"2","➌":"3","➍":"4","➎":"5","➏":"6","➐":"7","➑":"8","➒":"9","➓":"10","Ⱡ":"L","ⱡ":"l","Ɫ":"L","Ᵽ":"P","Ɽ":"R","ⱥ":"a","ⱦ":"t","Ⱨ":"H","ⱨ":"h","Ⱪ":"K","ⱪ":"k","Ⱬ":"Z","ⱬ":"z","Ɱ":"M","Ɐ":"a","ⱱ":"v","Ⱳ":"W","ⱳ":"w","ⱴ":"v","Ⱶ":"H","ⱶ":"h","ⱸ":"e","ⱺ":"o","ⱻ":"E","ⱼ":"j","⸨":"((","⸩":"))","Ꜩ":"TZ","ꜩ":"tz","ꜰ":"F","ꜱ":"S","Ꜳ":"AA","ꜳ":"aa","Ꜵ":"AO","ꜵ":"ao","Ꜷ":"AU","ꜷ":"au","Ꜹ":"AV","ꜹ":"av","Ꜻ":"AV","ꜻ":"av","Ꜽ":"AY","ꜽ":"ay","Ꜿ":"c","ꜿ":"c","Ꝁ":"K","ꝁ":"k","Ꝃ":"K","ꝃ":"k","Ꝅ":"K","ꝅ":"k","Ꝇ":"L","ꝇ":"l","Ꝉ":"L","ꝉ":"l","Ꝋ":"O","ꝋ":"o","Ꝍ":"O","ꝍ":"o","Ꝏ":"OO","ꝏ":"oo","Ꝑ":"P","ꝑ":"p","Ꝓ":"P","ꝓ":"p","Ꝕ":"P","ꝕ":"p","Ꝗ":"Q","ꝗ":"q","Ꝙ":"Q","ꝙ":"q","Ꝛ":"R","ꝛ":"r","Ꝟ":"V","ꝟ":"v","Ꝡ":"VY","ꝡ":"vy","Ꝣ":"Z","ꝣ":"z","Ꝧ":"TH","ꝧ":"th","Ꝩ":"V","Ꝺ":"D","ꝺ":"d","Ꝼ":"F","ꝼ":"f","Ᵹ":"G","Ꝿ":"G","ꝿ":"g","Ꞁ":"L","ꞁ":"l","Ꞃ":"R","ꞃ":"r","Ꞅ":"s","ꞅ":"S","Ꞇ":"T","ꟻ":"F","ꟼ":"p","ꟽ":"M","ꟾ":"I","ꟿ":"M","ff":"ff","fi":"fi","fl":"fl","ffi":"ffi","ffl":"ffl","st":"st","!":"!",""":'"',"#":"#","$":"$","%":"%","&":"&","'":'"',"(":"(",")":")","*":"*","+":"+",",":",","-":"-",".":".","/":"/","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9",":":":",";":";","<":"<","=":"=",">":">","?":"?","@":"@","A":"A","B":"B","C":"C","D":"D","E":"E","F":"F","G":"G","H":"H","I":"I","J":"J","K":"K","L":"L","M":"M","N":"N","O":"O","P":"P","Q":"Q","R":"R","S":"S","T":"T","U":"U","V":"V","W":"W","X":"X","Y":"Y","Z":"Z","[":"[","\":"\\","]":"]","^":"^","_":"_","a":"a","b":"b","c":"c","d":"d","e":"e","f":"f","g":"g","h":"h","i":"i","j":"j","k":"k","l":"l","m":"m","n":"n","o":"o","p":"p","q":"q","r":"r","s":"s","t":"t","u":"u","v":"v","w":"w","x":"x","y":"y","z":"z","{":"{","}":"}","~":"~"}}));r(pe);var de=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.replaceDiacritics=s;var r,o=(r=pe)&&r.__esModule?r:{default:r};function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=function(e){switch(typeof e){case"string":return e;case"object":return Array.isArray(e)?function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])}(e):null;default:return e}};function s(e){for(var t=e?String(e):"",n=0;n<t.length;n++){var r=t.charAt(n);o.default[r]&&(t=t.replaceAll(r,o.default[r]))}return t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var l=function(e){var t=e.suggestions,r=e.currentValue,o=e.wordsToShowAfterHighlight,a={};if(r){var s=r.trim();return t.reduce((function(e,t){var r=t.label,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["label"]),c=(new DOMParser).parseFromString(r,"text/html").documentElement.textContent,p="^("+u(s)+")\\w+",d=new RegExp(p,"i"),h=d.exec(c);if(h||(p="^("+u(s)+")",h=(d=new RegExp(p,"i")).exec(c)),h){var f=c.slice(h.index,c.length).slice(s.length).split(" ").slice(0,o+1).join(" "),g=s+'<mark class="highlight">'+f+"</mark>",m=""+s+f;return a[g]?e:(a[g]=1,[].concat(i(e),[n({},l,{label:g,value:m,isPredictiveSuggestion:!0})]))}return e}),[])}return[]};t.default=function(e){var t=e.fields,r=e.suggestions,o=e.currentValue,u=e.suggestionProperties,c=void 0===u?[]:u,p=e.showDistinctSuggestions,d=void 0!==p&&p,h=e.enablePredictiveSuggestions,f=void 0!==h&&h,g=e.wordsToShowAfterHighlight,m=void 0===g?2:g,y=e.enableSynonyms,v=[],b=[],O=!1,C=function(e,t,r){if((O||o.trim().split(" ").some((function(t){return s(e).toLowerCase().includes(s(t))})))&&!b.includes(e)||r._promoted){var a={label:e,value:e,source:r},u={};Array.isArray(c)&&c.length>0&&c.forEach((function(e){t.hasOwnProperty(e)&&(u=n({},u,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t[e])))}));var l=n({},a,u);if(b=[].concat(i(b),[e]),v=[].concat(i(v),[l]),d)return!0}return!1},w=function(){r.forEach((function(e){t.forEach((function(t){!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if("object"==typeof t){var i=n.split("."),s=t[i[0]];if(t[n]){var u=t[n],l=a(u);if(l&&"string"==typeof l)return C(l,t,r)}if(Array.isArray(s)&&(s.length>1&&(s=s.filter((function(e){return e&&e.toString().toLowerCase().includes(o.toString().toLowerCase())}))),s=s[0]),s)if(i.length>1){var c=n.substring(i[0].length+1);e(s,c,r)}else{var p=a(s);if(p)return C(p,t,r)}}return!1}(e,t)}))}))};if(w(),v.length<r.length&&!O&&y&&(O=!0,w()),f){var S=l({suggestions:v,currentValue:o,wordsToShowAfterHighlight:m});v=S}if(d){var _={},T=[];return v.forEach((function(e){e.source&&e.source._id&&(_[e.source._id]||(T.push(e),_[e.source._id]=!0))})),T}return v}}));r(de);var he=de.replaceDiacritics,fe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.suggestionTypes=t.getTopSuggestions=t.withClickIds=t.getCompositeAggsQuery=t.getAggsQuery=t.extractQueryFromDefaultQuery=t.updateInternalQuery=t.getSearchState=t.getOptionsFromQuery=t.parseHits=t.handleA11yAction=t.getInnerKey=t.getClassName=t.checkSomePropChange=t.checkPropChange=t.updateDefaultQuery=t.updateCustomQuery=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isEqual=c,t.debounce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,r=null,o=null,i=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(i,t)}},t.getQueryOptions=function(e){var t={};void 0!==e.size&&(t.size=e.size);if(e.includeFields||e.excludeFields){var n={};e.includeFields&&(n.includes=e.includeFields),e.excludeFields&&(n.excludes=e.excludeFields),t._source=n}return t},t.buildQuery=function(e,t,r,o){var i=null,a=null;e in t&&(i=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var i=d(p(o),t[o].map((function(t){return"string"!=typeof t?e(t,n):t in n?n[t]:null})).filter((function(e){return!!e})));i&&(r=[].concat(s(r),[i]))}else if("string"==typeof t[o]){var a=d(p(o),n[t[o]]);a&&(r=[].concat(s(r),[a]))}else if("object"==typeof t[o]&&null!==t[o]){var u=e(t[o],n);u&&(r=[].concat(s(r),[u]))}})),Array.isArray(r)&&r.length)return{bool:{must:r}};if(r&&Object.keys(r).length)return r;return null}(t[e],r),a=function e(t,r,o){var i={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){r[e]&&(i=n({},i,r[e]))})):"string"==typeof t[o]?r[t[o]]&&(i=n({},i,r[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(i=n({},i,e(t[o],r)))})),r[o]&&(i=n({},i,r[o]));return i}(t[e],o,e));return{queryObj:i,options:a}},t.pushToAndClause=function e(t,r){var o=n({},t);if(o.and)return Array.isArray(o.and)?(o.and=[].concat(s(o.and),[r]),o):"string"==typeof o.and?(o.and=[o.and,r],o):(o.and=e(o.and,r),o);return n({},o,{and:r})},t.checkValueChange=function(e,t,n,r){var o=t;Array.isArray(t)&&!t.length&&(o=null);var i=function(t){console.warn(e+" - beforeValueChange rejected the promise with ",t)};if(n)try{var a=n(o);a instanceof Promise?a.then(r).catch(i):r()}catch(e){i(e)}else r()},t.getAggsOrder=h,t.formatDate=function(e,t){if(t.parseDate)return t.parseDate(e,t);switch(t.queryFormat){case"epoch_millis":return e.getTime();case"epoch_second":return Math.floor(e.getTime()/1e3);default:return r.default[t.queryFormat]?e.toString(r.default[t.queryFormat]):e.getTime()}},t.getResultStats=function(e){var t=e.total,r=e.size,o=e.time,i=e.hidden,a=e.promotedResults;return n({numberOfResults:t},r>0?{numberOfPages:Math.ceil(t/r)}:null,{time:o||0,hidden:i,promoted:a&&a.length})},t.extractFieldsFromSource=C,t.normalizeDataField=w,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,i=n.promotedResults,a=n.enablePredictiveSuggestions,u=[];n.dataField?u=w(n.dataField).map((function(e){return e.field})):e&&Array.isArray(e)&&e.length>0&&e[0]&&e[0]._source&&(u=C(e[0]._source));var l=m(e,!1),c=m(i,!1);if(c&&c.length){var p=c.map((function(e){return e._id})).filter(Boolean);p&&(l=l.filter((function(e){return!p.includes(e._id)}))),l=[].concat(s(c),s(l))}var d=(0,o.default)({fields:u,suggestions:l,currentValue:t.toLowerCase(),showDistinctSuggestions:n.showDistinctSuggestions,enablePredictiveSuggestions:a,enableSynonyms:n.enableSynonyms});if(r)return d.map((function(e){return r(e)}));return d},t.isValidDateRangeQueryFormat=function(e){return Object.keys(r.default).includes(e)};var r=i(ce),o=i(de);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.updateCustomQuery=function(e,t,n){t.customQuery&&"function"==typeof t.customQuery&&t.setCustomQuery(e,t.customQuery(n,t))};var l=t.updateDefaultQuery=function(e,t,n){t.defaultQuery&&"function"==typeof t.defaultQuery&&t.setDefaultQuery(e,t.defaultQuery(n,t))};function c(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;if(e.constructor!==t.constructor)return!1;for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))return!1;if(e[n]!==t[n]){if("object"!=typeof e[n])return!1;if(!c(e[n],t[n]))return!1}}for(var r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}function p(e){return"and"===e?"must":"or"===e?"should":"must_not"}function d(e,t){var r=null;return(Array.isArray(t)&&t.length||!Array.isArray(t)&&t)&&(r={bool:u({},e,t)}),"should"===e&&r&&(r={bool:n({},r.bool,{minimum_should_match:1})}),r}function h(e){return"count"===e?{_count:"desc"}:{_term:e}}var f=t.checkPropChange=function(e,t,n){return!c(e,t)&&(n(),!0)},g=(t.checkSomePropChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];n.some((function(n){return f(e[n],t[n],r)}))},t.getClassName=function(e,t){return e&&e[t]||""},t.getInnerKey=function(e,t){return e&&e[t]||{}},t.handleA11yAction=function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())},function(e){var t=n({},e);return t.highlight&&Object.keys(t.highlight).forEach((function(e){var r=t.highlight[e][0];t._source=n({},t._source,u({},e,r))})),t}),m=t.parseHits=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null;return e&&(r=[].concat(s(e)).map((function(e){var r=n({},e);return t&&(r=g(e)),Object.keys(r).filter((function(e){return"_source"!==e})).reduce((function(e,t){return e[t]=r[t],e}),n({highlight:r.highlight||{}},r._source))}))),r};var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query;var t=a(e,["query"]);return Object.keys(t).length?t:null}return null};function v(e,t,r){Object.keys(e).forEach((function(o){var i=e[o]||{},a=i.hidden,s=i.total,u=i.time;t[o]=n({},t[o],{resultStats:n({},t[o].resultStats,{numberOfResults:s,time:u,promoted:r[o]&&r[o].length,hidden:a||0})})}))}t.getOptionsFromQuery=y;t.getSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.selectedValues,o=e.queryLog,i=e.dependencyTree,a=e.props,s=e.hits,l=e.aggregations,c=e.isLoading,p=e.error,d=e.promotedResults,h=e.settings,f=e.customData,g=e.rawData,m={},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return Object.keys(e).forEach((function(r){m[r]=n({},m[r],t?u({},t,e[r]):e[r])}))};return y(a),Object.keys(r).forEach((function(e){var t=m[e],o=r[e];o&&(m[e]=n({},t,n({title:o.label,componentType:o.componentType,value:o.value},o.category&&{category:o.category},{URLParams:o.URLParams})))})),t||(y(o),y(s,"hits"),y(l,"aggregations"),y(c,"isLoading"),y(p,"error"),y(d,"promotedData"),y(h,"settings"),y(f,"customData"),y(g,"rawData"),v(s,m,d)),y(i,"react"),m},t.updateInternalQuery=function(e,t,r,o,i,a){var s=o.defaultQuery,u=void 0,c=void 0;if(s){var p=s(r,o);c=(p||{}).query,u=y(p),l(e,o,r)}o.setQueryOptions(e,n({},u,t||i)),c&&o.updateQuery(n({componentId:e,query:c,value:r},a))};var b=function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var i=a(o,["query"]);i&&(n=i)}}return n};t.extractQueryFromDefaultQuery=b;t.getAggsQuery=function(e,t,r){var o=t,i=r.dataField,a=r.size,s=r.sortBy,l=r.showMissing,c=r.missingLabel;return o.size=0,o.aggs=u({},i,{terms:n({field:i,size:a,order:h(s||"count")},l?{missing:c}:{})}),r.nestedField&&(o.aggs={reactivesearch_nested:{nested:{path:r.nestedField},aggs:o.aggs}}),n({},o,b(r,e))},t.getCompositeAggsQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,r=void 0===t?{}:t,o=e.props,i=e.after,a=void 0===i?null:i,s=e.showTopHits,l=void 0!==s&&s,c=e.value,p=r,d=o.dataField,h=o.size,f=o.sortBy,g=o.showMissing,m=o.aggregationField,y=m||d,v="count"===f?{}:{order:f};return p.aggs=u({},y,n({composite:n({sources:[u({},y,{terms:n({field:y},v,g?{missing_bucket:!0}:{})})],size:h},a)},l?{aggs:u({},y,{top_hits:{size:1}})}:{})),p.size=0,o.nestedField&&(p.aggs={reactivesearch_nested:{nested:{path:o.nestedField},aggs:p.aggs}}),n({},p,b(o,c))};var O=t.withClickIds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e,t){return n({},e,{_click_id:t})}))};function C(e){var t=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1],a=r?r+"."+i:i;return Number.isNaN(parseInt(i,10))||(a=r||i),t[i]&&"object"==typeof t[i]?n({},o,e(t[i],a)):n({},o,u({},a,!0))}),[])}(e);return Object.keys(t)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"string"==typeof e?[{field:e,weight:t.length?t[0]:void 0}]:Array.isArray(e)?e.map((function(e,n){var r={};return"string"==typeof e?(r.field=e,t.length>n&&(r.weight=t[n])):"object"==typeof e&&e&&e.field&&(r.field=e.field,r.weight=e.weight),r})):"object"==typeof e&&e?[{field:e.field,weight:e.weight}]:[]}t.getTopSuggestions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],r=m(e,!1),i=(0,o.default)({fields:["key","key.autosuggest","key.search"],suggestions:r||[],currentValue:t.toLowerCase(),showDistinctSuggestions:n});return O(i)};t.suggestionTypes={Popular:"popular",Index:"index",Recent:"recent",Promoted:"promoted"}}));r(fe);fe.suggestionTypes,fe.getTopSuggestions;var ge=fe.withClickIds,me=(fe.getCompositeAggsQuery,fe.getAggsQuery,fe.extractQueryFromDefaultQuery,fe.updateInternalQuery,fe.getSearchState,fe.getOptionsFromQuery,fe.parseHits,fe.handleA11yAction,fe.getInnerKey,fe.getClassName,fe.checkSomePropChange,fe.checkPropChange,fe.updateDefaultQuery,fe.updateCustomQuery,fe.isEqual),ye=(fe.debounce,fe.getQueryOptions),ve=fe.buildQuery,be=fe.pushToAndClause,Oe=(fe.checkValueChange,fe.getAggsOrder,fe.formatDate,fe.getResultStats,fe.extractFieldsFromSource,fe.normalizeDataField,fe.handleOnSuggestions,fe.isValidDateRangeQueryFormat,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.setValue=function(e,t,n,r,o,i,a,s){return function(u,l){var c=l().urlValues,p=void 0;(0,fe.isEqual)(c[e],t)&&(p="URL"),u({type:b.SET_VALUE,component:e,reference:p,value:t,label:n,showFilter:r,URLParams:o,componentType:i,category:a,meta:s})}},t.resetValuesToDefault=function(){return function(e,t){var r=t(),o=r.selectedValues,i=r.props,a={},s=void 0;Object.keys(o).forEach((function(e){return i[e]&&i[e].componentType&&i[e].defaultValue?[P.componentTypes.rangeSlider,P.componentTypes.rangeInput,P.componentTypes.ratingsFilter,P.componentTypes.dateRange].includes(i[e].componentType)?s="object"==typeof i[e].defaultValue?[i[e].defaultValue.start,i[e].defaultValue.end]:null:[P.componentTypes.multiDropdownList,P.componentTypes.multiDataList,P.componentTypes.multiList,P.componentTypes.singleDataList,P.componentTypes.singleDropdownList,P.componentTypes.singleList,P.componentTypes.tagCloud,P.componentTypes.toggleButton,P.componentTypes.multiDropdownRange,P.componentTypes.multiRange,P.componentTypes.singleDropdownRange,P.componentTypes.singleRange,P.componentTypes.dataSearch,P.componentTypes.datePicker].includes(i[e].componentType)?s=i[e].defaultValue:[P.componentTypes.categorySearch].includes(i[e].componentType)&&(s=i[e].defaultValue?i[e].defaultValue.term:""):s=null,(0,fe.isEqual)(o[e].value,s)||(a=n({},a,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},e,n({},o[e],{value:s})))),!0})),e({type:b.RESET_TO_DEFAULT,defaultValues:a})}},t.setInternalValue=function(e,t,n,r,o){return{type:b.SET_INTERNAL_VALUE,component:e,value:t,componentType:n,category:r,meta:o}},t.patchValue=function(e,t){return{type:b.PATCH_VALUE,component:e,payload:t}},t.clearValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:b.CLEAR_VALUES,resetValues:e}}})));r(Oe);Oe.setValue,Oe.resetValuesToDefault,Oe.setInternalValue,Oe.patchValue,Oe.clearValues;var Ce=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setRawData=function(e,t){return{type:b.SET_RAW_DATA,component:e,response:t}},t.setLoading=function(e,t){return{type:b.SET_LOADING,component:e,isLoading:t}},t.setError=function(e,t){return{type:b.SET_ERROR,component:e,error:t}},t.setTimestamp=function(e,t){return{type:b.SET_TIMESTAMP,component:e,timestamp:t}},t.setSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:b.SET_SEARCH_ID,searchId:e}},t.setSuggestionsSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:b.SET_SUGGESTIONS_SEARCH_ID,searchId:e}},t.setQuery=function(e,t){return{type:b.SET_QUERY,component:e,query:t}},t.setCustomQuery=function(e,t){return{type:b.SET_CUSTOM_QUERY,component:e,query:t}},t.setDefaultQuery=function(e,t){return{type:b.SET_DEFAULT_QUERY,component:e,query:t}},t.setCustomHighlightOptions=function(e,t){return{type:b.SET_CUSTOM_HIGHLIGHT_OPTIONS,component:e,data:t}},t.updateQueryOptions=function(e,t){return{type:b.SET_QUERY_OPTIONS,component:e,options:t}},t.logQuery=function(e,t){return{type:b.LOG_QUERY,component:e,query:t}},t.logCombinedQuery=function(e,t){return{type:b.LOG_COMBINED_QUERY,component:e,query:t}},t.setHeaders=function(e){return{type:b.SET_HEADERS,headers:e}},t.setPromotedResults=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:b.SET_PROMOTED_RESULTS,results:e,component:t}},t.setPopularSuggestions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:b.SET_POPULAR_SUGGESTIONS,suggestions:e,component:t}},t.setDefaultPopularSuggestions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:b.SET_DEFAULT_POPULAR_SUGGESTIONS,suggestions:e,component:t}},t.setCustomData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:b.SET_CUSTOM_DATA,data:e,component:t}},t.setAppliedSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:b.SET_APPLIED_SETTINGS,data:e,component:t}},t.setQueryListener=function(e,t,n){return{type:b.SET_QUERY_LISTENER,component:e,onQueryChange:t,onError:n}}}));r(Ce);Ce.setRawData,Ce.setLoading,Ce.setError,Ce.setTimestamp,Ce.setSearchId,Ce.setSuggestionsSearchId,Ce.setQuery,Ce.setCustomQuery,Ce.setDefaultQuery,Ce.setCustomHighlightOptions,Ce.updateQueryOptions,Ce.logQuery,Ce.logCombinedQuery,Ce.setHeaders,Ce.setPromotedResults,Ce.setPopularSuggestions,Ce.setDefaultPopularSuggestions,Ce.setCustomData,Ce.setAppliedSettings,Ce.setQueryListener;var we=o((function(e,t){function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:b.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:b.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:b.UPDATE_COMPOSITE_AGGS,component:e,aggregations:t,append:n}},t.updateHits=r,t.saveQueryToHits=function(e,t){return{type:b.SET_QUERY_TO_HITS,component:e,query:t}},t.mockDataForTesting=function(e,t){return function(o){t.hasOwnProperty("aggregations")&&o(n(e,t.aggregations)),t.hasOwnProperty("hits")&&o(r(e,t,t.time||void 0))}}}));r(we);we.updateAggs,we.updateCompositeAggs,we.updateHits,we.saveQueryToHits,we.mockDataForTesting;var Se=o((function(e){
|
|
2
2
|
/**
|
|
3
3
|
* @preserve XDate v@VERSION
|
|
4
4
|
* Docs & Licensing: http://arshaw.com/xdate/
|
|
5
5
|
*/
|
|
6
|
-
!function(t,n,r,o){var i=["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds","Day","Year"],a=["Years","Months","Days"],s=[12,31,24,60,60,1e3,1],u=new RegExp("(([a-zA-Z])\\2*)|(\\((('.*?'|\\(.*?\\)|.)*?)\\))|('(.*?)')"),l=t.UTC,c=t.prototype.toUTCString,p=d.prototype;function d(){return h(this instanceof d?this:new d,arguments)}function h(e,n){var r,o=n.length;if(j(n[o-1])&&(r=n[--o],n=Q(n,0,o)),o)if(1==o){var i=n[0];i instanceof t?e[0]=new t(i.getTime()):!function(e){return"number"==typeof e}(i)?i instanceof d?e[0]=function(e){var n=new t(e[0].getTime());f(e)&&(n.toString=c);return n}(i):V(i)&&(e[0]=new t(0),e=function(e,n,r){for(var o,i=d.parsers,a=0;a<i.length;a++)if(o=i[a](e,n,r))return o;return r[0]=new t(e),r}(i,r||!1,e)):e[0]=new t(i)}else e[0]=new t(l.apply(t,n)),r||(e[0]=$(e[0]));else e[0]=new t;return j(r)&&g(e,r),e}function f(e){return e[0].toString===c}function g(e,n,r){var o;return n?f(e)||(r&&(e[0]=(o=e[0],new t(l(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds())))),e[0].toString=c):f(e)&&(e[0]=r?$(e[0]):new t(e[0].getTime())),e}function m(e,t,n,r,o){var i,a=x(A,e[0],o),s=x(P,e[0],o),u=!1;2==r.length&&j(r[1])&&(u=r[1],r=[n]),i=1==t?(n%12+12)%12:a(1),s(t,r),u&&a(1)!=i&&(s(1,[a(1)-1]),s(2,[R(a(0),a(1))]))}function y(e,t,r){e=e.clone().setUTCMode(!0,!0),t=d(t).setUTCMode(!0,!0);var o=0;if(0==r||1==r){for(var i=6;i>=r;i--)o/=s[i],o+=A(t,!1,i)-A(e,!1,i);1==r&&(o+=12*(t.getFullYear()-e.getFullYear()))}else if(2==r){var a=e.toDate().setUTCHours(0,0,0,0),u=t.toDate().setUTCHours(0,0,0,0);o=n.round((u-a)/864e5)+(t-u-(e-a))/864e5}else o=(t-e)/[36e5,6e4,1e3,1][r-3];return o}function v(e){return r=e(0),o=e(1),i=e(2),a=new t(l(r,o,i)),s=C(b(r,o,i)),n.floor(n.round((a-s)/864e5)/7)+1;var r,o,i,a,s}function b(e,n,r){var o=new t(l(e,n,r));return o<C(e)?e-1:o>=C(e+1)?e+1:e}function C(e){var n=new t(l(e,0,4));return n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+6)%7),n}function O(e,t,n,r){var o=x(A,e,r),i=x(P,e,r);void 0===n&&(n=b(o(0),o(1),o(2)));var a=C(n);r||(a=$(a)),e.setTime(a.getTime()),i(2,[o(2)+7*(t-1)])}function w(e,t,n,r,o){var i=d.locales,a=i[d.defaultLocale]||{},s=x(A,e,o);return n=(V(n)?i[n]:n)||{},S(e,t,(function(e){if(r)for(var t=(7==e?2:e)-1;t>=0;t--)r.push(s(t));return s(e)}),(function(e){return n[e]||a[e]}),o)}function S(e,t,n,r,o){for(var i,a,s="";i=t.match(u);)s+=t.substr(0,i.index),i[1]?s+=_(e,i[1],n,r,o):i[3]?(a=S(e,i[4],n,r,o),parseInt(a.replace(/\D/g,""),10)&&(s+=a)):s+=i[7]||"'",t=t.substr(i.index+i[0].length);return s+t}function _(e,t,n,r,o){for(var i,a=t.length,s="";a>0;)void 0!==(i=T(e,t.substr(0,a),n,r,o))?(s+=i,a=(t=t.substr(a)).length):a--;return s+t}function T(e,t,r,o,i){var a=d.formatters[t];if(V(a))return S(e,a,r,o,i);if("function"==typeof a)return a(e,i||!1,o);switch(t){case"fff":return D(r(6),3);case"s":return r(5);case"ss":return D(r(5));case"m":return r(4);case"mm":return D(r(4));case"h":return r(3)%12||12;case"hh":return D(r(3)%12||12);case"H":return r(3);case"HH":return D(r(3));case"d":return r(2);case"dd":return D(r(2));case"ddd":return o("dayNamesShort")[r(7)]||"";case"dddd":return o("dayNames")[r(7)]||"";case"M":return r(1)+1;case"MM":return D(r(1)+1);case"MMM":return o("monthNamesShort")[r(1)]||"";case"MMMM":return o("monthNames")[r(1)]||"";case"yy":return(r(0)+"").substring(2);case"yyyy":return r(0);case"t":return E(r,o).substr(0,1).toLowerCase();case"tt":return E(r,o).toLowerCase();case"T":return E(r,o).substr(0,1);case"TT":return E(r,o);case"z":case"zz":case"zzz":return i?"Z":function(e,t){var r=e.getTimezoneOffset(),o=r<0?"+":"-",i=n.floor(n.abs(r)/60),a=n.abs(r)%60,s=i;"zz"==t?s=D(i):"zzz"==t&&(s=D(i)+":"+D(a));return o+s}(e,t);case"w":return v(r);case"ww":return D(v(r));case"S":var s=r(2);return s>10&&s<20?"th":["st","nd","rd"][s%10-1]||"th"}}function E(e,t){return e(3)<12?t("amDesignator"):t("pmDesignator")}function I(e){return!isNaN(e[0].getTime())}function A(e,t,n){return e["get"+(t?"UTC":"")+i[n]]()}function P(e,t,n,r){e["set"+(t?"UTC":"")+i[n]].apply(e,r)}function $(e){return new t(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function R(e,n){return 32-new t(l(e,n,32)).getUTCDate()}function k(e){return function(){return e.apply(void 0,[this].concat(Q(arguments)))}}function x(e){var t=Q(arguments,1);return function(){return e.apply(void 0,t.concat(Q(arguments)))}}function Q(e,t,n){return r.prototype.slice.call(e,t||0,void 0===n?e.length:n)}function L(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function V(e){return"string"==typeof e}function j(e){return"boolean"==typeof e}function D(e,t){for(t=t||2,e+="";e.length<t;)e="0"+e;return e}p.length=1,p.splice=r.prototype.splice,p.getUTCMode=k(f),p.setUTCMode=k(g),p.getTimezoneOffset=function(){return f(this)?0:this[0].getTimezoneOffset()},L(i,(function(e,t){p["get"+e]=function(){return A(this[0],f(this),t)},8!=t&&(p["getUTC"+e]=function(){return A(this[0],!0,t)}),7!=t&&(p["set"+e]=function(e){return m(this,t,e,arguments,f(this)),this},8!=t&&(p["setUTC"+e]=function(e){return m(this,t,e,arguments,!0),this},p["add"+(a[t]||e)]=function(e,r){return function e(t,r,o,a){o=Number(o);var u=n.floor(o);t["set"+i[r]](t["get"+i[r]]()+u,a||!1),u!=o&&r<6&&e(t,r+1,(o-u)*s[r],a)}(this,t,e,r),this},p["diff"+(a[t]||e)]=function(e){return y(this,e,t)}))})),p.getWeek=function(){return v(x(A,this,!1))},p.getUTCWeek=function(){return v(x(A,this,!0))},p.setWeek=function(e,t){return O(this,e,t,!1),this},p.setUTCWeek=function(e,t){return O(this,e,t,!0),this},p.addWeeks=function(e){return this.addDays(7*Number(e))},p.diffWeeks=function(e){return y(this,e,2)/7},d.parsers=[function(e,n,r){var o=e.match(/^(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/);if(o){var i=new t(l(o[1],o[3]?o[3]-1:0,o[5]||1,o[7]||0,o[8]||0,o[10]||0,o[12]?1e3*Number("0."+o[12]):0));return o[13]?o[14]&&i.setUTCMinutes(i.getUTCMinutes()+("-"==o[15]?1:-1)*(60*Number(o[16])+(o[18]?Number(o[18]):0))):n||(i=$(i)),r.setTime(i.getTime())}}],d.parse=function(e){return+d(""+e)},p.toString=function(e,t,n){return void 0!==e&&I(this)?w(this,e,t,n,f(this)):this[0].toString()},p.toUTCString=p.toGMTString=function(e,t,n){return void 0!==e&&I(this)?w(this,e,t,n,!0):this[0].toUTCString()},p.toISOString=function(){return this.toUTCString("yyyy-MM-dd'T'HH:mm:ss(.fff)zzz")},d.defaultLocale="",d.locales={"":{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],amDesignator:"AM",pmDesignator:"PM"}},d.formatters={i:"yyyy-MM-dd'T'HH:mm:ss(.fff)",u:"yyyy-MM-dd'T'HH:mm:ss(.fff)zzz"},L(["getTime","valueOf","toDateString","toTimeString","toLocaleString","toLocaleDateString","toLocaleTimeString","toJSON"],(function(e){p[e]=function(){return this[0][e]()}})),p.setTime=function(e){return this[0].setTime(e),this},p.valid=k(I),p.clone=function(){return new d(this)},p.clearTime=function(){return this.setHours(0,0,0,0)},p.toDate=function(){return new t(this[0].getTime())},d.now=function(){return(new t).getTime()},d.today=function(){return(new d).clearTime()},d.UTC=l,d.getDaysInMonth=R,e.exports&&(e.exports=d)}(Date,Math,Array)})),_e=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getDependentQueries=t.extractPropsFromState=t.getValidInterval=t.getRSQuery=t.hasPaginationSupport=t.isComponentUsesLabelAsValue=t.isSearchComponent=t.isDRSRangeComponent=t.getHistogramComponentID=t.getInternalComponentID=t.isInternalComponent=t.getNormalizedField=t.componentToTypeMap=void 0;var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.flatReactProp=T;var o=a(Se),i=a(ce);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=t.componentToTypeMap=(u(n={},P.componentTypes.reactiveList,P.queryTypes.search),u(n,P.componentTypes.dataSearch,P.queryTypes.search),u(n,P.componentTypes.categorySearch,P.queryTypes.search),u(n,P.componentTypes.searchBox,P.queryTypes.suggestion),u(n,P.componentTypes.singleList,P.queryTypes.term),u(n,P.componentTypes.multiList,P.queryTypes.term),u(n,P.componentTypes.singleDataList,P.queryTypes.term),u(n,P.componentTypes.singleDropdownList,P.queryTypes.term),u(n,P.componentTypes.multiDataList,P.queryTypes.term),u(n,P.componentTypes.multiDropdownList,P.queryTypes.term),u(n,P.componentTypes.tagCloud,P.queryTypes.term),u(n,P.componentTypes.toggleButton,P.queryTypes.term),u(n,P.componentTypes.numberBox,P.queryTypes.term),u(n,P.componentTypes.datePicker,P.queryTypes.range),u(n,P.componentTypes.dateRange,P.queryTypes.range),u(n,P.componentTypes.dynamicRangeSlider,P.queryTypes.range),u(n,P.componentTypes.singleDropdownRange,P.queryTypes.range),u(n,P.componentTypes.multiDropdownRange,P.queryTypes.range),u(n,P.componentTypes.singleRange,P.queryTypes.range),u(n,P.componentTypes.multiRange,P.queryTypes.range),u(n,P.componentTypes.rangeSlider,P.queryTypes.range),u(n,P.componentTypes.ratingsFilter,P.queryTypes.range),u(n,P.componentTypes.rangeInput,P.queryTypes.range),u(n,P.componentTypes.geoDistanceDropdown,P.queryTypes.geo),u(n,P.componentTypes.geoDistanceSlider,P.queryTypes.geo),u(n,P.componentTypes.reactiveMap,P.queryTypes.geo),n),c=[P.componentTypes.multiRange,P.componentTypes.multiDropdownRange],p=[P.componentTypes.dateRange,P.componentTypes.datePicker],d=[P.componentTypes.categorySearch,P.componentTypes.dataSearch,P.componentTypes.searchBox],h=[P.componentTypes.singleList,P.componentTypes.multiList,P.componentTypes.singleDropdownList,P.componentTypes.multiDropdownList],f=t.getNormalizedField=function(e){return e&&!Array.isArray(e)?[e]:e},g=t.isInternalComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__internal")},m=t.getInternalComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__internal"},y=t.getHistogramComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__histogram__internal"},v=t.isDRSRangeComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__range__internal")},b=t.isSearchComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.includes(e)},C=t.isComponentUsesLabelAsValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e===P.componentTypes.multiDataList||e===P.componentTypes.singleDataList},O=t.hasPaginationSupport=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return h.includes(e)},w=t.getRSQuery=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&e){var o=t.type?t.type:l[t.componentType];return b(t.componentType)||t.dataField?r({id:e,type:o,dataField:f(t.dataField),execute:n,react:t.react,highlight:t.highlight,highlightField:f(t.highlightField),fuzziness:t.fuzziness,searchOperators:t.searchOperators,includeFields:t.includeFields,excludeFields:t.excludeFields,size:t.size,aggregationSize:t.aggregationSize,from:t.from,queryFormat:t.queryFormat,sortBy:t.sortBy,fieldWeights:f(t.fieldWeights),includeNullValues:t.includeNullValues,aggregationField:t.aggregationField||void 0,categoryField:t.categoryField||void 0,missingLabel:t.missingLabel||void 0,showMissing:t.showMissing,nestedField:t.nestedField||void 0,interval:t.interval,customHighlight:t.customHighlight,customQuery:t.customQuery,defaultQuery:t.defaultQuery,value:t.value,categoryValue:t.categoryValue||void 0,after:t.after||void 0,aggregations:t.aggregations||void 0,enableSynonyms:t.enableSynonyms,selectAllLabel:t.selectAllLabel,pagination:t.pagination,queryString:t.queryString,distinctField:t.distinctField,distinctFieldConfig:t.distinctFieldConfig,index:t.index},o===P.queryTypes.suggestion?{enablePopularSuggestions:t.enablePopularSuggestions,enableRecentSuggestions:t.enableRecentSuggestions,popularSuggestionsConfig:t.popularSuggestionsConfig,recentSuggestionsConfig:t.recentSuggestionsConfig,applyStopwords:t.applyStopwords,customStopwords:t.customStopwords,enablePredictiveSuggestions:t.enablePredictiveSuggestions}:{},{calendarInterval:t.calendarInterval}):null}return null},S=t.getValidInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Math.ceil((t.end-t.start)/100)||1;return e?e<n?n:e:n},_=t.extractPropsFromState=function(e,t,n){var a=e.props[t];if(!a)return null;var s=l[a.componentType],u=e.selectedValues[t]||e.internalValues[t],d=null!=u?u.value:void 0,h=a.queryFormat,f=void 0,g=a.interval,w=l[a.componentType],_=a.dataField,T=void 0,E=void 0,I=a.from;if(s===P.queryTypes.term)if(a.showLoadMore&&O(a.componentType)&&(E=!0),null!=d&&"object"==typeof d&&d.value)d=d.value;else if(Array.isArray(d)){var A=[];d.forEach((function(e){null!=e&&"object"==typeof e&&e.value?A.push(e.value):A.push(e)})),d=A}if(s===P.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 $=m(t),R=e.internalValues[$];if(!R){var k=y(t);R=e.internalValues[k]}R&&Array.isArray(R.value)&&(d={start:R.value[0],end:R.value[1]},g=S(g,d))}v(t)?T=["min","max"]:a.showHistogram&&(T=["histogram"]),a.componentType!==P.componentTypes.dynamicRangeSlider&&a.componentType!==P.componentTypes.rangeSlider||(f=Object.keys(i.default).includes(h)?a.calendarInterval||"month":void 0,d&&(d=(0,fe.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,fe.formatDate)(new o.default(d.start),a),end:(0,fe.formatDate)(new o.default(d.end),a)}:{start:parseFloat(d.start),end:parseFloat(d.end)})),p.includes(a.componentType)&&(h="or",d&&("string"==typeof d?d={start:(0,fe.formatDate)(new o.default(d).addHours(-24),a),end:(0,fe.formatDate)(new o.default(d),a)}:Array.isArray(d)&&(d=d.map((function(e){return{start:(0,fe.formatDate)(new o.default(e).addHours(-24),a),end:(0,fe.formatDate)(new o.default(e),a)}})))))}if(s===P.queryTypes.geo){d=void 0;var x=e.selectedValues[t]||e.internalValues[t]||e.internalValues[m(t)];x&&x.meta&&(x.meta.distance&&x.meta.coordinates&&(d={distance:x.meta.distance,location:x.meta.coordinates},a.unit&&(d.unit=a.unit)),x.meta.mapBoxBounds&&x.meta.mapBoxBounds.top_left&&x.meta.mapBoxBounds.bottom_right&&(d={geoBoundingBox:{topLeft:x.meta.mapBoxBounds.top_left[1]+", "+x.meta.mapBoxBounds.top_left[0],bottomRight:x.meta.mapBoxBounds.bottom_right[1]+", "+x.meta.mapBoxBounds.bottom_right[0]}}))}if(a.componentType===P.componentTypes.numberBox&&("exact"===h?w="term":(w="range",d="lte"===h?{end:d,boost:2}:{start:d,boost:2}),h="or"),a.componentType===P.componentTypes.reactiveComponent&&(w="term",_="reactive_component_field",d=void 0),b(a.componentType)&&!d&&(d=""),C(a.componentType)){var Q=a.data,L=[];d&&Array.isArray(d)?L=d:d&&"string"==typeof d&&(L=[d]);var V=[];L.length&&Q&&Array.isArray(Q)&&L.forEach((function(e){var t=Q.find((function(t){return t.label===e}));t&&t.value&&V.push(t.value)})),d=V.length?V:void 0}return a.componentType===P.componentTypes.reactiveList&&(d>0&&(I=(d-1)*(a.size||10)),d=void 0),r({},a,{calendarInterval:f,dataField:_,queryFormat:h,type:w,aggregations:T,interval:g,react:e.dependencyTree?e.dependencyTree[t]:void 0,customQuery:e.customQueries?e.customQueries[t]:void 0,defaultQuery:e.defaultQueries?e.defaultQueries[t]:void 0,customHighlight:e.customHighlightOptions?e.customHighlightOptions[t]:void 0,categoryValue:e.internalValues[t]?e.internalValues[t].category:void 0,value:a.componentType===P.componentTypes.searchBox?d||void 0:d,pagination:E,from:I},n)};function T(e,t){var n=[];return function e(t){t&&Object.keys(t)&&Object.keys(t).forEach((function(r){t[r]&&("string"==typeof t[r]?n=[].concat(s(n),[t[r]]):Array.isArray(t[r])?n=[].concat(s(n),s(t[r])):"object"==typeof t[r]&&e(t[r]))}))}(e),n=n.filter((function(e){return e!==t}))}t.getDependentQueries=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={},i=T(e.dependencyTree[t],t);return i.forEach((function(t){var i=t,a=e.customQueries[i];if(!g(i)){var s=e.selectedValues[i]||e.internalValues[i];if((s||a)&&!o[i]){var u=!1;Array.isArray(n)&&n.includes(i)&&(u=!0);var l=w(i,_(e,i,r({},e.props[i].componentType===P.componentTypes.searchBox?r({},!1===u?{type:P.queryTypes.search}:{},s.category?{categoryValue:s.category}:{}):{})),u);l&&(o[i]=l)}}})),o}}));r(_e);var Te=_e.getDependentQueries,Ee=_e.extractPropsFromState,Ie=(_e.getValidInterval,_e.getRSQuery),Ae=(_e.hasPaginationSupport,_e.isComponentUsesLabelAsValue,_e.isSearchComponent,_e.isDRSRangeComponent,_e.getHistogramComponentID,_e.getInternalComponentID),Pe=(_e.isInternalComponent,_e.getNormalizedField,_e.componentToTypeMap,_e.flatReactProp,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSuggestionQuery=t.isPropertyDefined=t.handleResponseMSearch=t.handleResponse=t.handleError=t.getQuerySuggestionsId=t.isComponentActive=t.handleTransformResponse=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.executeQueryListener=function(e,t,n){e&&e.onQueryChange&&e.onQueryChange(t,n)};var r=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)}))},o=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)},i=t.getQuerySuggestionsId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__suggestions"},a=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,i=void 0===r?null:r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},s=arguments[2],u=a(),l=u.queryListener;try{console.error(JSON.stringify(i))}catch(e){console.error(i)}n.forEach((function(e){o(a,e)&&(l[e]&&l[e].onError&&l[e].onError(i),s((0,Oe.setError)(e,i)),s((0,Oe.setLoading)(e,!1)))}))};t.handleResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.res,i=e.orderOfQueries,s=void 0===i?[]:i,u=e.appendToHits,l=void 0!==u&&u,c=e.appendToAggs,p=void 0!==c&&c,d=e.isSuggestionsQuery,h=void 0!==d&&d,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},g=arguments[2],m=f(),y=m.config,v=m.internalValues,b=t._headers?t._headers.get("X-Search-Id"):null;b&&g(h?(0,Oe.setSuggestionsSearchId)(b):(0,Oe.setSearchId)(b)),s.forEach((function(e){o(f,e)&&(t.settings&&g((0,Oe.setAppliedSettings)(t.settings,e)),r(t[e],y,e).then((function(r){if(r){var o=f().timestamp;if(void 0===o[e]||o[e]<t._timestamp){var i=r.promoted;if(i){var a=i.map((function(e){return n({},e.doc,{_position:e.position})}));g((0,Oe.setPromotedResults)(a,e))}else g((0,Oe.setPromotedResults)([],e));if(g((0,Oe.setRawData)(e,r)),g((0,Oe.setCustomData)(r.customData,e)),r.hits){g((0,Oe.setTimestamp)(e,t._timestamp)),g((0,we.updateHits)(e,r.hits,r.took,r.hits&&r.hits.hidden,l));var s=(0,_e.getInternalComponentID)(e);v[s]&&g((0,we.saveQueryToHits)(e,v[s].value))}r.aggregations&&(g((0,we.updateAggs)(e,r.aggregations,p)),g((0,we.updateCompositeAggs)(e,r.aggregations,p)))}g((0,Oe.setLoading)(e,!1))}})).catch((function(e){a({orderOfQueries:s,error:e},f,g)})))}))},t.handleResponseMSearch=function(e){var t=e.res,n=void 0===t?{}:t,i=e.isSuggestionsQuery,s=void 0!==i&&i,u=e.orderOfQueries,l=void 0===u?[]:u,c=e.appendToHits,p=void 0!==c&&c,d=e.appendToAggs,h=void 0!==d&&d,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},g=arguments[2];l.forEach((function(e,t){if(o(f,e)){var i=n._headers?n._headers.get("X-Search-Id"):null;i&&g(s?(0,Oe.setSuggestionsSearchId)(i):(0,Oe.setSearchId)(i));var u=n;n&&Array.isArray(n.responses)&&n.responses[t]&&(u=n.responses[t]);var c=f(),d=c.config,m=c.internalValues;r(u,d,e).then((function(t){var r=f().timestamp;if(void 0===r[e]||r[e]<n._timestamp){g((0,Oe.setRawData)(e,t));var o=t.promoted||n.promoted;if(g(o?(0,Oe.setPromotedResults)(o,e):(0,Oe.setPromotedResults)([],e)),t.hits){g((0,Oe.setTimestamp)(e,n._timestamp)),g((0,we.updateHits)(e,t.hits,t.took,t.hits&&t.hits.hidden,p));var i=(0,_e.getInternalComponentID)(e);m[i]&&g((0,we.saveQueryToHits)(e,m[i].value))}t.aggregations&&(g((0,we.updateAggs)(e,t.aggregations,h)),g((0,we.updateCompositeAggs)(e,t.aggregations,h)))}g((0,Oe.setLoading)(e,!1))})).catch((function(e){a({orderOfQueries:l,error:e},f,g)}))}}))},t.isPropertyDefined=function(e){return null!=e},t.getSuggestionQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments[1],n=e(),r=n.internalValues,o=r[t],a=o&&o.value||"";return[{id:i(t),dataField:["key","key.autosuggest"],size:5,value:a,defaultQuery:{query:{bool:{minimum_should_match:1,should:[{function_score:{field_value_factor:{field:"count",modifier:"sqrt",missing:1}}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],fuzziness:0,operator:"or",query:a,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:a,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:a,type:"phrase_prefix"}}]}}}}]}})));r(Pe);Pe.getSuggestionQuery;var $e=Pe.isPropertyDefined,Re=(Pe.handleResponseMSearch,Pe.handleResponse,Pe.handleError,Pe.getQuerySuggestionsId,Pe.isComponentActive,Pe.handleTransformResponse,Pe.executeQueryListener,o((function(e,t){function n(e,t,n){return{type:b.SET_MAP_DATA,componentId:e,query:t,persistMapQuery:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateMapData=n,t.setMapData=function(e,t,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return function(a){if(a(n(e,t,r)),a((0,Ce.setInternalValue)((0,_e.getInternalComponentID)(e),void 0,void 0,void 0,i)),o){a((0,Le.executeQuery)(e,!1,!0))}}}})));r(Re);Re.updateMapData,Re.setMapData;var ke=o((function(e,t){var r="undefined"!=typeof self?self:n,o=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(C)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=l(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[l(e)]},d.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},d.prototype.set=function(e,t){this.map[l(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function C(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 O(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];O.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new O(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new O(o,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=d,e.Request=b,e.Response=O),t.Headers=d,t.Request=b,t.Response=O,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}));r(ke);ke.fetch,ke.Headers,ke.Request,ke.Response;var xe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=(n=ke)&&n.__esModule?n:{default:n};t.default=function(e,t,n,o,i){var a=n?t.replace("//","//"+n+"@"):t;return(0,r.default)(e,{method:"POST",body:'\n\t\t\tquery{\n\t\t\t\telastic50(host: "'+a+'"){\n\t\t\t\t\tmsearch(\n\t\t\t\t\t\tindex: "'+o+'"\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:{"Content-Type":"application/graphql"}}).then((function(e){return e.json()})).then((function(e){return e.data.elastic50.msearch})).catch((function(e){console.error(e)}))}})),Qe=r(xe),Le=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};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,Oe.updateQueryOptions)(e,t)),n&&r(h(e,!0))}},t.updateQuery=function(e){var t=e.componentId,n=e.query,r=e.value,o=e.label,i=void 0===o?null:o,a=e.showFilter,s=void 0===a||a,u=e.URLParams,l=void 0!==u&&u,c=e.componentType,p=void 0===c?null:c,d=e.category,f=void 0===d?null:d,g=e.meta,m=void 0===g?{}:g,y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(e){var o=n;n&&n.query&&(o=n.query),t.endsWith("__internal")?e((0,Ce.setInternalValue)(t,r,p,f,m)):(e((0,Ce.setValue)(t,r,i,s,l,p,f,m)),p===P.componentTypes.dynamicRangeSlider?e((0,Ce.setInternalValue)((0,_e.getHistogramComponentID)(t),r,p,f,m)):e((0,Ce.setInternalValue)(t+"__internal",r,p,f,m))),e((0,Oe.setQuery)(t,o)),y&&e(h(t,!0,!1,p))}},t.loadMore=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(i,s){var u=s(),p=(0,fe.buildQuery)(e,u.dependencyTree,u.queryList,u.queryOptions),d=p.queryObj,h=p.options,f=u.queryLog;h||(h={}),h=n({},h,t),(!d||d&&!Object.keys(d).length)&&(d={match_all:{}});var g=n({query:n({},d)},h);if(!(0,fe.isEqual)(f[e],g))if(i((0,Oe.logQuery)(e,g)),u.config&&u.config.enableAppbase){var m,y=u.props[e]||{},v=y.aggregationField;_e.componentToTypeMap[y.componentType]===P.queryTypes.term&&(v=y.dataField);var b=(0,_e.getRSQuery)(e,(0,_e.extractPropsFromState)(u,e,{from:h.from,after:u.aggregations[e]&&u.aggregations[e][v]&&u.aggregations[e][v].after_key||void 0}));m=n(a({},e,b),(0,_e.getDependentQueries)(s(),e,[])),i(c({query:Object.keys(m).map((function(e){return m[e]})),orderOfQueries:[e],appendToHits:r,appendToAggs:o}))}else{i(l([{preference:u.config&&u.config.analyticsConfig&&u.config.analyticsConfig.userId?u.config.analyticsConfig.userId+"_"+e:e},g],[e],r,!1,o))}}};var r=i(k),o=i(xe);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e){return function(t,n){var r=n(),o=r.config,i=r.appbaseRef,a=r.props,s=r.internalValues,u=o&&o.enableAppbase,l=a[e]||{},c=s[e],p=c&&c.value||"";if(u&&(l.enablePopularSuggestions||l.enableQuerySuggestions)){if(o.mongodb)return void t((0,Oe.setDefaultPopularSuggestions)([],e.split("__internal")[0]));var d=(0,Pe.getSuggestionQuery)(n,e);i.getQuerySuggestions(d).then((function(n){var r=n[(0,Pe.getQuerySuggestionsId)(e)];t(p?(0,Oe.setPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]):(0,Oe.setDefaultPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]))})).catch((function(r){(0,Pe.handleError)({orderOfQueries:[e],error:r},n,t)}))}}}function l(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments[5];return function(l,c){var p=c(),d=p.appbaseRef,h=p.config,f=p.headers,g=p.analytics,m=p.selectedValues,y={},v=[P.componentTypes.dataSearch,P.componentTypes.categorySearch],b=a&&-1!==v.indexOf(u);if(h.analytics){if(h.analyticsConfig.suggestionAnalytics&&b){var C=g.suggestionsSearchValue;!(!h.analyticsConfig.emptyQuery&&!C)&&(y={"X-Search-Query":C||""})}else{var O=g.searchValue,w=g.searchId,S=(0,r.default)(m);if(w)y=n({"X-Search-Id":w,"X-Search-Query":O||""},S&&{"X-Search-Filters":S});else{var _=!(!h.analyticsConfig.emptyQuery&&!O);y=n(_&&{"X-Search-Query":O||""},S&&{"X-Search-Filters":S})}}if(h.analyticsConfig.searchStateHeader){var T=(0,fe.getSearchState)(c(),!0);T&&Object.keys(T).length&&(y["X-Search-State"]=JSON.stringify(T))}h.analyticsConfig.userId&&(y["X-User-Id"]=h.analyticsConfig.userId),h.analyticsConfig.customEvents&&(y["X-Search-CustomEvent"]=(0,k.parseCustomEvents)(h.analyticsConfig.customEvents))}t.forEach((function(e){l((0,Oe.setLoading)(e,!0)),l((0,Oe.setError)(e,null))})),h.graphQLUrl?(0,o.default)(h.graphQLUrl,h.url,h.credentials,h.app,e).then((function(e){(0,Pe.handleResponseMSearch)({res:e,isSuggestionsQuery:b,orderOfQueries:t,appendToHits:i,appendToAggs:s},c,l)})).catch((function(e){(0,Pe.handleError)({orderOfQueries:t,error:e},c,l)})):(d.setHeaders(n({},f,y)),d.msearch({type:"*"===h.type?"":h.type,body:e}).then((function(e){(0,Pe.handleResponseMSearch)({res:e,isSuggestionsQuery:b,orderOfQueries:t,appendToHits:i,appendToAggs:s},c,l)})).catch((function(e){(0,Pe.handleError)({orderOfQueries:t,error:e},c,l)})))}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,r=e.orderOfQueries,o=e.appendToHits,i=void 0!==o&&o,a=e.isSuggestionsQuery,s=void 0!==a&&a,l=e.searchComponentID,c=e.appendToAggs,p=void 0!==c&&c;return function(e,o){var a=o(),c=a.appbaseRef,d=a.config,h=a.headers,f=!1;d&&((0,Pe.isPropertyDefined)(d.analytics)?f=d.analytics:d.analyticsConfig&&((0,Pe.isPropertyDefined)(d.analyticsConfig.recordAnalytics)?f=d.analyticsConfig.recordAnalytics:(0,Pe.isPropertyDefined)(d.analyticsConfig.analytics)&&(f=d.analyticsConfig.analytics)));var g={recordAnalytics:f};d.analyticsConfig&&(g.userId=(0,Pe.isPropertyDefined)(d.analyticsConfig.userId)?d.analyticsConfig.userId:void 0,g.enableQueryRules=(0,Pe.isPropertyDefined)(d.analyticsConfig.enableQueryRules)?d.analyticsConfig.enableQueryRules:void 0,g.customEvents=(0,Pe.isPropertyDefined)(d.analyticsConfig.customEvents)?d.analyticsConfig.customEvents:void 0),r.forEach((function(t){e((0,Oe.setLoading)(t,!0)),e((0,Oe.setError)(t,null))})),c.setHeaders(n({},h)),s&&l&&e(u(l)),c.reactiveSearchv3(t,g).then((function(t){(0,Pe.handleResponse)({res:t,orderOfQueries:r,appendToHits:i,appendToAggs:p},o,e)})).catch((function(t){(0,Pe.handleError)({orderOfQueries:r,error:t},o,e)}))}}var p=[],d=!1;function h(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments[3],i=arguments[4];return function(u,h){var f=h(),g=f.queryLog,m=f.config,y=f.mapData,v=f.watchMan,b=f.dependencyTree,C=f.queryList,O=f.queryOptions,w=f.queryListener,S=f.props,_=f.selectedValues,T=f.internalValues,E=m.initialQueriesSyncTime,I=m.initialTimestamp,A=[e],$=[],R={},k=[],x=m&&m.enableAppbase;if(t){var Q=v[e]||[];A=[].concat(s(A),s(Q))}var L={match_all:{}};if(A.forEach((function(t){var o=S[t];_[e]&&"URL"!==_[e].reference&&o&&[P.componentTypes.reactiveList,P.componentTypes.reactiveMap].includes(o.componentType)&&u((0,Ce.setValue)(t,null));var l=(0,fe.buildQuery)(t,b,C,O),c=l.queryObj,p=l.options,d=["aggs","from","sort"];if(c&&Object.keys(c).length||p&&Object.keys(p).some((function(e){return d.includes(e)}))){(!c||c&&!Object.keys(c).length)&&(c=n({},L));var f=n({query:n({},c)},p,O[t]),v=n({query:n({},c)},p,O[t]),E=g[t];if(r||!(0,fe.isEqual)(f,E)){k=[].concat(s(k),[t]),u((0,Oe.logQuery)(t,v));var I=Object.keys(y).includes(t);if(I&&y[t].query){var A=f.query;f.query={bool:{must:[A,y[t].query]}},y[t].persistMapQuery||u((0,Re.updateMapData)(e,null,!1));var Q=h().combinedLog;if((0,fe.isEqual)(Q[t],f))return;u((0,Oe.logCombinedQuery)(t,f))}if((0,Pe.executeQueryListener)(w[t],E,f),x){var V=void 0,j=e.endsWith("__internal"),D=S[e];j&&(0,_e.isSearchComponent)(D.componentType)&&(V=T[e]&&T[e].value);var F=(0,_e.getRSQuery)(t,(0,_e.extractPropsFromState)(h(),t,n({},V?{value:V}:null,i?{from:i.from}:null)));if(F&&(R=n({},R,a({},t,F),(0,_e.getDependentQueries)(h(),t,k))),I){var M=(0,_e.getInternalComponentID)(t),N=(0,_e.getRSQuery)(M,(0,_e.extractPropsFromState)(h(),M,i?{from:i.from}:null));N&&(R[M]=n({},N,{execute:!1}))}}else{var U=m&&m.analyticsConfig&&m.analyticsConfig.userId?m.analyticsConfig.userId+"_"+t:t;$=[].concat(s($),[{preference:U},f])}}}})),x&&($=Object.keys(R).map((function(e){return R[e]}))),$.length)if(x){var V=[P.componentTypes.dataSearch,P.componentTypes.categorySearch],j=e.endsWith("__internal")&&-1!==V.indexOf(o);(new Date).getTime()-I<E?(d||setTimeout((function(){var e=[],t=!1,n="",r={},o={},i={};p.forEach((function(a){t||(t=a.isSuggestionsQuery),n||(n=a.searchComponentID),Array.isArray(a.query)&&a.query.forEach((function(e){e.execute&&(i[e.id]=e.execute);var t=e;i[e.id]&&(t.execute=!0),o[e.id]=t})),Array.isArray(a.orderOfQueries)&&a.orderOfQueries.forEach((function(t){r[t.id]?r[t.id]=!0:e=[t].concat(s(e))}))}));var a=Object.values(o);a.length&&u(c({query:a,orderOfQueries:e,isSuggestionsQuery:t,searchComponentID:n})),p=[]}),E),d=!0,p.push({query:$,orderOfQueries:k,isSuggestionsQuery:j,searchComponentID:e})):u(c({query:$,orderOfQueries:k,isSuggestionsQuery:j,searchComponentID:e}))}else u(l($,k,!1,e.endsWith("__internal"),void 0,o))}}}));r(Le);Le.loadPopularSuggestions,Le.executeQuery,Le.setQueryOptions,Le.updateQuery,Le.loadMore;var Ve=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addComponent=function(e){return{type:b.ADD_COMPONENT,component:e}},t.removeComponent=function(e){return{type:b.REMOVE_COMPONENT,component:e}},t.watchComponent=function(e,t){return function(n){n(function(e,t){return{type:b.WATCH_COMPONENT,component:e,react:t}}(e,t)),n((0,Le.executeQuery)(e))}}}));r(Ve);Ve.addComponent,Ve.removeComponent,Ve.watchComponent;var je=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.setComponentProps=function(e,t,o){return{type:b.SET_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.updateComponentProps=function(e,t,o){return{type:b.UPDATE_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.removeComponentProps=function(e){return{type:b.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){P.validProps.includes(n)&&(t[n]=e[n])})),t}}));r(je);je.setComponentProps,je.updateComponentProps,je.removeComponentProps;var De=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.url,o=e.app,i=e.credentials,a=e.headers,s=e.documentId,u=e.clickPosition,l=e.queryId,c=e.clickType;s?fetch(t+"/"+o+"/_analytics/click",{method:"PUT",body:JSON.stringify({query_id:l,click_type:c||"result",click_on:r({},s,u+1)}),headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(i)})}):console.warn("ReactiveSearch: document id is required to record the click analytics")}t.setSuggestionsSearchValue=function(e){return{type:b.SET_SUGGESTIONS_SEARCH_VALUE,value:e}},t.clearSuggestionsSearchValue=function(){return{type:b.CLEAR_SUGGESTIONS_SEARCH_VALUE}},t.updateAnalyticsConfig=function(e){return{type:b.UPDATE_ANALYTICS_CONFIG,analyticsConfig:e}},t.getRecentSearches=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:5,minChars:3};return function(t,r){var o=r(),i=o.config,a=o.headers,s=o.appbaseRef,u=s.url,l=s.protocol,c=s.credentials,p=i.app,d=i.mongodb,h=(l+"://"+u||"").replace(/\/+$/,""),f={headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(c)})},g="",m=function(e,t){g+=g?"&"+e+"="+t:e+"="+t};return i.analyticsConfig&&i.analyticsConfig.userId&&m("user_id",i.analyticsConfig.userId),e&&(e.size&&m("size",String(e.size)),e.from&&m("from",e.from),e.to&&m("to",e.to),e.minChars&&m("min_chars",String(e.minChars)),e.customEvents&&Object.keys(e.customEvents).forEach((function(t){m(t,e.customEvents[t])}))),d?t({type:b.RECENT_SEARCHES_SUCCESS,data:[]}):fetch(h+"/_analytics/"+p+"/recent-searches?"+g,f).then((function(e){return e.status>=500||e.status>=400?t({type:b.RECENT_SEARCHES_ERROR,error:e}):e.json().then((function(e){return t({type:b.RECENT_SEARCHES_SUCCESS,data:e})})).catch((function(e){return t({type:b.RECENT_SEARCHES_ERROR,error:e})}))})).catch((function(e){return t({type:b.RECENT_SEARCHES_ERROR,error:e})}))}},t.recordResultClick=function(e,t){return function(r,i){var a=i(),s=a.config,u=a.analytics.searchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=s.app,g=d+"://"+p;if(s.analytics&&u){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Click":!0,"X-Search-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,queryId:u})}}},t.recordSuggestionClick=function(e,t){return function(r,i){var a=i(),s=a.config,u=a.analytics.suggestionsSearchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=s.app,g=d+"://"+p;if(s.analytics&&(void 0===s.analyticsConfig||void 0===s.analyticsConfig.suggestionAnalytics||s.analyticsConfig.suggestionAnalytics)&&u&&void 0!==e){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Suggestions-Click":!0,"X-Search-Suggestions-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,clickType:"suggestion",queryId:u})}}},t.recordImpressions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(r,o){var i=o(),a=i.config.app,s=i.headers,u=i.appbaseRef,l=u.url,c=u.protocol,p=u.credentials,d=(c+"://"+l).replace(/\/+$/,"");!d.includes("scalr.api.appbase.io")&&e&&t.length&&fetch(d+"/"+a+"/_analytics/search",{method:"PUT",body:JSON.stringify({query_id:e,impressions:t}),keepalive:!0,headers:n({},s,{"Content-Type":"application/json",Authorization:"Basic "+btoa(p)})})}}}));r(De);De.setSuggestionsSearchValue,De.clearSuggestionsSearchValue;var Fe=De.updateAnalyticsConfig,Me=(De.getRecentSearches,De.recordResultClick,De.recordSuggestionClick,De.recordImpressions,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(Ve).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ve[e]}})})),Object.keys(we).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return we[e]}})})),Object.keys(Re).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Re[e]}})})),Object.keys(Le).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Le[e]}})})),Object.keys(Ce).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ce[e]}})})),Object.keys(je).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return je[e]}})})),Object.keys(De).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return De[e]}})})),Object.keys(Oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Oe[e]}})}))})));if(r(Me),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}},configurable:!0,writable:!0}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=this.length-e.length;return t>=0&&this.lastIndexOf(e)===t}),"function"!=typeof Event){"undefined"!=typeof window&&(window.Event=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t})}var Ne=Object.freeze({__proto__:null}),Ue=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={ENTER_PRESS:"ENTER_PRESS",SUGGESTION_SELECT:"SUGGESTION_SELECT",CLEAR_VALUE:"CLEAR_VALUE",SEARCH_ICON_CLICK:"SEARCH_ICON_CLICK"};t.default=n}));r(Ue);var qe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.constants=t.Reducers=t.polyfills=t.storeKey=t.Actions=t.suggestions=t.causes=t.helper=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=n({},e,{config:n({},e.config,{analyticsConfig:e.config&&e.config.analyticsConfig?n({},k.defaultAnalyticsConfig,e.config.analyticsConfig):k.defaultAnalyticsConfig})});return(0,m.createStore)(o.default,t,A)};var r=C(v),o=C(le),i=y(Me),a=y(fe),s=C(de),u=C(P),l=C(Ne),c=C(Ue),p=C(D),d=C(T),h=C(I),f=C(S),g=C(Z);function y(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 C(e){return e&&e.__esModule?e:{default:e}}var O=b.STORE_KEY,w=s.default,_=c.default,E={valueReducer:p.default,queryOptionsReducer:h.default,queryReducer:d.default,dependencyTreeReducer:f.default,propsReducer:g.default};t.helper=a,t.causes=_,t.suggestions=w,t.Actions=i,t.storeKey=O,t.polyfills=l.default,t.Reducers=E,t.constants=u.default;var A=("object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):m.compose)((0,m.applyMiddleware)(r.default))})),He=r(qe),ze=(qe.constants,qe.Reducers,qe.polyfills,qe.storeKey,qe.Actions),Be=(qe.suggestions,qe.causes),Ge=qe.helper;function We(){return(We=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 Ye(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ke(e,t){return t||(t=e.slice(0)),e.raw=t,e}function Xe(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}
|
|
6
|
+
!function(t,n,r,o){var i=["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds","Day","Year"],a=["Years","Months","Days"],s=[12,31,24,60,60,1e3,1],u=new RegExp("(([a-zA-Z])\\2*)|(\\((('.*?'|\\(.*?\\)|.)*?)\\))|('(.*?)')"),l=t.UTC,c=t.prototype.toUTCString,p=d.prototype;function d(){return h(this instanceof d?this:new d,arguments)}function h(e,n){var r,o=n.length;if(j(n[o-1])&&(r=n[--o],n=Q(n,0,o)),o)if(1==o){var i=n[0];i instanceof t?e[0]=new t(i.getTime()):!function(e){return"number"==typeof e}(i)?i instanceof d?e[0]=function(e){var n=new t(e[0].getTime());f(e)&&(n.toString=c);return n}(i):L(i)&&(e[0]=new t(0),e=function(e,n,r){for(var o,i=d.parsers,a=0;a<i.length;a++)if(o=i[a](e,n,r))return o;return r[0]=new t(e),r}(i,r||!1,e)):e[0]=new t(i)}else e[0]=new t(l.apply(t,n)),r||(e[0]=$(e[0]));else e[0]=new t;return j(r)&&g(e,r),e}function f(e){return e[0].toString===c}function g(e,n,r){var o;return n?f(e)||(r&&(e[0]=(o=e[0],new t(l(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds())))),e[0].toString=c):f(e)&&(e[0]=r?$(e[0]):new t(e[0].getTime())),e}function m(e,t,n,r,o){var i,a=x(A,e[0],o),s=x(P,e[0],o),u=!1;2==r.length&&j(r[1])&&(u=r[1],r=[n]),i=1==t?(n%12+12)%12:a(1),s(t,r),u&&a(1)!=i&&(s(1,[a(1)-1]),s(2,[R(a(0),a(1))]))}function y(e,t,r){e=e.clone().setUTCMode(!0,!0),t=d(t).setUTCMode(!0,!0);var o=0;if(0==r||1==r){for(var i=6;i>=r;i--)o/=s[i],o+=A(t,!1,i)-A(e,!1,i);1==r&&(o+=12*(t.getFullYear()-e.getFullYear()))}else if(2==r){var a=e.toDate().setUTCHours(0,0,0,0),u=t.toDate().setUTCHours(0,0,0,0);o=n.round((u-a)/864e5)+(t-u-(e-a))/864e5}else o=(t-e)/[36e5,6e4,1e3,1][r-3];return o}function v(e){return r=e(0),o=e(1),i=e(2),a=new t(l(r,o,i)),s=O(b(r,o,i)),n.floor(n.round((a-s)/864e5)/7)+1;var r,o,i,a,s}function b(e,n,r){var o=new t(l(e,n,r));return o<O(e)?e-1:o>=O(e+1)?e+1:e}function O(e){var n=new t(l(e,0,4));return n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+6)%7),n}function C(e,t,n,r){var o=x(A,e,r),i=x(P,e,r);void 0===n&&(n=b(o(0),o(1),o(2)));var a=O(n);r||(a=$(a)),e.setTime(a.getTime()),i(2,[o(2)+7*(t-1)])}function w(e,t,n,r,o){var i=d.locales,a=i[d.defaultLocale]||{},s=x(A,e,o);return n=(L(n)?i[n]:n)||{},S(e,t,(function(e){if(r)for(var t=(7==e?2:e)-1;t>=0;t--)r.push(s(t));return s(e)}),(function(e){return n[e]||a[e]}),o)}function S(e,t,n,r,o){for(var i,a,s="";i=t.match(u);)s+=t.substr(0,i.index),i[1]?s+=_(e,i[1],n,r,o):i[3]?(a=S(e,i[4],n,r,o),parseInt(a.replace(/\D/g,""),10)&&(s+=a)):s+=i[7]||"'",t=t.substr(i.index+i[0].length);return s+t}function _(e,t,n,r,o){for(var i,a=t.length,s="";a>0;)void 0!==(i=T(e,t.substr(0,a),n,r,o))?(s+=i,a=(t=t.substr(a)).length):a--;return s+t}function T(e,t,r,o,i){var a=d.formatters[t];if(L(a))return S(e,a,r,o,i);if("function"==typeof a)return a(e,i||!1,o);switch(t){case"fff":return D(r(6),3);case"s":return r(5);case"ss":return D(r(5));case"m":return r(4);case"mm":return D(r(4));case"h":return r(3)%12||12;case"hh":return D(r(3)%12||12);case"H":return r(3);case"HH":return D(r(3));case"d":return r(2);case"dd":return D(r(2));case"ddd":return o("dayNamesShort")[r(7)]||"";case"dddd":return o("dayNames")[r(7)]||"";case"M":return r(1)+1;case"MM":return D(r(1)+1);case"MMM":return o("monthNamesShort")[r(1)]||"";case"MMMM":return o("monthNames")[r(1)]||"";case"yy":return(r(0)+"").substring(2);case"yyyy":return r(0);case"t":return E(r,o).substr(0,1).toLowerCase();case"tt":return E(r,o).toLowerCase();case"T":return E(r,o).substr(0,1);case"TT":return E(r,o);case"z":case"zz":case"zzz":return i?"Z":function(e,t){var r=e.getTimezoneOffset(),o=r<0?"+":"-",i=n.floor(n.abs(r)/60),a=n.abs(r)%60,s=i;"zz"==t?s=D(i):"zzz"==t&&(s=D(i)+":"+D(a));return o+s}(e,t);case"w":return v(r);case"ww":return D(v(r));case"S":var s=r(2);return s>10&&s<20?"th":["st","nd","rd"][s%10-1]||"th"}}function E(e,t){return e(3)<12?t("amDesignator"):t("pmDesignator")}function I(e){return!isNaN(e[0].getTime())}function A(e,t,n){return e["get"+(t?"UTC":"")+i[n]]()}function P(e,t,n,r){e["set"+(t?"UTC":"")+i[n]].apply(e,r)}function $(e){return new t(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function R(e,n){return 32-new t(l(e,n,32)).getUTCDate()}function k(e){return function(){return e.apply(void 0,[this].concat(Q(arguments)))}}function x(e){var t=Q(arguments,1);return function(){return e.apply(void 0,t.concat(Q(arguments)))}}function Q(e,t,n){return r.prototype.slice.call(e,t||0,void 0===n?e.length:n)}function V(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function L(e){return"string"==typeof e}function j(e){return"boolean"==typeof e}function D(e,t){for(t=t||2,e+="";e.length<t;)e="0"+e;return e}p.length=1,p.splice=r.prototype.splice,p.getUTCMode=k(f),p.setUTCMode=k(g),p.getTimezoneOffset=function(){return f(this)?0:this[0].getTimezoneOffset()},V(i,(function(e,t){p["get"+e]=function(){return A(this[0],f(this),t)},8!=t&&(p["getUTC"+e]=function(){return A(this[0],!0,t)}),7!=t&&(p["set"+e]=function(e){return m(this,t,e,arguments,f(this)),this},8!=t&&(p["setUTC"+e]=function(e){return m(this,t,e,arguments,!0),this},p["add"+(a[t]||e)]=function(e,r){return function e(t,r,o,a){o=Number(o);var u=n.floor(o);t["set"+i[r]](t["get"+i[r]]()+u,a||!1),u!=o&&r<6&&e(t,r+1,(o-u)*s[r],a)}(this,t,e,r),this},p["diff"+(a[t]||e)]=function(e){return y(this,e,t)}))})),p.getWeek=function(){return v(x(A,this,!1))},p.getUTCWeek=function(){return v(x(A,this,!0))},p.setWeek=function(e,t){return C(this,e,t,!1),this},p.setUTCWeek=function(e,t){return C(this,e,t,!0),this},p.addWeeks=function(e){return this.addDays(7*Number(e))},p.diffWeeks=function(e){return y(this,e,2)/7},d.parsers=[function(e,n,r){var o=e.match(/^(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/);if(o){var i=new t(l(o[1],o[3]?o[3]-1:0,o[5]||1,o[7]||0,o[8]||0,o[10]||0,o[12]?1e3*Number("0."+o[12]):0));return o[13]?o[14]&&i.setUTCMinutes(i.getUTCMinutes()+("-"==o[15]?1:-1)*(60*Number(o[16])+(o[18]?Number(o[18]):0))):n||(i=$(i)),r.setTime(i.getTime())}}],d.parse=function(e){return+d(""+e)},p.toString=function(e,t,n){return void 0!==e&&I(this)?w(this,e,t,n,f(this)):this[0].toString()},p.toUTCString=p.toGMTString=function(e,t,n){return void 0!==e&&I(this)?w(this,e,t,n,!0):this[0].toUTCString()},p.toISOString=function(){return this.toUTCString("yyyy-MM-dd'T'HH:mm:ss(.fff)zzz")},d.defaultLocale="",d.locales={"":{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],amDesignator:"AM",pmDesignator:"PM"}},d.formatters={i:"yyyy-MM-dd'T'HH:mm:ss(.fff)",u:"yyyy-MM-dd'T'HH:mm:ss(.fff)zzz"},V(["getTime","valueOf","toDateString","toTimeString","toLocaleString","toLocaleDateString","toLocaleTimeString","toJSON"],(function(e){p[e]=function(){return this[0][e]()}})),p.setTime=function(e){return this[0].setTime(e),this},p.valid=k(I),p.clone=function(){return new d(this)},p.clearTime=function(){return this.setHours(0,0,0,0)},p.toDate=function(){return new t(this[0].getTime())},d.now=function(){return(new t).getTime()},d.today=function(){return(new d).clearTime()},d.UTC=l,d.getDaysInMonth=R,e.exports&&(e.exports=d)}(Date,Math,Array)})),_e=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getDependentQueries=t.extractPropsFromState=t.getValidInterval=t.getRSQuery=t.hasPaginationSupport=t.isComponentUsesLabelAsValue=t.isSearchComponent=t.isDRSRangeComponent=t.getHistogramComponentID=t.getInternalComponentID=t.isInternalComponent=t.getNormalizedField=t.componentToTypeMap=void 0;var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.flatReactProp=T;var o=a(Se),i=a(ce);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=t.componentToTypeMap=(u(n={},P.componentTypes.reactiveList,P.queryTypes.search),u(n,P.componentTypes.dataSearch,P.queryTypes.search),u(n,P.componentTypes.categorySearch,P.queryTypes.search),u(n,P.componentTypes.searchBox,P.queryTypes.suggestion),u(n,P.componentTypes.singleList,P.queryTypes.term),u(n,P.componentTypes.multiList,P.queryTypes.term),u(n,P.componentTypes.singleDataList,P.queryTypes.term),u(n,P.componentTypes.singleDropdownList,P.queryTypes.term),u(n,P.componentTypes.multiDataList,P.queryTypes.term),u(n,P.componentTypes.multiDropdownList,P.queryTypes.term),u(n,P.componentTypes.tagCloud,P.queryTypes.term),u(n,P.componentTypes.toggleButton,P.queryTypes.term),u(n,P.componentTypes.numberBox,P.queryTypes.term),u(n,P.componentTypes.datePicker,P.queryTypes.range),u(n,P.componentTypes.dateRange,P.queryTypes.range),u(n,P.componentTypes.dynamicRangeSlider,P.queryTypes.range),u(n,P.componentTypes.singleDropdownRange,P.queryTypes.range),u(n,P.componentTypes.multiDropdownRange,P.queryTypes.range),u(n,P.componentTypes.singleRange,P.queryTypes.range),u(n,P.componentTypes.multiRange,P.queryTypes.range),u(n,P.componentTypes.rangeSlider,P.queryTypes.range),u(n,P.componentTypes.ratingsFilter,P.queryTypes.range),u(n,P.componentTypes.rangeInput,P.queryTypes.range),u(n,P.componentTypes.geoDistanceDropdown,P.queryTypes.geo),u(n,P.componentTypes.geoDistanceSlider,P.queryTypes.geo),u(n,P.componentTypes.reactiveMap,P.queryTypes.geo),n),c=[P.componentTypes.multiRange,P.componentTypes.multiDropdownRange],p=[P.componentTypes.dateRange,P.componentTypes.datePicker],d=[P.componentTypes.categorySearch,P.componentTypes.dataSearch,P.componentTypes.searchBox],h=[P.componentTypes.singleList,P.componentTypes.multiList,P.componentTypes.singleDropdownList,P.componentTypes.multiDropdownList],f=t.getNormalizedField=function(e){return e&&!Array.isArray(e)?[e]:e},g=t.isInternalComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__internal")},m=t.getInternalComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__internal"},y=t.getHistogramComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__histogram__internal"},v=t.isDRSRangeComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__range__internal")},b=t.isSearchComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.includes(e)},O=t.isComponentUsesLabelAsValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e===P.componentTypes.multiDataList||e===P.componentTypes.singleDataList},C=t.hasPaginationSupport=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return h.includes(e)},w=t.getRSQuery=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&e){var o=t.type?t.type:l[t.componentType];return b(t.componentType)||t.dataField?r({id:e,type:o,dataField:f(t.dataField),execute:n,react:t.react,highlight:t.highlight,highlightField:f(t.highlightField),fuzziness:t.fuzziness,searchOperators:t.searchOperators,includeFields:t.includeFields,excludeFields:t.excludeFields,size:t.size,aggregationSize:t.aggregationSize,from:t.from,queryFormat:t.queryFormat,sortBy:t.sortBy,fieldWeights:f(t.fieldWeights),includeNullValues:t.includeNullValues,aggregationField:t.aggregationField||void 0,categoryField:t.categoryField||void 0,missingLabel:t.missingLabel||void 0,showMissing:t.showMissing,nestedField:t.nestedField||void 0,interval:t.interval,customHighlight:t.customHighlight,customQuery:t.customQuery,defaultQuery:t.defaultQuery,value:t.value,categoryValue:t.categoryValue||void 0,after:t.after||void 0,aggregations:t.aggregations||void 0,enableSynonyms:t.enableSynonyms,selectAllLabel:t.selectAllLabel,pagination:t.pagination,queryString:t.queryString,distinctField:t.distinctField,distinctFieldConfig:t.distinctFieldConfig,index:t.index},o===P.queryTypes.suggestion?{enablePopularSuggestions:t.enablePopularSuggestions,enableRecentSuggestions:t.enableRecentSuggestions,popularSuggestionsConfig:t.popularSuggestionsConfig,recentSuggestionsConfig:t.recentSuggestionsConfig,applyStopwords:t.applyStopwords,customStopwords:t.customStopwords,enablePredictiveSuggestions:t.enablePredictiveSuggestions}:{},{calendarInterval:t.calendarInterval}):null}return null},S=t.getValidInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Math.ceil((t.end-t.start)/100)||1;return e?e<n?n:e:n},_=t.extractPropsFromState=function(e,t,n){var a=e.props[t];if(!a)return null;var s=l[a.componentType],u=e.selectedValues[t]||e.internalValues[t],d=null!=u?u.value:void 0,h=a.queryFormat,f=void 0,g=a.interval,w=l[a.componentType],_=a.dataField,T=void 0,E=void 0,I=a.from;if(s===P.queryTypes.term)if(a.showLoadMore&&C(a.componentType)&&(E=!0),null!=d&&"object"==typeof d&&d.value)d=d.value;else if(Array.isArray(d)){var A=[];d.forEach((function(e){null!=e&&"object"==typeof e&&e.value?A.push(e.value):A.push(e)})),d=A}if(s===P.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 $=m(t),R=e.internalValues[$];if(!R){var k=y(t);R=e.internalValues[k]}R&&Array.isArray(R.value)&&(d={start:R.value[0],end:R.value[1]},g=S(g,d))}v(t)?T=["min","max"]:a.showHistogram&&(T=["histogram"]),a.componentType!==P.componentTypes.dynamicRangeSlider&&a.componentType!==P.componentTypes.rangeSlider||(f=Object.keys(i.default).includes(h)?a.calendarInterval||"month":void 0,d&&(d=(0,fe.isValidDateRangeQueryFormat)(a.queryFormat)?{start:(0,fe.formatDate)(new o.default(d.start),a),end:(0,fe.formatDate)(new o.default(d.end),a)}:{start:parseFloat(d.start),end:parseFloat(d.end)})),p.includes(a.componentType)&&(h="or",d&&("string"==typeof d?d={start:(0,fe.formatDate)(new o.default(d).addHours(-24),a),end:(0,fe.formatDate)(new o.default(d),a)}:Array.isArray(d)&&(d=d.map((function(e){return{start:(0,fe.formatDate)(new o.default(e).addHours(-24),a),end:(0,fe.formatDate)(new o.default(e),a)}})))))}if(s===P.queryTypes.geo){d=void 0;var x=e.selectedValues[t]||e.internalValues[t]||e.internalValues[m(t)];x&&x.meta&&(x.meta.distance&&x.meta.coordinates&&(d={distance:x.meta.distance,location:x.meta.coordinates},a.unit&&(d.unit=a.unit)),x.meta.mapBoxBounds&&x.meta.mapBoxBounds.top_left&&x.meta.mapBoxBounds.bottom_right&&(d={geoBoundingBox:{topLeft:x.meta.mapBoxBounds.top_left[1]+", "+x.meta.mapBoxBounds.top_left[0],bottomRight:x.meta.mapBoxBounds.bottom_right[1]+", "+x.meta.mapBoxBounds.bottom_right[0]}}))}if(a.componentType===P.componentTypes.numberBox&&("exact"===h?w="term":(w="range",d="lte"===h?{end:d,boost:2}:{start:d,boost:2}),h="or"),a.componentType===P.componentTypes.reactiveComponent&&(w="term",_="reactive_component_field",d=void 0),b(a.componentType)&&!d&&(d=""),O(a.componentType)){var Q=a.data,V=[];d&&Array.isArray(d)?V=d:d&&"string"==typeof d&&(V=[d]);var L=[];V.length&&Q&&Array.isArray(Q)&&V.forEach((function(e){var t=Q.find((function(t){return t.label===e}));t&&t.value&&L.push(t.value)})),d=L.length?L:void 0}return a.componentType===P.componentTypes.reactiveList&&(d>0&&(I=(d-1)*(a.size||10)),d=void 0),r({},a,{calendarInterval:f,dataField:_,queryFormat:h,type:w,aggregations:T,interval:g,react:e.dependencyTree?e.dependencyTree[t]:void 0,customQuery:e.customQueries?e.customQueries[t]:void 0,defaultQuery:e.defaultQueries?e.defaultQueries[t]:void 0,customHighlight:e.customHighlightOptions?e.customHighlightOptions[t]:void 0,categoryValue:e.internalValues[t]?e.internalValues[t].category:void 0,value:a.componentType===P.componentTypes.searchBox?d||void 0:d,pagination:E,from:I},n)};function T(e,t){var n=[];return function e(t){t&&Object.keys(t)&&Object.keys(t).forEach((function(r){t[r]&&("string"==typeof t[r]?n=[].concat(s(n),[t[r]]):Array.isArray(t[r])?n=[].concat(s(n),s(t[r])):"object"==typeof t[r]&&e(t[r]))}))}(e),n=n.filter((function(e){return e!==t}))}t.getDependentQueries=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={},i=T(e.dependencyTree[t],t);return i.forEach((function(t){var i=t,a=e.customQueries[i];if(!g(i)){var s=e.selectedValues[i]||e.internalValues[i];if((s||a)&&!o[i]){var u=!1;Array.isArray(n)&&n.includes(i)&&(u=!0);var l=e.props[i],c=w(i,_(e,i,r({},l&&l.componentType===P.componentTypes.searchBox?r({},!1===u?{type:P.queryTypes.search}:{},s.category?{categoryValue:s.category}:{}):{})),u);c&&(o[i]=c)}}})),o}}));r(_e);var Te=_e.getDependentQueries,Ee=_e.extractPropsFromState,Ie=(_e.getValidInterval,_e.getRSQuery),Ae=(_e.hasPaginationSupport,_e.isComponentUsesLabelAsValue,_e.isSearchComponent,_e.isDRSRangeComponent,_e.getHistogramComponentID,_e.getInternalComponentID),Pe=(_e.isInternalComponent,_e.getNormalizedField,_e.componentToTypeMap,_e.flatReactProp,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSuggestionQuery=t.isPropertyDefined=t.handleResponseMSearch=t.handleResponse=t.handleError=t.getQuerySuggestionsId=t.isComponentActive=t.handleTransformResponse=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.executeQueryListener=function(e,t,n){e&&e.onQueryChange&&e.onQueryChange(t,n)};var r=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)}))},o=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)},i=t.getQuerySuggestionsId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__suggestions"},a=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,i=void 0===r?null:r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},s=arguments[2],u=a(),l=u.queryListener;try{console.error(JSON.stringify(i))}catch(e){console.error(i)}n.forEach((function(e){o(a,e)&&(l[e]&&l[e].onError&&l[e].onError(i),s((0,Ce.setError)(e,i)),s((0,Ce.setLoading)(e,!1)))}))};t.handleResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.res,i=e.orderOfQueries,s=void 0===i?[]:i,u=e.appendToHits,l=void 0!==u&&u,c=e.appendToAggs,p=void 0!==c&&c,d=e.isSuggestionsQuery,h=void 0!==d&&d,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},g=arguments[2],m=f(),y=m.config,v=m.internalValues,b=t._headers?t._headers.get("X-Search-Id"):null;b&&g(h?(0,Ce.setSuggestionsSearchId)(b):(0,Ce.setSearchId)(b)),s.forEach((function(e){o(f,e)&&(t.settings&&g((0,Ce.setAppliedSettings)(t.settings,e)),r(t[e],y,e).then((function(r){if(r){var o=f().timestamp;if(void 0===o[e]||o[e]<t._timestamp){var i=r.promoted;if(i){var a=i.map((function(e){return n({},e.doc,{_position:e.position})}));g((0,Ce.setPromotedResults)(a,e))}else g((0,Ce.setPromotedResults)([],e));if(g((0,Ce.setRawData)(e,r)),g((0,Ce.setCustomData)(r.customData,e)),r.hits){g((0,Ce.setTimestamp)(e,t._timestamp)),g((0,we.updateHits)(e,r.hits,r.took,r.hits&&r.hits.hidden,l));var s=(0,_e.getInternalComponentID)(e);v[s]&&g((0,we.saveQueryToHits)(e,v[s].value))}r.aggregations&&(g((0,we.updateAggs)(e,r.aggregations,p)),g((0,we.updateCompositeAggs)(e,r.aggregations,p)))}g((0,Ce.setLoading)(e,!1))}})).catch((function(e){a({orderOfQueries:s,error:e},f,g)})))}))},t.handleResponseMSearch=function(e){var t=e.res,n=void 0===t?{}:t,i=e.isSuggestionsQuery,s=void 0!==i&&i,u=e.orderOfQueries,l=void 0===u?[]:u,c=e.appendToHits,p=void 0!==c&&c,d=e.appendToAggs,h=void 0!==d&&d,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},g=arguments[2];l.forEach((function(e,t){if(o(f,e)){var i=n._headers?n._headers.get("X-Search-Id"):null;i&&g(s?(0,Ce.setSuggestionsSearchId)(i):(0,Ce.setSearchId)(i));var u=n;n&&Array.isArray(n.responses)&&n.responses[t]&&(u=n.responses[t]);var c=f(),d=c.config,m=c.internalValues;r(u,d,e).then((function(t){var r=f().timestamp;if(void 0===r[e]||r[e]<n._timestamp){g((0,Ce.setRawData)(e,t));var o=t.promoted||n.promoted;if(g(o?(0,Ce.setPromotedResults)(o,e):(0,Ce.setPromotedResults)([],e)),t.hits){g((0,Ce.setTimestamp)(e,n._timestamp)),g((0,we.updateHits)(e,t.hits,t.took,t.hits&&t.hits.hidden,p));var i=(0,_e.getInternalComponentID)(e);m[i]&&g((0,we.saveQueryToHits)(e,m[i].value))}t.aggregations&&(g((0,we.updateAggs)(e,t.aggregations,h)),g((0,we.updateCompositeAggs)(e,t.aggregations,h)))}g((0,Ce.setLoading)(e,!1))})).catch((function(e){a({orderOfQueries:l,error:e},f,g)}))}}))},t.isPropertyDefined=function(e){return null!=e},t.getSuggestionQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments[1],n=e(),r=n.internalValues,o=r[t],a=o&&o.value||"";return[{id:i(t),dataField:["key","key.autosuggest"],size:5,value:a,defaultQuery:{query:{bool:{minimum_should_match:1,should:[{function_score:{field_value_factor:{field:"count",modifier:"sqrt",missing:1}}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],fuzziness:0,operator:"or",query:a,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:a,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:a,type:"phrase_prefix"}}]}}}}]}})));r(Pe);Pe.getSuggestionQuery;var $e=Pe.isPropertyDefined,Re=(Pe.handleResponseMSearch,Pe.handleResponse,Pe.handleError,Pe.getQuerySuggestionsId,Pe.isComponentActive,Pe.handleTransformResponse,Pe.executeQueryListener,o((function(e,t){function n(e,t,n){return{type:b.SET_MAP_DATA,componentId:e,query:t,persistMapQuery:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateMapData=n,t.setMapData=function(e,t,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return function(a){if(a(n(e,t,r)),a((0,Oe.setInternalValue)((0,_e.getInternalComponentID)(e),void 0,void 0,void 0,i)),o){a((0,Ve.executeQuery)(e,!1,!0))}}}})));r(Re);Re.updateMapData,Re.setMapData;var ke=o((function(e,t){var r="undefined"!=typeof self?self:n,o=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=l(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[l(e)]},d.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},d.prototype.set=function(e,t){this.map[l(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function O(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function C(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];C.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new C(o,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=d,e.Request=b,e.Response=C),t.Headers=d,t.Request=b,t.Response=C,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}));r(ke);ke.fetch,ke.Headers,ke.Request,ke.Response;var xe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(n=ke)&&n.__esModule?n:{default:n};t.default=function(e){var t=e.graphQLUrl,n=e.url,i=e.credentials,a=e.app,s=e.query,u=e.headers,l=i?n.replace("//","//"+i+"@"):n;return(0,o.default)(t,{method:"POST",body:'\n\t\t\tquery{\n\t\t\t\telastic77(host: "'+l+'"){\n\t\t\t\t\tmsearch(\n\t\t\t\t\t\tindex: "'+a+'"\n\t\t\t\t\t\tbody: '+JSON.stringify(s.map((function(e){return JSON.stringify(e)})))+"\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t",headers:r({},u,{"Content-Type":"application/graphql"})}).then((function(e){return e.json()})).then((function(e){return e.data.elastic77.msearch})).catch((function(e){console.error(e)}))}})),Qe=r(xe),Ve=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.loadPopularSuggestions=u,t.executeQuery=f,t.setQueryOptions=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){r((0,Ce.updateQueryOptions)(e,t)),n&&r(f(e,!0))}},t.updateQuery=function(e){var t=e.componentId,n=e.query,r=e.value,o=e.label,i=void 0===o?null:o,a=e.showFilter,s=void 0===a||a,u=e.URLParams,l=void 0!==u&&u,c=e.componentType,p=void 0===c?null:c,d=e.category,h=void 0===d?null:d,g=e.meta,m=void 0===g?{}:g,y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(e){var o=n;n&&n.query&&(o=n.query),t.endsWith("__internal")?e((0,Oe.setInternalValue)(t,r,p,h,m)):(e((0,Oe.setValue)(t,r,i,s,l,p,h,m)),p===P.componentTypes.dynamicRangeSlider?e((0,Oe.setInternalValue)((0,_e.getHistogramComponentID)(t),r,p,h,m)):e((0,Oe.setInternalValue)(t+"__internal",r,p,h,m))),e((0,Ce.setQuery)(t,o)),y&&e(f(t,!0,!1,p))}},t.loadMore=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(i,s){var u=s(),l=(0,fe.buildQuery)(e,u.dependencyTree,u.queryList,u.queryOptions),d=l.queryObj,h=l.options,f=u.queryLog;h||(h={}),h=n({},h,t),(!d||d&&!Object.keys(d).length)&&(d={match_all:{}});var g=n({query:n({},d)},h);if(!(0,fe.isEqual)(f[e],g))if(i((0,Ce.logQuery)(e,g)),u.config&&u.config.enableAppbase){var m,y=u.props[e]||{},v=y.aggregationField;_e.componentToTypeMap[y.componentType]===P.queryTypes.term&&(v=y.dataField);var b=(0,_e.getRSQuery)(e,(0,_e.extractPropsFromState)(u,e,{from:h.from,after:u.aggregations[e]&&u.aggregations[e][v]&&u.aggregations[e][v].after_key||void 0}));m=n(a({},e,b),(0,_e.getDependentQueries)(s(),e,[])),i(p({query:Object.keys(m).map((function(e){return m[e]})),orderOfQueries:[e],appendToHits:r,appendToAggs:o}))}else{i(c([{preference:u.config&&u.config.analyticsConfig&&u.config.analyticsConfig.userId?u.config.analyticsConfig.userId+"_"+e:e},g],[e],r,!1,o))}}};var r=i(k),o=i(xe);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e){return function(t,n){var r=n(),o=r.config,i=r.appbaseRef,a=r.props,s=r.internalValues,u=o&&o.enableAppbase,l=a[e]||{},c=s[e],p=c&&c.value||"";if(u&&(l.enablePopularSuggestions||l.enableQuerySuggestions)){if(o.mongodb)return void t((0,Ce.setDefaultPopularSuggestions)([],e.split("__internal")[0]));var d=(0,Pe.getSuggestionQuery)(n,e);i.getQuerySuggestions(d).then((function(n){var r=n[(0,Pe.getQuerySuggestionsId)(e)];t(p?(0,Ce.setPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]):(0,Ce.setDefaultPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]))})).catch((function(r){(0,Pe.handleError)({orderOfQueries:[e],error:r},n,t)}))}}}var l=function(e,t){if(e&&"function"==typeof e){var n=e(t);return n instanceof Promise?n:Promise.resolve(n)}return Promise.resolve(t)};function c(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments[5];return function(c,p){var d=p(),h=d.appbaseRef,f=d.config,g=d.headers,m=d.analytics,y=d.selectedValues,v={},b=[P.componentTypes.dataSearch,P.componentTypes.categorySearch],O=a&&-1!==b.indexOf(u);if(f.analytics){if(f.analyticsConfig.suggestionAnalytics&&O){var C=m.suggestionsSearchValue;!(!f.analyticsConfig.emptyQuery&&!C)&&(v={"X-Search-Query":C||""})}else{var w=m.searchValue,S=m.searchId,_=(0,r.default)(y);if(S)v=n({"X-Search-Id":S,"X-Search-Query":w||""},_&&{"X-Search-Filters":_});else{var T=!(!f.analyticsConfig.emptyQuery&&!w);v=n(T&&{"X-Search-Query":w||""},_&&{"X-Search-Filters":_})}}f.analyticsConfig.userId&&(v["X-User-Id"]=f.analyticsConfig.userId),f.analyticsConfig.customEvents&&(v["X-Search-CustomEvent"]=(0,k.parseCustomEvents)(f.analyticsConfig.customEvents))}if(t.forEach((function(e){c((0,Ce.setLoading)(e,!0)),c((0,Ce.setError)(e,null))})),f.graphQLUrl){var E={graphQLUrl:f.graphQLUrl,url:f.url,credentials:f.credentials,app:f.app,query:e,headers:g};l(h.transformRequest,E).then((function(e){(0,o.default)(e).then((function(e){(0,Pe.handleResponseMSearch)({res:e,isSuggestionsQuery:O,orderOfQueries:t,appendToHits:i,appendToAggs:s},p,c)})).catch((function(e){(0,Pe.handleError)({orderOfQueries:t,error:e},p,c)}))})).catch((function(e){(0,Pe.handleError)({orderOfQueries:t,error:e},p,c)}))}else h.setHeaders(n({},g,v)),h.msearch({type:"*"===f.type?"":f.type,body:e}).then((function(e){(0,Pe.handleResponseMSearch)({res:e,isSuggestionsQuery:O,orderOfQueries:t,appendToHits:i,appendToAggs:s},p,c)})).catch((function(e){(0,Pe.handleError)({orderOfQueries:t,error:e},p,c)}))}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,r=e.orderOfQueries,o=e.appendToHits,i=void 0!==o&&o,a=e.isSuggestionsQuery,s=void 0!==a&&a,l=e.searchComponentID,c=e.appendToAggs,p=void 0!==c&&c;return function(e,o){var a=o(),c=a.appbaseRef,d=a.config,h=a.headers,f=!1;d&&((0,Pe.isPropertyDefined)(d.analytics)?f=d.analytics:d.analyticsConfig&&((0,Pe.isPropertyDefined)(d.analyticsConfig.recordAnalytics)?f=d.analyticsConfig.recordAnalytics:(0,Pe.isPropertyDefined)(d.analyticsConfig.analytics)&&(f=d.analyticsConfig.analytics)));var g={recordAnalytics:f};d.analyticsConfig&&(g.userId=(0,Pe.isPropertyDefined)(d.analyticsConfig.userId)?d.analyticsConfig.userId:void 0,g.enableQueryRules=(0,Pe.isPropertyDefined)(d.analyticsConfig.enableQueryRules)?d.analyticsConfig.enableQueryRules:void 0,g.customEvents=(0,Pe.isPropertyDefined)(d.analyticsConfig.customEvents)?d.analyticsConfig.customEvents:void 0),r.forEach((function(t){e((0,Ce.setLoading)(t,!0)),e((0,Ce.setError)(t,null))})),c.setHeaders(n({},h)),s&&l&&e(u(l)),c.reactiveSearchv3(t,g).then((function(t){(0,Pe.handleResponse)({res:t,orderOfQueries:r,appendToHits:i,appendToAggs:p},o,e)})).catch((function(t){(0,Pe.handleError)({orderOfQueries:r,error:t},o,e)}))}}var d=[],h=!1;function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments[3],i=arguments[4];return function(u,l){var f=l(),g=f.queryLog,m=f.config,y=f.mapData,v=f.watchMan,b=f.dependencyTree,O=f.queryList,C=f.queryOptions,w=f.queryListener,S=f.props,_=f.selectedValues,T=f.internalValues,E=m.initialQueriesSyncTime,I=m.initialTimestamp,A=[e],$=[],R={},k=[],x=m&&m.enableAppbase;if(t){var Q=v[e]||[];A=[].concat(s(A),s(Q))}var V={match_all:{}};if(A.forEach((function(t){var o=S[t];_[e]&&"URL"!==_[e].reference&&o&&[P.componentTypes.reactiveList,P.componentTypes.reactiveMap].includes(o.componentType)&&u((0,Oe.setValue)(t,null));var c=(0,fe.buildQuery)(t,b,O,C),p=c.queryObj,d=c.options,h=["aggs","from","sort"];if(p&&Object.keys(p).length||d&&Object.keys(d).some((function(e){return h.includes(e)}))){(!p||p&&!Object.keys(p).length)&&(p=n({},V));var f=n({query:n({},p)},d,C[t]),v=n({query:n({},p)},d,C[t]),E=g[t];if(r||!(0,fe.isEqual)(f,E)){k=[].concat(s(k),[t]),u((0,Ce.logQuery)(t,v));var I=Object.keys(y).includes(t);if(I&&y[t].query){var A=f.query;f.query={bool:{must:[A,y[t].query]}},y[t].persistMapQuery||u((0,Re.updateMapData)(e,null,!1));var Q=l().combinedLog;if((0,fe.isEqual)(Q[t],f))return;u((0,Ce.logCombinedQuery)(t,f))}if((0,Pe.executeQueryListener)(w[t],E,f),x){var L=void 0,j=e.endsWith("__internal"),D=S[e];j&&D&&(0,_e.isSearchComponent)(D.componentType)&&(L=T[e]&&T[e].value);var F=(0,_e.getRSQuery)(t,(0,_e.extractPropsFromState)(l(),t,n({},L?{value:L}:null,i?{from:i.from}:null)));if(F&&(R=n({},R,a({},t,F),(0,_e.getDependentQueries)(l(),t,k))),I){var M=(0,_e.getInternalComponentID)(t),N=(0,_e.getRSQuery)(M,(0,_e.extractPropsFromState)(l(),M,i?{from:i.from}:null));N&&(R[M]=n({},N,{execute:!1}))}}else{var U=m&&m.analyticsConfig&&m.analyticsConfig.userId?m.analyticsConfig.userId+"_"+t:t;$=[].concat(s($),[{preference:U},f])}}}})),x&&($=Object.keys(R).map((function(e){return R[e]}))),$.length)if(x){var L=[P.componentTypes.dataSearch,P.componentTypes.categorySearch],j=e.endsWith("__internal")&&-1!==L.indexOf(o);(new Date).getTime()-I<E?(h||setTimeout((function(){var e=[],t=!1,n="",r={},o={},i={};d.forEach((function(a){t||(t=a.isSuggestionsQuery),n||(n=a.searchComponentID),Array.isArray(a.query)&&a.query.forEach((function(e){e.execute&&(i[e.id]=e.execute);var t=e;i[e.id]&&(t.execute=!0),o[e.id]=t})),Array.isArray(a.orderOfQueries)&&a.orderOfQueries.forEach((function(t){r[t.id]?r[t.id]=!0:e=[t].concat(s(e))}))}));var a=Object.values(o);a.length&&u(p({query:a,orderOfQueries:e,isSuggestionsQuery:t,searchComponentID:n})),d=[]}),E),h=!0,d.push({query:$,orderOfQueries:k,isSuggestionsQuery:j,searchComponentID:e})):u(p({query:$,orderOfQueries:k,isSuggestionsQuery:j,searchComponentID:e}))}else u(c($,k,!1,e.endsWith("__internal"),void 0,o))}}}));r(Ve);Ve.loadPopularSuggestions,Ve.executeQuery,Ve.setQueryOptions,Ve.updateQuery,Ve.loadMore;var Le=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addComponent=function(e){return{type:b.ADD_COMPONENT,component:e}},t.removeComponent=function(e){return{type:b.REMOVE_COMPONENT,component:e}},t.watchComponent=function(e,t){return function(n){n(function(e,t){return{type:b.WATCH_COMPONENT,component:e,react:t}}(e,t)),n((0,Ve.executeQuery)(e))}}}));r(Le);Le.addComponent,Le.removeComponent,Le.watchComponent;var je=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.setComponentProps=function(e,t,o){return{type:b.SET_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.updateComponentProps=function(e,t,o){return{type:b.UPDATE_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.removeComponentProps=function(e){return{type:b.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){P.validProps.includes(n)&&(t[n]=e[n])})),t}}));r(je);je.setComponentProps,je.updateComponentProps,je.removeComponentProps;var De=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=e.url,o=e.app,i=e.credentials,a=e.headers,s=e.documentId,u=e.clickPosition,l=e.queryId,c=e.clickType;s?fetch(t+"/"+o+"/_analytics/click",{method:"PUT",body:JSON.stringify({query_id:l,click_type:c||"result",click_on:r({},s,u+1)}),headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(i)})}):console.warn("ReactiveSearch: document id is required to record the click analytics")}t.setSuggestionsSearchValue=function(e){return{type:b.SET_SUGGESTIONS_SEARCH_VALUE,value:e}},t.clearSuggestionsSearchValue=function(){return{type:b.CLEAR_SUGGESTIONS_SEARCH_VALUE}},t.updateAnalyticsConfig=function(e){return{type:b.UPDATE_ANALYTICS_CONFIG,analyticsConfig:e}},t.getRecentSearches=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:5,minChars:3};return function(t,r){var o=r(),i=o.config,a=o.headers,s=o.appbaseRef,u=s.url,l=s.protocol,c=s.credentials,p=i.app,d=i.mongodb,h=(l+"://"+u||"").replace(/\/+$/,""),f={headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(c)})},g="",m=function(e,t){g+=g?"&"+e+"="+t:e+"="+t};return i.analyticsConfig&&i.analyticsConfig.userId&&m("user_id",i.analyticsConfig.userId),e&&(e.size&&m("size",String(e.size)),e.from&&m("from",e.from),e.to&&m("to",e.to),e.minChars&&m("min_chars",String(e.minChars)),e.customEvents&&Object.keys(e.customEvents).forEach((function(t){m(t,e.customEvents[t])}))),d?t({type:b.RECENT_SEARCHES_SUCCESS,data:[]}):fetch(h+"/_analytics/"+p+"/recent-searches?"+g,f).then((function(e){return e.status>=500||e.status>=400?t({type:b.RECENT_SEARCHES_ERROR,error:e}):e.json().then((function(e){return t({type:b.RECENT_SEARCHES_SUCCESS,data:e})})).catch((function(e){return t({type:b.RECENT_SEARCHES_ERROR,error:e})}))})).catch((function(e){return t({type:b.RECENT_SEARCHES_ERROR,error:e})}))}},t.recordResultClick=function(e,t){return function(r,i){var a=i(),s=a.config,u=a.analytics.searchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=s.app,g=d+"://"+p;if(s.analytics&&u){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Click":!0,"X-Search-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,queryId:u})}}},t.recordSuggestionClick=function(e,t){return function(r,i){var a=i(),s=a.config,u=a.analytics.suggestionsSearchId,l=a.headers,c=a.appbaseRef,p=c.url,d=c.protocol,h=c.credentials,f=s.app,g=d+"://"+p;if(s.analytics&&(void 0===s.analyticsConfig||void 0===s.analyticsConfig.suggestionAnalytics||s.analyticsConfig.suggestionAnalytics)&&u&&void 0!==e){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Suggestions-Click":!0,"X-Search-Suggestions-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,clickType:"suggestion",queryId:u})}}},t.recordImpressions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(r,o){var i=o(),a=i.config.app,s=i.headers,u=i.appbaseRef,l=u.url,c=u.protocol,p=u.credentials,d=(c+"://"+l).replace(/\/+$/,"");!d.includes("scalr.api.appbase.io")&&e&&t.length&&fetch(d+"/"+a+"/_analytics/search",{method:"PUT",body:JSON.stringify({query_id:e,impressions:t}),keepalive:!0,headers:n({},s,{"Content-Type":"application/json",Authorization:"Basic "+btoa(p)})})}}}));r(De);De.setSuggestionsSearchValue,De.clearSuggestionsSearchValue;var Fe=De.updateAnalyticsConfig,Me=(De.getRecentSearches,De.recordResultClick,De.recordSuggestionClick,De.recordImpressions,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(Le).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Le[e]}})})),Object.keys(we).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return we[e]}})})),Object.keys(Re).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Re[e]}})})),Object.keys(Ve).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ve[e]}})})),Object.keys(Oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Oe[e]}})})),Object.keys(je).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return je[e]}})})),Object.keys(De).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return De[e]}})})),Object.keys(Ce).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ce[e]}})}))})));if(r(Me),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}},configurable:!0,writable:!0}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=this.length-e.length;return t>=0&&this.lastIndexOf(e)===t}),"function"!=typeof Event){"undefined"!=typeof window&&(window.Event=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t})}var Ne=Object.freeze({__proto__:null}),Ue=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={ENTER_PRESS:"ENTER_PRESS",SUGGESTION_SELECT:"SUGGESTION_SELECT",CLEAR_VALUE:"CLEAR_VALUE",SEARCH_ICON_CLICK:"SEARCH_ICON_CLICK"};t.default=n}));r(Ue);var qe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.constants=t.Reducers=t.polyfills=t.storeKey=t.Actions=t.suggestions=t.causes=t.helper=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=n({},e,{config:n({},e.config,{analyticsConfig:e.config&&e.config.analyticsConfig?n({},k.defaultAnalyticsConfig,e.config.analyticsConfig):k.defaultAnalyticsConfig})});return(0,m.createStore)(o.default,t,A)};var r=O(v),o=O(le),i=y(Me),a=y(fe),s=O(de),u=O(P),l=O(Ne),c=O(Ue),p=O(D),d=O(T),h=O(I),f=O(S),g=O(Z);function y(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 O(e){return e&&e.__esModule?e:{default:e}}var C=b.STORE_KEY,w=s.default,_=c.default,E={valueReducer:p.default,queryOptionsReducer:h.default,queryReducer:d.default,dependencyTreeReducer:f.default,propsReducer:g.default};t.helper=a,t.causes=_,t.suggestions=w,t.Actions=i,t.storeKey=C,t.polyfills=l.default,t.Reducers=E,t.constants=u.default;var A=("object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):m.compose)((0,m.applyMiddleware)(r.default))})),He=r(qe),ze=(qe.constants,qe.Reducers,qe.polyfills,qe.storeKey,qe.Actions),Be=(qe.suggestions,qe.causes),Ge=qe.helper;function We(){return(We=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 Ye(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Ke(e,t){return t||(t=e.slice(0)),e.raw=t,e}function Xe(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}
|
|
7
7
|
/*!
|
|
8
8
|
* isobject <https://github.com/jonschlinkert/isobject>
|
|
9
9
|
*
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
17
17
|
* Released under the MIT License.
|
|
18
18
|
*/
|
|
19
|
-
function Ze(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}function Je(e){var t,n;return!1!==Ze(e)&&("function"==typeof(t=e.constructor)&&(!1!==Ze(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}var et=Object.prototype,tt=et.toString,nt=et.hasOwnProperty,rt=/^\s*function (\w+)/;function ot(e){var t=null!=e?e.type?e.type:e:null,n=t&&t.toString().match(rt);return n&&n[1]}function it(){}var at=function(){return!0},st=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},ut=Array.isArray||function(e){return"[object Array]"===tt.call(e)},lt=function(e){return"[object Function]"===tt.call(e)};function ct(e,t,n){var r;return void 0===n&&(n=!1),Object.defineProperty(t,"_vueTypes_name",{enumerable:!1,writable:!1,value:e}),function(e){Object.defineProperty(e,"def",{value:function(e){return void 0!==e||this.default?lt(e)||pt(this,e)?(ut(e)?this.default=function(){return[].concat(e)}:Je(e)?this.default=function(){return Object.assign({},e)}:this.default=e,this):(dt(this._vueTypes_name+' - invalid default value: "'+e+'"',e),this):this},enumerable:!1,writable:!1})}((r=t,Object.defineProperty(r,"isRequired",{get:function(){return this.required=!0,this},enumerable:!1}))),n?function(e){Object.defineProperty(e,"validate",{value:function(e){return this.validator=e.bind(this),this},enumerable:!1})}(t):Object.defineProperty(t,"validate",{value:function(){return dt(e+' - "validate" method not supported on this type'),this},enumerable:!1}),lt(t.validator)&&(t.validator=t.validator.bind(t)),t}function pt(e,t,n){void 0===n&&(n=!1);var r,o=e,i=!0;Je(e)||(o={type:e});var a,s=o._vueTypes_name?o._vueTypes_name+" - ":"";if(nt.call(o,"type")&&null!==o.type){if(void 0===o.type)throw new TypeError("[VueTypes error]: Setting type to undefined is not allowed.");if(!o.required&&void 0===t)return i;ut(o.type)?(i=o.type.some((function(e){return pt(e,t,!0)})),r=o.type.map((function(e){return ot(e)})).join(" or ")):i="Array"===(r=ot(o))?ut(t):"Object"===r?Je(t):"String"===r||"Number"===r||"Boolean"===r||"Function"===r?function(e){if(null==e)return null;var t=e.constructor.toString().match(rt);return t&&t[1]}(t)===r:t instanceof o.type}return i?nt.call(o,"validator")&<(o.validator)?(n&&(a=dt,dt=it),i=o.validator(t),a&&(dt=a),i||!1!==n||dt(s+"custom validation failed"),i):i:(!1===n&&dt(s+'value "'+t+'" should be of type "'+r+'"'),!1)}var dt=it;var ht,ft,gt={get any(){return ct("any",{type:null},!0)},get func(){return ct("function",{type:Function},!0).def(gt.sensibleDefaults.func)},get bool(){return ct("boolean",{type:Boolean},!0).def(gt.sensibleDefaults.bool)},get string(){return ct("string",{type:String},!0).def(gt.sensibleDefaults.string)},get number(){return ct("number",{type:Number},!0).def(gt.sensibleDefaults.number)},get array(){return ct("array",{type:Array},!0).def(gt.sensibleDefaults.array)},get object(){return ct("object",{type:Object},!0).def(gt.sensibleDefaults.object)},get integer(){return ct("integer",{type:Number,validator:function(e){return st(e)}}).def(gt.sensibleDefaults.integer)},get symbol(){return ct("symbol",{type:null,validator:function(e){return"symbol"==typeof e}},!0)},extend:function(e){if(void 0===e&&(e={}),ut(e))return e.forEach((function(e){return gt.extend(e)})),this;var t,n,r=e,o=r.name,i=r.validate,a=void 0!==i&&i,s=r.getter,u=void 0!==s&&s,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["name","validate","getter"]);if(t=gt,n=o,nt.call(t,n))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var c,p=l.type,d=l.validator,h=void 0===d?at:d;if(p&&p._vueTypes_name){delete l.type;for(var f=["type","required","default"],g=0;g<f.length;g+=1){var m=f[g];void 0!==p[m]&&(l[m]=p[m])}a=!1,lt(p.validator)&&(l.validator=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p.validator.apply(p,t)&&h.apply(this,t)})}if(u)c={get:function(){return ct(o,Object.assign({},l),a)},enumerable:!0,configurable:!1};else{var y=l.validator;c={value:function(){var e=ct(o,Object.assign({},l),a);if(y){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.validator=y.bind.apply(y,[e].concat(n))}return e},writable:!1,enumerable:!0,configurable:!1}}return Object.defineProperty(this,o,c)},custom:function(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return ct(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||dt(this._vueTypes_name+" - "+t),r}})},oneOf:function(e){if(!ut(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 ct("oneOf",{type:n.length>0?n:null,validator:function(n){var r=-1!==e.indexOf(n);return r||dt(t),r}})},instanceOf:function(e){return ct("instanceOf",{type:e})},oneOfType:function(e){if(!ut(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t=!1,n=e.reduce((function(e,n){if(Je(n)){if("oneOf"===n._vueTypes_name)return e.concat(n.type||[]);if(lt(n.validator))return t=!0,e;if(n.type){if(ut(n.type))return e.concat(n.type);e.push(n.type)}return e}return e.push(n),e}),[]);if(!t)return ct("oneOfType",{type:n});var r=e.map((function(e){return e&&ut(e.type)?e.type.map(ot):ot(e)})).reduce((function(e,t){return e.concat(ut(t)?t:[t])}),[]).join('", "');return this.custom((function(t){var n=e.some((function(e){return"oneOf"===e._vueTypes_name?!e.type||pt(e.type,t,!0):pt(e,t,!0)}));return n||dt('oneOfType - value type should be one of "'+r+'"'),n}))},arrayOf:function(e){return ct("arrayOf",{type:Array,validator:function(t){var n=t.every((function(t){return pt(e,t)}));return n||dt('arrayOf - value must be an array of "'+ot(e)+'"'),n}})},objectOf:function(e){return ct("objectOf",{type:Object,validator:function(t){var n=Object.keys(t).every((function(n){return pt(e,t[n])}));return n||dt('objectOf - value must be an object of "'+ot(e)+'"'),n}})},shape:function(e){var t=Object.keys(e),n=t.filter((function(t){return e[t]&&!0===e[t].required})),r=ct("shape",{type:Object,validator:function(r){var o=this;if(!Je(r))return!1;var i=Object.keys(r);return n.length>0&&n.some((function(e){return-1===i.indexOf(e)}))?(dt('shape - at least one of required properties "'+n.join('", "')+'" is not present'),!1):i.every((function(n){return-1===t.indexOf(n)?!0===o._vueTypes_isLoose||(dt('shape - object is missing "'+n+'" property'),!1):pt(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}};ht=gt,ft={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0},Object.defineProperty(ht,"sensibleDefaults",{enumerable:!1,set:function(e){ft=!1===e?{}:!0===e?{func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}:e},get:function(){return ft}}),gt.utils={validate:function(e,t){return pt(t,e,!0)},toType:ct};var mt="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var yt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function vt(e){function t(e,t,r){var o=t.trim().split(f);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[u++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",s=2*t+3*n+4*i;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===P||2===P&&o(u,1)?"-webkit-"+u+u:u}if(0===P||2===P&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(T,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return d.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(b,"tb");break;case 232:u=a.replace(b,"tb-rl");break;case 220:u=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===_.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),x(2!==t?r:r.replace(S,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,s,l,c){for(var p,d=0,h=t;d<k;++d)switch(p=R[d].call(u,e,h,n,r,o,i,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:h=p}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(x=null,e?"function"!=typeof e?P=1:(P=2,x=e):P=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<k){var u=a(-1,n,s,s,I,E,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var p=function e(n,s,u,p,d){for(var h,f,g,b,O,w=0,S=0,_=0,T=0,R=0,x=0,L=g=h=0,V=0,j=0,D=0,F=0,M=u.length,N=M-1,U="",q="",H="",z="";V<M;){if(f=u.charCodeAt(V),V===N&&0!==S+T+_+w&&(0!==S&&(f=47===S?10:47),T=_=w=0,M++,N++),0===S+T+_+w){if(V===N&&(0<j&&(U=U.replace(c,"")),0<U.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:U+=u.charAt(V)}f=59}switch(f){case 123:for(h=(U=U.trim()).charCodeAt(0),g=1,F=++V;V<M;){switch(f=u.charCodeAt(V)){case 123:g++;break;case 125:g--;break;case 47:switch(f=u.charCodeAt(V+1)){case 42:case 47:e:{for(L=V+1;L<N;++L)switch(u.charCodeAt(L)){case 47:if(42===f&&42===u.charCodeAt(L-1)&&V+2!==L){V=L+1;break e}break;case 10:if(47===f){V=L+1;break e}}V=L}}break;case 91:f++;case 40:f++;case 34:case 39:for(;V++<N&&u.charCodeAt(V)!==f;);}if(0===g)break;V++}switch(g=u.substring(F,V),0===h&&(h=(U=U.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<j&&(U=U.replace(c,"")),f=U.charCodeAt(1)){case 100:case 109:case 115:case 45:j=s;break;default:j=$}if(F=(g=e(s,j,g,f,d+1)).length,0<k&&(O=a(3,g,j=t($,U,D),s,I,E,F,f,d,p),U=j.join(""),void 0!==O&&0===(F=(g=O.trim()).length)&&(f=0,g="")),0<F)switch(f){case 115:U=U.replace(C,i);case 100:case 109:case 45:g=U+"{"+g+"}";break;case 107:g=(U=U.replace(m,"$1 $2"))+"{"+g+"}",g=1===P||2===P&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=U+g,112===p&&(q+=g,g="")}else g="";break;default:g=e(s,t(s,U,D),g,p,d+1)}H+=g,g=D=j=L=h=0,U="",f=u.charCodeAt(++V);break;case 125:case 59:if(1<(F=(U=(0<j?U.replace(c,""):U).trim()).length))switch(0===L&&(h=U.charCodeAt(0),45===h||96<h&&123>h)&&(F=(U=U.replace(" ",":")).length),0<k&&void 0!==(O=a(1,U,s,n,I,E,q.length,p,d,p))&&0===(F=(U=O.trim()).length)&&(U="\0\0"),h=U.charCodeAt(0),f=U.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){z+=U+u.charAt(V);break}default:58!==U.charCodeAt(F-1)&&(q+=r(U,h,f,U.charCodeAt(2)))}D=j=L=h=0,U="",f=u.charCodeAt(++V)}}switch(f){case 13:case 10:47===S?S=0:0===1+h&&107!==p&&0<U.length&&(j=1,U+="\0"),0<k*Q&&a(0,U,s,n,I,E,q.length,p,d,p),E=1,I++;break;case 59:case 125:if(0===S+T+_+w){E++;break}default:switch(E++,b=u.charAt(V),f){case 9:case 32:if(0===T+w+S)switch(R){case 44:case 58:case 9:case 32:b="";break;default:32!==f&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===T+S+w&&(j=D=1,b="\f"+b);break;case 108:if(0===T+S+w+A&&0<L)switch(V-L){case 2:112===R&&58===u.charCodeAt(V-3)&&(A=R);case 8:111===x&&(A=x)}break;case 58:0===T+S+w&&(L=V);break;case 44:0===S+_+T+w&&(j=1,b+="\r");break;case 34:case 39:0===S&&(T=T===f?0:0===T?f:T);break;case 91:0===T+S+_&&w++;break;case 93:0===T+S+_&&w--;break;case 41:0===T+S+w&&_--;break;case 40:if(0===T+S+w){if(0===h)switch(2*R+3*x){case 533:break;default:h=1}_++}break;case 64:0===S+_+T+w+L+g&&(g=1);break;case 42:case 47:if(!(0<T+w+_))switch(S){case 0:switch(2*f+3*u.charCodeAt(V+1)){case 235:S=47;break;case 220:F=V,S=42}break;case 42:47===f&&42===R&&F+2!==V&&(33===u.charCodeAt(F+2)&&(q+=u.substring(F,V+1)),b="",S=0)}}0===S&&(U+=b)}x=R,R=f,V++}if(0<(F=q.length)){if(j=s,0<k&&(void 0!==(O=a(2,q,j,n,I,E,F,p,d,p))&&0===(q=O).length))return z+q+H;if(q=j.join(",")+"{"+q+"}",0!=P*A){switch(2!==P||o(q,2)||(A=0),A){case 111:q=q.replace(v,":-moz-$1")+q;break;case 112:q=q.replace(y,"::-webkit-input-$1")+q.replace(y,"::-moz-$1")+q.replace(y,":-ms-input-$1")+q}A=0}}return z+q+H}($,s,n,0,0);return 0<k&&(void 0!==(u=a(-2,p,s,s,I,E,p.length,0,0,0))&&(p=u)),"",A=0,E=I=1,p}var l=/^\0+/g,c=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,f=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,w=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,_=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,E=1,I=1,A=0,P=1,$=[],R=[],k=0,x=null,Q=0;return u.use=function e(t){switch(t){case void 0:case null:k=R.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:R[k++]=t;break;case Boolean:Q=0|!!t}}return e},u.set=s,void 0!==e&&s(e),u}var bt,Ct,Ot=o((function(e,t){e.exports=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,u,l,c,p){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}})),wt=/[A-Z]|^ms/g,St=(bt=function(e){return e.replace(wt,"-$&").toLowerCase()},Ct={},function(e){return void 0===Ct[e]&&(Ct[e]=bt(e)),Ct[e]}),_t=function(e,t){return null==t||"boolean"==typeof t?"":1===yt[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},Tt=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"function":a=e([i()]);break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o},Et="undefined"!=typeof document;function It(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 At=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]=It(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(this.tags[this.tags.length-1]);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else{var r=It(this.opts);this.tags.push(r),r.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(It(this.opts))},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,this.injected=!1},e}();var Pt=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var n,r,o=t.key||"css",i=Ot((function(e){n+=e,Et&&s.insert(e,l)}));void 0!==t.prefix&&(r={prefix:t.prefix});var a={registered:{},inserted:{},nonce:t.nonce,key:o},s=new At(t);Et&&s.inject();var u=new vt(r);u.use(t.stylisPlugins)(i);var l="";function c(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var n=e.toString();return n}return c.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return f.call(this,e);default:var r=a.registered[e];return!1===t&&void 0!==r?r:e}}var p,d,h=new WeakMap;function f(e){if(h.has(e))return h.get(e);var t="";return Array.isArray(e)?e.forEach((function(e){t+=c.call(this,e,!1)}),this):Object.keys(e).forEach((function(n){"object"!=typeof e[n]?void 0!==a.registered[e[n]]?t+=n+"{"+a.registered[e[n]]+"}":t+=St(n)+":"+_t(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+=St(n)+":"+_t(n,e)+";"})):t+=n+"{"+c.call(this,e[n],!1)+"}"}),this),h.set(e,t),t}var g=/label:\s*([^\s;\n{]+)\s*;/g,m=function(e,t){return function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}(e+t)+t},y=function(e){var t=!0,n="",r="";null==e||void 0===e.raw?(t=!1,n+=c.call(this,e,!1)):n+=e[0];for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return i.forEach((function(r,o){n+=c.call(this,r,46===n.charCodeAt(n.length-1)),!0===t&&void 0!==e[o+1]&&(n+=e[o+1])}),this),d=n,n=n.replace(g,(function(e,t){return r+="-"+t,""})),p=m(n,r),n};function v(e,t){void 0===a.inserted[p]&&(n="",u(e,t),a.inserted[p]=n)}var b=function(){var e=y.apply(this,arguments),t=o+"-"+p;return void 0===a.registered[t]&&(a.registered[t]=d),v("."+t,e),t};function C(e,t){var n="";return t.split(" ").forEach((function(t){void 0!==a.registered[t]?e.push(t):n+=t+" "})),n}function O(e,t){var n=[],r=C(n,e);return n.length<2?e:r+b(n,t)}function w(e){a.inserted[e]=!0}if(Et){var S=document.querySelectorAll("[data-emotion-"+o+"]");Array.prototype.forEach.call(S,(function(e){s.tags[0].parentNode.insertBefore(e,s.tags[0]),e.getAttribute("data-emotion-"+o).split(" ").forEach(w)}))}var _={flush:function(){Et&&(s.flush(),s.inject()),a.inserted={},a.registered={}},hydrate:function(e){e.forEach(w)},cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(Tt(t))},merge:O,getRegisteredStyles:C,injectGlobal:function(){var e=y.apply(this,arguments);v("",e)},keyframes:function(){var e=y.apply(this,arguments),t="animation-"+p;return v("","@keyframes "+t+"{"+e+"}"),t},css:b,sheet:s,caches:a};return e.__SECRET_EMOTION__=_,_}(void 0!==mt?mt:{}),$t=(Pt.flush,Pt.hydrate,Pt.cx),Rt=(Pt.merge,Pt.getRegisteredStyles),kt=Pt.injectGlobal,xt=(Pt.keyframes,Pt.css),Qt=(Pt.sheet,Pt.caches,function(e){for(var t=arguments,n=1;n<arguments.length;n++)for(var r in arguments[n])e[r]=t[n][r];return e}),Lt="__emotion_styles";function Vt(e){return(Vt="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 jt(e){return Array.isArray(e)?e.join(" "):"object"===Vt(e)?Object.keys(e).filter((function(t){return Boolean(e[t])})).join(" "):e}var Dt=function(e,t){var n,r,o,i;void 0!==t&&(n=t.e,r=t.label,o=t.target,i=t.props);var a=e.__emotion_real===e,s=void 0===n&&a&&e.__emotion_base||e;return function(){var t=a&&void 0!==e[Lt]?e[Lt].slice(0):[];if(void 0!==r&&t.push("label:".concat(r,";")),void 0===n){for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];if(null===l[0]||void 0===l[0].raw)t.push.apply(t,l);else{t.push(l[0][0]);for(var p=l.length,d=1;d<p;d++)t.push(l[d],l[0][d])}}var h={name:"Styled".concat(e.name||r||"Component"),functional:!0,inject:{theme:{from:"theme_reactivesearch",default:null}},props:i,render:function(r,i){var a=i.data,s=i.children,u=i.props,l=i.injections,c="",p=[],d=jt(a.class),h={};for(var f in a.attrs)"$"!==f[0]&&(h[f]=a.attrs[f]);if(d&&(c+=void 0===n?Rt(p,d):"".concat(d," ")),void 0===n){var g={mergedProps:Qt({theme:l.theme},u)};c+=xt.apply(g,t.concat(p))}else c+=n;return void 0!==o&&(c+=" ".concat(o)),r(e,Qt({},a,{attrs:h,class:c}),s)}};return h[Lt]=t,h.__emotion_base=s,h.__emotion_real=h,Object.defineProperty(h,"toString",{enumerable:!1,value:function(){return".".concat(o)}}),h}};function Ft(){return(Ft=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 Mt(e){return Math.round(255*e)}function Nt(e,t,n){return Mt(e)+","+Mt(t)+","+Mt(n)}function Ut(e,t,n,r){if(void 0===r&&(r=Nt),0===t)return r(n,n,n);var o=e%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,u=0,l=0;o>=0&&o<1?(s=i,u=a):o>=1&&o<2?(s=a,u=i):o>=2&&o<3?(u=i,l=a):o>=3&&o<4?(u=a,l=i):o>=4&&o<5?(s=a,l=i):o>=5&&o<6&&(s=i,l=a);var c=n-i/2;return r(s+c,u+c,l+c)}var qt={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var Ht=/^#[a-fA-F0-9]{6}$/,zt=/^#[a-fA-F0-9]{8}$/,Bt=/^#[a-fA-F0-9]{3}$/,Gt=/^#[a-fA-F0-9]{4}$/,Wt=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,Yt=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,Kt=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,Xt=/^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 Zt(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return qt[t]?"#"+qt[t]:e}(e);if(t.match(Ht))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(zt)){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(Bt))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(Gt)){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=Wt.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=Yt.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=Kt.exec(t);if(a){var s="rgb("+Ut(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=Wt.exec(s);if(!u)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+s+".");return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var l=Xt.exec(t);if(l){var c="rgb("+Ut(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",p=Wt.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 Jt(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u=i-a,l=s>.5?u/(2-i-a):u/(i+a);switch(i){case n:t=(r-o)/u+(r<o?6:0);break;case r:t=(o-n)/u+2;break;default:t=(n-r)/u+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:l,lightness:s,alpha:e.alpha}:{hue:t,saturation:l,lightness:s}}(Zt(e))}var en=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 tn(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function nn(e){return tn(Math.round(255*e))}function rn(e,t,n){return en("#"+nn(e)+nn(t)+nn(n))}function on(e,t,n){return Ut(e,t,n,rn)}function an(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return en("#"+tn(e)+tn(t)+tn(n));if("object"==typeof e&&void 0===t&&void 0===n)return en("#"+tn(e.red)+tn(e.green)+tn(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 sn(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=Zt(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?an(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?an(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 un="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function ln(e){if("object"!=typeof e)throw new Error(un);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return sn(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return an(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?on(e,t,n):"rgba("+Ut(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?on(e.hue,e.saturation,e.lightness):"rgba("+Ut(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return on(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return on(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}(e);throw new Error(un)}function cn(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function pn(e,t,n){return Math.max(e,Math.min(t,n))}function dn(e,t){var n=Jt(t);return ln(Ft({},n,{lightness:pn(0,1,n.lightness-parseFloat(e))}))}var hn=cn(dn);function fn(e,t){var n=Jt(t);return ln(Ft({},n,{lightness:pn(0,1,n.lightness+parseFloat(e))}))}var gn,mn,yn,vn,bn,Cn,On,wn,Sn=cn(fn),_n=function(e){var t=e.colors.borderColor;return xt(gn||(gn=Ke(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 2px 3px;\n\t\tpadding: 5px 8px;\n\t\tfont-size: 0.85rem;\n\t\tposition: relative;\n\n\t\tspan:first-child {\n\t\t\tmax-width: 260px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-right: 26px;\n\t\t}\n\n\t\tspan:last-child {\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 8px;\n\t\t\tposition: absolute;\n\t\t\talign-items: center;\n\t\t\tborder-left: 1px solid ",";\n\t\t\tpadding-left: 8px;\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tspan:first-child {\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t}\n"])),t||"#fff")},Tn=xt(mn||(mn=Ke(["\n\tmargin: 10px -3px;\n\tmax-width: 100%;\n\ttext-align: center;\n\n\ta {\n\t\tmargin: 0 3px;\n\t}\n"]))),En=xt(yn||(yn=Ke(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 3px 3px;\n\t}\n"]))),In=(xt(vn||(vn=Ke(["\n\tmargin: 0 -5px;\n\ta {\n\t\tmargin: 5px;\n\t}\n\tspan {\n\t\tmargin: 0 5px;\n\t}\n"]))),function(e){var t=e.theme;return xt(bn||(bn=Ke(["\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,hn(.1,t.colors.primaryColor))}),An=function(){return xt(Cn||(Cn=Ke(["\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"])))},Pn=function(e){var t=e.theme;return xt(On||(On=Ke(["\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?Sn(.1,t.colors.backgroundColor):"#fafafa",t.colors.backgroundColor?Sn(.2,t.colors.backgroundColor):"#fafafa")},$n=Dt("a")(wn||(wn=Ke(["\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"])),(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?hn(.1,t.colors.backgroundColor):"#ccc"}),(function(e){return sn(e.theme.colors.primaryColor,.6)}),(function(e){return"0 0 0 2px "+sn(e.theme.colors.primaryColor,.3)}),(function(e){return e.primary?In:null}),(function(e){return e.disabled?Pn:null}),(function(e){return e.large&&An})),Rn=xt({margin:"5px 0",display:"flex",justifyContent:"center"});gt.sensibleDefaults=!1;var kn=gt.oneOfType([gt.string,gt.arrayOf(gt.string),gt.object,gt.arrayOf(gt.object)]);function xn(e,t){return isNaN(e[t])?new Error(t+" value must be a VueTypes.number"):"lat"===t&&(e[t]<-90||e[t]>90)?new Error(t+" value should be between -90 and 90."):"lng"===t&&(e[t]<-180||e[t]>180)?new Error(t+" value should be between -180 and 180."):null}var Qn={any:gt.any,bool:gt.bool,boolRequired:gt.bool.isRequired,components:gt.arrayOf(gt.string),children:gt.any,data:gt.arrayOf(gt.object),dataFieldArray:gt.oneOfType([gt.string,gt.arrayOf(gt.string)]).isRequired,dataNumberBox:gt.shape({label:gt.string,start:gt.number.isRequired,end:gt.number.isRequired}).isRequired,date:gt.oneOfType([gt.string,gt.arrayOf(gt.string)]),dateObject:gt.object,excludeFields:gt.arrayOf(gt.string),fieldWeights:gt.arrayOf(gt.number),filterLabel:gt.string,func:gt.func,funcRequired:gt.func.isRequired,fuzziness:gt.oneOf([0,1,2,"AUTO"]),headers:gt.object,hits:gt.arrayOf(gt.object),iconPosition:gt.oneOf(["left","right"]),includeFields:gt.arrayOf(gt.string),labelPosition:gt.oneOf(["left","right","top","bottom"]),number:gt.number,options:gt.oneOfType([gt.arrayOf(gt.object),gt.object]),paginationAt:gt.oneOf(["top","bottom","both"]),range:gt.shape({start:gt.number.isRequired,end:gt.number.isRequired}),rangeLabels:gt.shape({start:gt.string.isRequired,end:gt.string.isRequired}),react:gt.shape({and:kn,or:kn,not:kn}),selectedValues:gt.object,selectedValue:gt.oneOfType([gt.string,gt.arrayOf(gt.string),gt.arrayOf(gt.object),gt.object,Number,gt.arrayOf(Number)]),suggestions:gt.arrayOf(gt.object),supportedOrientations:gt.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),sortBy:gt.oneOf(["asc","desc"]),sortOptions:gt.arrayOf(gt.shape({label:gt.string,dataField:gt.string,sortBy:gt.string})),sortByWithCount:gt.oneOf(["asc","desc","count"]),stats:gt.arrayOf(gt.object),string:gt.string,stringArray:gt.arrayOf(gt.string),stringOrArray:gt.oneOfType([gt.string,gt.arrayOf(gt.string)]),stringRequired:gt.string.isRequired,style:gt.object,themePreset:gt.oneOf(["light","dark"]),queryFormatSearch:gt.oneOf(["and","or"]),queryFormatNumberBox:gt.oneOf(["exact","lte","gte"]),params:gt.object.isRequired,props:gt.object,rangeLabelsAlign:gt.oneOf(["left","right"]),title:gt.oneOfType([gt.string,gt.any]),tooltipTrigger:gt.oneOf(["always","none","hover"]),location:gt.shape({lat:xn,lng:xn}),unit:gt.oneOf(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),value:gt.string.def(void 0),analyticsConfig:gt.shape({searchStateHeader:gt.bool,emptyQuery:gt.bool,suggestionAnalytics:gt.bool,userId:gt.string,customEvents:gt.object}),appbaseConfig:gt.shape({enableQueryRules:gt.bool,recordAnalytics:gt.bool,searchStateHeader:gt.bool,emptyQuery:gt.bool,suggestionAnalytics:gt.bool,userId:gt.string,customEvents:gt.object,enableTelemetry:gt.bool.def(!0)}).def({}),mongodb:gt.shape({db:gt.string,collection:gt.string})},Ln=Ge.getClassName,Vn=Ge.handleA11yAction;function jn(e,t,n){var r=parseInt(e/2,10),o=t-(n?Math.ceil(r/2)-1:r);return o>1?o:2}var Dn,Fn={name:"Pagination",functional:!0,props:{currentPage:Qn.number,innerClass:Qn.style,pages:Qn.number,setPage:Qn.func,totalPages:Qn.number,showEndPage:gt.bool,prevLabel:Qn.string,nextLabel:Qn.string},render:function(e,t){var n=arguments[0],r=t.props,o=function(){r.currentPage&&r.setPage(r.currentPage-1)},i=function(){r.currentPage<r.totalPages-1&&r.setPage(r.currentPage+1)};if(!r.totalPages)return null;var a=Ln(r.innerClass,"button"),s=0===r.currentPage,u=a||s?a+" "+(s?"active":""):"",l=function(e){var t=r.pages,o=r.currentPage,i=r.totalPages,s=r.setPage,u=r.showEndPage,l="start"===e?jn(t,o,u):Math.max(2,Math.ceil(i-(t-1)/2+1)),c=[];if(l<=i){var p=t<i?l+(t-1):i+1;u&&(p="start"===e?l+(Math.ceil(t/2)-t%2):i+1),o>i-t+2&&(p=(l=Math.max(2,i-t+2))+t);for(var d=function(e){var t=o===e-1,r=n($n,{class:a||t?a+" "+(t?"active":""):"",attrs:{primary:t,tabIndex:"0",alt:"page-"+e},on:{keyPress:function(t){return Vn(t,(function(){return s(e-1)}))},click:function(){return s(e-1)}}},[e]);e<=i+1&&c.push(r)},h=l;h<Math.min(i+1,p);h+=1)d(h)}return c},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"):null:l("start")};return n("div",{class:Tn+" "+Ln(r.innerClass,"pagination")},[n($n,{class:Ln(r.innerClass,"button")||"",attrs:{disabled:0===r.currentPage,tabIndex:"0"},on:{keyPress:function(e){return Vn(e,o)},click:o}},[r.prevLabel||"Prev"]),n($n,{class:u,attrs:{primary:s,tabIndex:"0"},on:{keyPress:function(e){return Vn(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)?n("span",["..."]):null,c(),r.showEndPage&&r.pages>2&&r.currentPage<=r.totalPages-Math.ceil(.75*r.pages)?n("span",["..."]):null,r.showEndPage&&r.totalPages>=r.pages&&l("end"),n($n,{class:Ln(r.innerClass,"button")||"",attrs:{disabled:r.currentPage>=r.totalPages-1,tabIndex:"0"},on:{keyPress:function(e){return Vn(e,i)},click:i}},[r.nextLabel||"Next"])])}};Fn.install=function(e){e.component(Fn.name,Fn)};var Mn=Dt("img")(Dn||(Dn=Ke(["\n\twidth: 110px;\n"]))),Nn={functional:!0,render:function(e){return e("a",{attrs:{href:"https://appbase.io/",target:"_blank",rel:"noopener noreferrer"}},[e(Mn,{attrs:{src:"https://cdn.jsdelivr.net/gh/appbaseio/cdn@d2ec210045e59104ee5485841fa17b23fc83f097/appbase/logos/rbc-logo.svg"}})])}},Un=Object.prototype.hasOwnProperty;function qn(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}var Hn=function(){return{}},zn={},Bn=function(e,t){return void 0===e&&(e=Hn),void 0===t&&(t=zn),function(n){var r=function(e){if("function"==typeof e)return e;if(e===Object(e))return function(t,n){return Object.keys(e).filter((function(t){return"function"==typeof e[t]})).reduce((function(r,o){var i;return We({},r,((i={})[o]=e[o](t,n),i))}),{})};throw new Error("[revux] - mapState provided to connect is invalid")}(e);return{name:"connect-"+n.name,mixins:[n],inject:["$$store"],data:function(){var e=We({},r(this.$$store.getState(),this.$props||{}),f(t,this.$$store.dispatch));return Object.keys(e).reduce((function(t,n){var r;return We({},t,((r={})[n]=e[n],r))}),{})},created:function(){var e,t,n,o,i=this;this._unsubscribe=(e=this.$$store,n=function(e){Object.keys(e).forEach((function(t){i.$set(i,t,e[t])}))},o=(t=function(e){return r(e,i.$props||{})})(e.getState()),e.subscribe((function(){var r=t(e.getState());if(!function(e,t){if(qn(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(!Un.call(t,n[o])||!qn(e[n[o]],t[n[o]]))return!1;return!0}(o,r)){var i=o;n(o=r,i)}})))},beforeDestroy:function(){this._unsubscribe()}}}},Gn=Ge.updateDefaultQuery,Wn=Ge.updateCustomQuery,Yn=Ge.isEqual,Kn=function(){return Bn.apply(void 0,arguments)},Xn=function(e){return"function"==typeof e};function Zn(e,t){var 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 Jn=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=(t.$scopedSlots||t.$props).render;return n?n(e):null},er=function(e){void 0===e&&(e={});var t=(e.$scopedSlots||e.$props).render;return Boolean(t)},tr=function(e){return void 0===e&&(e={}),Object.keys(e).filter((function(e){return R.includes(e)}))},nr=function(e){return!!(e&&e.stopPropagation&&e.preventDefault)},rr=function(e,t,n,r){Gn(e,We({},n,{setDefaultQuery:t}),r)},or=function(e,t,n,r){Wn(e,We({},n,{setCustomQuery:t}),r)},ir=function(e,t,n,r){return"function"!=typeof e||"function"!=typeof t||Yn(t(n,r),e(n,r))},ar=function(e){void 0===e&&(e={});var t=e.$scopedSlots||e.$props,n=t.renderQuerySuggestions,r=t.renderPopularSuggestions;return Boolean(r)||Boolean(n)},sr=function(e){return!(e&&e.length&&Object.keys(e).length)};function ur(e){return/^-?\d+$/.test(e)}function lr(e){var t=e,n=t-48*Math.floor(t/48);return String.fromCharCode(t>=96?n:t)}var cr=["shift","ctrl","alt","control","option","cmd","command"];var pr=ze.addComponent,dr=ze.removeComponent,hr=ze.watchComponent,fr=ze.setQueryListener,gr=ze.setComponentProps,mr=ze.updateComponentProps,yr=Ge.pushToAndClause,vr=Ge.checkPropChange,br=Ge.checkSomePropChange,Cr=function(e,t){return{savedComponentProps:e.props[t.componentId]}},Or={addComponent:pr,removeComponent:dr,setQueryListener:fr,watchComponent:hr,setComponentProps:gr,updateComponentProps:mr},wr=function(e,t){return void 0===t&&(t={}),Kn(Cr,Or)(function(e,t){return void 0===t&&(t={componentType:null,internalComponent:!1}),{name:"ComponentWrapper",props:{destroyOnUnmount:gt.bool.def(!1)},created:function(){var e=We({},this.$attrs),t={};Object.keys(e).forEach((function(n){var r;t[(r=n,void 0===r&&(r=""),r.split("-").map((function(e,t){return t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e})).join("")||"")]=e[n]})),this.componentProps=t,this.componentId=this.componentProps.componentId,this.react=this.componentProps.react},beforeMount:function(){var e=this,n=[];this.$$store&&(n=this.$$store.getState().components);if(this.destroyOnUnmount||-1===n.indexOf(this.componentProps.componentId)){this.addComponent(this.componentId);this.setQueryListener(this.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),(function(t){e.$emit("error",t)})),this.setComponentProps(this.componentId,this.componentProps,t.componentType)}(t.internalComponent||this.componentProps.defaultQuery&&t.componentType===$.reactiveComponent)&&(this.internalComponent=Ae(this.componentId)),this.internalComponent&&(this.destroyOnUnmount||-1===n.indexOf(this.internalComponent))&&(this.addComponent(this.internalComponent),this.setComponentProps(this.internalComponent,this.componentProps,t.componentType))},mounted:function(){this.internalComponent&&this.setReact(this.componentProps)},beforeDestroy:function(){this.destroyOnUnmount&&(this.removeComponent(this.componentId),this.internalComponent&&this.removeComponent(this.internalComponent))},watch:{$attrs:{deep:!0,handler:function(e){var n=this,r=tr(e);br(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;vr(e,t,(function(){return n.setReact(n.componentProps)}))}},methods:{setReact:function(e){var t=e.react;if(this.internalComponent)if(t){var n=yr(t,this.internalComponent);this.watchComponent(e.componentId,n)}else this.watchComponent(e.componentId,{and:this.internalComponent});else this.watchComponent(e.componentId,t)}},render:function(t){return t(e,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots})}}}(e,t))};function Sr(){return(Sr=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}var _r,Tr,Er,Ir,Ar,Pr,$r,Rr,kr=["attrs","props","domProps"],xr=["class","style","directives"],Qr=["on","nativeOn"],Lr=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},Vr=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==kr.indexOf(n))e[n]=Sr({},e[n],t[n]);else if(-1!==xr.indexOf(n)){var r=e[n]instanceof Array?e[n]:[e[n]],o=t[n]instanceof Array?t[n]:[t[n]];e[n]=r.concat(o)}else if(-1!==Qr.indexOf(n))for(var i in t[n])if(e[n][i]){var a=e[n][i]instanceof Array?e[n][i]:[e[n][i]],s=t[n][i]instanceof Array?t[n][i]:[t[n][i]];e[n][i]=a.concat(s)}else e[n][i]=t[n][i];else if("hook"==n)for(var u in t[n])e[n][u]=e[n][u]?Lr(e[n][u],t[n][u]):t[n][u];else e[n]=t[n];else e[n]=t[n];return e}),{})},jr=Dt("h2")(_r||(_r=Ke(["\n\tmargin: 0 0 8px;\n\tfont-size: 1rem;\n\tcolor: ",";\n"])),(function(e){return e.theme.colors.titleColor})),Dr=xt(Tr||(Tr=Ke(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 0;\n\tborder-radius: 0.25rem;\n\toverflow: hidden;\n"]))),Fr=xt(Er||(Er=Ke(["\n\twidth: 100px;\n\theight: 100px;\n"]))),Mr=Dt("div")(Ir||(Ir=Ke(["\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?Fr:null}),(function(e){return"url("+e.src+")"})),Nr=Dt("a")(Ar||(Ar=Ke(["\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?Sn(.1,t.colors.backgroundColor):"#fff"}),(function(e){var t=e.theme;return t.colors.backgroundColor?Sn(.3,t.colors.backgroundColor):Sn(.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?Sn(.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})),Ur={name:"ResultListWrapper",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Vr([{attrs:{className:Dr}},n]),[r])}};Ur.install=function(e){e.component(Ur.name,Ur)};var qr,Hr,zr,Br,Gr,Wr,Yr,Kr,Xr,Zr,Jr,eo=xt(Pr||(Pr=Ke(["\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"]))),to=Dt("div")($r||($r=Ke(["\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"})),no=Dt("a")(Rr||(Rr=Ke(["\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?Sn(.1,t.colors.backgroundColor):"#fff"}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null})),ro={name:"ResultCardsWrapper",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Vr([{attrs:{className:eo}},n]),[r])}};ro.install=function(e){e.component(ro.name,ro)};var oo,io,ao=xt(qr||(qr=Ke(["\n\tflex-direction: row;\n\talign-items: center;\n"]))),so=xt(Hr||(Hr=Ke(["\n\tflex-direction: row-reverse;\n\talign-items: center;\n"]))),uo=xt(zr||(zr=Ke(["\n\tflex-direction: column;\n"]))),lo=xt(Br||(Br=Ke(["\n\tflex-direction: column-reverse;\n"]))),co=function(e){var t=e.theme.colors;return xt(Gr||(Gr=Ke(["\n\tborder: 1px solid ",";\n"])),t.borderColor||"#ccc")},po=Dt("div")(Wr||(Wr=Ke(["\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)&&ao}),(function(e){return("right"===e.labelPosition||"left"===e.iconPosition)&&so}),(function(e){return"top"===e.labelPosition&&uo}),(function(e){return"bottom"===e.labelPosition&&lo}),(function(e){return e.showBorder&&co}),(function(e){return e.justifyContent&&xt(Yr||(Yr=Ke(["\n\t\t\tjustify-content: ",";\n\t\t"])),e.justifyContent)}),(function(e){return e.alignItems&&xt(Kr||(Kr=Ke(["\n\t\t\talign-items: ",";\n\t\t"])),e.alignItems)}),(function(e){return e.flex&&xt(Xr||(Xr=Ke(["\n\t\t\tflex: ",";\n\t\t"])),e.flex)}),(function(e){return e.direction&&xt(Zr||(Zr=Ke(["\n\t\t\tflex-direction: ",";\n\t\t"])),e.direction)}),(function(e){return e.basis&&xt(Jr||(Jr=Ke(["\n\t\t\tflex-basis: ",";\n\t\t"])),e.basis)}),(function(e){var t=e.theme.colors;return t.borderColor||Sn(.3,t.textColor)}),(function(e){return e.theme.colors.textColor})),ho=xt(oo||(oo=Ke(["\n\tflex-grow: 1;\n\tfont-size: 0.82rem;\n"]))),fo=xt(io||(io=Ke(["\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"]))),go=ze.recordImpressions,mo=Ge.isEqual,yo={name:"ImpressionTracker",inject:["$$store"],props:{hits:Qn.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}));mo(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=We({},this.waitingToBeTracked);Object.keys(t).forEach((function(n){t[n]&&t[n].length&&(e.trackImpressions(n,t[n]),delete e.waitingToBeTracked[n])}))}},addToWaitingList:function(e){var t=this.getQueryId();if(e&&t){var n={id:e._id,index:e._index};this.waitingToBeTracked[t]?this.waitingToBeTracked[t].push(n):this.waitingToBeTracked[t]=[n]}},tracker:function(){var e,t,n=this;this.getHitIds().length?(window&&document&&this.getHitIds().forEach((function(e){var t=document.getElementById(e);if(t&&n.inViewPort(t)){var r=n.currentHits.find((function(t){return t._id===e}));n.trackedIds[e]=!0,n.addToWaitingList(r)}})),e=this.recordImpression,t=300,clearTimeout(e._tId),e._tId=setTimeout((function(){e()}),t)):this.clearTrackerInterval()},setTrackerInterval:function(){this.intervalID=setInterval(this.tracker,1e3)},clearTrackerInterval:function(){this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)},getQueryId:function(){var e=this.$$store?this.$$store.getState():null;return e?e.analytics.searchId:null},getHitIds:function(){var e=this;return this.currentHits.map((function(e){return e._id})).filter((function(t){return!e.trackedIds[t]}))}},render:function(){return this.$slots.default}},vo=Kn((function(){return null}),{trackImpressions:go})(yo),bo=ze.setQueryOptions,Co=ze.updateQuery,Oo=ze.loadMore,wo=ze.setValue,So=ze.updateComponentProps,_o=ze.setDefaultQuery,To=ze.recordResultClick,Eo=Ge.isEqual,Io=Ge.getQueryOptions,Ao=Ge.getClassName,Po=Ge.parseHits,$o=Ge.getOptionsFromQuery,Ro=Ge.getCompositeAggsQuery,ko=Ge.getResultStats,xo={name:"ReactiveList",components:{ResultListWrapper:Ur,ResultCardsWrapper:ro},data:function(){var e=0,t=this.defaultPage||-1;return t>=0?e=t:this.currentPage&&(e=Math.max(this.currentPage-1,0)),this.__state={from:e*this.size,currentPageState:e},this.__state},created:function(){var e=this,t=this.$props,n=t.distinctField,r=t.distinctFieldConfig,o=t.index;this.pagination&&this.aggregationField&&console.warn("Pagination is not supported when aggregationField is present. The list will be rendered with infinite scroll"),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!n&&!r||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&o&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var i=this.defaultPage||-1;i>=0&&(this.currentPageState=i,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.sortOptionIndex=0,this.defaultSortOption&&this.sortOptions&&Array.isArray(this.sortOptions)&&(this.sortOptionIndex=this.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption}))),this.updateComponentProps(this.componentId,{from:this.from},$.reactiveList),this.updateComponentProps(this.internalComponent,{from:this.from},$.reactiveList)},props:{currentPage:gt.number.def(0),includeFields:Qn.includeFields,className:Qn.string,componentId:Qn.stringRequired,dataField:Qn.stringRequired,aggregationField:Qn.string,aggregationSize:gt.number,defaultQuery:Qn.func,defaultSortOption:Qn.string,excludeFields:Qn.excludeFields,innerClass:Qn.style,listClass:gt.string.def(""),loader:Qn.title,render:Qn.func,renderItem:Qn.func,renderNoResults:gt.any.def("No Results found."),renderError:Qn.title,renderResultStats:Qn.func,pages:gt.number.def(5),pagination:gt.bool.def(!1),infiniteScroll:gt.bool.def(!0),paginationAt:gt.oneOf(["top","bottom","both"]).def("bottom"),react:Qn.react,scrollOnChange:gt.bool.def(!0),showResultStats:gt.bool.def(!0),showEndPage:gt.bool.def(!1),size:gt.number.def(10),sortBy:Qn.sortBy,sortOptions:Qn.sortOptions,URLParams:gt.bool.def(!1),prevLabel:Qn.string,nextLabel:Qn.string,distinctField:Qn.string,distinctFieldConfig:Qn.props,index:gt.string},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 We({},ko(this),{currentPage:this.currentPageState,displayedResults:this.data.length})},hasCustomRender:function(){return er(this)},showInfiniteScroll:function(){return this.infiniteScroll&&!this.shouldRenderPagination},data:function(){var e=Po(this.hits)||[],t=Po(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 ge(n)}},watch:{sortOptions:function(e,t){Eo(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(!ir(e,t,null,this.$props)){var n=Io(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=this.$defaultQuery||{},o=r.sort,i=r.query;o&&(n.sort=this.$defaultQuery.sort),$o(this.$defaultQuery)&&(n=We({},n,$o(this.$defaultQuery))),rr(this.componentId,this.setDefaultQuery,this.$props),this.setQueryOptions(this.$props.componentId,We({},n,this.getAggsQuery()),!i),this.updateQuery({componentId:this.internalComponent,query:i},!0),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){Eo(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){Eo(e,t)||this.$emit("data",this.getData())},time:function(e,t){Eo(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){Eo(e,t)||this.$emit("data",this.getData())},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},infiniteScroll:function(e,t){e!==t&&(e?window.removeEventListener("scroll",this.scrollHandler):window.addEventListener("scroll",this.scrollHandler))},defaultPage:function(e,t){this.currentPageState!==e&&t!==e&&this.setPage(e>=0?e:0)}},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,this.URLParams);var e=Io(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},$.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=We({},e,$o(this.$defaultQuery)),this.$defaultQuery.sort&&(e.sort=this.$defaultQuery.sort),rr(this.componentId,this.setDefaultQuery,this.$props));var i=(this.$defaultQuery||{}).query;this.setQueryOptions(this.$props.componentId,We({},e,this.getAggsQuery()),!1),this.$defaultQuery?this.updateQuery({componentId:this.internalComponent,query:i},!1):this.updateQuery({componentId:this.internalComponent,query:null},!1),this.showInfiniteScroll&&window.addEventListener("scroll",this.scrollHandler)},beforeDestroy:function(){this.showInfiniteScroll&&window.removeEventListener("scroll",this.scrollHandler)},render:function(){var e=arguments[0],t=this.$data.hits,n=Po(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(po,{attrs:{labelPosition:this.sortOptions?"right":"left"},class:Ao(this.$props.innerClass,"resultsInfo")},[this.sortOptions?this.renderSortOptions():null,this.$props.showResultStats&&n.length?this.renderStats():null]),this.isLoading||0!==n.length?null:this.renderNoResult(),!this.shouldRenderPagination||"top"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:e(Fn,{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(Fn,{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(po,{attrs:{direction:"row-reverse"},class:Ao(this.$props.innerClass,"poweredBy")},[e(Nn)]):null])},methods:{renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?Xn(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+" "+Ao(this.$props.innerClass,"list")},[this.data.map((function(t,o){return r({item:t,triggerClickAnalytics:function(){return e.triggerClickAnalytics(e.currentPageState*n+o)}})}))]);return this.analytics?t(vo,{attrs:{hits:this.data}},[o]):o},updateQueryOptions:function(e){var t=Io(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,We({},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=Ro({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=We({},Io(this.$props),this.getAggsQuery());this.from=e,rr(this.componentId,this.setDefaultQuery,this.$props),this.loadMoreAction(this.$props.componentId,We({},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=Io(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.$props.componentId,We({},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:ho+" "+Ao(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?Xn(t)?t():t:e("p",{class:Ao(this.$props.innerClass,"noResults")||null},[Xn(t)?t():t])},handleSortChange:function(e){var t=e.target.value;if(this.sortOptions&&this.sortOptions[t]){var n,r=Io(this.$props);r.from=0;var o=this.sortOptions[t].dataField,i=this.sortOptions[t].sortBy;r.sort=[(n={},n[o]={order:i},n)],this.sortOptionIndex=t,this.updateComponentProps(this.componentId,{dataField:o,sortBy:i},$.reactiveList),this.setQueryOptions(this.$props.componentId,r,!0),this.currentPageState=0,this.from=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)},renderSortOptions:function(){var e=this.$createElement;return e("select",{class:fo+" "+Ao(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 We({},e,{_click_id:t+n})}))},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.aggregationData,r=this.customData,o=this.currentPage,i=this.hits,a=o*e;return{results:Po(i)||[],customData:r||{},promotedResults:Po(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=We({error:this.error,loading:this.isLoading||!1,loadMore:this.loadMore,triggerAnalytics:this.triggerClickAnalytics,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return Jn(e,this)}}},Qo={loadMoreAction:Oo,setPageURL:wo,setQueryOptions:bo,updateQuery:Co,updateComponentProps:So,setDefaultQuery:_o,recordResultClick:To};xo.generateQueryOptions=function(e){var t=Io(e),n=e.size,r=e.dataField,o=e.defaultSortOption,i=e.sortOptions,a=e.currentPage,s=e.sortBy;t.from=a?(a-1)*(n||10):0,t.size=n||10;if(i)t.sort=[function(){var e;if(o){var t,n=i.find((function(e){return e.label===o}));if(n)return(t={})[n.dataField]={order:n.sortBy},t}return(e={})[i[0].dataField]={order:i[0].sortBy},e}()];else if(s){var u;t.sort=[(u={},u[r]={order:s},u)]}return t};var Lo=wr(Kn((function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1,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]}}),Qo)(xo),{componentType:$.reactiveList,internalComponent:!0});xo.install=function(e){e.component(xo.name,Lo),e.component(Ur.name,Ur),e.component(ro.name,ro)},xo.componentType=$.reactiveList;var Vo=function(e){var t=RegExp("^(([^:/?#]*)?://)?(((.*)?@)?([^/?#]*)?)([^?#]*)(\\?([^#]*))?(#(.*))?"),n=e.match(t);return{protocol:n[2],auth:n[5],host:n[6],path:n[7],query:n[9],hash:n[11]}};function jo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Do=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var l,c,p,d,h=e[u].replace(i,"%20"),f=h.indexOf(n);f>=0?(l=h.substr(0,f),c=h.substr(f+1)):(l=h,c=""),p=decodeURIComponent(l),d=decodeURIComponent(c),jo(o,p)?Array.isArray(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o},Fo=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},Mo=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(Fo(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(Fo(e))})).join(t):o+encodeURIComponent(Fo(e[r]))})).filter(Boolean).join(t):r?encodeURIComponent(Fo(r))+n+encodeURIComponent(Fo(e)):""},No=o((function(e,t){t.decode=t.parse=Do,t.encode=t.stringify=Mo})),Uo=(No.decode,No.parse,No.encode,No.stringify,o((function(e){var t=function(e){function t(){this.fetch=!1}return t.prototype=e,new t}("undefined"!=typeof self?self:n);(function(e){!function(e){if(!e.fetch){var t="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,r="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,i="ArrayBuffer"in e;if(i)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},u=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};f.prototype.append=function(e,t){e=p(e),t=d(t);var n=this.map[e];this.map[e]=n?n+","+t:t},f.prototype.delete=function(e){delete this.map[p(e)]},f.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},f.prototype.set=function(e,t){this.map[p(e)]=d(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},n&&(f.prototype[Symbol.iterator]=f.prototype.entries);var l=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},b.call(C.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var c=[301,302,303,307,308];w.redirect=function(e,t){if(-1===c.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},e.Headers=f,e.Request=C,e.Response=w,e.fetch=function(e,t){return new Promise((function(n,o){var i=new C(e,t),a=new XMLHttpRequest;a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new f,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)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new w(o,r))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),a.send(void 0===i._bodyInit?null:i._bodyInit)}))},e.fetch.polyfill=!0}function p(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 d(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?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 g(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(r&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(o&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(i&&r&&s(e))this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(e)&&!u(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=v(e)}else 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):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=g(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?g(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var e,t,n,r=g(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=m(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)},o&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}function C(e,t){var n,r,o=(t=t||{}).body;if(e instanceof C){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),l.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function O(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function w(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 f(t.headers),this.url=t.url||"",this._initBody(e)}}(void 0!==e?e:this)}).call(t,void 0);var r=t.fetch;r.Response=t.Response,r.Request=t.Request,r.Headers=t.Headers;e.exports&&(e.exports=r,e.exports.default=r)}))),qo="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 Ho(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 zo(e,t){var n=[],r={object:null,string:"",number:0};Object.keys(t).forEach((function(o){var i=t[o].split("|").find((function(t){return qo(e[o])===t}));i&&e[o]!==r[i]||n.push(o)}));for(var o="",i=0;i<n.length;i+=1)o+=n[i]+", ";return!(n.length>0)||new Error("fields missing: "+o)}function Bo(){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 Go(){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 Wo(e,t){var n={};return e&&(n.index=e),t&&(t.db&&(n.db=t.db),t.collection&&(n.collection=t.collection)),n}function Yo(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 Ko={MONGODB:"mongodb",ELASTICSEARCH:"elasticsearch"},Xo="array",Zo="object",Jo="boolean",ei="string",ti=function(e){return(void 0===e?"undefined":qo(e))===Zo?Array.isArray(e)?Xo:Zo:void 0===e?"undefined":qo(e)};var ni={mongodb:{url:{type:ei,required:!0},app:{type:ei,required:!1},credentials:{type:ei,required:!1},enableTelemetry:{type:Jo,required:!1},mongodb:{type:Zo,required:!0},username:{type:ei,required:!1},password:{type:ei,required:!1}},elasticsearch:{url:{type:ei,required:!0},app:{type:ei,required:!0},credentials:{type:ei,required:!1},enableTelemetry:{type:Jo,required:!1},username:{type:ei,required:!1},password:{type:ei,required:!1}}};function ri(e){var t=Vo(e.url||""),n=t.auth,r=void 0===n?null:n,o=t.host,i=void 0===o?"":o,a=t.path,s=void 0===a?"":a,u=t.protocol,l=void 0===u?"":u,c=e.url;"/"===(c=i+s).slice(-1)&&(c=c.slice(0,-1));var p=Ko[e.mongodb?"MONGODB":"ELASTICSEARCH"],d=ni[p];if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=Object.keys(e).filter((function(t){return!!e[t]})),o=Object.keys(t),i=[];o.forEach((function(e){t[e].required&&i.push(e)})),i.forEach((function(e){if(!r.includes(e))throw new Error(e+" is required when using the "+n+" Search backend.")})),r.forEach((function(r){if(!o.includes(r))throw new Error(r+" property isn't accepted property by "+n+" backend.");var i=Array.isArray(t[r].type)?t[r].type:[].concat(t[r].type),a=ti(e[r]);if(!i.includes(a))throw new Error("The property "+r+" is expected with type(s) ["+i.join(", ")+"], but type was set as "+a+".")}))}({url:e.url,app:e.app,credentials:e.credentials,username:e.username,password:e.password,enableTelemetry:e.enableTelemetry,mongodb:e.mongodb},d,p),"string"!=typeof l||""===l)throw new Error("Protocol is not present in url. URL should be of the form https://appbase-demo-ansible-abxiydt-arc.searchbase.io");var h=r||null;if(!e.mongodb&&function(e){return t="scalr.api.appbase.io",-1!==e.indexOf(t);var t}(c)&&null===h)throw new Error("Authentication information is not present. Did you add credentials?");"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),this.url=c,this.protocol=l,this.app=e.app,this.credentials=h,e.mongodb&&(this.mongodb=e.mongodb),"boolean"==typeof e.enableTelemetry&&(this.enableTelemetry=e.enableTelemetry)}function oi(e){var t=this;return new Promise((function(n,r){var o=Bo(e);try{var i=o.method,a=o.path,s=o.params,u=o.body,l=o.isRSAPI,c=o.isSuggestionsAPI,p=o.isMongoRequest,d=void 0!==p&&p,h=c?".suggestions":t.app,f=u,g=a.endsWith("msearch")||a.endsWith("bulk")?"application/x-ndjson":"application/json",m=Object.assign({},{Accept:"application/json","Content-Type":g},e.headers,t.headers),y=Date.now();t.credentials&&(m.Authorization="Basic "+function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=t,o="",i=0,a=0,s=n;r.charAt(0|a)||(s="=",a%1);o+=s.charAt(63&i>>8-a%1*8)){if((e=r.charCodeAt(a+=3/4))>255)throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');i=i<<8|e}return o}(t.credentials));var v={method:i,headers:m};if(Array.isArray(f)){var b="";f.forEach((function(e){b+=JSON.stringify(e),b+="\n"})),f=b}else f=JSON.stringify(f)||{};0!==Object.keys(f).length&&(v.body=f);var C={},O="";s&&(O="?"+No.stringify(s));var w=d?t.protocol+"://"+t.url:t.protocol+"://"+t.url+"/"+h+"/"+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:w},v)).then((function(e){var t=Object.assign({},e),o=t.url;return delete t.url,Uo(o||w,Object.assign({},t,{headers:l&&!d?Object.assign({},t.headers,{"x-timestamp":(new Date).getTime()}):t.headers})).then((function(e){return e.status>=500?r(e):(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,i=u.query.filter((function(e){return e.execute||void 0===e.execute})).length;if(t&&Object.keys(t).forEach((function(e){t[e]&&Object.prototype.hasOwnProperty.call(t[e],"error")&&t[e].error&&(o+=1)})),o>0&&i===o)return r(t)}if(t&&t.responses instanceof Array&&t.responses.length===t.responses.filter((function(e){return Object.prototype.hasOwnProperty.call(e,"error")})).length)return r(t);var a=Object.assign({},t,{_timestamp:y,_headers: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 ii(e){var t=Bo(e),n=zo(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id,a=t.body;delete t.type,delete t.body,delete t.id;var s=void 0;return s=i?o?o+"/"+encodeURIComponent(i):encodeURIComponent(i):o,this.performFetchRequest({method:"POST",path:s,params:t,body:a})}function ai(e){var t=Bo(e),n=zo(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(i);return this.performFetchRequest({method:"GET",path:a,params:t})}function si(e){var t=Bo(e),n=zo(t,{id:"string|number",body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id,a=t.body;delete t.type,delete t.id,delete t.body;var s=o+"/"+encodeURIComponent(i)+"/_update";return this.performFetchRequest({method:"POST",path:s,params:t,body:a})}function ui(e){var t=Bo(e),n=zo(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(i);return this.performFetchRequest({method:"DELETE",path:a,params:t})}function li(e){var t=Bo(e),n=zo(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_bulk":"_bulk",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function ci(e){var t=Bo(e),n=zo(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_search":"_search",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function pi(e){var t=Bo(e),n=zo(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_msearch":"_msearch",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function di(e,t){var n=Bo(t),r=Ho(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:Wo(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch",body:o,headers:Yo(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb})}function hi(e,t){var n=Bo(t),r=Ho(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:Wo(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,headers:Yo(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb})}function fi(){return this.performFetchRequest({method:"GET",path:"_mapping"})}function gi(e,t){var n=Bo(t),r=Ho(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:Wo(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,headers:Yo(this.enableTelemetry),isRSAPI:!0,isSuggestionsAPI:!0,isMongoRequest:!!this.mongodb})}function mi(e){var t=new ri(e);return ri.prototype.performFetchRequest=oi,ri.prototype.index=ii,ri.prototype.get=ai,ri.prototype.update=si,ri.prototype.delete=ui,ri.prototype.bulk=li,ri.prototype.search=ci,ri.prototype.msearch=pi,ri.prototype.reactiveSearch=di,ri.prototype.reactiveSearchv3=hi,ri.prototype.getQuerySuggestions=gi,ri.prototype.getMappings=fi,ri.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?Go(e):e},"undefined"!=typeof window&&(window.Appbase=t),t}
|
|
19
|
+
function Ze(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}function Je(e){var t,n;return!1!==Ze(e)&&("function"==typeof(t=e.constructor)&&(!1!==Ze(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}var et=Object.prototype,tt=et.toString,nt=et.hasOwnProperty,rt=/^\s*function (\w+)/;function ot(e){var t=null!=e?e.type?e.type:e:null,n=t&&t.toString().match(rt);return n&&n[1]}function it(){}var at=function(){return!0},st=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},ut=Array.isArray||function(e){return"[object Array]"===tt.call(e)},lt=function(e){return"[object Function]"===tt.call(e)};function ct(e,t,n){var r;return void 0===n&&(n=!1),Object.defineProperty(t,"_vueTypes_name",{enumerable:!1,writable:!1,value:e}),function(e){Object.defineProperty(e,"def",{value:function(e){return void 0!==e||this.default?lt(e)||pt(this,e)?(ut(e)?this.default=function(){return[].concat(e)}:Je(e)?this.default=function(){return Object.assign({},e)}:this.default=e,this):(dt(this._vueTypes_name+' - invalid default value: "'+e+'"',e),this):this},enumerable:!1,writable:!1})}((r=t,Object.defineProperty(r,"isRequired",{get:function(){return this.required=!0,this},enumerable:!1}))),n?function(e){Object.defineProperty(e,"validate",{value:function(e){return this.validator=e.bind(this),this},enumerable:!1})}(t):Object.defineProperty(t,"validate",{value:function(){return dt(e+' - "validate" method not supported on this type'),this},enumerable:!1}),lt(t.validator)&&(t.validator=t.validator.bind(t)),t}function pt(e,t,n){void 0===n&&(n=!1);var r,o=e,i=!0;Je(e)||(o={type:e});var a,s=o._vueTypes_name?o._vueTypes_name+" - ":"";if(nt.call(o,"type")&&null!==o.type){if(void 0===o.type)throw new TypeError("[VueTypes error]: Setting type to undefined is not allowed.");if(!o.required&&void 0===t)return i;ut(o.type)?(i=o.type.some((function(e){return pt(e,t,!0)})),r=o.type.map((function(e){return ot(e)})).join(" or ")):i="Array"===(r=ot(o))?ut(t):"Object"===r?Je(t):"String"===r||"Number"===r||"Boolean"===r||"Function"===r?function(e){if(null==e)return null;var t=e.constructor.toString().match(rt);return t&&t[1]}(t)===r:t instanceof o.type}return i?nt.call(o,"validator")&<(o.validator)?(n&&(a=dt,dt=it),i=o.validator(t),a&&(dt=a),i||!1!==n||dt(s+"custom validation failed"),i):i:(!1===n&&dt(s+'value "'+t+'" should be of type "'+r+'"'),!1)}var dt=it;var ht,ft,gt={get any(){return ct("any",{type:null},!0)},get func(){return ct("function",{type:Function},!0).def(gt.sensibleDefaults.func)},get bool(){return ct("boolean",{type:Boolean},!0).def(gt.sensibleDefaults.bool)},get string(){return ct("string",{type:String},!0).def(gt.sensibleDefaults.string)},get number(){return ct("number",{type:Number},!0).def(gt.sensibleDefaults.number)},get array(){return ct("array",{type:Array},!0).def(gt.sensibleDefaults.array)},get object(){return ct("object",{type:Object},!0).def(gt.sensibleDefaults.object)},get integer(){return ct("integer",{type:Number,validator:function(e){return st(e)}}).def(gt.sensibleDefaults.integer)},get symbol(){return ct("symbol",{type:null,validator:function(e){return"symbol"==typeof e}},!0)},extend:function(e){if(void 0===e&&(e={}),ut(e))return e.forEach((function(e){return gt.extend(e)})),this;var t,n,r=e,o=r.name,i=r.validate,a=void 0!==i&&i,s=r.getter,u=void 0!==s&&s,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["name","validate","getter"]);if(t=gt,n=o,nt.call(t,n))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var c,p=l.type,d=l.validator,h=void 0===d?at:d;if(p&&p._vueTypes_name){delete l.type;for(var f=["type","required","default"],g=0;g<f.length;g+=1){var m=f[g];void 0!==p[m]&&(l[m]=p[m])}a=!1,lt(p.validator)&&(l.validator=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p.validator.apply(p,t)&&h.apply(this,t)})}if(u)c={get:function(){return ct(o,Object.assign({},l),a)},enumerable:!0,configurable:!1};else{var y=l.validator;c={value:function(){var e=ct(o,Object.assign({},l),a);if(y){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.validator=y.bind.apply(y,[e].concat(n))}return e},writable:!1,enumerable:!0,configurable:!1}}return Object.defineProperty(this,o,c)},custom:function(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return ct(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||dt(this._vueTypes_name+" - "+t),r}})},oneOf:function(e){if(!ut(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 ct("oneOf",{type:n.length>0?n:null,validator:function(n){var r=-1!==e.indexOf(n);return r||dt(t),r}})},instanceOf:function(e){return ct("instanceOf",{type:e})},oneOfType:function(e){if(!ut(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t=!1,n=e.reduce((function(e,n){if(Je(n)){if("oneOf"===n._vueTypes_name)return e.concat(n.type||[]);if(lt(n.validator))return t=!0,e;if(n.type){if(ut(n.type))return e.concat(n.type);e.push(n.type)}return e}return e.push(n),e}),[]);if(!t)return ct("oneOfType",{type:n});var r=e.map((function(e){return e&&ut(e.type)?e.type.map(ot):ot(e)})).reduce((function(e,t){return e.concat(ut(t)?t:[t])}),[]).join('", "');return this.custom((function(t){var n=e.some((function(e){return"oneOf"===e._vueTypes_name?!e.type||pt(e.type,t,!0):pt(e,t,!0)}));return n||dt('oneOfType - value type should be one of "'+r+'"'),n}))},arrayOf:function(e){return ct("arrayOf",{type:Array,validator:function(t){var n=t.every((function(t){return pt(e,t)}));return n||dt('arrayOf - value must be an array of "'+ot(e)+'"'),n}})},objectOf:function(e){return ct("objectOf",{type:Object,validator:function(t){var n=Object.keys(t).every((function(n){return pt(e,t[n])}));return n||dt('objectOf - value must be an object of "'+ot(e)+'"'),n}})},shape:function(e){var t=Object.keys(e),n=t.filter((function(t){return e[t]&&!0===e[t].required})),r=ct("shape",{type:Object,validator:function(r){var o=this;if(!Je(r))return!1;var i=Object.keys(r);return n.length>0&&n.some((function(e){return-1===i.indexOf(e)}))?(dt('shape - at least one of required properties "'+n.join('", "')+'" is not present'),!1):i.every((function(n){return-1===t.indexOf(n)?!0===o._vueTypes_isLoose||(dt('shape - object is missing "'+n+'" property'),!1):pt(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}};ht=gt,ft={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0},Object.defineProperty(ht,"sensibleDefaults",{enumerable:!1,set:function(e){ft=!1===e?{}:!0===e?{func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}:e},get:function(){return ft}}),gt.utils={validate:function(e,t){return pt(t,e,!0)},toType:ct};var mt="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var yt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function vt(e){function t(e,t,r){var o=t.trim().split(f);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[u++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",s=2*t+3*n+4*i;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===P||2===P&&o(u,1)?"-webkit-"+u+u:u}if(0===P||2===P&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(T,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return d.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(b,"tb");break;case 232:u=a.replace(b,"tb-rl");break;case 220:u=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===_.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),x(2!==t?r:r.replace(S,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(C," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,s,l,c){for(var p,d=0,h=t;d<k;++d)switch(p=R[d].call(u,e,h,n,r,o,i,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:h=p}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(x=null,e?"function"!=typeof e?P=1:(P=2,x=e):P=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<k){var u=a(-1,n,s,s,I,E,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var p=function e(n,s,u,p,d){for(var h,f,g,b,C,w=0,S=0,_=0,T=0,R=0,x=0,V=g=h=0,L=0,j=0,D=0,F=0,M=u.length,N=M-1,U="",q="",H="",z="";L<M;){if(f=u.charCodeAt(L),L===N&&0!==S+T+_+w&&(0!==S&&(f=47===S?10:47),T=_=w=0,M++,N++),0===S+T+_+w){if(L===N&&(0<j&&(U=U.replace(c,"")),0<U.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:U+=u.charAt(L)}f=59}switch(f){case 123:for(h=(U=U.trim()).charCodeAt(0),g=1,F=++L;L<M;){switch(f=u.charCodeAt(L)){case 123:g++;break;case 125:g--;break;case 47:switch(f=u.charCodeAt(L+1)){case 42:case 47:e:{for(V=L+1;V<N;++V)switch(u.charCodeAt(V)){case 47:if(42===f&&42===u.charCodeAt(V-1)&&L+2!==V){L=V+1;break e}break;case 10:if(47===f){L=V+1;break e}}L=V}}break;case 91:f++;case 40:f++;case 34:case 39:for(;L++<N&&u.charCodeAt(L)!==f;);}if(0===g)break;L++}switch(g=u.substring(F,L),0===h&&(h=(U=U.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<j&&(U=U.replace(c,"")),f=U.charCodeAt(1)){case 100:case 109:case 115:case 45:j=s;break;default:j=$}if(F=(g=e(s,j,g,f,d+1)).length,0<k&&(C=a(3,g,j=t($,U,D),s,I,E,F,f,d,p),U=j.join(""),void 0!==C&&0===(F=(g=C.trim()).length)&&(f=0,g="")),0<F)switch(f){case 115:U=U.replace(O,i);case 100:case 109:case 45:g=U+"{"+g+"}";break;case 107:g=(U=U.replace(m,"$1 $2"))+"{"+g+"}",g=1===P||2===P&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=U+g,112===p&&(q+=g,g="")}else g="";break;default:g=e(s,t(s,U,D),g,p,d+1)}H+=g,g=D=j=V=h=0,U="",f=u.charCodeAt(++L);break;case 125:case 59:if(1<(F=(U=(0<j?U.replace(c,""):U).trim()).length))switch(0===V&&(h=U.charCodeAt(0),45===h||96<h&&123>h)&&(F=(U=U.replace(" ",":")).length),0<k&&void 0!==(C=a(1,U,s,n,I,E,q.length,p,d,p))&&0===(F=(U=C.trim()).length)&&(U="\0\0"),h=U.charCodeAt(0),f=U.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){z+=U+u.charAt(L);break}default:58!==U.charCodeAt(F-1)&&(q+=r(U,h,f,U.charCodeAt(2)))}D=j=V=h=0,U="",f=u.charCodeAt(++L)}}switch(f){case 13:case 10:47===S?S=0:0===1+h&&107!==p&&0<U.length&&(j=1,U+="\0"),0<k*Q&&a(0,U,s,n,I,E,q.length,p,d,p),E=1,I++;break;case 59:case 125:if(0===S+T+_+w){E++;break}default:switch(E++,b=u.charAt(L),f){case 9:case 32:if(0===T+w+S)switch(R){case 44:case 58:case 9:case 32:b="";break;default:32!==f&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===T+S+w&&(j=D=1,b="\f"+b);break;case 108:if(0===T+S+w+A&&0<V)switch(L-V){case 2:112===R&&58===u.charCodeAt(L-3)&&(A=R);case 8:111===x&&(A=x)}break;case 58:0===T+S+w&&(V=L);break;case 44:0===S+_+T+w&&(j=1,b+="\r");break;case 34:case 39:0===S&&(T=T===f?0:0===T?f:T);break;case 91:0===T+S+_&&w++;break;case 93:0===T+S+_&&w--;break;case 41:0===T+S+w&&_--;break;case 40:if(0===T+S+w){if(0===h)switch(2*R+3*x){case 533:break;default:h=1}_++}break;case 64:0===S+_+T+w+V+g&&(g=1);break;case 42:case 47:if(!(0<T+w+_))switch(S){case 0:switch(2*f+3*u.charCodeAt(L+1)){case 235:S=47;break;case 220:F=L,S=42}break;case 42:47===f&&42===R&&F+2!==L&&(33===u.charCodeAt(F+2)&&(q+=u.substring(F,L+1)),b="",S=0)}}0===S&&(U+=b)}x=R,R=f,L++}if(0<(F=q.length)){if(j=s,0<k&&(void 0!==(C=a(2,q,j,n,I,E,F,p,d,p))&&0===(q=C).length))return z+q+H;if(q=j.join(",")+"{"+q+"}",0!=P*A){switch(2!==P||o(q,2)||(A=0),A){case 111:q=q.replace(v,":-moz-$1")+q;break;case 112:q=q.replace(y,"::-webkit-input-$1")+q.replace(y,"::-moz-$1")+q.replace(y,":-ms-input-$1")+q}A=0}}return z+q+H}($,s,n,0,0);return 0<k&&(void 0!==(u=a(-2,p,s,s,I,E,p.length,0,0,0))&&(p=u)),"",A=0,E=I=1,p}var l=/^\0+/g,c=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,h=/([,: ])(transform)/g,f=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,O=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,w=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,_=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,E=1,I=1,A=0,P=1,$=[],R=[],k=0,x=null,Q=0;return u.use=function e(t){switch(t){case void 0:case null:k=R.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:R[k++]=t;break;case Boolean:Q=0|!!t}}return e},u.set=s,void 0!==e&&s(e),u}var bt,Ot,Ct=o((function(e,t){e.exports=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,u,l,c,p){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}})),wt=/[A-Z]|^ms/g,St=(bt=function(e){return e.replace(wt,"-$&").toLowerCase()},Ot={},function(e){return void 0===Ot[e]&&(Ot[e]=bt(e)),Ot[e]}),_t=function(e,t){return null==t||"boolean"==typeof t?"":1===yt[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},Tt=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"function":a=e([i()]);break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o},Et="undefined"!=typeof document;function It(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 At=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]=It(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(this.tags[this.tags.length-1]);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else{var r=It(this.opts);this.tags.push(r),r.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(It(this.opts))},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,this.injected=!1},e}();var Pt=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var n,r,o=t.key||"css",i=Ct((function(e){n+=e,Et&&s.insert(e,l)}));void 0!==t.prefix&&(r={prefix:t.prefix});var a={registered:{},inserted:{},nonce:t.nonce,key:o},s=new At(t);Et&&s.inject();var u=new vt(r);u.use(t.stylisPlugins)(i);var l="";function c(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var n=e.toString();return n}return c.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return f.call(this,e);default:var r=a.registered[e];return!1===t&&void 0!==r?r:e}}var p,d,h=new WeakMap;function f(e){if(h.has(e))return h.get(e);var t="";return Array.isArray(e)?e.forEach((function(e){t+=c.call(this,e,!1)}),this):Object.keys(e).forEach((function(n){"object"!=typeof e[n]?void 0!==a.registered[e[n]]?t+=n+"{"+a.registered[e[n]]+"}":t+=St(n)+":"+_t(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+=St(n)+":"+_t(n,e)+";"})):t+=n+"{"+c.call(this,e[n],!1)+"}"}),this),h.set(e,t),t}var g=/label:\s*([^\s;\n{]+)\s*;/g,m=function(e,t){return function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}(e+t)+t},y=function(e){var t=!0,n="",r="";null==e||void 0===e.raw?(t=!1,n+=c.call(this,e,!1)):n+=e[0];for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return i.forEach((function(r,o){n+=c.call(this,r,46===n.charCodeAt(n.length-1)),!0===t&&void 0!==e[o+1]&&(n+=e[o+1])}),this),d=n,n=n.replace(g,(function(e,t){return r+="-"+t,""})),p=m(n,r),n};function v(e,t){void 0===a.inserted[p]&&(n="",u(e,t),a.inserted[p]=n)}var b=function(){var e=y.apply(this,arguments),t=o+"-"+p;return void 0===a.registered[t]&&(a.registered[t]=d),v("."+t,e),t};function O(e,t){var n="";return t.split(" ").forEach((function(t){void 0!==a.registered[t]?e.push(t):n+=t+" "})),n}function C(e,t){var n=[],r=O(n,e);return n.length<2?e:r+b(n,t)}function w(e){a.inserted[e]=!0}if(Et){var S=document.querySelectorAll("[data-emotion-"+o+"]");Array.prototype.forEach.call(S,(function(e){s.tags[0].parentNode.insertBefore(e,s.tags[0]),e.getAttribute("data-emotion-"+o).split(" ").forEach(w)}))}var _={flush:function(){Et&&(s.flush(),s.inject()),a.inserted={},a.registered={}},hydrate:function(e){e.forEach(w)},cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return C(Tt(t))},merge:C,getRegisteredStyles:O,injectGlobal:function(){var e=y.apply(this,arguments);v("",e)},keyframes:function(){var e=y.apply(this,arguments),t="animation-"+p;return v("","@keyframes "+t+"{"+e+"}"),t},css:b,sheet:s,caches:a};return e.__SECRET_EMOTION__=_,_}(void 0!==mt?mt:{}),$t=(Pt.flush,Pt.hydrate,Pt.cx),Rt=(Pt.merge,Pt.getRegisteredStyles),kt=Pt.injectGlobal,xt=(Pt.keyframes,Pt.css),Qt=(Pt.sheet,Pt.caches,function(e){for(var t=arguments,n=1;n<arguments.length;n++)for(var r in arguments[n])e[r]=t[n][r];return e}),Vt="__emotion_styles";function Lt(e){return(Lt="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 jt(e){return Array.isArray(e)?e.join(" "):"object"===Lt(e)?Object.keys(e).filter((function(t){return Boolean(e[t])})).join(" "):e}var Dt=function(e,t){var n,r,o,i;void 0!==t&&(n=t.e,r=t.label,o=t.target,i=t.props);var a=e.__emotion_real===e,s=void 0===n&&a&&e.__emotion_base||e;return function(){var t=a&&void 0!==e[Vt]?e[Vt].slice(0):[];if(void 0!==r&&t.push("label:".concat(r,";")),void 0===n){for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];if(null===l[0]||void 0===l[0].raw)t.push.apply(t,l);else{t.push(l[0][0]);for(var p=l.length,d=1;d<p;d++)t.push(l[d],l[0][d])}}var h={name:"Styled".concat(e.name||r||"Component"),functional:!0,inject:{theme:{from:"theme_reactivesearch",default:null}},props:i,render:function(r,i){var a=i.data,s=i.children,u=i.props,l=i.injections,c="",p=[],d=jt(a.class),h={};for(var f in a.attrs)"$"!==f[0]&&(h[f]=a.attrs[f]);if(d&&(c+=void 0===n?Rt(p,d):"".concat(d," ")),void 0===n){var g={mergedProps:Qt({theme:l.theme},u)};c+=xt.apply(g,t.concat(p))}else c+=n;return void 0!==o&&(c+=" ".concat(o)),r(e,Qt({},a,{attrs:h,class:c}),s)}};return h[Vt]=t,h.__emotion_base=s,h.__emotion_real=h,Object.defineProperty(h,"toString",{enumerable:!1,value:function(){return".".concat(o)}}),h}};function Ft(){return(Ft=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 Mt(e){return Math.round(255*e)}function Nt(e,t,n){return Mt(e)+","+Mt(t)+","+Mt(n)}function Ut(e,t,n,r){if(void 0===r&&(r=Nt),0===t)return r(n,n,n);var o=e%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,u=0,l=0;o>=0&&o<1?(s=i,u=a):o>=1&&o<2?(s=a,u=i):o>=2&&o<3?(u=i,l=a):o>=3&&o<4?(u=a,l=i):o>=4&&o<5?(s=a,l=i):o>=5&&o<6&&(s=i,l=a);var c=n-i/2;return r(s+c,u+c,l+c)}var qt={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var Ht=/^#[a-fA-F0-9]{6}$/,zt=/^#[a-fA-F0-9]{8}$/,Bt=/^#[a-fA-F0-9]{3}$/,Gt=/^#[a-fA-F0-9]{4}$/,Wt=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,Yt=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,Kt=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,Xt=/^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 Zt(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return qt[t]?"#"+qt[t]:e}(e);if(t.match(Ht))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(zt)){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(Bt))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(Gt)){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=Wt.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=Yt.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=Kt.exec(t);if(a){var s="rgb("+Ut(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=Wt.exec(s);if(!u)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+s+".");return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var l=Xt.exec(t);if(l){var c="rgb("+Ut(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",p=Wt.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 Jt(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u=i-a,l=s>.5?u/(2-i-a):u/(i+a);switch(i){case n:t=(r-o)/u+(r<o?6:0);break;case r:t=(o-n)/u+2;break;default:t=(n-r)/u+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:l,lightness:s,alpha:e.alpha}:{hue:t,saturation:l,lightness:s}}(Zt(e))}var en=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 tn(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function nn(e){return tn(Math.round(255*e))}function rn(e,t,n){return en("#"+nn(e)+nn(t)+nn(n))}function on(e,t,n){return Ut(e,t,n,rn)}function an(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return en("#"+tn(e)+tn(t)+tn(n));if("object"==typeof e&&void 0===t&&void 0===n)return en("#"+tn(e.red)+tn(e.green)+tn(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 sn(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=Zt(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?an(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?an(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 un="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function ln(e){if("object"!=typeof e)throw new Error(un);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return sn(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return an(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?on(e,t,n):"rgba("+Ut(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?on(e.hue,e.saturation,e.lightness):"rgba("+Ut(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return on(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return on(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}(e);throw new Error(un)}function cn(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function pn(e,t,n){return Math.max(e,Math.min(t,n))}function dn(e,t){var n=Jt(t);return ln(Ft({},n,{lightness:pn(0,1,n.lightness-parseFloat(e))}))}var hn=cn(dn);function fn(e,t){var n=Jt(t);return ln(Ft({},n,{lightness:pn(0,1,n.lightness+parseFloat(e))}))}var gn,mn,yn,vn,bn,On,Cn,wn,Sn=cn(fn),_n=function(e){var t=e.colors.borderColor;return xt(gn||(gn=Ke(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 2px 3px;\n\t\tpadding: 5px 8px;\n\t\tfont-size: 0.85rem;\n\t\tposition: relative;\n\n\t\tspan:first-child {\n\t\t\tmax-width: 260px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-right: 26px;\n\t\t}\n\n\t\tspan:last-child {\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 8px;\n\t\t\tposition: absolute;\n\t\t\talign-items: center;\n\t\t\tborder-left: 1px solid ",";\n\t\t\tpadding-left: 8px;\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tspan:first-child {\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t}\n"])),t||"#fff")},Tn=xt(mn||(mn=Ke(["\n\tmargin: 10px -3px;\n\tmax-width: 100%;\n\ttext-align: center;\n\n\ta {\n\t\tmargin: 0 3px;\n\t}\n"]))),En=xt(yn||(yn=Ke(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 3px 3px;\n\t}\n"]))),In=(xt(vn||(vn=Ke(["\n\tmargin: 0 -5px;\n\ta {\n\t\tmargin: 5px;\n\t}\n\tspan {\n\t\tmargin: 0 5px;\n\t}\n"]))),function(e){var t=e.theme;return xt(bn||(bn=Ke(["\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,hn(.1,t.colors.primaryColor))}),An=function(){return xt(On||(On=Ke(["\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"])))},Pn=function(e){var t=e.theme;return xt(Cn||(Cn=Ke(["\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?Sn(.1,t.colors.backgroundColor):"#fafafa",t.colors.backgroundColor?Sn(.2,t.colors.backgroundColor):"#fafafa")},$n=Dt("a")(wn||(wn=Ke(["\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"])),(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?hn(.1,t.colors.backgroundColor):"#ccc"}),(function(e){return sn(e.theme.colors.primaryColor,.6)}),(function(e){return"0 0 0 2px "+sn(e.theme.colors.primaryColor,.3)}),(function(e){return e.primary?In:null}),(function(e){return e.disabled?Pn:null}),(function(e){return e.large&&An})),Rn=xt({margin:"5px 0",display:"flex",justifyContent:"center"});gt.sensibleDefaults=!1;var kn=gt.oneOfType([gt.string,gt.arrayOf(gt.string),gt.object,gt.arrayOf(gt.object)]);function xn(e,t){return isNaN(e[t])?new Error(t+" value must be a VueTypes.number"):"lat"===t&&(e[t]<-90||e[t]>90)?new Error(t+" value should be between -90 and 90."):"lng"===t&&(e[t]<-180||e[t]>180)?new Error(t+" value should be between -180 and 180."):null}var Qn={any:gt.any,bool:gt.bool,boolRequired:gt.bool.isRequired,components:gt.arrayOf(gt.string),children:gt.any,data:gt.arrayOf(gt.object),dataFieldArray:gt.oneOfType([gt.string,gt.arrayOf(gt.string)]).isRequired,dataNumberBox:gt.shape({label:gt.string,start:gt.number.isRequired,end:gt.number.isRequired}).isRequired,date:gt.oneOfType([gt.string,gt.arrayOf(gt.string)]),dateObject:gt.object,excludeFields:gt.arrayOf(gt.string),fieldWeights:gt.arrayOf(gt.number),filterLabel:gt.string,func:gt.func,funcRequired:gt.func.isRequired,fuzziness:gt.oneOf([0,1,2,"AUTO"]),headers:gt.object,hits:gt.arrayOf(gt.object),iconPosition:gt.oneOf(["left","right"]),includeFields:gt.arrayOf(gt.string),labelPosition:gt.oneOf(["left","right","top","bottom"]),number:gt.number,options:gt.oneOfType([gt.arrayOf(gt.object),gt.object]),paginationAt:gt.oneOf(["top","bottom","both"]),range:gt.shape({start:gt.number.isRequired,end:gt.number.isRequired}),rangeLabels:gt.shape({start:gt.string.isRequired,end:gt.string.isRequired}),react:gt.shape({and:kn,or:kn,not:kn}),selectedValues:gt.object,selectedValue:gt.oneOfType([gt.string,gt.arrayOf(gt.string),gt.arrayOf(gt.object),gt.object,Number,gt.arrayOf(Number)]),suggestions:gt.arrayOf(gt.object),supportedOrientations:gt.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),sortBy:gt.oneOf(["asc","desc"]),sortOptions:gt.arrayOf(gt.shape({label:gt.string,dataField:gt.string,sortBy:gt.string})),sortByWithCount:gt.oneOf(["asc","desc","count"]),stats:gt.arrayOf(gt.object),string:gt.string,stringArray:gt.arrayOf(gt.string),stringOrArray:gt.oneOfType([gt.string,gt.arrayOf(gt.string)]),stringRequired:gt.string.isRequired,style:gt.object,themePreset:gt.oneOf(["light","dark"]),queryFormatSearch:gt.oneOf(["and","or"]),queryFormatNumberBox:gt.oneOf(["exact","lte","gte"]),params:gt.object.isRequired,props:gt.object,rangeLabelsAlign:gt.oneOf(["left","right"]),title:gt.oneOfType([gt.string,gt.any]),tooltipTrigger:gt.oneOf(["always","none","hover"]),location:gt.shape({lat:xn,lng:xn}),unit:gt.oneOf(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),value:gt.string.def(void 0),analyticsConfig:gt.shape({emptyQuery:gt.bool,suggestionAnalytics:gt.bool,userId:gt.string,customEvents:gt.object}),appbaseConfig:gt.shape({recordAnalytics:gt.bool,emptyQuery:gt.bool,suggestionAnalytics:gt.bool,enableQueryRules:gt.bool,enableSearchRelevancy:gt.bool,userId:gt.string,useCache:gt.bool,customEvents:gt.object,enableTelemetry:gt.bool.def(!0)}).def({}),mongodb:gt.shape({db:gt.string,collection:gt.string})},Vn=Ge.getClassName,Ln=Ge.handleA11yAction;function jn(e,t,n){var r=parseInt(e/2,10),o=t-(n?Math.ceil(r/2)-1:r);return o>1?o:2}var Dn,Fn={name:"Pagination",functional:!0,props:{currentPage:Qn.number,innerClass:Qn.style,pages:Qn.number,setPage:Qn.func,totalPages:Qn.number,showEndPage:gt.bool,prevLabel:Qn.string,nextLabel:Qn.string},render:function(e,t){var n=arguments[0],r=t.props,o=function(){r.currentPage&&r.setPage(r.currentPage-1)},i=function(){r.currentPage<r.totalPages-1&&r.setPage(r.currentPage+1)};if(!r.totalPages)return null;var a=Vn(r.innerClass,"button"),s=0===r.currentPage,u=a||s?a+" "+(s?"active":""):"",l=function(e){var t=r.pages,o=r.currentPage,i=r.totalPages,s=r.setPage,u=r.showEndPage,l="start"===e?jn(t,o,u):Math.max(2,Math.ceil(i-(t-1)/2+1)),c=[];if(l<=i){var p=t<i?l+(t-1):i+1;u&&(p="start"===e?l+(Math.ceil(t/2)-t%2):i+1),o>i-t+2&&(p=(l=Math.max(2,i-t+2))+t);for(var d=function(e){var t=o===e-1,r=n($n,{class:a||t?a+" "+(t?"active":""):"",attrs:{primary:t,tabIndex:"0",alt:"page-"+e},on:{keyPress:function(t){return Ln(t,(function(){return s(e-1)}))},click:function(){return s(e-1)}}},[e]);e<=i+1&&c.push(r)},h=l;h<Math.min(i+1,p);h+=1)d(h)}return c},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"):null:l("start")};return n("div",{class:Tn+" "+Vn(r.innerClass,"pagination")},[n($n,{class:Vn(r.innerClass,"button")||"",attrs:{disabled:0===r.currentPage,tabIndex:"0"},on:{keyPress:function(e){return Ln(e,o)},click:o}},[r.prevLabel||"Prev"]),n($n,{class:u,attrs:{primary:s,tabIndex:"0"},on:{keyPress:function(e){return Ln(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)?n("span",["..."]):null,c(),r.showEndPage&&r.pages>2&&r.currentPage<=r.totalPages-Math.ceil(.75*r.pages)?n("span",["..."]):null,r.showEndPage&&r.totalPages>=r.pages&&l("end"),n($n,{class:Vn(r.innerClass,"button")||"",attrs:{disabled:r.currentPage>=r.totalPages-1,tabIndex:"0"},on:{keyPress:function(e){return Ln(e,i)},click:i}},[r.nextLabel||"Next"])])}};Fn.install=function(e){e.component(Fn.name,Fn)};var Mn=Dt("img")(Dn||(Dn=Ke(["\n\twidth: 110px;\n"]))),Nn={functional:!0,render:function(e){return e("a",{attrs:{href:"https://appbase.io/",target:"_blank",rel:"noopener noreferrer"}},[e(Mn,{attrs:{src:"https://cdn.jsdelivr.net/gh/appbaseio/cdn@d2ec210045e59104ee5485841fa17b23fc83f097/appbase/logos/rbc-logo.svg"}})])}},Un=Object.prototype.hasOwnProperty;function qn(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}var Hn=function(){return{}},zn={},Bn=function(e,t){return void 0===e&&(e=Hn),void 0===t&&(t=zn),function(n){var r=function(e){if("function"==typeof e)return e;if(e===Object(e))return function(t,n){return Object.keys(e).filter((function(t){return"function"==typeof e[t]})).reduce((function(r,o){var i;return We({},r,((i={})[o]=e[o](t,n),i))}),{})};throw new Error("[revux] - mapState provided to connect is invalid")}(e);return{name:"connect-"+n.name,mixins:[n],inject:["$$store"],data:function(){var e=We({},r(this.$$store.getState(),this.$props||{}),f(t,this.$$store.dispatch));return Object.keys(e).reduce((function(t,n){var r;return We({},t,((r={})[n]=e[n],r))}),{})},created:function(){var e,t,n,o,i=this;this._unsubscribe=(e=this.$$store,n=function(e){Object.keys(e).forEach((function(t){i.$set(i,t,e[t])}))},o=(t=function(e){return r(e,i.$props||{})})(e.getState()),e.subscribe((function(){var r=t(e.getState());if(!function(e,t){if(qn(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(!Un.call(t,n[o])||!qn(e[n[o]],t[n[o]]))return!1;return!0}(o,r)){var i=o;n(o=r,i)}})))},beforeDestroy:function(){this._unsubscribe()}}}},Gn=Ge.updateDefaultQuery,Wn=Ge.updateCustomQuery,Yn=Ge.isEqual,Kn=function(){return Bn.apply(void 0,arguments)},Xn=function(e){return"function"==typeof e};function Zn(e,t){var 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 Jn=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=(t.$scopedSlots||t.$props).render;return n?n(e):null},er=function(e){void 0===e&&(e={});var t=(e.$scopedSlots||e.$props).render;return Boolean(t)},tr=function(e){return void 0===e&&(e={}),Object.keys(e).filter((function(e){return R.includes(e)}))},nr=function(e){return!!(e&&e.stopPropagation&&e.preventDefault)},rr=function(e,t,n,r){Gn(e,We({},n,{setDefaultQuery:t}),r)},or=function(e,t,n,r){Wn(e,We({},n,{setCustomQuery:t}),r)},ir=function(e,t,n,r){return"function"!=typeof e||"function"!=typeof t||Yn(t(n,r),e(n,r))},ar=function(e){void 0===e&&(e={});var t=e.$scopedSlots||e.$props,n=t.renderQuerySuggestions,r=t.renderPopularSuggestions;return Boolean(r)||Boolean(n)},sr=function(e){return!(e&&e.length&&Object.keys(e).length)};function ur(e){return/^-?\d+$/.test(e)}function lr(e){var t=e,n=t-48*Math.floor(t/48);return String.fromCharCode(t>=96?n:t)}var cr=["shift","ctrl","alt","control","option","cmd","command"];var pr=ze.addComponent,dr=ze.removeComponent,hr=ze.watchComponent,fr=ze.setQueryListener,gr=ze.setComponentProps,mr=ze.updateComponentProps,yr=Ge.pushToAndClause,vr=Ge.checkPropChange,br=Ge.checkSomePropChange,Or=function(e,t){return{savedComponentProps:e.props[t.componentId]}},Cr={addComponent:pr,removeComponent:dr,setQueryListener:fr,watchComponent:hr,setComponentProps:gr,updateComponentProps:mr},wr=function(e,t){return void 0===t&&(t={}),Kn(Or,Cr)(function(e,t){return void 0===t&&(t={componentType:null,internalComponent:!1}),{name:"ComponentWrapper",props:{destroyOnUnmount:gt.bool.def(!1)},created:function(){var e=We({},this.$attrs),t={};Object.keys(e).forEach((function(n){var r;t[(r=n,void 0===r&&(r=""),r.split("-").map((function(e,t){return t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e})).join("")||"")]=e[n]})),this.componentProps=t,this.componentId=this.componentProps.componentId,this.react=this.componentProps.react},beforeMount:function(){var e=this,n=[];this.$$store&&(n=this.$$store.getState().components);if(this.destroyOnUnmount||-1===n.indexOf(this.componentProps.componentId)){this.addComponent(this.componentId);this.setQueryListener(this.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),(function(t){e.$emit("error",t)})),this.setComponentProps(this.componentId,this.componentProps,t.componentType)}(t.internalComponent||this.componentProps.defaultQuery&&t.componentType===$.reactiveComponent)&&(this.internalComponent=Ae(this.componentId)),this.internalComponent&&(this.destroyOnUnmount||-1===n.indexOf(this.internalComponent))&&(this.addComponent(this.internalComponent),this.setComponentProps(this.internalComponent,this.componentProps,t.componentType))},mounted:function(){this.internalComponent&&this.setReact(this.componentProps)},beforeDestroy:function(){this.destroyOnUnmount&&(this.removeComponent(this.componentId),this.internalComponent&&this.removeComponent(this.internalComponent))},watch:{$attrs:{deep:!0,handler:function(e){var n=this,r=tr(e);br(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;vr(e,t,(function(){return n.setReact(n.componentProps)}))}},methods:{setReact:function(e){var t=e.react;if(this.internalComponent)if(t){var n=yr(t,this.internalComponent);this.watchComponent(e.componentId,n)}else this.watchComponent(e.componentId,{and:this.internalComponent});else this.watchComponent(e.componentId,t)}},render:function(t){return t(e,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots})}}}(e,t))};function Sr(){return(Sr=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}var _r,Tr,Er,Ir,Ar,Pr,$r,Rr,kr=["attrs","props","domProps"],xr=["class","style","directives"],Qr=["on","nativeOn"],Vr=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},Lr=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==kr.indexOf(n))e[n]=Sr({},e[n],t[n]);else if(-1!==xr.indexOf(n)){var r=e[n]instanceof Array?e[n]:[e[n]],o=t[n]instanceof Array?t[n]:[t[n]];e[n]=r.concat(o)}else if(-1!==Qr.indexOf(n))for(var i in t[n])if(e[n][i]){var a=e[n][i]instanceof Array?e[n][i]:[e[n][i]],s=t[n][i]instanceof Array?t[n][i]:[t[n][i]];e[n][i]=a.concat(s)}else e[n][i]=t[n][i];else if("hook"==n)for(var u in t[n])e[n][u]=e[n][u]?Vr(e[n][u],t[n][u]):t[n][u];else e[n]=t[n];else e[n]=t[n];return e}),{})},jr=Dt("h2")(_r||(_r=Ke(["\n\tmargin: 0 0 8px;\n\tfont-size: 1rem;\n\tcolor: ",";\n"])),(function(e){return e.theme.colors.titleColor})),Dr=xt(Tr||(Tr=Ke(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 0;\n\tborder-radius: 0.25rem;\n\toverflow: hidden;\n"]))),Fr=xt(Er||(Er=Ke(["\n\twidth: 100px;\n\theight: 100px;\n"]))),Mr=Dt("div")(Ir||(Ir=Ke(["\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?Fr:null}),(function(e){return"url("+e.src+")"})),Nr=Dt("a")(Ar||(Ar=Ke(["\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?Sn(.1,t.colors.backgroundColor):"#fff"}),(function(e){var t=e.theme;return t.colors.backgroundColor?Sn(.3,t.colors.backgroundColor):Sn(.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?Sn(.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})),Ur={name:"ResultListWrapper",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Lr([{attrs:{className:Dr}},n]),[r])}};Ur.install=function(e){e.component(Ur.name,Ur)};var qr,Hr,zr,Br,Gr,Wr,Yr,Kr,Xr,Zr,Jr,eo=xt(Pr||(Pr=Ke(["\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"]))),to=Dt("div")($r||($r=Ke(["\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"})),no=Dt("a")(Rr||(Rr=Ke(["\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?Sn(.1,t.colors.backgroundColor):"#fff"}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null})),ro={name:"ResultCardsWrapper",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Lr([{attrs:{className:eo}},n]),[r])}};ro.install=function(e){e.component(ro.name,ro)};var oo,io,ao=xt(qr||(qr=Ke(["\n\tflex-direction: row;\n\talign-items: center;\n"]))),so=xt(Hr||(Hr=Ke(["\n\tflex-direction: row-reverse;\n\talign-items: center;\n"]))),uo=xt(zr||(zr=Ke(["\n\tflex-direction: column;\n"]))),lo=xt(Br||(Br=Ke(["\n\tflex-direction: column-reverse;\n"]))),co=function(e){var t=e.theme.colors;return xt(Gr||(Gr=Ke(["\n\tborder: 1px solid ",";\n"])),t.borderColor||"#ccc")},po=Dt("div")(Wr||(Wr=Ke(["\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)&&ao}),(function(e){return("right"===e.labelPosition||"left"===e.iconPosition)&&so}),(function(e){return"top"===e.labelPosition&&uo}),(function(e){return"bottom"===e.labelPosition&&lo}),(function(e){return e.showBorder&&co}),(function(e){return e.justifyContent&&xt(Yr||(Yr=Ke(["\n\t\t\tjustify-content: ",";\n\t\t"])),e.justifyContent)}),(function(e){return e.alignItems&&xt(Kr||(Kr=Ke(["\n\t\t\talign-items: ",";\n\t\t"])),e.alignItems)}),(function(e){return e.flex&&xt(Xr||(Xr=Ke(["\n\t\t\tflex: ",";\n\t\t"])),e.flex)}),(function(e){return e.direction&&xt(Zr||(Zr=Ke(["\n\t\t\tflex-direction: ",";\n\t\t"])),e.direction)}),(function(e){return e.basis&&xt(Jr||(Jr=Ke(["\n\t\t\tflex-basis: ",";\n\t\t"])),e.basis)}),(function(e){var t=e.theme.colors;return t.borderColor||Sn(.3,t.textColor)}),(function(e){return e.theme.colors.textColor})),ho=xt(oo||(oo=Ke(["\n\tflex-grow: 1;\n\tfont-size: 0.82rem;\n"]))),fo=xt(io||(io=Ke(["\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"]))),go=ze.recordImpressions,mo=Ge.isEqual,yo={name:"ImpressionTracker",inject:["$$store"],props:{hits:Qn.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}));mo(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=We({},this.waitingToBeTracked);Object.keys(t).forEach((function(n){t[n]&&t[n].length&&(e.trackImpressions(n,t[n]),delete e.waitingToBeTracked[n])}))}},addToWaitingList:function(e){var t=this.getQueryId();if(e&&t){var n={id:e._id,index:e._index};this.waitingToBeTracked[t]?this.waitingToBeTracked[t].push(n):this.waitingToBeTracked[t]=[n]}},tracker:function(){var e,t,n=this;this.getHitIds().length?(window&&document&&this.getHitIds().forEach((function(e){var t=document.getElementById(e);if(t&&n.inViewPort(t)){var r=n.currentHits.find((function(t){return t._id===e}));n.trackedIds[e]=!0,n.addToWaitingList(r)}})),e=this.recordImpression,t=300,clearTimeout(e._tId),e._tId=setTimeout((function(){e()}),t)):this.clearTrackerInterval()},setTrackerInterval:function(){this.intervalID=setInterval(this.tracker,1e3)},clearTrackerInterval:function(){this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)},getQueryId:function(){var e=this.$$store?this.$$store.getState():null;return e?e.analytics.searchId:null},getHitIds:function(){var e=this;return this.currentHits.map((function(e){return e._id})).filter((function(t){return!e.trackedIds[t]}))}},render:function(){return this.$slots.default}},vo=Kn((function(){return null}),{trackImpressions:go})(yo),bo=ze.setQueryOptions,Oo=ze.updateQuery,Co=ze.loadMore,wo=ze.setValue,So=ze.updateComponentProps,_o=ze.setDefaultQuery,To=ze.recordResultClick,Eo=Ge.isEqual,Io=Ge.getQueryOptions,Ao=Ge.getClassName,Po=Ge.parseHits,$o=Ge.getOptionsFromQuery,Ro=Ge.getCompositeAggsQuery,ko=Ge.getResultStats,xo={name:"ReactiveList",components:{ResultListWrapper:Ur,ResultCardsWrapper:ro},data:function(){var e=0,t=this.defaultPage||-1;return t>=0?e=t:this.currentPage&&(e=Math.max(this.currentPage-1,0)),this.__state={from:e*this.size,currentPageState:e},this.__state},created:function(){var e=this,t=this.$props,n=t.distinctField,r=t.distinctFieldConfig,o=t.index;this.pagination&&this.aggregationField&&console.warn("Pagination is not supported when aggregationField is present. The list will be rendered with infinite scroll"),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!n&&!r||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&o&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var i=this.defaultPage||-1;i>=0&&(this.currentPageState=i,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.sortOptionIndex=0,this.defaultSortOption&&this.sortOptions&&Array.isArray(this.sortOptions)&&(this.sortOptionIndex=this.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption}))),this.updateComponentProps(this.componentId,{from:this.from},$.reactiveList),this.updateComponentProps(this.internalComponent,{from:this.from},$.reactiveList)},props:{currentPage:gt.number.def(0),includeFields:Qn.includeFields,className:Qn.string,componentId:Qn.stringRequired,dataField:Qn.stringRequired,aggregationField:Qn.string,aggregationSize:gt.number,defaultQuery:Qn.func,defaultSortOption:Qn.string,excludeFields:Qn.excludeFields,innerClass:Qn.style,listClass:gt.string.def(""),loader:Qn.title,render:Qn.func,renderItem:Qn.func,renderNoResults:gt.any.def("No Results found."),renderError:Qn.title,renderResultStats:Qn.func,pages:gt.number.def(5),pagination:gt.bool.def(!1),infiniteScroll:gt.bool.def(!0),paginationAt:gt.oneOf(["top","bottom","both"]).def("bottom"),react:Qn.react,scrollOnChange:gt.bool.def(!0),showResultStats:gt.bool.def(!0),showEndPage:gt.bool.def(!1),size:gt.number.def(10),sortBy:Qn.sortBy,sortOptions:Qn.sortOptions,URLParams:gt.bool.def(!1),prevLabel:Qn.string,nextLabel:Qn.string,distinctField:Qn.string,distinctFieldConfig:Qn.props,index:gt.string},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 We({},ko(this),{currentPage:this.currentPageState,displayedResults:this.data.length})},hasCustomRender:function(){return er(this)},showInfiniteScroll:function(){return this.infiniteScroll&&!this.shouldRenderPagination},data:function(){var e=Po(this.hits)||[],t=Po(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 ge(n)}},watch:{sortOptions:function(e,t){Eo(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(!ir(e,t,null,this.$props)){var n=Io(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=this.$defaultQuery||{},o=r.sort,i=r.query;o&&(n.sort=this.$defaultQuery.sort),$o(this.$defaultQuery)&&(n=We({},n,$o(this.$defaultQuery))),rr(this.componentId,this.setDefaultQuery,this.$props),this.setQueryOptions(this.$props.componentId,We({},n,this.getAggsQuery()),!i),this.updateQuery({componentId:this.internalComponent,query:i},!0),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){Eo(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){Eo(e,t)||this.$emit("data",this.getData())},time:function(e,t){Eo(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){Eo(e,t)||this.$emit("data",this.getData())},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},infiniteScroll:function(e,t){e!==t&&(e?window.removeEventListener("scroll",this.scrollHandler):window.addEventListener("scroll",this.scrollHandler))},defaultPage:function(e,t){this.currentPageState!==e&&t!==e&&this.setPage(e>=0?e:0)}},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,this.URLParams);var e=Io(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},$.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=We({},e,$o(this.$defaultQuery)),this.$defaultQuery.sort&&(e.sort=this.$defaultQuery.sort),rr(this.componentId,this.setDefaultQuery,this.$props));var i=(this.$defaultQuery||{}).query;this.setQueryOptions(this.$props.componentId,We({},e,this.getAggsQuery()),!1),this.$defaultQuery?this.updateQuery({componentId:this.internalComponent,query:i},!1):this.updateQuery({componentId:this.internalComponent,query:null},!1),this.showInfiniteScroll&&window.addEventListener("scroll",this.scrollHandler)},beforeDestroy:function(){this.showInfiniteScroll&&window.removeEventListener("scroll",this.scrollHandler)},render:function(){var e=arguments[0],t=this.$data.hits,n=Po(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(po,{attrs:{labelPosition:this.sortOptions?"right":"left"},class:Ao(this.$props.innerClass,"resultsInfo")},[this.sortOptions?this.renderSortOptions():null,this.$props.showResultStats&&n.length?this.renderStats():null]),this.isLoading||0!==n.length?null:this.renderNoResult(),!this.shouldRenderPagination||"top"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:e(Fn,{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(Fn,{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(po,{attrs:{direction:"row-reverse"},class:Ao(this.$props.innerClass,"poweredBy")},[e(Nn)]):null])},methods:{renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?Xn(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+" "+Ao(this.$props.innerClass,"list")},[this.data.map((function(t,o){return r({item:t,triggerClickAnalytics:function(){return e.triggerClickAnalytics(e.currentPageState*n+o)}})}))]);return this.analytics?t(vo,{attrs:{hits:this.data}},[o]):o},updateQueryOptions:function(e){var t=Io(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,We({},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=Ro({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=We({},Io(this.$props),this.getAggsQuery());this.from=e,rr(this.componentId,this.setDefaultQuery,this.$props),this.loadMoreAction(this.$props.componentId,We({},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=Io(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.$props.componentId,We({},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:ho+" "+Ao(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?Xn(t)?t():t:e("p",{class:Ao(this.$props.innerClass,"noResults")||null},[Xn(t)?t():t])},handleSortChange:function(e){var t=e.target.value;if(this.sortOptions&&this.sortOptions[t]){var n,r=Io(this.$props);r.from=0;var o=this.sortOptions[t].dataField,i=this.sortOptions[t].sortBy;r.sort=[(n={},n[o]={order:i},n)],this.sortOptionIndex=t,this.updateComponentProps(this.componentId,{dataField:o,sortBy:i},$.reactiveList),this.setQueryOptions(this.$props.componentId,r,!0),this.currentPageState=0,this.from=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)},renderSortOptions:function(){var e=this.$createElement;return e("select",{class:fo+" "+Ao(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 We({},e,{_click_id:t+n})}))},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.aggregationData,r=this.customData,o=this.currentPage,i=this.hits,a=o*e;return{results:Po(i)||[],customData:r||{},promotedResults:Po(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=We({error:this.error,loading:this.isLoading||!1,loadMore:this.loadMore,triggerAnalytics:this.triggerClickAnalytics,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return Jn(e,this)}}},Qo={loadMoreAction:Co,setPageURL:wo,setQueryOptions:bo,updateQuery:Oo,updateComponentProps:So,setDefaultQuery:_o,recordResultClick:To};xo.generateQueryOptions=function(e){var t=Io(e),n=e.size,r=e.dataField,o=e.defaultSortOption,i=e.sortOptions,a=e.currentPage,s=e.sortBy;t.from=a?(a-1)*(n||10):0,t.size=n||10;if(i)t.sort=[function(){var e;if(o){var t,n=i.find((function(e){return e.label===o}));if(n)return(t={})[n.dataField]={order:n.sortBy},t}return(e={})[i[0].dataField]={order:i[0].sortBy},e}()];else if(s){var u;t.sort=[(u={},u[r]={order:s},u)]}return t};var Vo=wr(Kn((function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1,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]}}),Qo)(xo),{componentType:$.reactiveList,internalComponent:!0});xo.install=function(e){e.component(xo.name,Vo),e.component(Ur.name,Ur),e.component(ro.name,ro)},xo.componentType=$.reactiveList;var Lo=function(e){var t=RegExp("^(([^:/?#]*)?://)?(((.*)?@)?([^/?#]*)?)([^?#]*)(\\?([^#]*))?(#(.*))?"),n=e.match(t);return{protocol:n[2],auth:n[5],host:n[6],path:n[7],query:n[9],hash:n[11]}};function jo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Do=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var l,c,p,d,h=e[u].replace(i,"%20"),f=h.indexOf(n);f>=0?(l=h.substr(0,f),c=h.substr(f+1)):(l=h,c=""),p=decodeURIComponent(l),d=decodeURIComponent(c),jo(o,p)?Array.isArray(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o},Fo=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},Mo=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(Fo(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(Fo(e))})).join(t):o+encodeURIComponent(Fo(e[r]))})).filter(Boolean).join(t):r?encodeURIComponent(Fo(r))+n+encodeURIComponent(Fo(e)):""},No=o((function(e,t){t.decode=t.parse=Do,t.encode=t.stringify=Mo})),Uo=(No.decode,No.parse,No.encode,No.stringify,o((function(e){var t=function(e){function t(){this.fetch=!1}return t.prototype=e,new t}("undefined"!=typeof self?self:n);(function(e){!function(e){if(!e.fetch){var t="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,r="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,i="ArrayBuffer"in e;if(i)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},u=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};f.prototype.append=function(e,t){e=p(e),t=d(t);var n=this.map[e];this.map[e]=n?n+","+t:t},f.prototype.delete=function(e){delete this.map[p(e)]},f.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},f.prototype.set=function(e,t){this.map[p(e)]=d(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},n&&(f.prototype[Symbol.iterator]=f.prototype.entries);var l=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},b.call(O.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var c=[301,302,303,307,308];w.redirect=function(e,t){if(-1===c.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},e.Headers=f,e.Request=O,e.Response=w,e.fetch=function(e,t){return new Promise((function(n,o){var i=new O(e,t),a=new XMLHttpRequest;a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new f,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)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new w(o,r))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),a.send(void 0===i._bodyInit?null:i._bodyInit)}))},e.fetch.polyfill=!0}function p(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 d(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?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 g(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(r&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(o&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(i&&r&&s(e))this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(e)&&!u(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=v(e)}else 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):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=g(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?g(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var e,t,n,r=g(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=m(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)},o&&(this.formData=function(){return this.text().then(C)}),this.json=function(){return this.text().then(JSON.parse)},this}function O(e,t){var n,r,o=(t=t||{}).body;if(e instanceof O){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),l.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,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 C(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 w(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 f(t.headers),this.url=t.url||"",this._initBody(e)}}(void 0!==e?e:this)}).call(t,void 0);var r=t.fetch;r.Response=t.Response,r.Request=t.Request,r.Headers=t.Headers;e.exports&&(e.exports=r,e.exports.default=r)}))),qo="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 Ho(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 zo(e,t){var n=[],r={object:null,string:"",number:0};Object.keys(t).forEach((function(o){var i=t[o].split("|").find((function(t){return qo(e[o])===t}));i&&e[o]!==r[i]||n.push(o)}));for(var o="",i=0;i<n.length;i+=1)o+=n[i]+", ";return!(n.length>0)||new Error("fields missing: "+o)}function Bo(){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 Go(){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 Wo(e,t){var n={};return e&&(n.index=e),t&&(t.db&&(n.db=t.db),t.collection&&(n.collection=t.collection)),n}function Yo(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 Ko={MONGODB:"mongodb",ELASTICSEARCH:"elasticsearch"},Xo="array",Zo="object",Jo="boolean",ei="string",ti=function(e){return(void 0===e?"undefined":qo(e))===Zo?Array.isArray(e)?Xo:Zo:void 0===e?"undefined":qo(e)};var ni={mongodb:{url:{type:ei,required:!0},app:{type:ei,required:!1},credentials:{type:ei,required:!1},enableTelemetry:{type:Jo,required:!1},mongodb:{type:Zo,required:!0},username:{type:ei,required:!1},password:{type:ei,required:!1}},elasticsearch:{url:{type:ei,required:!0},app:{type:ei,required:!0},credentials:{type:ei,required:!1},enableTelemetry:{type:Jo,required:!1},username:{type:ei,required:!1},password:{type:ei,required:!1}}};function ri(e){var t=Lo(e.url||""),n=t.auth,r=void 0===n?null:n,o=t.host,i=void 0===o?"":o,a=t.path,s=void 0===a?"":a,u=t.protocol,l=void 0===u?"":u,c=e.url;"/"===(c=i+s).slice(-1)&&(c=c.slice(0,-1));var p=Ko[e.mongodb?"MONGODB":"ELASTICSEARCH"],d=ni[p];if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=Object.keys(e).filter((function(t){return!!e[t]})),o=Object.keys(t),i=[];o.forEach((function(e){t[e].required&&i.push(e)})),i.forEach((function(e){if(!r.includes(e))throw new Error(e+" is required when using the "+n+" Search backend.")})),r.forEach((function(r){if(!o.includes(r))throw new Error(r+" property isn't accepted property by "+n+" backend.");var i=Array.isArray(t[r].type)?t[r].type:[].concat(t[r].type),a=ti(e[r]);if(!i.includes(a))throw new Error("The property "+r+" is expected with type(s) ["+i.join(", ")+"], but type was set as "+a+".")}))}({url:e.url,app:e.app,credentials:e.credentials,username:e.username,password:e.password,enableTelemetry:e.enableTelemetry,mongodb:e.mongodb},d,p),"string"!=typeof l||""===l)throw new Error("Protocol is not present in url. URL should be of the form https://appbase-demo-ansible-abxiydt-arc.searchbase.io");var h=r||null;if(!e.mongodb&&function(e){return t="scalr.api.appbase.io",-1!==e.indexOf(t);var t}(c)&&null===h)throw new Error("Authentication information is not present. Did you add credentials?");"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),this.url=c,this.protocol=l,this.app=e.app,this.credentials=h,e.mongodb&&(this.mongodb=e.mongodb),"boolean"==typeof e.enableTelemetry&&(this.enableTelemetry=e.enableTelemetry)}function oi(e){var t=this;return new Promise((function(n,r){var o=Bo(e);try{var i=o.method,a=o.path,s=o.params,u=o.body,l=o.isRSAPI,c=o.isSuggestionsAPI,p=o.isMongoRequest,d=void 0!==p&&p,h=c?".suggestions":t.app,f=u,g=a.endsWith("msearch")||a.endsWith("bulk")?"application/x-ndjson":"application/json",m=Object.assign({},{Accept:"application/json","Content-Type":g},e.headers,t.headers),y=Date.now();t.credentials&&(m.Authorization="Basic "+function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=t,o="",i=0,a=0,s=n;r.charAt(0|a)||(s="=",a%1);o+=s.charAt(63&i>>8-a%1*8)){if((e=r.charCodeAt(a+=3/4))>255)throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');i=i<<8|e}return o}(t.credentials));var v={method:i,headers:m};if(Array.isArray(f)){var b="";f.forEach((function(e){b+=JSON.stringify(e),b+="\n"})),f=b}else f=JSON.stringify(f)||{};0!==Object.keys(f).length&&(v.body=f);var O={},C="";s&&(C="?"+No.stringify(s));var w=d?t.protocol+"://"+t.url:t.protocol+"://"+t.url+"/"+h+"/"+a+C;return function(e){if(t.transformRequest&&"function"==typeof t.transformRequest){var n=t.transformRequest(e);return n instanceof Promise?n:Promise.resolve(n)}return Promise.resolve(e)}(Object.assign({},{url:w},v)).then((function(e){var t=Object.assign({},e),o=t.url;return delete t.url,Uo(o||w,Object.assign({},t,{headers:l&&!d?Object.assign({},t.headers,{"x-timestamp":(new Date).getTime()}):t.headers})).then((function(e){return e.status>=500?r(e):(O=e.headers,e.json().then((function(t){if(e.status>=400)return r(e);if(t&&t.error)return r(t);if(l&&t&&"[object Object]"===Object.prototype.toString.call(t)&&u&&u.query&&u.query instanceof Array){var o=0,i=u.query.filter((function(e){return e.execute||void 0===e.execute})).length;if(t&&Object.keys(t).forEach((function(e){t[e]&&Object.prototype.hasOwnProperty.call(t[e],"error")&&t[e].error&&(o+=1)})),o>0&&i===o)return r(t)}if(t&&t.responses instanceof Array&&t.responses.length===t.responses.filter((function(e){return Object.prototype.hasOwnProperty.call(e,"error")})).length)return r(t);var a=Object.assign({},t,{_timestamp:y,_headers:O});return n(a)})).catch((function(e){return r(e)})))})).catch((function(e){return r(e)}))})).catch((function(e){return r(e)}))}catch(e){return r(e)}}))}function ii(e){var t=Bo(e),n=zo(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id,a=t.body;delete t.type,delete t.body,delete t.id;var s=void 0;return s=i?o?o+"/"+encodeURIComponent(i):encodeURIComponent(i):o,this.performFetchRequest({method:"POST",path:s,params:t,body:a})}function ai(e){var t=Bo(e),n=zo(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(i);return this.performFetchRequest({method:"GET",path:a,params:t})}function si(e){var t=Bo(e),n=zo(t,{id:"string|number",body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id,a=t.body;delete t.type,delete t.id,delete t.body;var s=o+"/"+encodeURIComponent(i)+"/_update";return this.performFetchRequest({method:"POST",path:s,params:t,body:a})}function ui(e){var t=Bo(e),n=zo(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id;delete t.type,delete t.id;var a=o+"/"+encodeURIComponent(i);return this.performFetchRequest({method:"DELETE",path:a,params:t})}function li(e){var t=Bo(e),n=zo(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_bulk":"_bulk",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function ci(e){var t=Bo(e),n=zo(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_search":"_search",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function pi(e){var t=Bo(e),n=zo(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_msearch":"_msearch",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function di(e,t){var n=Bo(t),r=Ho(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:Wo(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch",body:o,headers:Yo(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb})}function hi(e,t){var n=Bo(t),r=Ho(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:Wo(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,headers:Yo(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb})}function fi(){return this.performFetchRequest({method:"GET",path:"_mapping"})}function gi(e,t){var n=Bo(t),r=Ho(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:Wo(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,headers:Yo(this.enableTelemetry),isRSAPI:!0,isSuggestionsAPI:!0,isMongoRequest:!!this.mongodb})}function mi(e){var t=new ri(e);return ri.prototype.performFetchRequest=oi,ri.prototype.index=ii,ri.prototype.get=ai,ri.prototype.update=si,ri.prototype.delete=ui,ri.prototype.bulk=li,ri.prototype.search=ci,ri.prototype.msearch=pi,ri.prototype.reactiveSearch=di,ri.prototype.reactiveSearchv3=hi,ri.prototype.getQuerySuggestions=gi,ri.prototype.getMappings=fi,ri.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?Go(e):e},"undefined"!=typeof window&&(window.Appbase=t),t}
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
*
|
|
23
23
|
* @author Jerry Bendy <jerry@icewingcc.com>
|
|
24
24
|
* @licence MIT
|
|
25
25
|
*
|
|
26
|
-
*/!function(e){var t,n=e.URLSearchParams&&e.URLSearchParams.prototype.get?e.URLSearchParams:null,r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),i=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),a=c.prototype,s=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&i)){a.append=function(e,t){g(this.__URLSearchParams__,e,t)},a.delete=function(e){delete this.__URLSearchParams__[e]},a.get=function(e){var t=this.__URLSearchParams__;return e in t?t[e][0]:null},a.getAll=function(e){var t=this.__URLSearchParams__;return e in t?t[e].slice(0):[]},a.has=function(e){return e in this.__URLSearchParams__},a.set=function(e,t){this.__URLSearchParams__[e]=[""+t]},a.toString=function(){var e,t,n,r,o=this.__URLSearchParams__,i=[];for(t in o)for(n=p(t),e=0,r=o[t];e<r.length;e++)i.push(n+"="+p(r[e]));return i.join("&")};var u=!!o&&n&&!r&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:u?new Proxy(n,{construct:function(e,t){return new e(new c(t[0]).toString())}}):c});var l=e.URLSearchParams.prototype;l.polyfill=!0,l.forEach=l.forEach||function(e,t){var n=f(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)},l.sort=l.sort||function(){var e,t,n,r=f(this.toString()),o=[];for(e in r)o.push(e);for(o.sort(),t=0;t<o.length;t++)this.delete(o[t]);for(t=0;t<o.length;t++){var i=o[t],a=r[i];for(n=0;n<a.length;n++)this.append(i,a[n])}},l.keys=l.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},l.values=l.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},l.entries=l.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},s&&(l[e.Symbol.iterator]=l[e.Symbol.iterator]||l.entries)}function c(e){((e=e||"")instanceof URLSearchParams||e instanceof c)&&(e=e.toString()),this.__URLSearchParams__=f(e)}function p(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function d(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(e){return decodeURIComponent(e)}))}function h(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return s&&(n[e.Symbol.iterator]=function(){return n}),n}function f(e){var t={};if("object"==typeof e)if(m(e))for(var n=0;n<e.length;n++){var r=e[n];if(!m(r)||2!==r.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");g(t,r[0],r[1])}else for(var o in e)e.hasOwnProperty(o)&&g(t,o,e[o]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),a=0;a<i.length;a++){var s=i[a],u=s.indexOf("=");-1<u?g(t,d(s.slice(0,u)),d(s.slice(u+1))):s&&g(t,d(s),"")}}return t}function g(e,t,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);t in e?e[t].push(r):e[t]=[r]}function m(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}}(void 0!==n?n:"undefined"!=typeof window?window:n);var yi,vi={name:"Provider",props:{store:{type:Object,required:!0,validator:function(e){if(!e.dispatch&&!e.subscribe&&!e.getState)throw new Error("[reactivesearch-vue] - store provided is not a valid redux store");return!0}}},provide:function(){return{$$store:this.store}},render:function(e){return this.$slots.default.length>1?e("div",this.$slots.default):this.$slots.default[0]}},bi=Dt({functional:!0,render:function(e,t){var n=t.data.attrs.as,r=void 0===n?"div":n,o=t.data,i=t.children;return delete o.attrs.as,e(r,Vr([{},o]),[i])}})(yi||(yi=Ke(["\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})),Ci=ze.setHeaders,Oi=ze.setValue,wi=Ge.isEqual,Si={name:"URLParamsProvider",props:{className:Qn.string,headers:Qn.headers,getSearchParams:Qn.func,setSearchParams:Qn.func,as:gt.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)})),Array.from(e.params.entries()).forEach((function(t){try{var n=t[0],r=t[1],o=e.selectedValues[n]||{label:n},i=o.label,a=o.showFilter,s=o.URLParams;e.setValue(n,JSON.parse(r),i,a,s)}catch(e){console.error(e)}}))}},watch:{$route:function(){this.checkForURLParamsChange()},selectedValues:function(e,t){var n=this;if(this.currentSelectedState=e,!wi(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());r.filter((function(t){return e[t].URLParams})).forEach((function(r){if(n.hasValidValue(e[r])||n.hasValidValue(t[r])){var i=e[r];i.URLParams?i.category?n.setURL(r,n.getValue({category:i.category,value:i.value})):n.setURL(r,n.getValue(i.value)):(n.params.delete(r),n.pushToHistory())}else!n.hasValidValue(e[r])&&o.includes(r)&&(n.params.delete(r),n.pushToHistory())})),Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(e){n.params.delete(e),n.pushToHistory()})),r.length||(Array.from(this.params.keys()).forEach((function(e){n.searchComponents&&n.searchComponents.includes(e)&&n.params.delete(e)})),this.pushToHistory())}},headers:function(e,t){wi(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(this.searchString=this.$props.getSearchParams?this.$props.getSearchParams():window.location.search,this.params=new URLSearchParams(this.searchString),!t||"string"==typeof t&&""===t.trim()||Array.isArray(t)&&0===t.length)this.params.delete(e),this.pushToHistory();else{var n=JSON.stringify(this.getValue(t));n!==this.params.get(e)&&(this.params.set(e,n),this.pushToHistory())}},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(bi,{attrs:{as:this.$props.as},class:this.$props.className},[t])}},_i={setHeaders:Ci,setValue:Oi};Si.install=function(e){e.component(Si.name,Si)};var Ti=Kn((function(e){return{selectedValues:e.selectedValues,searchComponents:e.components}}),_i)(Si),Ei={fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Noto Sans", "Ubuntu", "Droid Sans", "Helvetica Neue", sans-serif',fontSize:"16px"},Ii={typography:Ei,colors:{textColor:"#424242",primaryTextColor:"#fff",primaryColor:"#0B6AFF",titleColor:"#424242",alertColor:"#d9534f",borderColor:"#595959"}},Ai={typography:Ei,colors:{textColor:"#fff",backgroundColor:"#212121",primaryTextColor:"#fff",primaryColor:"#2196F3",titleColor:"#fff",alertColor:"#d9534f",borderColor:"#666"}};var Pi={name:"ReactiveBase",data:function(){return this.state={key:"__REACTIVE_BASE__"},this.state},created:function(){this.setStore(this.$props)},mounted:function(){void 0!==this.analyticsConfig&&console.warn("Warning(ReactiveSearch): The `analyticsConfig` prop has been marked as deprecated, please use the `appbaseConfig` prop instead.")},props:{app:Qn.string,analytics:gt.bool,analyticsConfig:Qn.analyticsConfig,appbaseConfig:Qn.appbaseConfig,enableAppbase:gt.bool.def(!1),credentials:Qn.string,headers:Qn.headers,queryParams:Qn.string,theme:gt.object.def({}),themePreset:gt.string.def("light"),type:Qn.string,url:Qn.string,mapKey:Qn.string,initialQueriesSyncTime:Qn.number,className:Qn.string,initialState:gt.object.def({}),transformRequest:Qn.func,transformResponse:Qn.func,as:gt.string.def("div"),getSearchParams:Qn.func,setSearchParams:Qn.func,mongodb:Qn.mongodb},provide:function(){return{theme_reactivesearch:(n=this.$props.themePreset,e="light"===n?Ii:Ai,t=this.$props.theme,void 0===e&&(e={}),void 0===t&&(t={}),{typography:We({},e.typography,t.typography),colors:We({},e.colors,t.colors),component:We({},e.component,t.component)}),store:this.store};var e,t,n},watch:{app:function(){this.updateState(this.$props)},url:function(){this.updateState(this.$props)},type:function(){this.updateState(this.$props)},credentials:function(){this.updateState(this.$props)},mapKey:function(){this.updateState(this.$props)},headers:function(){this.updateState(this.$props)},analyticsConfig:function(e,t){me(e,t)||this.store&&this.store.dispatch(Fe(e))},appbaseConfig:function(e,t){me(e,t)||this.store&&this.store.dispatch(Fe(e))},mongodb:function(){this.updateState(this.$props)}},computed:{getHeaders:function(){var e=this.$props,t=e.enableAppbase,n=e.headers,r=e.appbaseConfig,o=e.mongodb,i=(r||{}).enableTelemetry;return We({},t&&!o&&We({"X-Search-Client":"ReactiveSearch Vue"},!1===i&&{"X-Enable-Telemetry":!1}),n)}},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=We({},e.analyticsConfig,e.appbaseConfig),r={url:e.url&&""!==e.url.trim()?e.url:"",app:e.app,credentials:t,type:e.type?e.type:"*",transformRequest:e.transformRequest,transformResponse:e.transformResponse,enableAppbase:e.enableAppbase,analytics:e.appbaseConfig?e.appbaseConfig.recordAnalytics:e.analytics,analyticsConfig:n,mongodb:e.mongodb},o="";o="undefined"!=typeof window?window.location.search:e.queryParams||"";var i=new URLSearchParams(o),a={},s={};Array.from(i.keys()).forEach((function(e){try{var t,n,r=JSON.parse(i.get(e)),o={};r.value?o.value=r.value:o.value=r,r.category&&(o.category=r.category),o.reference="URL",a=We({},a,((t={})[e]=o,t)),s=We({},s,((n={})[e]=o.value,n))}catch(e){}}));var u=e.themePreset,l=mi(r);this.$props.transformRequest&&(l.transformRequest=this.$props.transformRequest),this.$props.transformResponse&&(l.transformResponse=this.$props.transformResponse);var c=We({config:We({},r,{initialQueriesSyncTime:e.initialQueriesSyncTime,initialTimestamp:(new Date).getTime(),mapKey:e.mapKey,themePreset:u}),appbaseRef:l,selectedValues:a,urlValues:s,headers:this.getHeaders},this.$props.initialState);this.store=He(c)}},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.style,o=n.className;return e(vi,{attrs:{store:this.store}},[e(Ti,{attrs:{as:this.$props.as,headers:this.getHeaders,className:o,getSearchParams:this.getSearchParams,setSearchParams:this.setSearchParams},style:r},[t])])},install:function(e){e.component(Pi.name,Pi)}},$i="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Ri(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function ki(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 xi(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var Qi={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":$i?173:189,"=":$i?61:187,";":$i?59:186,"'":222,"[":219,"]":221,"\\":220},Li={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Vi={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ji={16:!1,18:!1,17:!1,91:!1},Di={},Fi=1;Fi<20;Fi++)Qi["f".concat(Fi)]=111+Fi;var Mi=[],Ni="all",Ui=[],qi=function(e){return Qi[e.toLowerCase()]||Li[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function Hi(e){Ni=e||"all"}function zi(){return Ni||"all"}var Bi=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,i=void 0===o?"+":o;xi(t).forEach((function(e){var t=e.split(i),o=t.length,a=t[o-1],s="*"===a?"*":qi(a);if(Di[s]){n||(n=zi());var u=o>1?ki(Li,t):[];Di[s]=Di[s].map((function(e){return(!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,i=0;i<n.length;i++)-1===r.indexOf(n[i])&&(o=!1);return o}(e.mods,u)?{}:e}))}}))};function Gi(e,t,n){var r;if(t.scope===n||"all"===t.scope){for(var o in r=t.mods.length>0,ji)Object.prototype.hasOwnProperty.call(ji,o)&&(!ji[o]&&t.mods.indexOf(+o)>-1||ji[o]&&-1===t.mods.indexOf(+o))&&(r=!1);(0!==t.mods.length||ji[16]||ji[18]||ji[17]||ji[91])&&!r&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function Wi(e){var t=Di["*"],n=e.keyCode||e.which||e.charCode;if(Yi.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===Mi.indexOf(n)&&229!==n&&Mi.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=Vi[t];e[t]&&-1===Mi.indexOf(n)?Mi.push(n):!e[t]&&Mi.indexOf(n)>-1?Mi.splice(Mi.indexOf(n),1):"metaKey"===t&&e[t]&&3===Mi.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Mi=Mi.slice(Mi.indexOf(n))))})),n in ji){for(var r in ji[n]=!0,Li)Li[r]===n&&(Yi[r]=!0);if(!t)return}for(var o in ji)Object.prototype.hasOwnProperty.call(ji,o)&&(ji[o]=e[Vi[o]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Mi.indexOf(17)&&Mi.push(17),-1===Mi.indexOf(18)&&Mi.push(18),ji[17]=!0,ji[18]=!0);var i=zi();if(t)for(var a=0;a<t.length;a++)t[a].scope===i&&("keydown"===e.type&&t[a].keydown||"keyup"===e.type&&t[a].keyup)&&Gi(e,t[a],i);if(n in Di)for(var s=0;s<Di[n].length;s++)if(("keydown"===e.type&&Di[n][s].keydown||"keyup"===e.type&&Di[n][s].keyup)&&Di[n][s].key){for(var u=Di[n][s],l=u.splitKey,c=u.key.split(l),p=[],d=0;d<c.length;d++)p.push(qi(c[d]));p.sort().join("")===Mi.sort().join("")&&Gi(e,u,i)}}}function Yi(e,t,n){Mi=[];var r=xi(e),o=[],i="all",a=document,s=0,u=!1,l=!0,c="+";for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(u=t.keyup),void 0!==t.keydown&&(l=t.keydown),"string"==typeof t.splitKey&&(c=t.splitKey)),"string"==typeof t&&(i=t);s<r.length;s++)o=[],(e=r[s].split(c)).length>1&&(o=ki(Li,e)),(e="*"===(e=e[e.length-1])?"*":qi(e))in Di||(Di[e]=[]),Di[e].push({keyup:u,keydown:l,scope:i,mods:o,shortcut:r[s],method:n,key:r[s],splitKey:c});void 0!==a&&!function(e){return Ui.indexOf(e)>-1}(a)&&window&&(Ui.push(a),Ri(a,"keydown",(function(e){Wi(e)})),Ri(window,"focus",(function(){Mi=[]})),Ri(a,"keyup",(function(e){Wi(e),function(e){var t=e.keyCode||e.which||e.charCode,n=Mi.indexOf(t);if(n>=0&&Mi.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&Mi.splice(0,Mi.length),93!==t&&224!==t||(t=91),t in ji)for(var r in ji[t]=!1,Li)Li[r]===t&&(Yi[r]=!1)}(e)})))}var Ki,Xi={setScope:Hi,getScope:zi,deleteScope:function(e,t){var n,r;for(var o in e||(e=zi()),Di)if(Object.prototype.hasOwnProperty.call(Di,o))for(n=Di[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;zi()===e&&Hi(t||"all")},getPressedKeyCodes:function(){return Mi.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=qi(e)),-1!==Mi.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(r=!1),r},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&Bi(e)}));else if("object"==typeof e)e.key&&Bi(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0],i=n[1];"function"==typeof o&&(i=o,o=""),Bi({key:e,scope:o,method:i,splitKey:"+"})}}else Object.keys(Di).forEach((function(e){return delete Di[e]}))}};for(var Zi in Xi)Object.prototype.hasOwnProperty.call(Xi,Zi)&&(Yi[Zi]=Xi[Zi]);if("undefined"!=typeof window){var Ji=window.hotkeys;Yi.noConflict=function(e){return e&&window.hotkeys===Yi&&(window.hotkeys=Ji),Yi},window.hotkeys=Yi}var ea,ta=Dt("div")(Ki||(Ki=Ke(["\n display: flex;\n align-items: stretch;\n width: 100%;\n"])));ta.defaultProps={className:"input-group"};var na,ra,oa,ia,aa,sa,ua,la,ca,pa,da,ha,fa,ga,ma,ya,va,ba=Dt("span")(ea||(ea=Ke(["\n flex: 1;\n position: relative;\n"]))),Ca=Dt("span")(na||(na=Ke(["\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"])));Ca.defaultProps={className:"input-addon"};var Oa,wa,Sa,_a,Ta,Ea=function(e){var t=e.theme;return xt(ra||(ra=Ke(["\n\tborder: 1px solid ",";\n"])),t.colors.alertColor)},Ia=xt(oa||(oa=Ke(["\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"]))),Aa=function(e){return xt(ia||(ia=Ke(["\n\tborder-color: ",";\n"])),e.colors.borderColor)},Pa=Dt("input")(sa||(sa=Ke(["\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"])),Ia,(function(e){var t=e.themePreset,n=e.theme;return"dark"===t&&function(e){var t=e.theme;return xt(aa||(aa=Ke(["\n\tbackground-color: ",";\n\tcolor: ",";\n\t",";\n\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor,t.colors.textColor,Aa(t),t.colors.backgroundColor)}({theme:n})}),(function(e){return e.showIcon&&"left"===e.iconPosition&&xt(ua||(ua=Ke(["\n\t\t\tpadding-left: 36px;\n\t\t"])))}),(function(e){return e.showIcon&&"right"===e.iconPosition&&xt(la||(la=Ke(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showClear&&xt(ca||(ca=Ke(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&xt(pa||(pa=Ke(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showClear&&e.showIcon&&"right"===e.iconPosition&&xt(da||(da=Ke(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&e.showIcon&&"right"===e.iconPosition&&xt(ha||(ha=Ke(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&e.showIcon&&xt(fa||(fa=Ke(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showClear&&e.showIcon&&e.showVoiceSearch&&"right"===e.iconPosition&&xt(ga||(ga=Ke(["\n\t\t\tpadding-right: 90px;\n\t\t"])))}),(function(e){return e.alert&&Ea})),$a=function(e,t){return xt(ma||(ma=Ke(["\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: 395px;\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&&Aa(t))},Ra=xt(ya||(ya=Ke(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"]))),ka=function(e,t){return xt(va||(va=Ke(["\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&&Aa(t))},xa=Dt("div")(Oa||(Oa=Ke(["\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?xt(wa||(wa=Ke(["\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 xt("right"===t?Sa||(Sa=Ke(["\n\t\t\t\t\tright: 0;\n\t\t\t "])):_a||(_a=Ke(["\n\t\t\t\t\tleft: 0;\n\t\t\t "])))})),Qa=Dt("div")(Ta||(Ta=Ke(["\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 La(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function Va(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function ja(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Va(n.overflowY,t)||Va(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function Da(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var Fa,Ma=function(e,t){null!==e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!La(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],p=e;La(p)&&u(p);){if((p=p.parentElement)===l){c.push(p);break}null!=p&&p===document.body&&ja(p)&&!ja(document.documentElement)||null!=p&&ja(p,s)&&c.push(p)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),y=m.height,v=m.width,b=m.top,C=m.right,O=m.bottom,w=m.left,S="start"===o||"nearest"===o?b:"end"===o?O:b+y/2,_="center"===i?w+v/2:"end"===i?C:w,T=[],E=0;E<c.length;E++){var I=c[E],A=I.getBoundingClientRect(),P=A.height,$=A.width,R=A.top,k=A.right,x=A.bottom,Q=A.left;if("if-needed"===r&&b>=0&&w>=0&&O<=h&&C<=d&&b>=R&&O<=x&&w>=Q&&C<=k)return T;var L=getComputedStyle(I),V=parseInt(L.borderLeftWidth,10),j=parseInt(L.borderTopWidth,10),D=parseInt(L.borderRightWidth,10),F=parseInt(L.borderBottomWidth,10),M=0,N=0,U="offsetWidth"in I?I.offsetWidth-I.clientWidth-V-D:0,q="offsetHeight"in I?I.offsetHeight-I.clientHeight-j-F:0;if(l===I)M="start"===o?S:"end"===o?S-h:"nearest"===o?Da(g,g+h,h,j,F,g+S,g+S+y,y):S-h/2,N="start"===i?_:"center"===i?_-d/2:"end"===i?_-d:Da(f,f+d,d,V,D,f+_,f+_+v,v),M=Math.max(0,M+g),N=Math.max(0,N+f);else{M="start"===o?S-R-j:"end"===o?S-x+F+q:"nearest"===o?Da(R,x,P,j,F+q,S,S+y,y):S-(R+P/2)+q/2,N="start"===i?_-Q-V:"center"===i?_-(Q+$/2)+U/2:"end"===i?_-k+D+U:Da(Q,k,$,V,D+U,_,_+v,v);var H=I.scrollLeft,z=I.scrollTop;S+=z-(M=Math.max(0,Math.min(z+M,I.scrollHeight-P+q))),_+=H-(N=Math.max(0,Math.min(H+N,I.scrollWidth-$+U)))}T.push({el:I,top:M,left:N})}return T}(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}))},Na={props:["isOpen","inputValue","selectedItem","highlightedIndex","handleChange","itemToString","handleMouseup"],data:function(){return{isMouseDown:!1,internal_isOpen:!1,internal_inputValue:"",internal_selectedItem:null,internal_highlightedIndex:null,internal_eventsCalled:{}}},computed:{mergedState:function(){var e=this;return Object.keys(this.$props).reduce((function(t,n){var r;return We({},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);Ma(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 setTimeout((function(){o.internal_eventsCalled[t]=!1}),0),{mouseenter:function(){o.setHighlightedIndex(r)},mousedown:function(e){o.internal_eventsCalled[t]||(o.internal_eventsCalled[t]=!0,e.stopPropagation(),o.selectItemAtIndex(r))},click:function(e){o.internal_eventsCalled[t]||(o.internal_eventsCalled[t]=!0,e.stopPropagation(),o.selectItemAtIndex(r))}}},getInputProps:function(e){var t=e.value,n=this.mergedState.inputValue;return t!==n&&this.setState({inputValue:t}),{value:n}},getButtonProps:function(e){var t=this,n=e.onClick,r=e.onKeyDown,o=e.onKeyUp,i=e.onBlur;return{click:function(e){t.setState({isOpen:!0,inputValue:e.target.value}),n&&n(e)},keydown:function(e){e.key&&t["keyDown"+e.key]&&t["keyDown"+e.key].call(t,e),r&&r(e)},keyup:function(e){o&&o(e)},blur:function(e){i&&i(e)}}},getInputEvents:function(e){var t=this,n=e.onInput,r=e.onBlur,o=e.onFocus,i=e.onKeyPress,a=e.onKeyDown,s=e.onKeyUp;return{input:function(e){t.setState({isOpen:!0,inputValue:e.target.value}),n&&n(e)},focus:function(e){o&&o(e)},keydown:function(e){e.key&&t["keyDown"+e.key]&&t["keyDown"+e.key].call(t,e),a&&a(e)},keypress:function(e){i&&i(e)},keyup:function(e){s&&s(e)},blur:function(e){r&&r(e)},click:e.onClick}},getHelpersAndState:function(){return We({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(We({},this.getHelpersAndState()))])}},Ua=Dt("div")(Fa||(Fa=Ke(["\n\t",";\n"])),(function(e){return e.theme.component})),qa=Ge.getClassName,Ha={name:"SuggestionWrapper",props:{innerClassName:Qn.string,themePreset:Qn.themePreset,innerClass:Qn.style},render:function(){var e=arguments[0],t=this.$props,n=t.themePreset,r=t.innerClass,o=t.innerClassName;return e("div",{class:ka(n)+" "+qa(r,o||"")},[e("li",[this.$scopedSlots.default()])])}},za=o((function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,u=void 0===s?r:s,l=e.sanitize,c=e.searchWords,p=e.textToHighlight;return o({chunksToHighlight:n({chunks:u({autoEscape:t,caseSensitive:a,sanitize:l,searchWords:c,textToHighlight:p})}),totalLength:p?p.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var u=a.index,l=i.lastIndex;l>u&&e.push({highlight:!1,start:u,end:l}),a.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])}));r(za);var Ba=za.findAll;
|
|
26
|
+
*/!function(e){var t,n=e.URLSearchParams&&e.URLSearchParams.prototype.get?e.URLSearchParams:null,r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),i=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),a=c.prototype,s=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&i)){a.append=function(e,t){g(this.__URLSearchParams__,e,t)},a.delete=function(e){delete this.__URLSearchParams__[e]},a.get=function(e){var t=this.__URLSearchParams__;return e in t?t[e][0]:null},a.getAll=function(e){var t=this.__URLSearchParams__;return e in t?t[e].slice(0):[]},a.has=function(e){return e in this.__URLSearchParams__},a.set=function(e,t){this.__URLSearchParams__[e]=[""+t]},a.toString=function(){var e,t,n,r,o=this.__URLSearchParams__,i=[];for(t in o)for(n=p(t),e=0,r=o[t];e<r.length;e++)i.push(n+"="+p(r[e]));return i.join("&")};var u=!!o&&n&&!r&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:u?new Proxy(n,{construct:function(e,t){return new e(new c(t[0]).toString())}}):c});var l=e.URLSearchParams.prototype;l.polyfill=!0,l.forEach=l.forEach||function(e,t){var n=f(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)},l.sort=l.sort||function(){var e,t,n,r=f(this.toString()),o=[];for(e in r)o.push(e);for(o.sort(),t=0;t<o.length;t++)this.delete(o[t]);for(t=0;t<o.length;t++){var i=o[t],a=r[i];for(n=0;n<a.length;n++)this.append(i,a[n])}},l.keys=l.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},l.values=l.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},l.entries=l.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},s&&(l[e.Symbol.iterator]=l[e.Symbol.iterator]||l.entries)}function c(e){((e=e||"")instanceof URLSearchParams||e instanceof c)&&(e=e.toString()),this.__URLSearchParams__=f(e)}function p(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function d(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(e){return decodeURIComponent(e)}))}function h(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return s&&(n[e.Symbol.iterator]=function(){return n}),n}function f(e){var t={};if("object"==typeof e)if(m(e))for(var n=0;n<e.length;n++){var r=e[n];if(!m(r)||2!==r.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");g(t,r[0],r[1])}else for(var o in e)e.hasOwnProperty(o)&&g(t,o,e[o]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),a=0;a<i.length;a++){var s=i[a],u=s.indexOf("=");-1<u?g(t,d(s.slice(0,u)),d(s.slice(u+1))):s&&g(t,d(s),"")}}return t}function g(e,t,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);t in e?e[t].push(r):e[t]=[r]}function m(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}}(void 0!==n?n:"undefined"!=typeof window?window:n);var yi,vi={name:"Provider",props:{store:{type:Object,required:!0,validator:function(e){if(!e.dispatch&&!e.subscribe&&!e.getState)throw new Error("[reactivesearch-vue] - store provided is not a valid redux store");return!0}}},provide:function(){return{$$store:this.store}},render:function(e){return this.$slots.default.length>1?e("div",this.$slots.default):this.$slots.default[0]}},bi=Dt({functional:!0,render:function(e,t){var n=t.data.attrs.as,r=void 0===n?"div":n,o=t.data,i=t.children;return delete o.attrs.as,e(r,Lr([{},o]),[i])}})(yi||(yi=Ke(["\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})),Oi=ze.setHeaders,Ci=ze.setValue,wi=Ge.isEqual,Si={name:"URLParamsProvider",props:{className:Qn.string,headers:Qn.headers,getSearchParams:Qn.func,setSearchParams:Qn.func,as:gt.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)})),Array.from(e.params.entries()).forEach((function(t){try{var n=t[0],r=t[1],o=e.selectedValues[n]||{label:n},i=o.label,a=o.showFilter,s=o.URLParams;e.setValue(n,JSON.parse(r),i,a,s)}catch(e){console.error(e)}}))}},watch:{$route:function(){this.checkForURLParamsChange()},selectedValues:function(e,t){var n=this;if(this.currentSelectedState=e,!wi(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());r.filter((function(t){return e[t].URLParams})).forEach((function(r){if(n.hasValidValue(e[r])||n.hasValidValue(t[r])){var i=e[r];i.URLParams?i.category?n.setURL(r,n.getValue({category:i.category,value:i.value})):n.setURL(r,n.getValue(i.value)):(n.params.delete(r),n.pushToHistory())}else!n.hasValidValue(e[r])&&o.includes(r)&&(n.params.delete(r),n.pushToHistory())})),Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(e){n.params.delete(e),n.pushToHistory()})),r.length||(Array.from(this.params.keys()).forEach((function(e){n.searchComponents&&n.searchComponents.includes(e)&&n.params.delete(e)})),this.pushToHistory())}},headers:function(e,t){wi(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(this.searchString=this.$props.getSearchParams?this.$props.getSearchParams():window.location.search,this.params=new URLSearchParams(this.searchString),!t||"string"==typeof t&&""===t.trim()||Array.isArray(t)&&0===t.length)this.params.delete(e),this.pushToHistory();else{var n=JSON.stringify(this.getValue(t));n!==this.params.get(e)&&(this.params.set(e,n),this.pushToHistory())}},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(bi,{attrs:{as:this.$props.as},class:this.$props.className},[t])}},_i={setHeaders:Oi,setValue:Ci};Si.install=function(e){e.component(Si.name,Si)};var Ti=Kn((function(e){return{selectedValues:e.selectedValues,searchComponents:e.components}}),_i)(Si),Ei={fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Noto Sans", "Ubuntu", "Droid Sans", "Helvetica Neue", sans-serif',fontSize:"16px"},Ii={typography:Ei,colors:{textColor:"#424242",primaryTextColor:"#fff",primaryColor:"#0B6AFF",titleColor:"#424242",alertColor:"#d9534f",borderColor:"#595959"}},Ai={typography:Ei,colors:{textColor:"#fff",backgroundColor:"#212121",primaryTextColor:"#fff",primaryColor:"#2196F3",titleColor:"#fff",alertColor:"#d9534f",borderColor:"#666"}};var Pi={name:"ReactiveBase",data:function(){return this.state={key:"__REACTIVE_BASE__"},this.state},created:function(){this.setStore(this.$props)},mounted:function(){void 0!==this.analyticsConfig&&console.warn("Warning(ReactiveSearch): The `analyticsConfig` prop has been marked as deprecated, please use the `appbaseConfig` prop instead.")},props:{app:Qn.string,analytics:gt.bool,analyticsConfig:Qn.analyticsConfig,appbaseConfig:Qn.appbaseConfig,enableAppbase:gt.bool.def(!1),credentials:Qn.string,headers:Qn.headers,queryParams:Qn.string,theme:gt.object.def({}),themePreset:gt.string.def("light"),type:Qn.string,url:Qn.string,mapKey:Qn.string,initialQueriesSyncTime:Qn.number,className:Qn.string,initialState:gt.object.def({}),transformRequest:Qn.func,transformResponse:Qn.func,as:gt.string.def("div"),getSearchParams:Qn.func,setSearchParams:Qn.func,mongodb:Qn.mongodb},provide:function(){return{theme_reactivesearch:(n=this.$props.themePreset,e="light"===n?Ii:Ai,t=this.$props.theme,void 0===e&&(e={}),void 0===t&&(t={}),{typography:We({},e.typography,t.typography),colors:We({},e.colors,t.colors),component:We({},e.component,t.component)}),store:this.store};var e,t,n},watch:{app:function(){this.updateState(this.$props)},url:function(){this.updateState(this.$props)},type:function(){this.updateState(this.$props)},credentials:function(){this.updateState(this.$props)},mapKey:function(){this.updateState(this.$props)},headers:function(){this.updateState(this.$props)},analyticsConfig:function(e,t){me(e,t)||this.store&&this.store.dispatch(Fe(e))},appbaseConfig:function(e,t){me(e,t)||this.store&&this.store.dispatch(Fe(e))},mongodb:function(){this.updateState(this.$props)}},computed:{getHeaders:function(){var e=this.$props,t=e.enableAppbase,n=e.headers,r=e.appbaseConfig,o=e.mongodb,i=(r||{}).enableTelemetry;return We({},t&&!o&&We({"X-Search-Client":"ReactiveSearch Vue"},!1===i&&{"X-Enable-Telemetry":!1}),n)}},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=We({},e.analyticsConfig,e.appbaseConfig),r={url:e.url&&""!==e.url.trim()?e.url:"",app:e.app,credentials:t,type:e.type?e.type:"*",transformRequest:e.transformRequest,transformResponse:e.transformResponse,enableAppbase:e.enableAppbase,analytics:e.appbaseConfig?e.appbaseConfig.recordAnalytics:e.analytics,analyticsConfig:n,mongodb:e.mongodb},o="";o="undefined"!=typeof window?window.location.search:e.queryParams||"";var i=new URLSearchParams(o),a={},s={};Array.from(i.keys()).forEach((function(e){try{var t,n,r=JSON.parse(i.get(e)),o={};r.value?o.value=r.value:o.value=r,r.category&&(o.category=r.category),o.reference="URL",a=We({},a,((t={})[e]=o,t)),s=We({},s,((n={})[e]=o.value,n))}catch(e){}}));var u=e.themePreset,l=mi(r);this.$props.transformRequest&&(l.transformRequest=this.$props.transformRequest),this.$props.transformResponse&&(l.transformResponse=this.$props.transformResponse);var c=We({config:We({},r,{initialQueriesSyncTime:e.initialQueriesSyncTime,initialTimestamp:(new Date).getTime(),mapKey:e.mapKey,themePreset:u}),appbaseRef:l,selectedValues:a,urlValues:s,headers:this.getHeaders},this.$props.initialState);this.store=He(c)}},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.style,o=n.className;return e(vi,{attrs:{store:this.store}},[e(Ti,{attrs:{as:this.$props.as,headers:this.getHeaders,className:o,getSearchParams:this.getSearchParams,setSearchParams:this.setSearchParams},style:r},[t])])},install:function(e){e.component(Pi.name,Pi)}},$i="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Ri(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function ki(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 xi(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var Qi={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":$i?173:189,"=":$i?61:187,";":$i?59:186,"'":222,"[":219,"]":221,"\\":220},Vi={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Li={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ji={16:!1,18:!1,17:!1,91:!1},Di={},Fi=1;Fi<20;Fi++)Qi["f".concat(Fi)]=111+Fi;var Mi=[],Ni="all",Ui=[],qi=function(e){return Qi[e.toLowerCase()]||Vi[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function Hi(e){Ni=e||"all"}function zi(){return Ni||"all"}var Bi=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,i=void 0===o?"+":o;xi(t).forEach((function(e){var t=e.split(i),o=t.length,a=t[o-1],s="*"===a?"*":qi(a);if(Di[s]){n||(n=zi());var u=o>1?ki(Vi,t):[];Di[s]=Di[s].map((function(e){return(!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,i=0;i<n.length;i++)-1===r.indexOf(n[i])&&(o=!1);return o}(e.mods,u)?{}:e}))}}))};function Gi(e,t,n){var r;if(t.scope===n||"all"===t.scope){for(var o in r=t.mods.length>0,ji)Object.prototype.hasOwnProperty.call(ji,o)&&(!ji[o]&&t.mods.indexOf(+o)>-1||ji[o]&&-1===t.mods.indexOf(+o))&&(r=!1);(0!==t.mods.length||ji[16]||ji[18]||ji[17]||ji[91])&&!r&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function Wi(e){var t=Di["*"],n=e.keyCode||e.which||e.charCode;if(Yi.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===Mi.indexOf(n)&&229!==n&&Mi.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=Li[t];e[t]&&-1===Mi.indexOf(n)?Mi.push(n):!e[t]&&Mi.indexOf(n)>-1?Mi.splice(Mi.indexOf(n),1):"metaKey"===t&&e[t]&&3===Mi.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Mi=Mi.slice(Mi.indexOf(n))))})),n in ji){for(var r in ji[n]=!0,Vi)Vi[r]===n&&(Yi[r]=!0);if(!t)return}for(var o in ji)Object.prototype.hasOwnProperty.call(ji,o)&&(ji[o]=e[Li[o]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Mi.indexOf(17)&&Mi.push(17),-1===Mi.indexOf(18)&&Mi.push(18),ji[17]=!0,ji[18]=!0);var i=zi();if(t)for(var a=0;a<t.length;a++)t[a].scope===i&&("keydown"===e.type&&t[a].keydown||"keyup"===e.type&&t[a].keyup)&&Gi(e,t[a],i);if(n in Di)for(var s=0;s<Di[n].length;s++)if(("keydown"===e.type&&Di[n][s].keydown||"keyup"===e.type&&Di[n][s].keyup)&&Di[n][s].key){for(var u=Di[n][s],l=u.splitKey,c=u.key.split(l),p=[],d=0;d<c.length;d++)p.push(qi(c[d]));p.sort().join("")===Mi.sort().join("")&&Gi(e,u,i)}}}function Yi(e,t,n){Mi=[];var r=xi(e),o=[],i="all",a=document,s=0,u=!1,l=!0,c="+";for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(a=t.element),t.keyup&&(u=t.keyup),void 0!==t.keydown&&(l=t.keydown),"string"==typeof t.splitKey&&(c=t.splitKey)),"string"==typeof t&&(i=t);s<r.length;s++)o=[],(e=r[s].split(c)).length>1&&(o=ki(Vi,e)),(e="*"===(e=e[e.length-1])?"*":qi(e))in Di||(Di[e]=[]),Di[e].push({keyup:u,keydown:l,scope:i,mods:o,shortcut:r[s],method:n,key:r[s],splitKey:c});void 0!==a&&!function(e){return Ui.indexOf(e)>-1}(a)&&window&&(Ui.push(a),Ri(a,"keydown",(function(e){Wi(e)})),Ri(window,"focus",(function(){Mi=[]})),Ri(a,"keyup",(function(e){Wi(e),function(e){var t=e.keyCode||e.which||e.charCode,n=Mi.indexOf(t);if(n>=0&&Mi.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&Mi.splice(0,Mi.length),93!==t&&224!==t||(t=91),t in ji)for(var r in ji[t]=!1,Vi)Vi[r]===t&&(Yi[r]=!1)}(e)})))}var Ki,Xi={setScope:Hi,getScope:zi,deleteScope:function(e,t){var n,r;for(var o in e||(e=zi()),Di)if(Object.prototype.hasOwnProperty.call(Di,o))for(n=Di[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;zi()===e&&Hi(t||"all")},getPressedKeyCodes:function(){return Mi.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=qi(e)),-1!==Mi.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(r=!1),r},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&Bi(e)}));else if("object"==typeof e)e.key&&Bi(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0],i=n[1];"function"==typeof o&&(i=o,o=""),Bi({key:e,scope:o,method:i,splitKey:"+"})}}else Object.keys(Di).forEach((function(e){return delete Di[e]}))}};for(var Zi in Xi)Object.prototype.hasOwnProperty.call(Xi,Zi)&&(Yi[Zi]=Xi[Zi]);if("undefined"!=typeof window){var Ji=window.hotkeys;Yi.noConflict=function(e){return e&&window.hotkeys===Yi&&(window.hotkeys=Ji),Yi},window.hotkeys=Yi}var ea,ta=Dt("div")(Ki||(Ki=Ke(["\n display: flex;\n align-items: stretch;\n width: 100%;\n"])));ta.defaultProps={className:"input-group"};var na,ra,oa,ia,aa,sa,ua,la,ca,pa,da,ha,fa,ga,ma,ya,va,ba=Dt("span")(ea||(ea=Ke(["\n flex: 1;\n position: relative;\n"]))),Oa=Dt("span")(na||(na=Ke(["\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"])));Oa.defaultProps={className:"input-addon"};var Ca,wa,Sa,_a,Ta,Ea=function(e){var t=e.theme;return xt(ra||(ra=Ke(["\n\tborder: 1px solid ",";\n"])),t.colors.alertColor)},Ia=xt(oa||(oa=Ke(["\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"]))),Aa=function(e){return xt(ia||(ia=Ke(["\n\tborder-color: ",";\n"])),e.colors.borderColor)},Pa=Dt("input")(sa||(sa=Ke(["\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"])),Ia,(function(e){var t=e.themePreset,n=e.theme;return"dark"===t&&function(e){var t=e.theme;return xt(aa||(aa=Ke(["\n\tbackground-color: ",";\n\tcolor: ",";\n\t",";\n\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor,t.colors.textColor,Aa(t),t.colors.backgroundColor)}({theme:n})}),(function(e){return e.showIcon&&"left"===e.iconPosition&&xt(ua||(ua=Ke(["\n\t\t\tpadding-left: 36px;\n\t\t"])))}),(function(e){return e.showIcon&&"right"===e.iconPosition&&xt(la||(la=Ke(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showClear&&xt(ca||(ca=Ke(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&xt(pa||(pa=Ke(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showClear&&e.showIcon&&"right"===e.iconPosition&&xt(da||(da=Ke(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&e.showIcon&&"right"===e.iconPosition&&xt(ha||(ha=Ke(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&e.showIcon&&xt(fa||(fa=Ke(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showClear&&e.showIcon&&e.showVoiceSearch&&"right"===e.iconPosition&&xt(ga||(ga=Ke(["\n\t\t\tpadding-right: 90px;\n\t\t"])))}),(function(e){return e.alert&&Ea})),$a=function(e,t){return xt(ma||(ma=Ke(["\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: 395px;\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&&Aa(t))},Ra=xt(ya||(ya=Ke(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"]))),ka=function(e,t){return xt(va||(va=Ke(["\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&&Aa(t))},xa=Dt("div")(Ca||(Ca=Ke(["\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?xt(wa||(wa=Ke(["\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 xt("right"===t?Sa||(Sa=Ke(["\n\t\t\t\t\tright: 0;\n\t\t\t "])):_a||(_a=Ke(["\n\t\t\t\t\tleft: 0;\n\t\t\t "])))})),Qa=Dt("div")(Ta||(Ta=Ke(["\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 Va(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function La(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function ja(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return La(n.overflowY,t)||La(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function Da(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var Fa,Ma=function(e,t){null!==e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!Va(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],p=e;Va(p)&&u(p);){if((p=p.parentElement)===l){c.push(p);break}null!=p&&p===document.body&&ja(p)&&!ja(document.documentElement)||null!=p&&ja(p,s)&&c.push(p)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),y=m.height,v=m.width,b=m.top,O=m.right,C=m.bottom,w=m.left,S="start"===o||"nearest"===o?b:"end"===o?C:b+y/2,_="center"===i?w+v/2:"end"===i?O:w,T=[],E=0;E<c.length;E++){var I=c[E],A=I.getBoundingClientRect(),P=A.height,$=A.width,R=A.top,k=A.right,x=A.bottom,Q=A.left;if("if-needed"===r&&b>=0&&w>=0&&C<=h&&O<=d&&b>=R&&C<=x&&w>=Q&&O<=k)return T;var V=getComputedStyle(I),L=parseInt(V.borderLeftWidth,10),j=parseInt(V.borderTopWidth,10),D=parseInt(V.borderRightWidth,10),F=parseInt(V.borderBottomWidth,10),M=0,N=0,U="offsetWidth"in I?I.offsetWidth-I.clientWidth-L-D:0,q="offsetHeight"in I?I.offsetHeight-I.clientHeight-j-F:0;if(l===I)M="start"===o?S:"end"===o?S-h:"nearest"===o?Da(g,g+h,h,j,F,g+S,g+S+y,y):S-h/2,N="start"===i?_:"center"===i?_-d/2:"end"===i?_-d:Da(f,f+d,d,L,D,f+_,f+_+v,v),M=Math.max(0,M+g),N=Math.max(0,N+f);else{M="start"===o?S-R-j:"end"===o?S-x+F+q:"nearest"===o?Da(R,x,P,j,F+q,S,S+y,y):S-(R+P/2)+q/2,N="start"===i?_-Q-L:"center"===i?_-(Q+$/2)+U/2:"end"===i?_-k+D+U:Da(Q,k,$,L,D+U,_,_+v,v);var H=I.scrollLeft,z=I.scrollTop;S+=z-(M=Math.max(0,Math.min(z+M,I.scrollHeight-P+q))),_+=H-(N=Math.max(0,Math.min(H+N,I.scrollWidth-$+U)))}T.push({el:I,top:M,left:N})}return T}(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}))},Na={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 We({},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);Ma(t,this.rootNode)},reset:function(){var e=this.mergedState.selectedItem;this.setState({isOpen:!1,highlightedIndex:null,inputValue:e})},getItemProps:function(e){var t=e.index,n=e.item,r=t;return void 0===t?(this.$props.itemToString?this.items.push(this.$props.itemToString(n)):this.items.push(n),r=this.items.indexOf(n)):this.items[r]=n,{id:"Downshift"+r}},getItemEvents:function(e){var t=e.index,n=e.item,r=t;void 0===t&&(r=this.items.indexOf(n));var o=this;return{mouseenter:function(){o.setHighlightedIndex(r)},click:function(e){e.stopPropagation(),o.selectItemAtIndex(r)}}},getInputProps:function(e){var t=e.value,n=this.mergedState.inputValue;return t!==n&&this.setState({inputValue:t}),{value:n}},getButtonProps:function(e){var t=this,n=e.onClick,r=e.onKeyDown,o=e.onKeyUp,i=e.onBlur;return{click:function(e){t.setState({isOpen:!0,inputValue:e.target.value}),n&&n(e)},keydown:function(e){e.key&&t["keyDown"+e.key]&&t["keyDown"+e.key].call(t,e),r&&r(e)},keyup:function(e){o&&o(e)},blur:function(e){i&&i(e)}}},getInputEvents:function(e){var t=this,n=e.onInput,r=e.onBlur,o=e.onFocus,i=e.onKeyPress,a=e.onKeyDown,s=e.onKeyUp;return{input:function(e){t.setState({isOpen:!0,inputValue:e.target.value}),n&&n(e)},focus:function(e){o&&o(e)},keydown:function(e){e.key&&t["keyDown"+e.key]&&t["keyDown"+e.key].call(t,e),a&&a(e)},keypress:function(e){i&&i(e)},keyup:function(e){s&&s(e)},blur:function(e){r&&r(e)},click:e.onClick}},getHelpersAndState:function(){return We({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(We({},this.getHelpersAndState()))])}},Ua=Dt("div")(Fa||(Fa=Ke(["\n\t",";\n"])),(function(e){return e.theme.component})),qa=Ge.getClassName,Ha={name:"SuggestionWrapper",props:{innerClassName:Qn.string,themePreset:Qn.themePreset,innerClass:Qn.style},render:function(){var e=arguments[0],t=this.$props,n=t.themePreset,r=t.innerClass,o=t.innerClassName;return e("div",{class:ka(n)+" "+qa(r,o||"")},[e("li",[this.$scopedSlots.default()])])}},za=o((function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,u=void 0===s?r:s,l=e.sanitize,c=e.searchWords,p=e.textToHighlight;return o({chunksToHighlight:n({chunks:u({autoEscape:t,caseSensitive:a,sanitize:l,searchWords:c,textToHighlight:p})}),totalLength:p?p.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var u=a.index,l=i.lastIndex;l>u&&e.push({highlight:!1,start:u,end:l}),a.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])}));r(za);var Ba=za.findAll;
|
|
27
27
|
/*!
|
|
28
28
|
* vue-highlight-words © Yichang Liu, 2019
|
|
29
29
|
*
|
|
@@ -33,5 +33,5 @@ function Ze(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t)
|
|
|
33
33
|
*
|
|
34
34
|
* https://github.com/Astray-git/vue-highlight-words
|
|
35
35
|
*
|
|
36
|
-
*/function Ga(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wa,Ya,Ka={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Object,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(e){return e.every((function(e){return"string"==typeof e}))},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(e,t){var n,r=t.props,o=r.activeClassName,i=void 0===o?"":o,a=r.activeIndex,s=void 0===a?-1:a,u=r.activeStyle,l=r.autoEscape,c=r.caseSensitive,p=void 0!==c&&c,d=r.findChunks,h=r.highlightClassName,f=void 0===h?"":h,g=r.highlightStyle,m=void 0===g?{}:g,y=r.highlightTag,v=void 0===y?"mark":y,b=r.sanitize,C=r.searchWords,O=r.textToHighlight,w=r.unhighlightClassName,S=void 0===w?"":w,_=r.unhighlightStyle,T=t.data,E=Ba({autoEscape:l,caseSensitive:p,findChunks:d,sanitize:b,searchWords:C,textToHighlight:O}),I=v,A=-1,P="";return e("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ga(e,t,n[t])}))}return e}({},T),E.map((function(t,r){var o=O.substr(t.start,t.end-t.start);if(t.highlight){var a=++A===+s;P="".concat(f," ").concat(a?i:""),n=!0===a&&null!=u?Object.assign({},m,u):m;var l={class:P,key:r,style:n};return"string"!=typeof I&&(l.props={highlightIndex:A}),T.scopedSlots?e(I,l,[T.scopedSlots.default({children:o,highlightIndex:A})]):e(I,l,o)}return e("span",{class:S,key:r,style:_},o)})))}},Xa={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},Za=Dt("span")(Wa||(Wa=Ke(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),Ja={name:"SuggestionItem",props:{currentValue:Qn.string,suggestion:Qn.any},render:function(){var e=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,i=t.description,a=t.image,s=t.isPredictiveSuggestion;return n?"string"==typeof n?e("div",{class:"trim"},[s?e(Za,{domProps:{innerHTML:n}}):e(Ka,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:Xa}})]):n:o||a||i?e(po,{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(po,{attrs:{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(Ka,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:Xa},class:xt({fontSize:"1rem"})})]),i&&e("div",{class:$t("trim",xt({marginTop:3}))},[e(Ka,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:i,highlightStyle:Xa}})])])]):r}},es={functional:!0,render:function(e){return e("svg",{attrs:{alt:"Search",height:"14",width:"10",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15"},class:"search-icon"},[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"}})])}},ts={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"}})])}};kt(Ya||(Ya=Ke(["\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 ns,rs={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"}})])])])}};kt(ns||(ns=Ke(["\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 os,is={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"}})])])])}};kt(os||(os=Ke(["\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 as,ss,us,ls,cs,ps,ds={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"}})])])])])}},hs="INACTIVE",fs="STOPPED",gs="ACTIVE",ms="DENIED",ys={name:"Mic",props:{children:Qn.title,lang:gt.string.def("en-US"),iconPosition:gt.string.def("left"),handleResult:Qn.func,onNoMatch:Qn.func,onError:Qn.func,getInstance:Qn.func,render:Qn.func,className:Qn.string,applyClearStyle:gt.bool,showIcon:gt.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return Jn(t,this)},stopMic:function(){this.instance&&(this.status=hs,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===gs&&(this.status=hs);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,i=t.lang,a=t.getInstance,s=window.SpeechRecognition;if(this.instance&&this.status!==ms)return this.status=hs,this.instance.stop(),void(this.instance=null);this.instance=new s,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=i,a&&a(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=gs},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=hs:"not-allowed"===t.error&&(e.status=ms),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=hs},this.instance.onaudioend=function(){e.status=hs}}}},computed:{hasCustomRenderer:function(){return er(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case gs:return e(ds,{attrs:{className:n},nativeOn:{click:this.handleClick}});case fs:case ms:return e(is,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(rs,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:hs}},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(Qa,[this.Icon])}},vs={name:"CustomSvg",props:{className:String,icon:Function,type:String},data:function(){return{customIcon:this.$props.icon&&"function"==typeof this.$props.icon?this.$props.icon():null}},render:function(){var e=arguments[0];return this.customIcon?e("div",{class:this.$props.className},[this.customIcon]):"popular-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Popular Searches",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("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Recent Searches",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"}})])}},bs=ze.updateQuery,Cs=ze.setQueryOptions,Os=ze.setCustomQuery,ws=ze.setDefaultQuery,Ss=ze.setCustomHighlightOptions,_s=ze.recordSuggestionClick,Ts=ze.loadPopularSuggestions,Es=ze.getRecentSearches,Is=Ge.debounce,As=Ge.checkValueChange,Ps=Ge.getClassName,$s=Ge.getOptionsFromQuery,Rs=Ge.isEqual,ks=Ge.getCompositeAggsQuery,xs=Ge.withClickIds,Qs=Ge.getResultStats,Ls=Ge.handleOnSuggestions,Vs=Ge.getTopSuggestions,js=Ge.normalizeDataField,Ds={name:"DataSearch",data:function(){var e=this.$props;return this.__state={currentValue:"",isOpen:!1,normalizedSuggestions:[],isPending:!1},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.enableQuerySuggestions,n=e.renderQuerySuggestions,r=e.enableRecentSearches,o=e.distinctField,i=e.distinctFieldConfig,a=e.index;t&&console.warn("Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead."),n&&console.warn("Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead."),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!o&&!i||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&a&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.loadPopularSuggestions(this.$props.componentId),this.currentValue=this.selectedValue||"",r&&this.getRecentSearches(),this.handleTextChange=Is(this.handleText,this.$props.debounce),or(this.componentId,this.setCustomQuery,this.$props,this.currentValue),rr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},computed:{suggestionsList:function(){var e=[];return!this.$data.currentValue&&this.$props.defaultSuggestions&&this.$props.defaultSuggestions.length?e=this.$props.defaultSuggestions:this.$data.currentValue&&(e=this.normalizedSuggestions),xs(e)},topSuggestions:function(){return this.currentValue&&(this.enableQuerySuggestions||this.enablePopularSuggestions)?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return Vs(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enableQuerySuggestions||this.enablePopularSuggestions;if(this.currentValue)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return We({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return We({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return Vs(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return er(this)},stats:function(){return Qs(this)}},props:{options:Qn.options,autoFocus:gt.bool,autosuggest:gt.bool.def(!0),beforeValueChange:Qn.func,className:gt.string.def(""),clearIcon:Qn.children,componentId:Qn.stringRequired,customHighlight:Qn.func,customQuery:Qn.func,defaultQuery:Qn.func,dataField:gt.oneOfType([gt.string,gt.shape({field:gt.string,weight:gt.number}),gt.arrayOf(gt.string),gt.arrayOf({field:gt.string,weight:gt.number})]),aggregationField:Qn.string,aggregationSize:gt.number,size:gt.number,debounce:gt.number.def(0),defaultValue:Qn.string,excludeFields:Qn.excludeFields,value:Qn.value,defaultSuggestions:Qn.suggestions,enableSynonyms:gt.bool.def(!0),enableQuerySuggestions:gt.bool.def(!1),enablePopularSuggestions:gt.bool.def(!1),enableRecentSearches:gt.bool.def(!1),fieldWeights:Qn.fieldWeights,filterLabel:Qn.string,fuzziness:Qn.fuzziness,highlight:gt.bool,highlightField:Qn.stringOrArray,icon:Qn.children,iconPosition:gt.oneOf(["left","right"]).def("left"),includeFields:Qn.includeFields,innerClass:Qn.style,innerRef:gt.string.def("searchInputField"),render:Qn.func,renderQuerySuggestions:Qn.func,renderPopularSuggestions:Qn.func,parseSuggestion:Qn.func,renderNoSuggestion:Qn.title,renderError:Qn.title,placeholder:gt.string.def("Search"),queryFormat:gt.oneOf(["and","or"]).def("or"),react:Qn.react,showClear:gt.bool.def(!0),showDistinctSuggestions:gt.bool.def(!0),showFilter:gt.bool.def(!0),showIcon:gt.bool.def(!0),title:Qn.title,theme:Qn.style,URLParams:gt.bool.def(!1),strictSelection:gt.bool.def(!1),nestedField:Qn.string,enablePredictiveSuggestions:gt.bool.def(!1),recentSearchesIcon:gt.any,popularSearchesIcon:gt.any,showVoiceSearch:gt.bool.def(!1),getMicInstance:Qn.func,renderMic:Qn.func,distinctField:Qn.string,distinctFieldConfig:Qn.props,focusShortcuts:gt.arrayOf(gt.oneOfType([gt.string,gt.number])).def(["/"]),addonBefore:gt.any,addonAfter:gt.any,expandSuggestionsContainer:gt.bool.def(!0),index:gt.string},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=Ds.highlightQuery(this.$props)||{};this.queryOptions=We({},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.value?this.setValue(this.$props.value,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},mounted:function(){this.listenForFocusShortcuts()},watch:{highlight:function(){this.updateQueryOptions()},dataField:function(){this.updateQueryOptions(),this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},highlightField:function(){this.updateQueryOptions()},fieldWeights:function(){this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},fuzziness:function(){this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},queryFormat:function(){this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){Rs(e,t)||this.setValue(e,!0,this.$props,void 0,!1)},defaultQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){ir(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){t!==e&&this.$data.currentValue!==e&&(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",Be.CLEAR_VALUE),this.setValue(e||"",!0,this.$props))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandler(e,this.$props):this.updateQueryHandler(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=Ds.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=Ds.highlightQuery(this.$props)||{};this.queryOptions=We({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)},getComponent:function(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.suggestionsList,promotedData:this.promotedResults,aggregationData:this.aggregationData,rawData:this.rawData,customData:this.customData,value:n,triggerClickAnalytics:this.triggerClickAnalytics,resultStats:this.stats,querySuggestions:this.normalizedPopularSuggestions,popularSuggestions:this.normalizedPopularSuggestions};return t?function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.$scopedSlots||t.$props,r=n.renderQuerySuggestions,o=n.renderPopularSuggestions||r;return o?o(e):null}({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):Jn(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=ye(this.$props);return e&&(t.aggs=ks({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return Ls(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,Be.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o){var i=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0);As(n.componentId,e,n.beforeValueChange,(function(){!e&&i.currentValue&&i.enableRecentSearches&&i.getRecentSearches(),i.currentValue=e,t?(i.$props.autosuggest&&(o&&(i.isOpen=!1),i.updateDefaultQueryHandler(e,i.$props)),n.strictSelection?r===Be.SUGGESTION_SELECT||""===e?i.updateQueryHandler(n.componentId,e,n):i.setValue("",!0):i.updateQueryHandler(n.componentId,e,n)):i.handleTextChange(e),i.$emit("valueChange",e),i.$emit("value-change",e),e===i.lastUsedQuery?(i.suggestions=i.onSuggestions(i.suggestions),i.$emit("suggestions",i.suggestions)):e||(i.suggestions=[],i.$emit("suggestions",i.suggestions))}))},updateDefaultQueryHandler:function(e,t){var n,r=Ds.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=$s(o),rr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,We({},this.queryOptions,n)),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:$.dataSearch})},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,i=n.filterLabel,a=n.showFilter,s=n.URLParams,u=Ds.defaultQuery(t,n);if(o){var l=o(t,n),c=l.query;c&&(u=c),r=$s(l),or(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,We({},this.queryOptions,r))}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:i,showFilter:a,URLParams:s,componentType:"DATASEARCH"})},handleFocus:function(e){this.isOpen=!0,this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&(this.isPending=!1,this.setValue(t[0][0].transcript.trim(),!0))},triggerQuery:function(e){var t=(void 0!==e&&e).isOpen,n=void 0!==t&&t;void 0!==this.$props.value&&(this.isPending=!1,this.setValue(this.$props.value,!n))},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.suggestionsList.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.isPending=!1,this.setValue("",!0),this.onValueSelectedHandler("",Be.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0!==this.$props.value&&(this.isPending=!0),"Enter"===e.key&&null===t&&(this.setValue(e.target.value,!0),this.onValueSelectedHandler(e.target.value,Be.ENTER_PRESS)),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=e.target.value;this.$data.isOpen||(this.isOpen=!0),void 0===this.$props.value?this.setValue(t):(this.isPending=!0,this.$emit("change",t,this.triggerQuery,e))},onSuggestionSelected:function(e){var t=this.$props.value;this.triggerClickAnalytics(e._click_id),void 0===t?this.setValue(e.value,!0,this.$props,Be.SUGGESTION_SELECT):(this.isPending=!1,this.$emit("change",e.value,this.triggerQuery)),this.onValueSelectedHandler(e.value,Be.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(es):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(Ha,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[Xn(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(ts):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,s=this.$data,u=s.isOpen,l=s.currentValue;return!i||!u||e.length||this.isLoading||!l||a&&this.error?null:t(Ha,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(Ca,[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(Ca,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,a=t.showVoiceSearch,s=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(xa,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(Qa,{on:{click:this.clearValue},attrs:{showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(ys,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:Ps(o,"mic")||null}}),"right"===n&&s&&e(Qa,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(xa,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&s&&e(Qa,{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;sr(n)||(Yi(function(e){if(sr(e))return[];var t=[];return e.forEach((function(e){if("string"==typeof e)if("string"==typeof(a=e)&&-1!==a.indexOf("+")){for(var n,r=e.split("+"),o=[],i=0;i<r.length;i+=1)ur(r[i])?o.push(lr(+r[i])):o.push(r[i]);n=o.join("+"),t.push(n)}else ur(e)?t.push(lr(+e)):t.push(e);else t.push(lr(e));var a})),t}(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),Yi("*",(function(t){var r=n.filter((function(e){return cr.includes(e)}));if(0!==r.length)for(var o=0;o<r.length;o+=1){if(Yi[r[o]]){e.focusSearchBox(t);break}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,i=n.expandSuggestionsContainer,a=this.$scopedSlots,s=a.recentSearchesIcon,u=a.popularSearchesIcon,l=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return t(Ua,{class:this.$props.className},[this.$props.title&&t(jr,{class:Ps(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(Na,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var a=n.getInputEvents,c=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&l?t("ul",{class:$a(e.themePreset,r)+" "+Ps(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:We({},p({item:n})),on:We({},d({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(Ja,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:We({},p({item:n})),on:We({},d({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[n.source&&n.source._recent_search&&t(vs,{attrs:{className:Ps(e.$props.innerClass,"recent-search-icon")||null,icon:s,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(vs,{attrs:{className:Ps(e.$props.innerClass,"popular-search-icon")||null,icon:u,type:"popular-search-icon"}})]),t(Ja,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),ar(e)?e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:We({},p({item:n})),on:We({},d({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[t(vs,{attrs:{className:Ps(e.$props.innerClass,"popular-search-icon")||null,icon:u,type:"popular-search-icon"}})]),t(Ja,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:Ra},[t(ta,[e.renderInputAddonBefore(),t(ba,[t(Pa,{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:Ps(e.$props.innerClass,"input"),on:We({},a({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:We({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!i&&m()])," ",e.renderInputAddonAfter()]),i&&m()])}}}):t("div",{class:Ra},[t(ta,[this.renderInputAddonBefore(),t(ba,[t(Pa,{class:Ps(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:We({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:function(t){e.$emit("keyDown",t,e.triggerQuery),e.$emit("key-down",t,e.triggerQuery)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:We({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=js(t.dataField,t.fieldWeights);n={bool:{should:Ds.shouldQuery(e,r,t),minimum_should_match:"1"}}}return""===e&&(n=null),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)},highlightQuery:function(e){if(e.customHighlight)return e.customHighlight(e);if(!e.highlight)return null;var t={},n=e.highlightField?e.highlightField:e.dataField;return"string"==typeof n?t[n]={}:Array.isArray(n)&&n.forEach((function(e){t[e]={}})),{highlight:We({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}}},Fs=wr(Kn((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],isLoading:!!e.isLoading[t.componentId+"_active"],themePreset:e.config.themePreset,error:e.error[t.componentId],analytics:e.analytics,enableAppbase:e.config.enableAppbase,headers:e.appbaseRef.headers,promotedResults:e.promotedResults[t.componentId]||[],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,popularSuggestions:e.querySuggestions[t.componentId],defaultPopularSuggestions:e.defaultPopularSuggestions[t.componentId],componentProps:e.props[t.componentId],lastUsedQuery:e.queryToHits[t.componentId],recentSearches:e.recentSearches.data}}),{setQueryOptions:Cs,updateQuery:bs,setCustomQuery:Os,setDefaultQuery:ws,setCustomHighlightOptions:Ss,recordSuggestionClick:_s,loadPopularSuggestions:Ts,getRecentSearches:Es})(Ds),{componentType:$.dataSearch,internalComponent:!0});Ds.install=function(e){e.component(Ds.name,Fs)},Ds.componentType=$.dataSearch;var Ms="15px",Ns="15px",Us="4px",qs=xt(as||(as=Ke(["\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"]))),Hs=xt(ss||(ss=Ke(["\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"]))),zs=function(e){var t=e.theme;return xt(us||(us=Ke(["\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"])),qs,Sn(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||Sn(.1,t.colors.textColor),t.colors.primaryColor,Ms,Ms,Ns,t.colors.primaryColor,Us,Ms,Us,Ns,Us,Ns,Us)},Bs=Dt("input")(ls||(ls=Ke(["\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"])),zs,(function(e){return e.show?null:Hs}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Gs=Dt("input")(cs||(cs=Ke(["\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"])),zs,(function(e){return e.show?null:Hs}),Ms,Ms,Ms,Ns,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Ws=Dt("ul")(ps||(ps=Ke(["\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"]))),Ys=Ge.getAggsOrder,Ks=function(e,t){var n,r=e,o=t.dataField,i=t.size,a=t.sortBy,s=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:We({field:o,size:i,order:Ys(a||"count")},s?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),We({},r,function(e){var t={};if(e.defaultQuery){var n=e.defaultQuery([],e);n&&(n.query&&(t.query=n.query),n.aggs&&(t.aggs=n.aggs))}return t}(t))},Xs=ze.updateQuery,Zs=ze.setQueryOptions,Js=ze.setCustomQuery,eu=ze.setDefaultQuery,tu=Ge.getQueryOptions,nu=Ge.checkValueChange,ru=Ge.getClassName,ou=Ge.getOptionsFromQuery,iu=Ge.isEqual,au={name:"SingleList",props:{beforeValueChange:Qn.func,className:gt.string.def(""),componentId:Qn.stringRequired,customQuery:Qn.func,dataField:Qn.stringRequired,defaultValue:Qn.string,value:Qn.value,defaultQuery:Qn.func,filterLabel:Qn.string,innerClass:Qn.style,placeholder:gt.string.def("Search"),react:Qn.react,render:Qn.func,renderItem:Qn.func,renderNoResults:gt.any,transformData:Qn.func,selectAllLabel:Qn.string,showCount:gt.bool.def(!0),showFilter:gt.bool.def(!0),showRadio:gt.bool.def(!0),showSearch:gt.bool.def(!0),size:gt.number,sortBy:gt.oneOf(["asc","desc","count"]).def("count"),title:Qn.title,URLParams:gt.bool.def(!1),showMissing:gt.bool.def(!1),missingLabel:gt.string.def("N/A"),nestedField:Qn.string,index:gt.string,enableStrictSelection:gt.bool.def(!1)},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:[],or(this.componentId,this.setCustomQuery,this.$props,this.currentValue),rr(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){iu(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return Xn(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||he(String(t.key)).toLowerCase().includes(he(e.$data.searchTerm.toLowerCase())))}));return t(Ua,{class:this.$props.className},[this.$props.title&&t(jr,{class:ru(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Ws,{class:ru(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(Bs,{class:ru(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,show:this.$props.showRadio},on:{click:this.handleClick},domProps:We({},{checked:this.$data.currentValue===r})}),t("label",{class:ru(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.currentValue===String(n.key)?"active":""},[t(Bs,{class:ru(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:We({},{checked:e.currentValue===String(n.key)})}),t("label",{class:ru(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:ru(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="");nu(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,r=au.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=ou(o),rr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,n),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:$.singleList})},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=au.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=ou(r(e,t)),or(t.componentId,this.setCustomQuery,t,e));this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:$.singleList})},generateQueryOptions:function(e){var t=tu(e);return Ks(t,e)},updateQueryHandlerOptions:function(e){var t=au.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=ou(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,We({},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(Pa,{class:ru(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return Jn(i,this)},handleClick:function(e){var t=e;return nr(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:ru(this.$props.innerClass,"noResults")||null},[Xn(t)?t():t])}},computed:{hasCustomRenderer:function(){return er(this)}},generateQueryOptions:function(e){var t=tu(e);return Ks(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}},su=wr(Kn((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Zs,updateQuery:Xs,setCustomQuery:Js,setDefaultQuery:eu})(au),{componentType:$.singleList,internalComponent:!0});au.install=function(e){e.component(au.name,su)},au.componentType=$.singleList;var uu,lu,cu,pu,du=ze.updateQuery,hu=ze.setQueryOptions,fu=ze.setCustomQuery,gu=ze.setDefaultQuery,mu=Ge.isEqual,yu=Ge.getQueryOptions,vu=Ge.checkValueChange,bu=Ge.getClassName,Cu=Ge.getOptionsFromQuery,Ou={name:"MultiList",props:{defaultValue:Qn.stringArray,value:Qn.stringArray,queryFormat:gt.oneOf(["and","or"]).def("or"),showCheckbox:gt.bool.def(!0),beforeValueChange:Qn.func,className:gt.string.def(""),componentId:Qn.stringRequired,customQuery:Qn.func,dataField:Qn.stringRequired,defaultQuery:Qn.func,filterLabel:Qn.string,innerClass:Qn.style,placeholder:gt.string.def("Search"),react:Qn.react,render:Qn.func,renderItem:Qn.func,renderError:Qn.title,renderNoResults:gt.any,transformData:Qn.func,selectAllLabel:Qn.string,showCount:gt.bool.def(!0),showFilter:gt.bool.def(!0),showSearch:gt.bool.def(!0),size:gt.number.def(100),sortBy:gt.oneOf(["asc","desc","count"]).def("count"),title:Qn.title,URLParams:gt.bool.def(!1),showMissing:gt.bool.def(!1),missingLabel:gt.string.def("N/A"),nestedField:Qn.string,index:gt.string},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:[],or(this.componentId,this.setCustomQuery,this.$props,this.currentValue),rr(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,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},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){mu(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){mu(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])),mu(n,e)||this.setValue(e||[],!0)},defaultQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return Xn(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||he(String(t.key)).toLowerCase().includes(he(e.$data.searchTerm).toLowerCase()))}));return t(Ua,{class:this.$props.className},[this.$props.title&&t(jr,{class:bu(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Ws,{class:bu(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(Gs,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:bu(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:We({},{checked:!!this.currentValue[r]})}),t("label",{class:bu(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.$data.currentValue[n.key]?"active":""},[t(Gs,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:bu(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:We({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:bu(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:bu(e.$props.innerClass,"count")},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},e&&e.length&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],Ye(s,[o].map(Xe)));i=We({},u)}}else{if(i[e]){var l=i,c=(l[e],Ye(l,[e].map(Xe)));i=We({},c)}else Array.isArray(e)?e.forEach((function(e){i[e]=!0})):i[e]=!0;if(o&&o in i){var p=i,d=(p[o],Ye(p,[o].map(Xe)));i=We({},d)}a=Object.keys(i)}vu(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},i),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n,r=Ou.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=Cu(o),rr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,n),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:$.multiList})},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=Ou.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=Cu(r(e,t)),or(t.componentId,this.setCustomQuery,t,e));this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:$.multiList})},generateQueryOptions:function(e){var t=yu(e);return Ks(t,e)},updateQueryHandlerOptions:function(e){var t=Ou.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=Cu(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,We({},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(Pa,{class:bu(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;nr(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=Zn(n,t);this.$emit("change",r)}},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return Jn(i,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:bu(this.$props.innerClass,"noResults")||null},[Xn(t)?t():t])}},computed:{hasCustomRenderer:function(){return er(this)}},defaultQuery:function(e,t){var n=null,r="or"===t.queryFormat?"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 o;if("or"===t.queryFormat)if(t.showMissing){var i,a,s=e.includes(t.missingLabel),u=[(a={},a[r]=(i={},i[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),i),a)];s&&(u=u.concat({bool:{must_not:{exists:{field:t.dataField}}}})),o={bool:{should:u}}}else{var l,c;(c={})[r]=((l={})[t.dataField]=e,l),o=c}else o={bool:{must:e.map((function(e){var n,o;return(o={})[r]=((n={})[t.dataField]=e,n),o}))}};n=e.length?o:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=yu(e);return Ks(t,e)}},wu=wr(Kn((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:hu,updateQuery:du,setCustomQuery:fu,setDefaultQuery:gu})(Ou),{componentType:$.multiList,internalComponent:!0});Ou.install=function(e){e.component(Ou.name,wu)},Ou.componentType=$.multiList;var Su,_u,Tu=xt(uu||(uu=Ke(["\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"]))),Eu=function(e){var t=e.theme;return xt(lu||(lu=Ke(["\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)},Iu=Dt("button")(cu||(cu=Ke(["\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?Tu:null}),(function(e){return"dark"===e.themePreset&&Eu})),Au=Dt("span")(pu||(pu=Ke(["\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})),Pu=xt(Su||(Su=Ke(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),$u=Dt("span")(_u||(_u=Ke(["\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?Pu:null})),Ru=Ge.getClassName,ku={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:Qn.style,items:Qn.data,keyField:gt.string.def("key"),labelField:gt.string.def("label"),multi:gt.bool,placeholder:Qn.string,returnsObject:gt.bool,customLabelRenderer:Qn.func,hasCustomRenderer:gt.bool,customRenderer:Qn.func,renderItem:Qn.func,renderNoResults:gt.any,handleChange:Qn.func,transformData:Qn.func,selectedItem:Qn.selectedValue,showCount:gt.bool,single:gt.bool,small:gt.bool.def(!1),themePreset:Qn.themePreset,showSearch:gt.bool,showClear:gt.bool,searchPlaceholder:gt.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,i=n.placeholder,a=n.labelField,s=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,p=n.footer,d=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,g=r;c&&(g=c(g));var m=g.filter((function(t){return!!String(t[a]).length&&(!e.$props.showSearch||!e.$data.searchTerm||he(String(t[a])).toLowerCase().includes(he(e.$data.searchTerm.toLowerCase())))}));return t(Na,{attrs:{isOpen:this.$data.isOpen,selectedItem:o,handleChange:this.onChange,handleMouseup:this.handleStateChange},scopedSlots:{default:function(n){var r=n.getItemProps,c=n.isOpen,y=n.highlightedIndex,v=n.getButtonProps,b=n.getItemEvents;return t("div",{class:Ra},[t(Iu,{on:We({},We({},v({onClick:e.toggle}))),class:Ru(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):i,small:e.$props.small,themePreset:e.$props.themePreset}},[d?d(o):t("div",[o?e.renderToString(o):i]),t($u,{attrs:{open:c}})]),h?f(g,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:b}):c&&g.length?t("ul",{class:$a(u,e.theme)+" "+(e.$props.small?"small":"")+" "+Ru(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox():null,h||0!==m.length?m.map((function(n,i){var u=e.$props.multi&&(o&&!!o[n[s]]||Array.isArray(o)&&o.find((function(e){return e[a]===n[a]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:We({},r({item:n})),on:We({},b({item:n})),key:n[s],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===i,u)}},[l?l({label:n[a],count:n.doc_count,isChecked:u&&e.$props.multi}):t("div",["string"==typeof n[a]?t("span",{domProps:{innerHTML:n[a]}}):n[a],e.$props.showCount&&n.doc_count&&t("span",{class:Ru(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(Au,{class:Ru(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:Ru(this.$props.innerClass,"noResults")||null},[Xn(t)?t():t])},renderSearchbox:function(){var e=this.$createElement,t=this.$props,n=t.componentId,r=t.searchPlaceholder,o=t.showClear,i=t.themePreset,a=t.innerClass,s=e(Pa,{attrs:{id:n+"-input",showIcon:!1,showClear:o,placeholder:r,value:this.$data.searchTerm,themePreset:i},style:{border:0,borderBottom:"1px solid #ddd"},class:Ru(a,"input"),on:{change:this.handleInputChange}});return o?e(ba,[s,this.searchTerm&&e(xa,{attrs:{groupPosition:"right",positionType:"absolute"}},[e(Qa,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[e(ts)])])]):s}}},xu=ze.updateQuery,Qu=ze.setQueryOptions,Lu=ze.setCustomQuery,Vu=ze.setDefaultQuery,ju=Ge.getQueryOptions,Du=Ge.checkValueChange,Fu=Ge.checkPropChange,Mu=Ge.getClassName,Nu=Ge.getOptionsFromQuery,Uu=Ge.isEqual,qu=Ge.getCompositeAggsQuery,Hu={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:Qn.func,className:gt.string.def(""),componentId:Qn.stringRequired,customQuery:Qn.func,dataField:Qn.stringRequired,defaultQuery:Qn.func,defaultValue:Qn.string,value:Qn.value,filterLabel:Qn.string,innerClass:Qn.style,placeholder:gt.string.def("Select a value"),react:Qn.react,renderLabel:Qn.func,render:Qn.func,renderItem:Qn.func,renderError:Qn.title,renderNoResults:gt.any,transformData:Qn.func,selectAllLabel:Qn.string,showCount:gt.bool.def(!0),showFilter:gt.bool.def(!0),size:gt.number.def(100),sortBy:gt.oneOf(["asc","desc","count"]).def("count"),title:Qn.title,URLParams:gt.bool.def(!1),showMissing:gt.bool.def(!1),missingLabel:gt.string.def("N/A"),showSearch:gt.bool.def(!1),showClear:gt.bool.def(!1),showLoadMore:gt.bool.def(!1),loadMoreLabel:gt.oneOfType([gt.string,gt.any]).def("Load More"),nestedField:Qn.string,index:gt.string,searchPlaceholder:gt.string.def("Type here to search...")},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:[],or(this.componentId,this.setCustomQuery,this.$props,this.currentValue),rr(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&&Fu(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){Uu(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||i,p=this.$scopedSlots.renderLabel||a,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?Xn(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel}]),e(Ua,{class:this.$props.className},[this.$props.title&&e(jr,{class:Mu(this.$props.innerClass,"title")||""},[this.$props.title]),e(ku,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return We({},e,{key:String(e.key)})}))),handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",showCount:this.$props.showCount,hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,renderItem:l,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,themePreset:this.themePreset,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!s&&e("div",{attrs:{css:Rn}},[e($n,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:p}})])):d&&Xn(d)?e("div",[d()]):d&&!Xn(d)?d:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);Du(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,r=Hu.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=Nu(o),rr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,n),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:$.singleDropdownList})},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=Hu.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=Nu(r(e,t)),or(t.componentId,this.setCustomQuery,t,e));this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:$.singleDropdownList})},generateQueryOptions:function(e,t){var n=ju(e);return e.showLoadMore?qu({query:n,props:e,after:t}):Ks(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Hu.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=Nu(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,We({},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 Jn(r,this)}},computed:{hasCustomRenderer:function(){return er(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=ju(e);return e.showLoadMore?qu({query:n,props:e,after:t}):Ks(n,e)}},zu=wr(Kn((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Qu,updateQuery:xu,setCustomQuery:Lu,setDefaultQuery:Vu})(Hu),{componentType:$.singleDropdownList,internalComponent:!0});Hu.install=function(e){e.component(Hu.name,zu)},Hu.componentType=$.singleDropdownList;var Bu=ze.updateQuery,Gu=ze.setQueryOptions,Wu=ze.setCustomQuery,Yu=ze.setDefaultQuery,Ku=Ge.isEqual,Xu=Ge.getQueryOptions,Zu=Ge.checkValueChange,Ju=Ge.checkPropChange,el=Ge.getClassName,tl=Ge.getOptionsFromQuery,nl=Ge.getCompositeAggsQuery,rl={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:Qn.func,className:gt.string.def(""),componentId:Qn.stringRequired,customQuery:Qn.func,dataField:Qn.stringRequired,defaultValue:Qn.stringArray,value:Qn.stringArray,defaultQuery:Qn.func,filterLabel:Qn.string,innerClass:Qn.style,placeholder:gt.string.def("Select values"),queryFormat:gt.oneOf(["and","or"]).def("or"),react:Qn.react,renderLabel:Qn.func,render:Qn.func,renderItem:Qn.func,renderError:Qn.title,renderNoResults:gt.any,transformData:Qn.func,selectAllLabel:Qn.string,showCount:gt.bool.def(!0),showFilter:gt.bool.def(!0),size:gt.number.def(100),sortBy:gt.oneOf(["asc","desc","count"]).def("count"),title:Qn.title,URLParams:gt.bool.def(!1),showMissing:gt.bool.def(!1),missingLabel:gt.string.def("N/A"),showSearch:gt.bool.def(!1),showClear:gt.bool.def(!1),showLoadMore:gt.bool.def(!1),loadMoreLabel:gt.oneOfType([gt.string,gt.any]).def("Load More"),nestedField:Qn.string,index:gt.string,searchPlaceholder:gt.string.def("Type here to search...")},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:[],or(this.componentId,this.setCustomQuery,this.$props,this.currentValue),rr(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])),Ku(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&Ju(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0)},value:function(e,t){Ku(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||i,l=this.$scopedSlots.renderLabel||a,c=this.$data.isLastBucket,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,d=[];return u&&this.error?Xn(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(d=[{key:this.$props.selectAllLabel}]),e(Ua,{class:this.$props.className},[this.$props.title&&e(jr,{class:el(this.$props.innerClass,"title")||""},[this.$props.title]),e(ku,{attrs:{innerClass:this.$props.innerClass,items:[].concat(d,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return We({},e,{key:String(e.key)})}))),hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",multi:!0,showCount:this.$props.showCount,themePreset:this.themePreset,renderItem:s,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!c&&e("div",{attrs:{css:Rn}},[e($n,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):p&&Xn(p)?e("div",[p()]):p&&!Xn(p)?p:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=Zn(this.currentValue,e);this.$emit("change",t)}},setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&e.includes(o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},Array.isArray(e)&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],Ye(s,[o].map(Xe)));i=We({},u)}}else{if(i[e]){var l=i,c=(l[e],Ye(l,[e].map(Xe)));i=We({},c)}else i[e]=!0;if(o&&o in i){var p=i,d=(p[o],Ye(p,[o].map(Xe)));i=We({},d)}a=Object.keys(i)}Zu(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=i,r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n,r=rl.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=tl(o),rr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,n),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:$.multiDropdownList})},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=rl.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=tl(r(e,t)),or(t.componentId,this.setCustomQuery,t,e));this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:$.multiDropdownList})},generateQueryOptions:function(e,t){var n=Xu(e);return e.showLoadMore?nl({query:n,props:e,after:t}):Ks(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=rl.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=tl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,We({},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 Jn(r,this)}},computed:{hasCustomRenderer:function(){return er(this)}},defaultQuery:function(e,t){var n=null,r="or"===t.queryFormat?"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 o;if("or"===t.queryFormat)if(t.showMissing){var i,a,s=e.includes(t.missingLabel),u=[(a={},a[r]=(i={},i[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),i),a)];s&&(u=u.concat({bool:{must_not:{exists:{field:t.dataField}}}})),o={bool:{should:u}}}else{var l,c;(c={})[r]=((l={})[t.dataField]=e,l),o=c}else o={bool:{must:e.map((function(e){var n,o;return(o={})[r]=((n={})[t.dataField]=e,n),o}))}};n=e.length?o:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Xu(e);return e.showLoadMore?nl({query:n,props:e,after:t}):Ks(n,e)}},ol=wr(Kn((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Gu,updateQuery:Bu,setCustomQuery:Wu,setDefaultQuery:Yu})(rl),{componentType:$.multiDropdownList,internalComponent:!0});rl.install=function(e){e.component(rl.name,ol)},rl.componentType=$.multiDropdownList;var il=ze.updateQuery,al=ze.setQueryOptions,sl=ze.setCustomQuery,ul=Ge.isEqual,ll=Ge.checkValueChange,cl=Ge.getClassName,pl=Ge.getOptionsFromQuery,dl=Ge.handleA11yAction,hl={name:"ToggleButton",props:{componentId:Qn.stringRequired,data:Qn.data,dataField:Qn.stringRequired,defaultValue:Qn.any,value:Qn.stringOrArray,filterLabel:Qn.string,nestedField:Qn.string,innerClass:Qn.style,multiSelect:gt.bool,react:Qn.react,showFilter:gt.bool,title:Qn.title,URLParams:gt.bool,renderItem:Qn.func,index:gt.string,enableStrictSelection:gt.bool},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=hl.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`."),or(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(hl.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){ul(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)ul(this.$data.currentValue,e)||ul(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;ul(n,this.selectedValue)||ul(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQuery(this.$data.currentValue,this.$props)}},methods:{handleToggle:function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!0);var o=this.$data.currentValue,i=e,a=[];a=t?hl.parseValue(i,n):this.$props.multiSelect?o.some((function(e){return e.value===i.value}))?o.filter((function(e){return e.value!==i.value})):o.concat(i):o.some((function(e){return e.value===i.value}))?[]:[i],this.setValue(a,n,r)},setReact:function(e){e.react&&this.watchComponent(e.componentId,e.react)},setValue:function(e,t,n){var r=this;void 0===t&&(t=this.$props),void 0===n&&(n=!0);ll(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=hl.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,pl(r(e,t))),or(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:$.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return ul(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($n,{class:cl(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return dl(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(Ua,{class:En},[this.$props.title&&t(jr,{class:cl(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}},fl=wr(Kn((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQueryHandler:il,setQueryOptions:al,setCustomQuery:sl})(hl),{componentType:$.toggleButton});hl.install=function(e){e.component(hl.name,fl)},hl.componentType=$.toggleButton;var gl=["options"],ml=["query"],yl=["query"],vl=["query"],bl=ze.updateQuery,Cl=ze.setQueryOptions,Ol=ze.setCustomQuery,wl=ze.setDefaultQuery,Sl=Ge.parseHits,_l=Ge.isEqual,Tl=Ge.getCompositeAggsQuery,El=Ge.getOptionsFromQuery,Il=Ge.getResultStats,Al={name:"ReactiveComponent",props:{componentId:Qn.stringRequired,aggregationField:Qn.string,aggregationSize:gt.number,size:gt.number.def(20),defaultQuery:Qn.func,customQuery:Qn.func,filterLabel:Qn.string,react:Qn.react,showFilter:gt.bool.def(!0),URLParams:gt.bool.def(!1),distinctField:Qn.string,distinctFieldConfig:Qn.props,index:gt.string},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,or(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,i=t.showFilter,a=t.URLParams,s=t.distinctField,u=t.distinctFieldConfig,l=t.index;if(this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!s&&!u||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&l&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),n){var c=n(this.selectedValue,t),p=(c||{}).query,d=c?El(c):null;d?this.setQueryOptions(r,We({},d,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1);var h=p||null;c&&c.id&&(h=c),this.updateQuery({componentId:r,query:h,value:this.selectedValue||null,label:o,showFilter:i,URLParams:a})}this.setQuery=function(n){var r=n.options,o=Ye(n,gl);r&&e.setQueryOptions(t.componentId,We({},r,e.getAggsQuery()),!1);var i=o.query;if(o&&o.query&&o.query.query&&(i=o.query.query),o&&o.query||r){var a=We({},r);o&&o.query&&(o.query.id?a=i:a.query=o.query),e.setCustomQuery(t.componentId,a)}e.updateQuery(We({},o,{componentId:t.componentId,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams}))},t.defaultQuery&&(this.internalComponent=t.componentId+"__internal")},beforeMount:function(){if(this.internalComponent&&this.$props.defaultQuery){rr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var e=this.$defaultQuery||{},t=e.query,n=Ye(e,ml);n?this.setQueryOptions(this.internalComponent,We({},n,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1);var r=t||null;!r&&this.$defaultQuery&&this.$defaultQuery.id&&(r=this.$defaultQuery),this.updateQuery({componentId:this.internalComponent,query:r})}},watch:{hits:function(e,t){_l(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){_l(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){_l(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){_l(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){_l(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){_l(e,t)||this.$emit("data",this.getData())},total:function(e,t){_l(e,t)||this.$emit("data",this.getData())},time:function(e,t){_l(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!ir(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=this.$defaultQuery||{},r=n.query,o=Ye(n,yl);o?this.setQueryOptions(this.internalComponent,We({},o,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),rr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue);var i=r||null;!i&&this.$defaultQuery&&this.$defaultQuery.id&&(i=this.$defaultQuery),this.updateQuery({componentId:this.internalComponent,query:i})}},customQuery:function(e,t){if(e&&!ir(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=this.$customQuery||{},o=r.query,i=Ye(r,vl);i?this.setQueryOptions(n,We({},i,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),or(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var a=o||null;this.$customQuery&&this.$customQuery.id&&(a=this.$customQuery),this.updateQuery({componentId:n,query:a})}}},render:function(){var e=arguments[0];try{var t=this.$scopedSlots.default,n=this.error,r=this.isLoading,o=this.selectedValue,i=We({error:n,loading:r},this.getData(),{value:o,setQuery:this.setQuery});return e("div",[t(i)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:Tl({props:this.$props,showTopHits:!0,value:this.selectedValue}).aggs}:{}},getData:function(){var e=this.hits,t=this.aggregations,n=this.aggregationData,r=this.promotedResults,o=this.rawData,i=Sl(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(i=i.filter((function(e){return!a.includes(e._id)}))),i=[].concat(r,i)}return{data:i,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return Il(this)}}},Pl=wr(Kn((function(e,t){return{aggregations:e.aggregations[t.componentId]&&e.aggregations[t.componentId]||null,aggregationData:e.compositeAggregations[t.componentId]||[],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits||[],rawData:e.rawData[t.componentId],error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,promotedResults:e.promotedResults[t.componentId]||[],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Cl,updateQuery:bl,setCustomQuery:Ol,setDefaultQuery:wl})(Al),{componentType:$.reactiveComponent});Al.install=function(e){e.component(Al.name,Pl)},Al.componentType=$.reactiveComponent;var $l=ze.setValue,Rl=ze.clearValues,kl=ze.resetValuesToDefault,xl=Ge.getClassName,Ql=Ge.handleA11yAction,Ll={name:"SelectedFilters",props:{className:gt.string.def(""),clearAllLabel:gt.string.def("Clear All"),innerClass:Qn.style,showClearAll:gt.bool.def(!0),title:Qn.title,resetToDefault:gt.bool.def(!1)},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,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var n=this.renderFilters(),r=!!n.length;return t(Ua,{class:_n(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(jr,{class:xl(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r?t($n,{class:xl(this.$props.innerClass,"button")||"",on:We({},{click:this.clearValues,keypress:function(t){return Ql(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(){this.resetToDefault?this.resetValuesToDefault():this.clearValuesAction(),this.$emit("clear",null)},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},renderFilters:function(){var e=this,t=this.$createElement,n=this.selectedValues;return Object.keys(n).filter((function(t){return e.components.includes(t)&&n[t].showFilter})).map((function(r,o){var i=n[r],a=i.label,s=i.value,u=Array.isArray(s);if(a&&(u&&s.length||!u&&s)){var l=e.renderValue(s,u);return t($n,{class:xl(e.$props.innerClass,"button")||"",key:r+"-"+(o+1),on:We({},{click:function(){return e.remove(r,s)},keypress:function(t){return Ql(t,(function(){return e.remove(r,s)}))}}),attrs:{tabIndex:"0"}},[t("span",[n[r].label,": ",l]),t("span",["✕"])])}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},Vl=Kn((function(e){return{components:e.components,selectedValues:e.selectedValues}}),{clearValuesAction:Rl,setValue:$l,resetValuesToDefault:kl})(Ll);Ll.install=function(e){e.component(Ll.name,Vl)};var jl=ze.updateQuery,Dl=ze.setQueryOptions,Fl=ze.setCustomQuery,Ml=Ge.isEqual,Nl=Ge.checkValueChange,Ul=Ge.getClassName,ql=Ge.getOptionsFromQuery,Hl={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:Qn.func,className:gt.string.def(""),componentId:Qn.stringRequired,customQuery:Qn.func,data:Qn.data,dataField:Qn.stringRequired,defaultValue:Qn.string,value:Qn.value,filterLabel:Qn.string,innerClass:Qn.style,react:Qn.react,showFilter:gt.bool.def(!0),showRadio:gt.bool.def(!0),title:Qn.title,URLParams:gt.bool.def(!1),nestedField:Qn.string,index:gt.string},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`."),or(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){Ml(e,t)||this.setValue(e)},selectedValue:function(e){Ml(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0];return t(Ua,{class:this.$props.className},[this.$props.title&&t(jr,{class:Ul(this.$props.innerClass,"title")},[this.$props.title]),t(Ws,{class:Ul(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(Bs,{class:Ul(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:Ul(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=Hl.parseValue(e,t);Nl(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,r=t.customQuery,o=Hl.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=ql(r(e,t)),or(this.componentId,this.setCustomQuery,this.$props,this.currentValue));this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:$.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}},zl=wr(Kn((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:jl,setQueryOptions:Dl,setCustomQuery:Fl})(Hl),{componentType:$.singleRange});Hl.install=function(e){e.component(Hl.name,zl)},Hl.componentType=$.singleRange;var Bl=ze.updateQuery,Gl=ze.setQueryOptions,Wl=ze.setCustomQuery,Yl=Ge.isEqual,Kl=Ge.checkValueChange,Xl=Ge.getClassName,Zl=Ge.getOptionsFromQuery,Jl={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:Qn.func,className:gt.string.def(""),componentId:Qn.stringRequired,customQuery:Qn.func,data:Qn.data,dataField:Qn.stringRequired,defaultValue:Qn.stringArray,value:Qn.stringArray,filterLabel:Qn.string,innerClass:Qn.style,react:Qn.react,showFilter:gt.bool.def(!0),showCheckbox:gt.bool.def(!0),title:Qn.title,URLParams:gt.bool.def(!1),nestedField:Qn.string,index:gt.string},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=Zn(this.selectedValues,e.target.value);this.$emit("change",t)}},selectItem:function(e,t,n,r){var o=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!1);var i=this.currentValue,a=this.selectedValues;if(e)if(t){i=Jl.parseValue(e,n);var s={};i.forEach((function(e){s[[e.label]]=!0})),a=r?s:We({},a,s)}else if(a[e]){i=i.filter((function(t){return t.label!==e}));var u=a,l=(u[e],Ye(u,[e].map(Xe)));a=l}else{var c,p=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));i=[].concat(i,p),a=We({},a,((c={})["object"==typeof e?e.label:e]=!0,c))}else i=[],a={};Kl(n.componentId,i,n.beforeValueChange,(function(){o.currentValue=i,o.selectedValues=a,o.updateQueryHandler(i,n),o.$emit("valueChange",Object.keys(a)),o.$emit("value-change",Object.keys(a))}))},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=Jl.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=Zl(r(e,t)),or(this.componentId,this.setCustomQuery,this.$props,this.currentValue));this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:$.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){Yl(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){Yl(this.$data.currentValue,e)||this.selectItem(e,!0,void 0,!0)},customQuery:function(e,t){ir(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`."),or(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(Ua,{class:this.$props.className},[this.$props.title&&t(jr,{class:Xl(this.$props.innerClass,"title")},[this.$props.title]),t(Ws,{class:Xl(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(Gs,{class:Xl(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:We({},{checked:e.selectedValues[n.label]}),on:We({},{click:e.handleClick})}),t("label",{class:Xl(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}},ec=wr(Kn((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Bl,setQueryOptions:Gl,setCustomQuery:Wl})(Jl),{componentType:$.multiRange});Jl.install=function(e){e.component(Jl.name,ec)},Jl.componentType=$.multiRange;var tc,nc={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(jr,Vr([{},this.$props]),[t])},install:function(e){e.component(nc.name,nc)}},rc=["src"],oc={name:"ResultCardImage",props:{src:gt.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=Ye(t,rc);return e(to,Vr([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(oc.name,oc)}},ic={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Vr([{},n]),[r])},install:function(e){e.component(ic.name,ic)}},ac=["href","target"],sc={name:"ResultCard",components:{ResultCardTitle:nc,ResultCardImage:oc,ResultCardDescription:ic},props:{target:gt.string.def("_blank"),href:Qn.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,i=Ye(n,ac);return e(no,Vr([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},i]),[t])},install:function(e){e.component(sc.name,sc),e.component(nc.name,nc),e.component(oc.name,oc),e.component(ic.name,ic)}},uc={name:"ResultListContent",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Vr([{},n]),[r])},install:function(e){e.component(uc.name,uc)}},lc={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Vr([{},n]),[r])},install:function(e){e.component(lc.name,lc)}},cc=["src","small"],pc={name:"ResultListImage",props:{src:gt.string.isRequired,small:gt.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=Ye(t,cc);return e(Mr,Vr([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(pc.name,pc)}},dc={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(jr,Vr([{},this.$props]),[t])},install:function(e){e.component(dc.name,dc)}},hc=["href","target"],fc={name:"ResultList",props:{href:Qn.string,target:gt.string.def("_blank")},components:{ResultListContent:uc,ResultListDescription:lc,ResultListImage:pc,ResultListTitle:dc},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===pc.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=Ye(t,hc),i=this.hasImage,a=this.isSmall,s=this.$slots.default;return e(Nr,Vr([{attrs:{href:n,image:i,small:a,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[s])},install:function(e){e.component(fc.name,fc),e.component(uc.name,uc),e.component(lc.name,lc),e.component(pc.name,pc),e.component(dc.name,dc)}},gc={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,i=r(),a=i.default;void 0===a&&(a=[]);var s=i.placeholder;return n._isMounted?a:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||s)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||s):a.length>0?a.map((function(){return e(!1)})):e(!1))}},mc=Dt("div")(tc||(tc=Ke(['\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}\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-color: #000;\n\t\tbackground-color: #000;\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']))),yc=function(){var e={NoSSR:gc};try{var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@2.8.2/dist/index.js"),t.onload=function(){var t=mt["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}catch(e){console.error("Unable to load vue-slider",e)}return e},vc=ze.updateQuery,bc=ze.setQueryOptions,Cc=ze.setCustomQuery,Oc=Ge.checkValueChange,wc=Ge.getClassName,Sc=Ge.getOptionsFromQuery,_c=Ge.isEqual,Tc={name:"RangeSlider",components:yc(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:Qn.func,className:gt.string.def(""),range:gt.shape({start:gt.integer.def(0),end:gt.integer.def(10)}),rangeLabels:Qn.rangeLabels,componentId:Qn.stringRequired,customQuery:Qn.func,data:Qn.data,dataField:Qn.stringRequired,defaultValue:Qn.range,value:Qn.range,filterLabel:Qn.string,innerClass:Qn.style,react:Qn.react,showFilter:gt.bool.def(!0),showCheckbox:gt.bool.def(!0),title:Qn.title,URLParams:gt.bool.def(!1),sliderOptions:gt.object.def({}),nestedField:Qn.string,index:gt.string},methods:{handleSliderChange:function(e){void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleSlider:function(e){var t=this;clearTimeout(this.handleSliderChange._tId),this.handleSliderChange._tId=setTimeout((function(){t.handleSliderChange(e)}),100)},handleChange:function(e,t){var n=this;void 0===t&&(t=this.$props);Oc(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,r=t.customQuery,o=Tc.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=Sc(r(e,t)),or(this.componentId,this.setCustomQuery,this.$props,this.currentValue));var i=t.showFilter,a=t.range,s=a.start,u=a.end,l=e[0],c=e[1],p=l===s&&c===u;this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:i&&!p,URLParams:t.URLParams,componentType:$.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(Tc.parseValue(e,this.$props))},value:function(e,t){_c(e,t)||this.handleChange(Tc.parseValue(e,this.$props))},selectedValue:function(e){_c(this.$data.currentValue,e)||(this.handleChange(Tc.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){ir(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`."),or(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(Tc.parseValue(r,this.$props)):t?this.handleChange(Tc.parseValue(t,this.$props)):n&&this.handleChange(Tc.parseValue(n,this.$props)))},render:function(){var e=arguments[0];return e(Ua,{class:this.$props.className},[this.$props.title&&e(jr,{class:wc(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(gc,[e(mc,{class:wc(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},props:We({},this.$props.sliderOptions),on:We({},{input:this.handleSlider})}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:wc(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:wc(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]:[]}},Ec=wr(Kn((function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:vc,setQueryOptions:bc,setCustomQuery:Cc})(Tc),{componentType:$.rangeSlider});Tc.install=function(e){e.component(Tc.name,Ec)},Tc.componentType=$.rangeSlider;var Ic=ze.addComponent,Ac=ze.removeComponent,Pc=ze.watchComponent,$c=ze.updateQuery,Rc=ze.setQueryListener,kc=ze.setQueryOptions,xc=ze.setComponentProps,Qc=ze.setCustomQuery,Lc=ze.updateComponentProps,Vc=Ge.checkValueChange,jc=Ge.getClassName,Dc=Ge.getOptionsFromQuery,Fc=Ge.isEqual,Mc=Ge.checkSomePropChange,Nc={name:"DynamicRangeSlider",components:yc(),props:{beforeValueChange:Qn.func,className:gt.string.def(""),rangeLabels:Qn.func,componentId:Qn.stringRequired,customQuery:Qn.func,data:Qn.data,dataField:Qn.stringRequired,defaultValue:Qn.func,filterLabel:Qn.string,innerClass:Qn.style,react:Qn.react,showFilter:gt.bool.def(!0),destroyOnUnmount:gt.bool,showCheckbox:gt.bool.def(!0),title:Qn.title,URLParams:gt.bool.def(!1),sliderOptions:gt.object.def({}),nestedField:Qn.string,index:gt.string},data:function(){return this.internalRangeComponent=this.$props.componentId+"__range__internal",{currentValue:null,stats:[]}},created:function(){var e=this;this.setQueryListener(this.$props.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),null),this.setComponentProps(this.componentId,this.$props,$.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,$.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`."),or(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},mounted:function(){this.setReact()},beforeMount:function(){var e=[];this.$$store&&(e=this.$$store.getState().components);(this.destroyOnUnmount||-1===e.indexOf(this.componentId))&&(this.addComponent(this.componentId),this.addComponent(this.internalRangeComponent),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue&&this.handleChange(Nc.parseValue(this.selectedValue,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:{setDefaultValue:function(e){var t=e.start,n=e.end;if(this.$props.defaultValue){var r=this.$props.defaultValue(t,n),o=r.start,i=r.end;this.handleChange([o,i])}else this.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(e){this.handleChange(e.currentValue)},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]];Vc(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,n=Nc.defaultQuery(e,this.$props);this.$props.customQuery&&(n=(this.$props.customQuery(e,this.$props)||{}).query,t=Dc(this.$props.customQuery(e,this.$props)),or(this.componentId,this.setCustomQuery,this.$props,e));var r=this.range||{start:e[0],end:e[1]},o=r.start,i=r.end,a=e[0],s=e[1],u=a===o&&s===i;this.setQueryOptions(this.$props.componentId,t),this.updateQuery({componentId:this.$props.componentId,query:n,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!u,URLParams:this.$props.URLParams,componentType:$.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=tr(e);Mc(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,$.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,$.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!Fc(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.handleChange(Nc.parseValue(t,this.$props))}},range:function(e,t){if(!Fc(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],i=t||{},a=i.start,s=i.end,u=r===a?e.start:r,l=o===s?e.end:o;this.handleChange([u,l])}},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)}},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(Ua,{class:this.$props.className},[this.$props.title&&e(jr,{class:jc(this.$props.innerClass,"title")},[this.$props.title]),e(gc,[e(mc,{class:jc(this.$props.innerClass,"slider")},[e("vue-slider-component",{attrs:{value:[Math.max(n,this.currentValue[0]),Math.min(r,this.currentValue[1])],min:Math.min(n,this.currentValue[0]),max:Math.max(r,this.currentValue[1]),dotSize:20,height:4,"enable-cross":!1},on:{"drag-end":this.handleSlider},props:We({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:jc(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:jc(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.start,e.end]}},Uc=Kn((function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],i=e.aggregations[t.componentId+"__range__internal"];return t.nestedField?(o=o&&n[t.dataField][t.nestedField]&&n[t.dataField][t.nestedField].buckets?n[t.dataField][t.nestedField].buckets:[],i=i&&r[t.nestedField].min?{start:r[t.nestedField].min.value,end:r[t.nestedField].max.value}:null):(o=o&&n[t.dataField].buckets?n[t.dataField].buckets:[],i=i&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:i,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{addComponent:Ic,removeComponent:Ac,updateQuery:$c,watchComponent:Pc,setQueryListener:Rc,setQueryOptions:kc,setComponentProps:xc,setCustomQuery:Qc,updateComponentProps:Lc})(Nc);Nc.install=function(e){e.component(Nc.name,Uc)},Nc.componentType=$.dynamicRangeSlider;var qc=Ge.getSearchState,Hc=function(e){return We({},e,{props:e.componentProps})},zc=function(e,t){void 0===t&&(t={});var n,r=t.componentIds;if("string"==typeof r)return(n={})[r]=e[r],n;if(r instanceof Array){var o={};return r.forEach((function(t){o[t]=e[t]})),o}return e},Bc=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return We({},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))}),{})},Gc={name:"StateProvider",props:{onChange:gt.func,componentIds:gt.oneOfType([gt.string,gt.arrayOf(gt.string)]),includeKeys:gt.arrayOf(gt.string).def(["hits","value","aggregations","error"]),strict:gt.bool.def(!0)},data:function(){return this.__state={searchState:null},this.__state},mounted:function(){this.searchState=Bc(qc(Hc(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){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)},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=Bc(qc(Hc(this.searchStateProps)),this.includeKeys))}},render:function(){var e=this.searchState,t=this.$scopedSlots.default;return t?t({searchState:e}):null}},Wc=Kn((function(e,t){return{selectedValues:zc(e.selectedValues,t),queryLog:zc(e.queryLog,t),dependencyTree:zc(e.dependencyTree,t),componentProps:zc(e.props,t),hits:zc(e.hits,t),aggregations:zc(e.aggregations,t),isLoading:zc(e.isLoading,t),error:zc(e.error,t),promotedResults:zc(e.promotedResults,t),customData:zc(e.customData,t),settings:zc(e.settings,t),rawData:zc(e.rawData,t)}}),{})(Gc);Gc.install=function(e){e.component(Gc.name,Wc)};var Yc=["aggs","size"],Kc=[$.dataSearch,$.categorySearch],Xc=[$.reactiveList,$.reactiveMap,$.singleList,$.multiList,$.tagCloud].concat(Kc),Zc=[$.numberBox,$.ratingsFilter],Jc=[$.reactiveList,$.reactiveMap];function ep(e,t,n){if(Jc.includes(n))return e.defaultQuery?e.defaultQuery():{};var r=function(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}(t,e);if(e.customQuery){var o=e.customQuery(r,e);return o&&o.query}return e.source.defaultQuery?e.source.defaultQuery(r,e):{}}var tp,np,rp=function(e){var t=e.theme;return xt(tp||(tp=Ke(["\n\tcolor: ",";\n"])),t.colors.alertColor)},op=Dt("div")(np||(np=Ke(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&rp})),ip=Ge.getClassName,ap=Ge.isEqual,sp={name:"RangeInput",components:{RangeSlider:Ec},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:Qn.string,default:""},defaultValue:Qn.range,validateRange:Qn.func,value:Qn.range,dataField:Qn.stringRequired,innerClass:Qn.style,range:{types:Qn.range,default:function(){return{start:0,end:10}}},rangeLabels:Qn.rangeLabels,stepValue:Qn.number,componentStyle:Qn.style,componentId:Qn.stringRequired,includeNullValues:gt.bool,beforeValueChange:Qn.func,customQuery:Qn.func,data:Qn.data,filterLabel:Qn.string,react:Qn.react,showFilter:gt.bool.def(!0),showCheckbox:gt.bool.def(!0),title:Qn.title,URLParams:gt.bool.def(!1),sliderOptions:gt.object.def({}),nestedField:Qn.string},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)&&!ap(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=We({},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=We({},n)}},handleOnChange:function(e){this.handleChange(e,"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){ap(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)},render:function(){var e=arguments[0],t=this.$props,n=t.className,r=t.dataField,o=t.range,i=t.rangeLabels,a=t.componentId,s=t.innerClass,u=t.stepValue,l=t.componentStyle,c=t.themePreset,p=t.includeNullValues,d=t.beforeValueChange,h=t.customQuery,f=t.data,g=t.filterLabel,m=t.react,y=t.showFilter,v=t.showCheckbox,b=t.title,C=t.URLParams,O=t.sliderOptions,w=t.nestedField;return e(Ua,{style:l,class:n},[e(Ec,{attrs:{componentId:a,value:{start:this.currentValue.start,end:this.currentValue.end},range:o,dataField:r,rangeLabels:i,includeNullValues:p,beforeValueChange:d,customQuery:h,data:f,filterLabel:g,react:m,showFilter:y,showCheckbox:v,title:b,uRLParams:C,sliderOptions:O,nestedField:w},on:{change:this.handleOnChange,"value-change":this.handleValueChange}}),e(po,{class:ip(s,"input-container")||""},[e(po,{attrs:{direction:"column",flex:2}},[e(Pa,{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:ip(s,"input")||"",domProps:We({},{value:this.currentValue.start})}),!this.isStartValid&&e(op,{attrs:{alert:!0}},["Input range is invalid"])]),e(po,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(po,{attrs:{direction:"column",flex:2}},[e(Pa,{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:ip(s,"input")||"",domProps:We({},{value:this.currentValue.end})}),!this.isEndValid&&e(op,{attrs:{alert:!0}},["Input range is invalid"])])])])}},up=wr(Kn((function(e){return{themePreset:e.config.themePreset}}),{})(sp),{componentType:$.rangeInput});sp.install=function(e){e.component(sp.name,up)},sp.componentType=$.rangeInput;var lp=[xo,sc,fc,Pi,Ds,au,Ou,Hl,Jl,Tc,Nc,Al,Ll,hl,Hu,rl,Gc,sp];function cp(e){lp.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&cp(window.Vue);var pp={version:"1.25.0",install:cp};e.DataSearch=Ds,e.DynamicRangeSlider=Nc,e.MultiDropdownList=rl,e.MultiList=Ou,e.MultiRange=Jl,e.RangeInput=sp,e.RangeSlider=Tc,e.ReactiveBase=Pi,e.ReactiveComponent=Al,e.ReactiveList=xo,e.ResultCard=sc,e.ResultList=fc,e.SelectedFilters=Ll,e.SingleDropdownList=Hu,e.SingleList=au,e.SingleRange=Hl,e.StateProvider=Gc,e.ToggleButton=hl,e.default=pp,e.initReactivesearch=function(e,t,n){return new Promise((function(r,o){var i=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,a=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,s=We({},n.enableAppbase&&We({"X-Search-Client":"ReactiveSearch Vue"},!1===a&&{"X-Enable-Telemetry":!1}),n.headers),u={url:n.url&&""!==n.url.trim()?n.url:"https://scalr.api.appbase.io",app:n.app,credentials:i,transformRequest:n.transformRequest||null,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:s,analyticsConfig:n.appbaseConfig||null},l=mi(u),c=[],p={},d={},h={},f={},g={},m=[],y={},v=[],b={},O={},w={},S={},T={},I={},P={};e.forEach((function(e){var n=e.source.componentType;c=[].concat(c,[e.componentId]);var r={};Object.keys(e).forEach((function(t){R.includes(t)&&(r[t]=e[t])}));var o=!1,i=Jc.includes(n),a=e.componentId+"__internal",s=e.filterLabel||e.componentId,u=function(e,t,n){if(e&&e[t])try{return{value:JSON.parse(e[t]),reference:"URL"}}catch(n){return{value:e[t],reference:"URL"}}return{value:n,reference:"DEFAULT"}}(t,e.componentId,e.value||e.defaultValue),l=u.value,h=u.reference,m=void 0===e.showFilter||e.showFilter;if(Zc.includes(n)&&(m=!1),p=F(p,{type:"SET_VALUE",component:e.componentId,label:s,value:l,reference:h,showFilter:m,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(T[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&(I[e.componentId]=e.defaultQuery(l,r)),Xc.includes(n)){var y=e.source.generateQueryOptions?e.source.generateQueryOptions(e):null,v={};if(Kc.includes(n)&&e.highlight&&(v=e.source.highlightQuery(e)),y&&Object.keys(y).length||v&&Object.keys(v).length){var b=y||{},C=b.aggs,O=b.size,w=Ye(b,Yc);if(C&&Object.keys(C).length&&(o=!0,f=A(f,{type:"SET_QUERY_OPTIONS",component:a,options:{aggs:C,size:void 0===O?100:O}})),w&&Object.keys(w).length||v&&Object.keys(v).length){w||(w={}),v||(v={});var S=We({},w,v,{size:O});if(o&&(S=We({},w,v)),i){var $=e.currentPage?e.currentPage-1:0;p[e.componentId]&&p[e.componentId].value&&($=p[e.componentId].value-1||0);var k=e.size||10,x=$*k;r.from=x,S=We({},S,v,{size:k,from:x})}f=A(f,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:We({},S)})}}}if(e.react||o||i){var Q=e.react;(o||i)&&(Q=be(Q,a)),g=_(g,{type:"WATCH_COMPONENT",component:e.componentId,react:Q})}if(i){var L=ep(e,l,n).query;d=E(d,{type:"SET_QUERY",component:a,query:L})}else d=E(d,{type:"SET_QUERY",component:e.componentId,query:ep(e,l,n)});r.componentType=n,P[e.componentId]=r})),S={components:c,dependencyTree:g,queryList:d,queryOptions:f,selectedValues:p,internalValues:{},props:P,customQueries:T,defaultQueries:I},e.forEach((function(e){var t=ve(e.componentId,g,d,f),r=t.queryObj,o=t.options,i=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return i.includes(e)}))){var a;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),v=[].concat(v,[e.componentId]);var s=We({query:We({},r)},o,f[e.componentId]);if(h=We({},h,((a={})[e.componentId]=s,a)),n.enableAppbase){var l,c=Ie(e.componentId,Ee(S,e.componentId,f&&f[e.componentId]?{from:f[e.componentId].from}:null));if(c)y=We({},y,((l={})[e.componentId]=c,l),Te(S,e.componentId,v))}else{var p=u&&u.analyticsConfig&&u.analyticsConfig.userId?u.analyticsConfig.userId+"_"+e:e;m=[].concat(m,[{preference:p},s])}}})),S.queryLog=h;var $=function(e,t){return u.transformResponse&&"function"==typeof u.transformResponse?u.transformResponse(e,t):new Promise((function(t){return t(e)}))},k=function(e){var t=v.map((function(t,n){return new Promise((function(r,o){$(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(O=We({},O,((o={})[t]=e.aggregations,o)),w=te(w,{type:C,aggregations:e.aggregations,append:!1}));b=We({},b,((n={})[t]={hits:e.hits.hits,total:"object"==typeof e.hits.total?e.hits.total.value:e.hits.total,time:e.took},n)),r()})).catch((function(e){return o(e)}))}))}));Promise.all(t).then((function(){S=We({},S,{hits:b,aggregations:O}),r(S)}))};if(u.graphQLUrl){(function(e){if(u.transformRequest&&"function"==typeof u.transformRequest){var t=u.transformRequest(e);return t instanceof Promise?t:Promise.resolve(t)}return Promise.resolve(e)})(m).then((function(e){Qe(u.graphQLUrl,u.url,u.credentials,u.app,e).then((function(e){k(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(y).length){m=Object.keys(y).map((function(e){return y[e]}));var x={};u.analyticsConfig&&(x.recordAnalytics=$e(u.analyticsConfig.recordAnalytics)?u.analyticsConfig.recordAnalytics:void 0,x.userId=$e(u.analyticsConfig.userId)?u.analyticsConfig.userId:void 0,x.enableQueryRules=$e(u.analyticsConfig.enableQueryRules)?u.analyticsConfig.enableQueryRules:void 0,x.customEvents=$e(u.analyticsConfig.customEvents)?u.analyticsConfig.customEvents:void 0),l.reactiveSearchv3(m,x).then((function(e){!function(e){var t={},n={},o={},i={},a={},s=v.map((function(r){return new Promise((function(s,u){$(e[r],r).then((function(u){if(u){var l,c;if(u.promoted&&(t[r]=u.promoted.map((function(e){return We({},e.doc,{_position:e.position})}))),n[r]=u,u.customData&&(o[r]=u.customData),u.settings&&(i[r]=u.settings),u.aggregations)O=We({},O,((c={})[r]=u.aggregations,c));a[r]=e._timestamp,b=We({},b,((l={})[r]={hits:u.hits.hits,total:"object"==typeof u.hits.total?u.hits.total.value:u.hits.total,time:u.took},l)),s()}})).catch((function(e){return u(e)}))}))}));Promise.all(s).then((function(){S=We({},S,{hits:b,timestamp:a,aggregations:O,compositeAggregations:w,promotedResults:t,settings:i,customData:o,rawData:n}),r(S)}))}(e)})).catch((function(e){return o(e)}))}else l.msearch({type:"*"===u.type?"":u.type,body:m}).then((function(e){k(e)})).catch((function(e){return o(e)}))}))},e.install=cp,e.version="1.25.0",Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
36
|
+
*/function Ga(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wa,Ya,Ka={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Object,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(e){return e.every((function(e){return"string"==typeof e}))},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(e,t){var n,r=t.props,o=r.activeClassName,i=void 0===o?"":o,a=r.activeIndex,s=void 0===a?-1:a,u=r.activeStyle,l=r.autoEscape,c=r.caseSensitive,p=void 0!==c&&c,d=r.findChunks,h=r.highlightClassName,f=void 0===h?"":h,g=r.highlightStyle,m=void 0===g?{}:g,y=r.highlightTag,v=void 0===y?"mark":y,b=r.sanitize,O=r.searchWords,C=r.textToHighlight,w=r.unhighlightClassName,S=void 0===w?"":w,_=r.unhighlightStyle,T=t.data,E=Ba({autoEscape:l,caseSensitive:p,findChunks:d,sanitize:b,searchWords:O,textToHighlight:C}),I=v,A=-1,P="";return e("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ga(e,t,n[t])}))}return e}({},T),E.map((function(t,r){var o=C.substr(t.start,t.end-t.start);if(t.highlight){var a=++A===+s;P="".concat(f," ").concat(a?i:""),n=!0===a&&null!=u?Object.assign({},m,u):m;var l={class:P,key:r,style:n};return"string"!=typeof I&&(l.props={highlightIndex:A}),T.scopedSlots?e(I,l,[T.scopedSlots.default({children:o,highlightIndex:A})]):e(I,l,o)}return e("span",{class:S,key:r,style:_},o)})))}},Xa={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},Za=Dt("span")(Wa||(Wa=Ke(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),Ja={name:"SuggestionItem",props:{currentValue:Qn.string,suggestion:Qn.any},render:function(){var e=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,i=t.description,a=t.image,s=t.isPredictiveSuggestion;return n?"string"==typeof n?e("div",{class:"trim"},[s?e(Za,{domProps:{innerHTML:n}}):e(Ka,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:Xa}})]):n:o||a||i?e(po,{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(po,{attrs:{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(Ka,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:Xa},class:xt({fontSize:"1rem"})})]),i&&e("div",{class:$t("trim",xt({marginTop:3}))},[e(Ka,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:i,highlightStyle:Xa}})])])]):r}},es={functional:!0,render:function(e){return e("svg",{attrs:{alt:"Search",height:"14",width:"10",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15"},class:"search-icon"},[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"}})])}},ts={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"}})])}};kt(Ya||(Ya=Ke(["\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 ns,rs={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"}})])])])}};kt(ns||(ns=Ke(["\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 os,is={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"}})])])])}};kt(os||(os=Ke(["\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 as,ss,us,ls,cs,ps,ds={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"}})])])])])}},hs="INACTIVE",fs="STOPPED",gs="ACTIVE",ms="DENIED",ys={name:"Mic",props:{children:Qn.title,lang:gt.string.def("en-US"),iconPosition:gt.string.def("left"),handleResult:Qn.func,onNoMatch:Qn.func,onError:Qn.func,getInstance:Qn.func,render:Qn.func,className:Qn.string,applyClearStyle:gt.bool,showIcon:gt.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return Jn(t,this)},stopMic:function(){this.instance&&(this.status=hs,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===gs&&(this.status=hs);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,i=t.lang,a=t.getInstance,s=window.SpeechRecognition;if(this.instance&&this.status!==ms)return this.status=hs,this.instance.stop(),void(this.instance=null);this.instance=new s,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=i,a&&a(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=gs},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=hs:"not-allowed"===t.error&&(e.status=ms),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=hs},this.instance.onaudioend=function(){e.status=hs}}}},computed:{hasCustomRenderer:function(){return er(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case gs:return e(ds,{attrs:{className:n},nativeOn:{click:this.handleClick}});case fs:case ms:return e(is,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(rs,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:hs}},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(Qa,[this.Icon])}},vs={name:"CustomSvg",props:{className:String,icon:Function,type:String},data:function(){return{customIcon:this.$props.icon&&"function"==typeof this.$props.icon?this.$props.icon():null}},render:function(){var e=arguments[0];return this.customIcon?e("div",{class:this.$props.className},[this.customIcon]):"popular-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Popular Searches",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("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Recent Searches",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"}})])}},bs=ze.updateQuery,Os=ze.setQueryOptions,Cs=ze.setCustomQuery,ws=ze.setDefaultQuery,Ss=ze.setCustomHighlightOptions,_s=ze.recordSuggestionClick,Ts=ze.loadPopularSuggestions,Es=ze.getRecentSearches,Is=Ge.debounce,As=Ge.checkValueChange,Ps=Ge.getClassName,$s=Ge.getOptionsFromQuery,Rs=Ge.isEqual,ks=Ge.getCompositeAggsQuery,xs=Ge.withClickIds,Qs=Ge.getResultStats,Vs=Ge.handleOnSuggestions,Ls=Ge.getTopSuggestions,js=Ge.normalizeDataField,Ds={name:"DataSearch",data:function(){var e=this.$props;return this.__state={currentValue:"",isOpen:!1,normalizedSuggestions:[],isPending:!1},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.enableQuerySuggestions,n=e.renderQuerySuggestions,r=e.enableRecentSearches,o=e.distinctField,i=e.distinctFieldConfig,a=e.index;t&&console.warn("Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead."),n&&console.warn("Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead."),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!o&&!i||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&a&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.loadPopularSuggestions(this.$props.componentId),this.currentValue=this.selectedValue||"",r&&this.getRecentSearches(),this.handleTextChange=Is(this.handleText,this.$props.debounce),or(this.componentId,this.setCustomQuery,this.$props,this.currentValue),rr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},computed:{suggestionsList:function(){var e=[];return!this.$data.currentValue&&this.$props.defaultSuggestions&&this.$props.defaultSuggestions.length?e=this.$props.defaultSuggestions:this.$data.currentValue&&(e=this.normalizedSuggestions),xs(e)},topSuggestions:function(){return this.currentValue&&(this.enableQuerySuggestions||this.enablePopularSuggestions)?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return Ls(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enableQuerySuggestions||this.enablePopularSuggestions;if(this.currentValue)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return We({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return We({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return Ls(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return er(this)},stats:function(){return Qs(this)}},props:{options:Qn.options,autoFocus:gt.bool,autosuggest:gt.bool.def(!0),beforeValueChange:Qn.func,className:gt.string.def(""),clearIcon:Qn.children,componentId:Qn.stringRequired,customHighlight:Qn.func,customQuery:Qn.func,defaultQuery:Qn.func,dataField:gt.oneOfType([gt.string,gt.shape({field:gt.string,weight:gt.number}),gt.arrayOf(gt.string),gt.arrayOf({field:gt.string,weight:gt.number})]),aggregationField:Qn.string,aggregationSize:gt.number,size:gt.number,debounce:gt.number.def(0),defaultValue:Qn.string,excludeFields:Qn.excludeFields,value:Qn.value,defaultSuggestions:Qn.suggestions,enableSynonyms:gt.bool.def(!0),enableQuerySuggestions:gt.bool.def(!1),enablePopularSuggestions:gt.bool.def(!1),enableRecentSearches:gt.bool.def(!1),fieldWeights:Qn.fieldWeights,filterLabel:Qn.string,fuzziness:Qn.fuzziness,highlight:gt.bool,highlightField:Qn.stringOrArray,icon:Qn.children,iconPosition:gt.oneOf(["left","right"]).def("left"),includeFields:Qn.includeFields,innerClass:Qn.style,innerRef:gt.string.def("searchInputField"),render:Qn.func,renderQuerySuggestions:Qn.func,renderPopularSuggestions:Qn.func,parseSuggestion:Qn.func,renderNoSuggestion:Qn.title,renderError:Qn.title,placeholder:gt.string.def("Search"),queryFormat:gt.oneOf(["and","or"]).def("or"),react:Qn.react,showClear:gt.bool.def(!0),showDistinctSuggestions:gt.bool.def(!0),showFilter:gt.bool.def(!0),showIcon:gt.bool.def(!0),title:Qn.title,theme:Qn.style,URLParams:gt.bool.def(!1),strictSelection:gt.bool.def(!1),nestedField:Qn.string,enablePredictiveSuggestions:gt.bool.def(!1),recentSearchesIcon:gt.any,popularSearchesIcon:gt.any,showVoiceSearch:gt.bool.def(!1),getMicInstance:Qn.func,renderMic:Qn.func,distinctField:Qn.string,distinctFieldConfig:Qn.props,focusShortcuts:gt.arrayOf(gt.oneOfType([gt.string,gt.number])).def(["/"]),addonBefore:gt.any,addonAfter:gt.any,expandSuggestionsContainer:gt.bool.def(!0),index:gt.string},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=Ds.highlightQuery(this.$props)||{};this.queryOptions=We({},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.value?this.setValue(this.$props.value,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},mounted:function(){this.listenForFocusShortcuts()},watch:{highlight:function(){this.updateQueryOptions()},dataField:function(){this.updateQueryOptions(),this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},highlightField:function(){this.updateQueryOptions()},fieldWeights:function(){this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},fuzziness:function(){this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},queryFormat:function(){this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){Rs(e,t)||this.setValue(e,!0,this.$props,void 0,!1)},defaultQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){ir(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){t!==e&&this.$data.currentValue!==e&&(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",Be.CLEAR_VALUE),this.setValue(e||"",!0,this.$props))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandler(e,this.$props):this.updateQueryHandler(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=Ds.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=Ds.highlightQuery(this.$props)||{};this.queryOptions=We({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)},getComponent:function(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.suggestionsList,promotedData:this.promotedResults,aggregationData:this.aggregationData,rawData:this.rawData,customData:this.customData,value:n,triggerClickAnalytics:this.triggerClickAnalytics,resultStats:this.stats,querySuggestions:this.normalizedPopularSuggestions,popularSuggestions:this.normalizedPopularSuggestions};return t?function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.$scopedSlots||t.$props,r=n.renderQuerySuggestions,o=n.renderPopularSuggestions||r;return o?o(e):null}({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):Jn(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=ye(this.$props);return e&&(t.aggs=ks({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return Vs(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,Be.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o){var i=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0);As(n.componentId,e,n.beforeValueChange,(function(){!e&&i.currentValue&&i.enableRecentSearches&&i.getRecentSearches(),i.currentValue=e,t?(i.$props.autosuggest&&(o&&(i.isOpen=!1),i.updateDefaultQueryHandler(e,i.$props)),n.strictSelection?r===Be.SUGGESTION_SELECT||""===e?i.updateQueryHandler(n.componentId,e,n):i.setValue("",!0):i.updateQueryHandler(n.componentId,e,n)):i.handleTextChange(e),i.$emit("valueChange",e),i.$emit("value-change",e),e===i.lastUsedQuery?(i.suggestions=i.onSuggestions(i.suggestions),i.$emit("suggestions",i.suggestions)):e||(i.suggestions=[],i.$emit("suggestions",i.suggestions))}))},updateDefaultQueryHandler:function(e,t){var n,r=Ds.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=$s(o),rr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,We({},this.queryOptions,n),!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:$.dataSearch})},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,i=n.filterLabel,a=n.showFilter,s=n.URLParams,u=Ds.defaultQuery(t,n);if(o){var l=o(t,n),c=l.query;c&&(u=c),r=$s(l),or(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,We({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:i,showFilter:a,URLParams:s,componentType:"DATASEARCH"})},handleFocus:function(e){this.isOpen=!0,this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&(this.isPending=!1,this.setValue(t[0][0].transcript.trim(),!0))},triggerQuery:function(e){var t=(void 0!==e&&e).isOpen,n=void 0!==t&&t;void 0!==this.$props.value&&(this.isPending=!1,this.setValue(this.$props.value,!n))},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.suggestionsList.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.isPending=!1,this.setValue("",!0),this.onValueSelectedHandler("",Be.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0!==this.$props.value&&(this.isPending=!0),"Enter"===e.key&&null===t&&(this.setValue(e.target.value,!0),this.onValueSelectedHandler(e.target.value,Be.ENTER_PRESS)),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=e.target.value;this.$data.isOpen||(this.isOpen=!0),void 0===this.$props.value?this.setValue(t):(this.isPending=!0,this.$emit("change",t,this.triggerQuery,e))},onSuggestionSelected:function(e){var t=this.$props.value;this.triggerClickAnalytics(e._click_id),void 0===t?this.setValue(e.value,!0,this.$props,Be.SUGGESTION_SELECT):(this.isPending=!1,this.$emit("change",e.value,this.triggerQuery)),this.onValueSelectedHandler(e.value,Be.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(es):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(Ha,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[Xn(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(ts):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,s=this.$data,u=s.isOpen,l=s.currentValue;return!i||!u||e.length||this.isLoading||!l||a&&this.error?null:t(Ha,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(Oa,[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(Oa,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,a=t.showVoiceSearch,s=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(xa,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(Qa,{on:{click:this.clearValue},attrs:{showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(ys,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:Ps(o,"mic")||null}}),"right"===n&&s&&e(Qa,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(xa,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&s&&e(Qa,{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;sr(n)||(Yi(function(e){if(sr(e))return[];var t=[];return e.forEach((function(e){if("string"==typeof e)if("string"==typeof(a=e)&&-1!==a.indexOf("+")){for(var n,r=e.split("+"),o=[],i=0;i<r.length;i+=1)ur(r[i])?o.push(lr(+r[i])):o.push(r[i]);n=o.join("+"),t.push(n)}else ur(e)?t.push(lr(+e)):t.push(e);else t.push(lr(e));var a})),t}(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),Yi("*",(function(t){var r=n.filter((function(e){return cr.includes(e)}));if(0!==r.length)for(var o=0;o<r.length;o+=1){if(Yi[r[o]]){e.focusSearchBox(t);break}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,i=n.expandSuggestionsContainer,a=this.$scopedSlots,s=a.recentSearchesIcon,u=a.popularSearchesIcon,l=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return t(Ua,{class:this.$props.className},[this.$props.title&&t(jr,{class:Ps(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(Na,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var a=n.getInputEvents,c=n.getInputProps,p=n.getItemProps,d=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&l?t("ul",{class:$a(e.themePreset,r)+" "+Ps(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:We({},p({item:n})),on:We({},d({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(Ja,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:We({},p({item:n})),on:We({},d({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[n.source&&n.source._recent_search&&t(vs,{attrs:{className:Ps(e.$props.innerClass,"recent-search-icon")||null,icon:s,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(vs,{attrs:{className:Ps(e.$props.innerClass,"popular-search-icon")||null,icon:u,type:"popular-search-icon"}})]),t(Ja,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),ar(e)?e.getComponent({isOpen:h,getItemProps:p,getItemEvents:d,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:We({},p({item:n})),on:We({},d({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[t(vs,{attrs:{className:Ps(e.$props.innerClass,"popular-search-icon")||null,icon:u,type:"popular-search-icon"}})]),t(Ja,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:Ra},[t(ta,[e.renderInputAddonBefore(),t(ba,[t(Pa,{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:Ps(e.$props.innerClass,"input"),on:We({},a({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:We({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!i&&m()])," ",e.renderInputAddonAfter()]),i&&m()])}}}):t("div",{class:Ra},[t(ta,[this.renderInputAddonBefore(),t(ba,[t(Pa,{class:Ps(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:We({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:function(t){e.$emit("keyDown",t,e.triggerQuery),e.$emit("key-down",t,e.triggerQuery)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:We({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=js(t.dataField,t.fieldWeights);n={bool:{should:Ds.shouldQuery(e,r,t),minimum_should_match:"1"}}}return""===e&&(n=null),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)},highlightQuery:function(e){if(e.customHighlight)return e.customHighlight(e);if(!e.highlight)return null;var t={},n=e.highlightField?e.highlightField:e.dataField;return"string"==typeof n?t[n]={}:Array.isArray(n)&&n.forEach((function(e){t[e]={}})),{highlight:We({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}}},Fs=wr(Kn((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],isLoading:!!e.isLoading[t.componentId+"_active"],themePreset:e.config.themePreset,error:e.error[t.componentId],analytics:e.analytics,enableAppbase:e.config.enableAppbase,headers:e.appbaseRef.headers,promotedResults:e.promotedResults[t.componentId]||[],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,popularSuggestions:e.querySuggestions[t.componentId],defaultPopularSuggestions:e.defaultPopularSuggestions[t.componentId],componentProps:e.props[t.componentId],lastUsedQuery:e.queryToHits[t.componentId],recentSearches:e.recentSearches.data}}),{setQueryOptions:Os,updateQuery:bs,setCustomQuery:Cs,setDefaultQuery:ws,setCustomHighlightOptions:Ss,recordSuggestionClick:_s,loadPopularSuggestions:Ts,getRecentSearches:Es})(Ds),{componentType:$.dataSearch,internalComponent:!0});Ds.install=function(e){e.component(Ds.name,Fs)},Ds.componentType=$.dataSearch;var Ms="15px",Ns="15px",Us="4px",qs=xt(as||(as=Ke(["\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"]))),Hs=xt(ss||(ss=Ke(["\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"]))),zs=function(e){var t=e.theme;return xt(us||(us=Ke(["\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"])),qs,Sn(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||Sn(.1,t.colors.textColor),t.colors.primaryColor,Ms,Ms,Ns,t.colors.primaryColor,Us,Ms,Us,Ns,Us,Ns,Us)},Bs=Dt("input")(ls||(ls=Ke(["\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"])),zs,(function(e){return e.show?null:Hs}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Gs=Dt("input")(cs||(cs=Ke(["\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"])),zs,(function(e){return e.show?null:Hs}),Ms,Ms,Ms,Ns,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Ws=Dt("ul")(ps||(ps=Ke(["\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"]))),Ys=Ge.getAggsOrder,Ks=function(e,t){var n,r=e,o=t.dataField,i=t.size,a=t.sortBy,s=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:We({field:o,size:i,order:Ys(a||"count")},s?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),We({},r,function(e){var t={};if(e.defaultQuery){var n=e.defaultQuery([],e);n&&(n.query&&(t.query=n.query),n.aggs&&(t.aggs=n.aggs))}return t}(t))},Xs=ze.updateQuery,Zs=ze.setQueryOptions,Js=ze.setCustomQuery,eu=ze.setDefaultQuery,tu=Ge.getQueryOptions,nu=Ge.checkValueChange,ru=Ge.getClassName,ou=Ge.getOptionsFromQuery,iu=Ge.isEqual,au={name:"SingleList",props:{beforeValueChange:Qn.func,className:gt.string.def(""),componentId:Qn.stringRequired,customQuery:Qn.func,dataField:Qn.stringRequired,defaultValue:Qn.string,value:Qn.value,defaultQuery:Qn.func,filterLabel:Qn.string,innerClass:Qn.style,placeholder:gt.string.def("Search"),react:Qn.react,render:Qn.func,renderItem:Qn.func,renderNoResults:gt.any,transformData:Qn.func,selectAllLabel:Qn.string,showCount:gt.bool.def(!0),showFilter:gt.bool.def(!0),showRadio:gt.bool.def(!0),showSearch:gt.bool.def(!0),size:gt.number,sortBy:gt.oneOf(["asc","desc","count"]).def("count"),title:Qn.title,URLParams:gt.bool.def(!1),showMissing:gt.bool.def(!1),missingLabel:gt.string.def("N/A"),nestedField:Qn.string,index:gt.string,enableStrictSelection:gt.bool.def(!1)},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:[],or(this.componentId,this.setCustomQuery,this.$props,this.currentValue),rr(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){iu(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return Xn(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||he(String(t.key)).toLowerCase().includes(he(e.$data.searchTerm.toLowerCase())))}));return t(Ua,{class:this.$props.className},[this.$props.title&&t(jr,{class:ru(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Ws,{class:ru(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(Bs,{class:ru(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,show:this.$props.showRadio},on:{click:this.handleClick},domProps:We({},{checked:this.$data.currentValue===r})}),t("label",{class:ru(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.currentValue===String(n.key)?"active":""},[t(Bs,{class:ru(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:We({},{checked:e.currentValue===String(n.key)})}),t("label",{class:ru(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:ru(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="");nu(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,r=au.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=ou(o),rr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,n,!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:$.singleList})},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=au.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=ou(r(e,t)),or(t.componentId,this.setCustomQuery,t,e));this.setQueryOptions(t.componentId,n,!1),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:$.singleList})},generateQueryOptions:function(e){var t=tu(e);return Ks(t,e)},updateQueryHandlerOptions:function(e){var t=au.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=ou(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,We({},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(Pa,{class:ru(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return Jn(i,this)},handleClick:function(e){var t=e;return nr(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:ru(this.$props.innerClass,"noResults")||null},[Xn(t)?t():t])}},computed:{hasCustomRenderer:function(){return er(this)}},generateQueryOptions:function(e){var t=tu(e);return Ks(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}},su=wr(Kn((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Zs,updateQuery:Xs,setCustomQuery:Js,setDefaultQuery:eu})(au),{componentType:$.singleList,internalComponent:!0});au.install=function(e){e.component(au.name,su)},au.componentType=$.singleList;var uu,lu,cu,pu,du=ze.updateQuery,hu=ze.setQueryOptions,fu=ze.setCustomQuery,gu=ze.setDefaultQuery,mu=Ge.isEqual,yu=Ge.getQueryOptions,vu=Ge.checkValueChange,bu=Ge.getClassName,Ou=Ge.getOptionsFromQuery,Cu={name:"MultiList",props:{defaultValue:Qn.stringArray,value:Qn.stringArray,queryFormat:gt.oneOf(["and","or"]).def("or"),showCheckbox:gt.bool.def(!0),beforeValueChange:Qn.func,className:gt.string.def(""),componentId:Qn.stringRequired,customQuery:Qn.func,dataField:Qn.stringRequired,defaultQuery:Qn.func,filterLabel:Qn.string,innerClass:Qn.style,placeholder:gt.string.def("Search"),react:Qn.react,render:Qn.func,renderItem:Qn.func,renderError:Qn.title,renderNoResults:gt.any,transformData:Qn.func,selectAllLabel:Qn.string,showCount:gt.bool.def(!0),showFilter:gt.bool.def(!0),showSearch:gt.bool.def(!0),size:gt.number.def(100),sortBy:gt.oneOf(["asc","desc","count"]).def("count"),title:Qn.title,URLParams:gt.bool.def(!1),showMissing:gt.bool.def(!1),missingLabel:gt.string.def("N/A"),nestedField:Qn.string,index:gt.string},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:[],or(this.componentId,this.setCustomQuery,this.$props,this.currentValue),rr(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,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},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){mu(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){mu(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])),mu(n,e)||this.setValue(e||[],!0)},defaultQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return Xn(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||he(String(t.key)).toLowerCase().includes(he(e.$data.searchTerm).toLowerCase()))}));return t(Ua,{class:this.$props.className},[this.$props.title&&t(jr,{class:bu(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Ws,{class:bu(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(Gs,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:bu(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:We({},{checked:!!this.currentValue[r]})}),t("label",{class:bu(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.$data.currentValue[n.key]?"active":""},[t(Gs,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:bu(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:We({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:bu(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:bu(e.$props.innerClass,"count")},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},e&&e.length&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],Ye(s,[o].map(Xe)));i=We({},u)}}else{if(i[e]){var l=i,c=(l[e],Ye(l,[e].map(Xe)));i=We({},c)}else Array.isArray(e)?e.forEach((function(e){i[e]=!0})):i[e]=!0;if(o&&o in i){var p=i,d=(p[o],Ye(p,[o].map(Xe)));i=We({},d)}a=Object.keys(i)}vu(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},i),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n,r=Cu.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=Ou(o),rr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,n,!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:$.multiList})},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=Cu.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=Ou(r(e,t)),or(t.componentId,this.setCustomQuery,t,e));this.setQueryOptions(t.componentId,n,!1),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:$.multiList})},generateQueryOptions:function(e){var t=yu(e);return Ks(t,e)},updateQueryHandlerOptions:function(e){var t=Cu.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=Ou(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,We({},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(Pa,{class:bu(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;nr(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=Zn(n,t);this.$emit("change",r)}},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return Jn(i,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:bu(this.$props.innerClass,"noResults")||null},[Xn(t)?t():t])}},computed:{hasCustomRenderer:function(){return er(this)}},defaultQuery:function(e,t){var n=null,r="or"===t.queryFormat?"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 o;if("or"===t.queryFormat)if(t.showMissing){var i,a,s=e.includes(t.missingLabel),u=[(a={},a[r]=(i={},i[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),i),a)];s&&(u=u.concat({bool:{must_not:{exists:{field:t.dataField}}}})),o={bool:{should:u}}}else{var l,c;(c={})[r]=((l={})[t.dataField]=e,l),o=c}else o={bool:{must:e.map((function(e){var n,o;return(o={})[r]=((n={})[t.dataField]=e,n),o}))}};n=e.length?o:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=yu(e);return Ks(t,e)}},wu=wr(Kn((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:hu,updateQuery:du,setCustomQuery:fu,setDefaultQuery:gu})(Cu),{componentType:$.multiList,internalComponent:!0});Cu.install=function(e){e.component(Cu.name,wu)},Cu.componentType=$.multiList;var Su,_u,Tu=xt(uu||(uu=Ke(["\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"]))),Eu=function(e){var t=e.theme;return xt(lu||(lu=Ke(["\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)},Iu=Dt("button")(cu||(cu=Ke(["\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?Tu:null}),(function(e){return"dark"===e.themePreset&&Eu})),Au=Dt("span")(pu||(pu=Ke(["\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})),Pu=xt(Su||(Su=Ke(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),$u=Dt("span")(_u||(_u=Ke(["\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?Pu:null})),Ru=Ge.getClassName,ku={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:Qn.style,items:Qn.data,keyField:gt.string.def("key"),labelField:gt.string.def("label"),multi:gt.bool,placeholder:Qn.string,returnsObject:gt.bool,customLabelRenderer:Qn.func,hasCustomRenderer:gt.bool,customRenderer:Qn.func,renderItem:Qn.func,renderNoResults:gt.any,handleChange:Qn.func,transformData:Qn.func,selectedItem:Qn.selectedValue,showCount:gt.bool,single:gt.bool,small:gt.bool.def(!1),themePreset:Qn.themePreset,showSearch:gt.bool,showClear:gt.bool,searchPlaceholder:gt.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,i=n.placeholder,a=n.labelField,s=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,p=n.footer,d=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,g=r;c&&(g=c(g));var m=g.filter((function(t){return!!String(t[a]).length&&(!e.$props.showSearch||!e.$data.searchTerm||he(String(t[a])).toLowerCase().includes(he(e.$data.searchTerm.toLowerCase())))}));return t(Na,{attrs:{isOpen:this.$data.isOpen,selectedItem:o,handleChange:this.onChange,handleMouseup:this.handleStateChange},scopedSlots:{default:function(n){var r=n.getItemProps,c=n.isOpen,y=n.highlightedIndex,v=n.getButtonProps,b=n.getItemEvents;return t("div",{class:Ra},[t(Iu,{on:We({},We({},v({onClick:e.toggle}))),class:Ru(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):i,small:e.$props.small,themePreset:e.$props.themePreset}},[d?d(o):t("div",[o?e.renderToString(o):i]),t($u,{attrs:{open:c}})]),h?f(g,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:b}):c&&g.length?t("ul",{class:$a(u,e.theme)+" "+(e.$props.small?"small":"")+" "+Ru(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox():null,h||0!==m.length?m.map((function(n,i){var u=e.$props.multi&&(o&&!!o[n[s]]||Array.isArray(o)&&o.find((function(e){return e[a]===n[a]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:We({},r({item:n})),on:We({},b({item:n})),key:n[s],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===i,u)}},[l?l({label:n[a],count:n.doc_count,isChecked:u&&e.$props.multi}):t("div",["string"==typeof n[a]?t("span",{domProps:{innerHTML:n[a]}}):n[a],e.$props.showCount&&n.doc_count&&t("span",{class:Ru(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(Au,{class:Ru(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:Ru(this.$props.innerClass,"noResults")||null},[Xn(t)?t():t])},renderSearchbox:function(){var e=this.$createElement,t=this.$props,n=t.componentId,r=t.searchPlaceholder,o=t.showClear,i=t.themePreset,a=t.innerClass,s=e(Pa,{attrs:{id:n+"-input",showIcon:!1,showClear:o,placeholder:r,value:this.$data.searchTerm,themePreset:i},style:{border:0,borderBottom:"1px solid #ddd"},class:Ru(a,"input"),on:{change:this.handleInputChange}});return o?e(ba,[s,this.searchTerm&&e(xa,{attrs:{groupPosition:"right",positionType:"absolute"}},[e(Qa,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[e(ts)])])]):s}}},xu=ze.updateQuery,Qu=ze.setQueryOptions,Vu=ze.setCustomQuery,Lu=ze.setDefaultQuery,ju=Ge.getQueryOptions,Du=Ge.checkValueChange,Fu=Ge.checkPropChange,Mu=Ge.getClassName,Nu=Ge.getOptionsFromQuery,Uu=Ge.isEqual,qu=Ge.getCompositeAggsQuery,Hu={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:Qn.func,className:gt.string.def(""),componentId:Qn.stringRequired,customQuery:Qn.func,dataField:Qn.stringRequired,defaultQuery:Qn.func,defaultValue:Qn.string,value:Qn.value,filterLabel:Qn.string,innerClass:Qn.style,placeholder:gt.string.def("Select a value"),react:Qn.react,renderLabel:Qn.func,render:Qn.func,renderItem:Qn.func,renderError:Qn.title,renderNoResults:gt.any,transformData:Qn.func,selectAllLabel:Qn.string,showCount:gt.bool.def(!0),showFilter:gt.bool.def(!0),size:gt.number.def(100),sortBy:gt.oneOf(["asc","desc","count"]).def("count"),title:Qn.title,URLParams:gt.bool.def(!1),showMissing:gt.bool.def(!1),missingLabel:gt.string.def("N/A"),showSearch:gt.bool.def(!1),showClear:gt.bool.def(!1),showLoadMore:gt.bool.def(!1),loadMoreLabel:gt.oneOfType([gt.string,gt.any]).def("Load More"),nestedField:Qn.string,index:gt.string,searchPlaceholder:gt.string.def("Type here to search...")},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:[],or(this.componentId,this.setCustomQuery,this.$props,this.currentValue),rr(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&&Fu(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){Uu(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||i,p=this.$scopedSlots.renderLabel||a,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?Xn(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel}]),e(Ua,{class:this.$props.className},[this.$props.title&&e(jr,{class:Mu(this.$props.innerClass,"title")||""},[this.$props.title]),e(ku,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return We({},e,{key:String(e.key)})}))),handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",showCount:this.$props.showCount,hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,renderItem:l,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,themePreset:this.themePreset,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!s&&e("div",{attrs:{css:Rn}},[e($n,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:p}})])):d&&Xn(d)?e("div",[d()]):d&&!Xn(d)?d:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);Du(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,r=Hu.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=Nu(o),rr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,n,!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:$.singleDropdownList})},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=Hu.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=Nu(r(e,t)),or(t.componentId,this.setCustomQuery,t,e));this.setQueryOptions(t.componentId,n,!1),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:$.singleDropdownList})},generateQueryOptions:function(e,t){var n=ju(e);return e.showLoadMore?qu({query:n,props:e,after:t}):Ks(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Hu.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=Nu(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,We({},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 Jn(r,this)}},computed:{hasCustomRenderer:function(){return er(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=ju(e);return e.showLoadMore?qu({query:n,props:e,after:t}):Ks(n,e)}},zu=wr(Kn((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Qu,updateQuery:xu,setCustomQuery:Vu,setDefaultQuery:Lu})(Hu),{componentType:$.singleDropdownList,internalComponent:!0});Hu.install=function(e){e.component(Hu.name,zu)},Hu.componentType=$.singleDropdownList;var Bu=ze.updateQuery,Gu=ze.setQueryOptions,Wu=ze.setCustomQuery,Yu=ze.setDefaultQuery,Ku=Ge.isEqual,Xu=Ge.getQueryOptions,Zu=Ge.checkValueChange,Ju=Ge.checkPropChange,el=Ge.getClassName,tl=Ge.getOptionsFromQuery,nl=Ge.getCompositeAggsQuery,rl={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:Qn.func,className:gt.string.def(""),componentId:Qn.stringRequired,customQuery:Qn.func,dataField:Qn.stringRequired,defaultValue:Qn.stringArray,value:Qn.stringArray,defaultQuery:Qn.func,filterLabel:Qn.string,innerClass:Qn.style,placeholder:gt.string.def("Select values"),queryFormat:gt.oneOf(["and","or"]).def("or"),react:Qn.react,renderLabel:Qn.func,render:Qn.func,renderItem:Qn.func,renderError:Qn.title,renderNoResults:gt.any,transformData:Qn.func,selectAllLabel:Qn.string,showCount:gt.bool.def(!0),showFilter:gt.bool.def(!0),size:gt.number.def(100),sortBy:gt.oneOf(["asc","desc","count"]).def("count"),title:Qn.title,URLParams:gt.bool.def(!1),showMissing:gt.bool.def(!1),missingLabel:gt.string.def("N/A"),showSearch:gt.bool.def(!1),showClear:gt.bool.def(!1),showLoadMore:gt.bool.def(!1),loadMoreLabel:gt.oneOfType([gt.string,gt.any]).def("Load More"),nestedField:Qn.string,index:gt.string,searchPlaceholder:gt.string.def("Type here to search...")},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:[],or(this.componentId,this.setCustomQuery,this.$props,this.currentValue),rr(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])),Ku(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&Ju(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0)},value:function(e,t){Ku(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||i,l=this.$scopedSlots.renderLabel||a,c=this.$data.isLastBucket,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,d=[];return u&&this.error?Xn(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(d=[{key:this.$props.selectAllLabel}]),e(Ua,{class:this.$props.className},[this.$props.title&&e(jr,{class:el(this.$props.innerClass,"title")||""},[this.$props.title]),e(ku,{attrs:{innerClass:this.$props.innerClass,items:[].concat(d,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return We({},e,{key:String(e.key)})}))),hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",multi:!0,showCount:this.$props.showCount,themePreset:this.themePreset,renderItem:s,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!c&&e("div",{attrs:{css:Rn}},[e($n,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):p&&Xn(p)?e("div",[p()]):p&&!Xn(p)?p:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=Zn(this.currentValue,e);this.$emit("change",t)}},setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&e.includes(o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},Array.isArray(e)&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],Ye(s,[o].map(Xe)));i=We({},u)}}else{if(i[e]){var l=i,c=(l[e],Ye(l,[e].map(Xe)));i=We({},c)}else i[e]=!0;if(o&&o in i){var p=i,d=(p[o],Ye(p,[o].map(Xe)));i=We({},d)}a=Object.keys(i)}Zu(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=i,r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n,r=rl.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=tl(o),rr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,n,!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:$.multiDropdownList})},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=rl.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=tl(r(e,t)),or(t.componentId,this.setCustomQuery,t,e));this.setQueryOptions(t.componentId,n,!1),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:$.multiDropdownList})},generateQueryOptions:function(e,t){var n=Xu(e);return e.showLoadMore?nl({query:n,props:e,after:t}):Ks(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=rl.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=tl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,We({},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 Jn(r,this)}},computed:{hasCustomRenderer:function(){return er(this)}},defaultQuery:function(e,t){var n=null,r="or"===t.queryFormat?"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 o;if("or"===t.queryFormat)if(t.showMissing){var i,a,s=e.includes(t.missingLabel),u=[(a={},a[r]=(i={},i[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),i),a)];s&&(u=u.concat({bool:{must_not:{exists:{field:t.dataField}}}})),o={bool:{should:u}}}else{var l,c;(c={})[r]=((l={})[t.dataField]=e,l),o=c}else o={bool:{must:e.map((function(e){var n,o;return(o={})[r]=((n={})[t.dataField]=e,n),o}))}};n=e.length?o:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Xu(e);return e.showLoadMore?nl({query:n,props:e,after:t}):Ks(n,e)}},ol=wr(Kn((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Gu,updateQuery:Bu,setCustomQuery:Wu,setDefaultQuery:Yu})(rl),{componentType:$.multiDropdownList,internalComponent:!0});rl.install=function(e){e.component(rl.name,ol)},rl.componentType=$.multiDropdownList;var il=ze.updateQuery,al=ze.setQueryOptions,sl=ze.setCustomQuery,ul=Ge.isEqual,ll=Ge.checkValueChange,cl=Ge.getClassName,pl=Ge.getOptionsFromQuery,dl=Ge.handleA11yAction,hl={name:"ToggleButton",props:{componentId:Qn.stringRequired,data:Qn.data,dataField:Qn.stringRequired,defaultValue:Qn.any,value:Qn.stringOrArray,filterLabel:Qn.string,nestedField:Qn.string,innerClass:Qn.style,multiSelect:gt.bool,react:Qn.react,showFilter:gt.bool,title:Qn.title,URLParams:gt.bool,renderItem:Qn.func,index:gt.string,enableStrictSelection:gt.bool},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=hl.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`."),or(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(hl.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){ul(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)ul(this.$data.currentValue,e)||ul(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;ul(n,this.selectedValue)||ul(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQuery(this.$data.currentValue,this.$props)}},methods:{handleToggle:function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!0);var o=this.$data.currentValue,i=e,a=[];a=t?hl.parseValue(i,n):this.$props.multiSelect?o.some((function(e){return e.value===i.value}))?o.filter((function(e){return e.value!==i.value})):o.concat(i):o.some((function(e){return e.value===i.value}))?[]:[i],this.setValue(a,n,r)},setReact:function(e){e.react&&this.watchComponent(e.componentId,e.react)},setValue:function(e,t,n){var r=this;void 0===t&&(t=this.$props),void 0===n&&(n=!0);ll(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=hl.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,pl(r(e,t)),!1),or(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:$.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return ul(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($n,{class:cl(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return dl(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(Ua,{class:En},[this.$props.title&&t(jr,{class:cl(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}},fl=wr(Kn((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQueryHandler:il,setQueryOptions:al,setCustomQuery:sl})(hl),{componentType:$.toggleButton});hl.install=function(e){e.component(hl.name,fl)},hl.componentType=$.toggleButton;var gl=["options"],ml=["query"],yl=["query"],vl=["query"],bl=ze.updateQuery,Ol=ze.setQueryOptions,Cl=ze.setCustomQuery,wl=ze.setDefaultQuery,Sl=Ge.parseHits,_l=Ge.isEqual,Tl=Ge.getCompositeAggsQuery,El=Ge.getOptionsFromQuery,Il=Ge.getResultStats,Al={name:"ReactiveComponent",props:{componentId:Qn.stringRequired,aggregationField:Qn.string,aggregationSize:gt.number,size:gt.number.def(20),defaultQuery:Qn.func,customQuery:Qn.func,filterLabel:Qn.string,react:Qn.react,showFilter:gt.bool.def(!0),URLParams:gt.bool.def(!1),distinctField:Qn.string,distinctFieldConfig:Qn.props,index:gt.string},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,or(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,i=t.showFilter,a=t.URLParams,s=t.distinctField,u=t.distinctFieldConfig,l=t.index;if(this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!s&&!u||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&l&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),n){var c=n(this.selectedValue,t),p=(c||{}).query,d=c?El(c):null;d?this.setQueryOptions(r,We({},d,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1);var h=p||null;c&&c.id&&(h=c),this.updateQuery({componentId:r,query:h,value:this.selectedValue||null,label:o,showFilter:i,URLParams:a})}this.setQuery=function(n){var r=n.options,o=Ye(n,gl);r&&e.setQueryOptions(t.componentId,We({},r,e.getAggsQuery()),!1);var i=o.query;if(o&&o.query&&o.query.query&&(i=o.query.query),o&&o.query||r){var a=We({},r);o&&o.query&&(o.query.id?a=i:a.query=o.query),e.setCustomQuery(t.componentId,a)}e.updateQuery(We({},o,{componentId:t.componentId,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams}))},t.defaultQuery&&(this.internalComponent=t.componentId+"__internal")},beforeMount:function(){if(this.internalComponent&&this.$props.defaultQuery){rr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var e=this.$defaultQuery||{},t=e.query,n=Ye(e,ml);n?this.setQueryOptions(this.internalComponent,We({},n,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1);var r=t||null;!r&&this.$defaultQuery&&this.$defaultQuery.id&&(r=this.$defaultQuery),this.updateQuery({componentId:this.internalComponent,query:r})}},watch:{hits:function(e,t){_l(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){_l(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){_l(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){_l(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){_l(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){_l(e,t)||this.$emit("data",this.getData())},total:function(e,t){_l(e,t)||this.$emit("data",this.getData())},time:function(e,t){_l(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!ir(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=this.$defaultQuery||{},r=n.query,o=Ye(n,yl);o?this.setQueryOptions(this.internalComponent,We({},o,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),rr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue);var i=r||null;!i&&this.$defaultQuery&&this.$defaultQuery.id&&(i=this.$defaultQuery),this.updateQuery({componentId:this.internalComponent,query:i})}},customQuery:function(e,t){if(e&&!ir(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=this.$customQuery||{},o=r.query,i=Ye(r,vl);i?this.setQueryOptions(n,We({},i,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),or(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var a=o||null;this.$customQuery&&this.$customQuery.id&&(a=this.$customQuery),this.updateQuery({componentId:n,query:a})}}},render:function(){var e=arguments[0];try{var t=this.$scopedSlots.default,n=this.error,r=this.isLoading,o=this.selectedValue,i=We({error:n,loading:r},this.getData(),{value:o,setQuery:this.setQuery});return e("div",[t(i)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:Tl({props:this.$props,showTopHits:!0,value:this.selectedValue}).aggs}:{}},getData:function(){var e=this.hits,t=this.aggregations,n=this.aggregationData,r=this.promotedResults,o=this.rawData,i=Sl(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(i=i.filter((function(e){return!a.includes(e._id)}))),i=[].concat(r,i)}return{data:i,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return Il(this)}}},Pl=wr(Kn((function(e,t){return{aggregations:e.aggregations[t.componentId]&&e.aggregations[t.componentId]||null,aggregationData:e.compositeAggregations[t.componentId]||[],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits||[],rawData:e.rawData[t.componentId],error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,promotedResults:e.promotedResults[t.componentId]||[],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Ol,updateQuery:bl,setCustomQuery:Cl,setDefaultQuery:wl})(Al),{componentType:$.reactiveComponent});Al.install=function(e){e.component(Al.name,Pl)},Al.componentType=$.reactiveComponent;var $l=ze.setValue,Rl=ze.clearValues,kl=ze.resetValuesToDefault,xl=Ge.getClassName,Ql=Ge.handleA11yAction,Vl={name:"SelectedFilters",props:{className:gt.string.def(""),clearAllLabel:gt.string.def("Clear All"),innerClass:Qn.style,showClearAll:gt.bool.def(!0),title:Qn.title,resetToDefault:gt.bool.def(!1),resetToValues:gt.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,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var n=this.renderFilters(),r=!!n.length;return t(Ua,{class:_n(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(jr,{class:xl(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r?t($n,{class:xl(this.$props.innerClass,"button")||"",on:We({},{click:this.clearValues,keypress:function(t){return Ql(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;e?this.resetValuesToDefault():this.clearValuesAction(t),this.$emit("clear",t)},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},renderFilters:function(){var e=this,t=this.$createElement,n=this.selectedValues;return Object.keys(n).filter((function(t){return e.components.includes(t)&&n[t].showFilter})).map((function(r,o){var i=n[r],a=i.label,s=i.value,u=Array.isArray(s);if(a&&(u&&s.length||!u&&s)){var l=e.renderValue(s,u);return t($n,{class:xl(e.$props.innerClass,"button")||"",key:r+"-"+(o+1),on:We({},{click:function(){return e.remove(r,s)},keypress:function(t){return Ql(t,(function(){return e.remove(r,s)}))}}),attrs:{tabIndex:"0"}},[t("span",[n[r].label,": ",l]),t("span",["✕"])])}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},Ll=Kn((function(e){return{components:e.components,selectedValues:e.selectedValues}}),{clearValuesAction:Rl,setValue:$l,resetValuesToDefault:kl})(Vl);Vl.install=function(e){e.component(Vl.name,Ll)};var jl=ze.updateQuery,Dl=ze.setQueryOptions,Fl=ze.setCustomQuery,Ml=Ge.isEqual,Nl=Ge.checkValueChange,Ul=Ge.getClassName,ql=Ge.getOptionsFromQuery,Hl={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:Qn.func,className:gt.string.def(""),componentId:Qn.stringRequired,customQuery:Qn.func,data:Qn.data,dataField:Qn.stringRequired,defaultValue:Qn.string,value:Qn.value,filterLabel:Qn.string,innerClass:Qn.style,react:Qn.react,showFilter:gt.bool.def(!0),showRadio:gt.bool.def(!0),title:Qn.title,URLParams:gt.bool.def(!1),nestedField:Qn.string,index:gt.string},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`."),or(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){Ml(e,t)||this.setValue(e)},selectedValue:function(e){Ml(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0];return t(Ua,{class:this.$props.className},[this.$props.title&&t(jr,{class:Ul(this.$props.innerClass,"title")},[this.$props.title]),t(Ws,{class:Ul(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(Bs,{class:Ul(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:Ul(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=Hl.parseValue(e,t);Nl(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,r=t.customQuery,o=Hl.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=ql(r(e,t)),or(this.componentId,this.setCustomQuery,this.$props,this.currentValue));this.setQueryOptions(t.componentId,n,!1),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:$.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}},zl=wr(Kn((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:jl,setQueryOptions:Dl,setCustomQuery:Fl})(Hl),{componentType:$.singleRange});Hl.install=function(e){e.component(Hl.name,zl)},Hl.componentType=$.singleRange;var Bl=ze.updateQuery,Gl=ze.setQueryOptions,Wl=ze.setCustomQuery,Yl=Ge.isEqual,Kl=Ge.checkValueChange,Xl=Ge.getClassName,Zl=Ge.getOptionsFromQuery,Jl={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:Qn.func,className:gt.string.def(""),componentId:Qn.stringRequired,customQuery:Qn.func,data:Qn.data,dataField:Qn.stringRequired,defaultValue:Qn.stringArray,value:Qn.stringArray,filterLabel:Qn.string,innerClass:Qn.style,react:Qn.react,showFilter:gt.bool.def(!0),showCheckbox:gt.bool.def(!0),title:Qn.title,URLParams:gt.bool.def(!1),nestedField:Qn.string,index:gt.string},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=Zn(this.selectedValues,e.target.value);this.$emit("change",t)}},selectItem:function(e,t,n,r){var o=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!1);var i=this.currentValue,a=this.selectedValues;if(e)if(t){i=Jl.parseValue(e,n);var s={};i.forEach((function(e){s[[e.label]]=!0})),a=r?s:We({},a,s)}else if(a[e]){i=i.filter((function(t){return t.label!==e}));var u=a,l=(u[e],Ye(u,[e].map(Xe)));a=l}else{var c,p=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));i=[].concat(i,p),a=We({},a,((c={})["object"==typeof e?e.label:e]=!0,c))}else i=[],a={};Kl(n.componentId,i,n.beforeValueChange,(function(){o.currentValue=i,o.selectedValues=a,o.updateQueryHandler(i,n),o.$emit("valueChange",Object.keys(a)),o.$emit("value-change",Object.keys(a))}))},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=Jl.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=Zl(r(e,t)),or(this.componentId,this.setCustomQuery,this.$props,this.currentValue));this.setQueryOptions(t.componentId,n,!1),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:$.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){Yl(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){Yl(this.$data.currentValue,e)||this.selectItem(e,!0,void 0,!0)},customQuery:function(e,t){ir(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`."),or(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(Ua,{class:this.$props.className},[this.$props.title&&t(jr,{class:Xl(this.$props.innerClass,"title")},[this.$props.title]),t(Ws,{class:Xl(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(Gs,{class:Xl(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:We({},{checked:e.selectedValues[n.label]}),on:We({},{click:e.handleClick})}),t("label",{class:Xl(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}},ec=wr(Kn((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Bl,setQueryOptions:Gl,setCustomQuery:Wl})(Jl),{componentType:$.multiRange});Jl.install=function(e){e.component(Jl.name,ec)},Jl.componentType=$.multiRange;var tc,nc={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(jr,Lr([{},this.$props]),[t])},install:function(e){e.component(nc.name,nc)}},rc=["src"],oc={name:"ResultCardImage",props:{src:gt.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=Ye(t,rc);return e(to,Lr([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(oc.name,oc)}},ic={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Lr([{},n]),[r])},install:function(e){e.component(ic.name,ic)}},ac=["href","target"],sc={name:"ResultCard",components:{ResultCardTitle:nc,ResultCardImage:oc,ResultCardDescription:ic},props:{target:gt.string.def("_blank"),href:Qn.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,i=Ye(n,ac);return e(no,Lr([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},i]),[t])},install:function(e){e.component(sc.name,sc),e.component(nc.name,nc),e.component(oc.name,oc),e.component(ic.name,ic)}},uc={name:"ResultListContent",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Lr([{},n]),[r])},install:function(e){e.component(uc.name,uc)}},lc={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Lr([{},n]),[r])},install:function(e){e.component(lc.name,lc)}},cc=["src","small"],pc={name:"ResultListImage",props:{src:gt.string.isRequired,small:gt.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=Ye(t,cc);return e(Mr,Lr([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(pc.name,pc)}},dc={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(jr,Lr([{},this.$props]),[t])},install:function(e){e.component(dc.name,dc)}},hc=["href","target"],fc={name:"ResultList",props:{href:Qn.string,target:gt.string.def("_blank")},components:{ResultListContent:uc,ResultListDescription:lc,ResultListImage:pc,ResultListTitle:dc},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===pc.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=Ye(t,hc),i=this.hasImage,a=this.isSmall,s=this.$slots.default;return e(Nr,Lr([{attrs:{href:n,image:i,small:a,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[s])},install:function(e){e.component(fc.name,fc),e.component(uc.name,uc),e.component(lc.name,lc),e.component(pc.name,pc),e.component(dc.name,dc)}},gc={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,i=r(),a=i.default;void 0===a&&(a=[]);var s=i.placeholder;return n._isMounted?a:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||s)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||s):a.length>0?a.map((function(){return e(!1)})):e(!1))}},mc=Dt("div")(tc||(tc=Ke(["\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"]))),yc=function(){var e={NoSSR:gc};try{var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js"),t.onload=function(){var t=mt["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}catch(e){console.error("Unable to load vue-slider",e)}return e},vc=ze.updateQuery,bc=ze.setQueryOptions,Oc=ze.setCustomQuery,Cc=Ge.checkValueChange,wc=Ge.getClassName,Sc=Ge.getOptionsFromQuery,_c=Ge.isEqual,Tc={name:"RangeSlider",components:yc(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:Qn.func,className:gt.string.def(""),range:gt.shape({start:gt.integer.def(0),end:gt.integer.def(10)}),rangeLabels:Qn.rangeLabels,componentId:Qn.stringRequired,customQuery:Qn.func,data:Qn.data,dataField:Qn.stringRequired,defaultValue:Qn.range,value:Qn.range,filterLabel:Qn.string,innerClass:Qn.style,react:Qn.react,showFilter:gt.bool.def(!0),showCheckbox:gt.bool.def(!0),title:Qn.title,URLParams:gt.bool.def(!1),sliderOptions:gt.object.def({}),nestedField:Qn.string,index:gt.string},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);Cc(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,r=t.customQuery,o=Tc.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=Sc(r(e,t)),or(this.componentId,this.setCustomQuery,this.$props,this.currentValue));var i=t.showFilter,a=t.range,s=a.start,u=a.end,l=e[0],c=e[1],p=l===s&&c===u;this.setQueryOptions(t.componentId,n,!1),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:i&&!p,URLParams:t.URLParams,componentType:$.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(Tc.parseValue(e,this.$props))},value:function(e,t){_c(e,t)||this.handleChange(Tc.parseValue(e,this.$props))},selectedValue:function(e){_c(this.$data.currentValue,e)||(this.handleChange(Tc.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){ir(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`."),or(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(Tc.parseValue(r,this.$props)):t?this.handleChange(Tc.parseValue(t,this.$props)):n&&this.handleChange(Tc.parseValue(n,this.$props)))},render:function(){var e=arguments[0];return e(Ua,{class:this.$props.className},[this.$props.title&&e(jr,{class:wc(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(gc,[e(mc,{class:wc(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:We({},this.$props.sliderOptions)}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:wc(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:wc(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]:[]}},Ec=wr(Kn((function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:vc,setQueryOptions:bc,setCustomQuery:Oc})(Tc),{componentType:$.rangeSlider});Tc.install=function(e){e.component(Tc.name,Ec)},Tc.componentType=$.rangeSlider;var Ic=ze.addComponent,Ac=ze.removeComponent,Pc=ze.watchComponent,$c=ze.updateQuery,Rc=ze.setQueryListener,kc=ze.setQueryOptions,xc=ze.setComponentProps,Qc=ze.setCustomQuery,Vc=ze.updateComponentProps,Lc=Ge.checkValueChange,jc=Ge.getClassName,Dc=Ge.getOptionsFromQuery,Fc=Ge.isEqual,Mc=Ge.checkSomePropChange,Nc={name:"DynamicRangeSlider",components:yc(),props:{beforeValueChange:Qn.func,className:gt.string.def(""),rangeLabels:Qn.func,componentId:Qn.stringRequired,customQuery:Qn.func,data:Qn.data,dataField:Qn.stringRequired,defaultValue:Qn.func,filterLabel:Qn.string,innerClass:Qn.style,react:Qn.react,showFilter:gt.bool.def(!0),destroyOnUnmount:gt.bool,showCheckbox:gt.bool.def(!0),title:Qn.title,URLParams:gt.bool.def(!1),sliderOptions:gt.object.def({}),nestedField:Qn.string,index:gt.string},data:function(){return this.internalRangeComponent=this.$props.componentId+"__range__internal",{currentValue:null,stats:[]}},created:function(){var e=this;this.setQueryListener(this.$props.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),null),this.setComponentProps(this.componentId,this.$props,$.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,$.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`."),or(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},mounted:function(){this.setReact()},beforeMount:function(){var e=[];this.$$store&&(e=this.$$store.getState().components);(this.destroyOnUnmount||-1===e.indexOf(this.componentId))&&(this.addComponent(this.componentId),this.addComponent(this.internalRangeComponent),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue&&this.handleChange(Nc.parseValue(this.selectedValue,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:{setDefaultValue:function(e){var t=e.start,n=e.end;if(this.$props.defaultValue){var r=this.$props.defaultValue(t,n),o=r.start,i=r.end;this.handleChange([o,i])}else this.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();this.handleChange(e)},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]];Lc(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,n=Nc.defaultQuery(e,this.$props);this.$props.customQuery&&(n=(this.$props.customQuery(e,this.$props)||{}).query,t=Dc(this.$props.customQuery(e,this.$props)),or(this.componentId,this.setCustomQuery,this.$props,e));var r=this.range||{start:e[0],end:e[1]},o=r.start,i=r.end,a=e[0],s=e[1],u=a===o&&s===i;this.setQueryOptions(this.$props.componentId,t,!1),this.updateQuery({componentId:this.$props.componentId,query:n,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!u,URLParams:this.$props.URLParams,componentType:$.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=tr(e);Mc(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,$.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,$.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!Fc(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.handleChange(Nc.parseValue(t,this.$props))}},range:function(e,t){if(!Fc(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],i=t||{},a=i.start,s=i.end,u=r===a?e.start:r,l=o===s?e.end:o;this.handleChange([u,l])}},customQuery:function(e,t){ir(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)}},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(Ua,{class:this.$props.className},[this.$props.title&&e(jr,{class:jc(this.$props.innerClass,"title")},[this.$props.title]),e(gc,[e(mc,{class:jc(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:[Math.max(n,this.currentValue[0]),Math.min(r,this.currentValue[1])],min:Math.min(n,this.currentValue[0]),max:Math.max(r,this.currentValue[1]),dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:We({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:jc(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:jc(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.start,e.end]}},Uc=Kn((function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],i=e.aggregations[t.componentId+"__range__internal"];return t.nestedField?(o=o&&n[t.dataField][t.nestedField]&&n[t.dataField][t.nestedField].buckets?n[t.dataField][t.nestedField].buckets:[],i=i&&r[t.nestedField].min?{start:r[t.nestedField].min.value,end:r[t.nestedField].max.value}:null):(o=o&&n[t.dataField].buckets?n[t.dataField].buckets:[],i=i&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:i,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{addComponent:Ic,removeComponent:Ac,updateQuery:$c,watchComponent:Pc,setQueryListener:Rc,setQueryOptions:kc,setComponentProps:xc,setCustomQuery:Qc,updateComponentProps:Vc})(Nc);Nc.install=function(e){e.component(Nc.name,Uc)},Nc.componentType=$.dynamicRangeSlider;var qc=Ge.getSearchState,Hc=function(e){return void 0===e&&(e={}),We({},e,{props:e.componentProps})},zc=function(e,t){void 0===t&&(t={});var n,r=t.componentIds;if("string"==typeof r)return(n={})[r]=e[r],n;if(Array.isArray(r)){var o={};return r.forEach((function(t){o[t]=e[t]})),o}return e},Bc=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return We({},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))}),{})},Gc={name:"StateProvider",props:{onChange:gt.func,componentIds:gt.oneOfType([gt.string,gt.arrayOf(gt.string)]),includeKeys:gt.arrayOf(gt.string).def(["hits","value","aggregations","error"]),strict:gt.bool.def(!0)},data:function(){return this.__state={searchState:null},this.__state},created:function(){this.searchState=Bc(qc(Hc(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){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)},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=Bc(qc(Hc(this.searchStateProps)),this.includeKeys))}},render:function(){var e=this.searchState,t=this.$scopedSlots.default;return t?t({searchState:e}):null}},Wc=Kn((function(e,t){return{selectedValues:zc(e.selectedValues,t),queryLog:zc(e.queryLog,t),dependencyTree:zc(e.dependencyTree,t),componentProps:zc(e.props,t),hits:zc(e.hits,t),aggregations:zc(e.aggregations,t),isLoading:zc(e.isLoading,t),error:zc(e.error,t),promotedResults:zc(e.promotedResults,t),customData:zc(e.customData,t),settings:zc(e.settings,t),rawData:zc(e.rawData,t)}}),{})(Gc);Gc.install=function(e){e.component(Gc.name,Wc)};var Yc=["aggs","size"],Kc=[$.dataSearch,$.categorySearch],Xc=[$.reactiveList,$.reactiveMap,$.singleList,$.multiList,$.tagCloud].concat(Kc),Zc=[$.numberBox,$.ratingsFilter],Jc=[$.reactiveList,$.reactiveMap];function ep(e,t,n){if(Jc.includes(n))return e.defaultQuery?e.defaultQuery():{};var r=function(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}(t,e);if(e.customQuery){var o=e.customQuery(r,e);return o&&o.query}return e.source.defaultQuery?e.source.defaultQuery(r,e):{}}var tp,np,rp=function(e){var t=e.theme;return xt(tp||(tp=Ke(["\n\tcolor: ",";\n"])),t.colors.alertColor)},op=Dt("div")(np||(np=Ke(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&rp})),ip=Ge.getClassName,ap=Ge.isEqual,sp={name:"RangeInput",components:{RangeSlider:Ec},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:Qn.string,default:""},defaultValue:Qn.range,validateRange:Qn.func,value:Qn.range,dataField:Qn.stringRequired,innerClass:Qn.style,range:{types:Qn.range,default:function(){return{start:0,end:10}}},rangeLabels:Qn.rangeLabels,stepValue:Qn.number,componentStyle:Qn.style,componentId:Qn.stringRequired,includeNullValues:gt.bool,beforeValueChange:Qn.func,customQuery:Qn.func,data:Qn.data,filterLabel:Qn.string,react:Qn.react,showFilter:gt.bool.def(!0),showCheckbox:gt.bool.def(!0),title:Qn.title,URLParams:gt.bool.def(!1),sliderOptions:gt.object.def({}),nestedField:Qn.string},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)&&!ap(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=We({},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=We({},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){ap(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)},render:function(){var e=arguments[0],t=this.$props,n=t.className,r=t.dataField,o=t.range,i=t.rangeLabels,a=t.componentId,s=t.innerClass,u=t.stepValue,l=t.componentStyle,c=t.themePreset,p=t.includeNullValues,d=t.beforeValueChange,h=t.customQuery,f=t.data,g=t.filterLabel,m=t.react,y=t.showFilter,v=t.showCheckbox,b=t.title,O=t.URLParams,C=t.sliderOptions,w=t.nestedField;return e(Ua,{style:l,class:n},[e(Ec,{attrs:{componentId:a,value:{start:this.currentValue.start,end:this.currentValue.end},range:o,dataField:r,rangeLabels:i,includeNullValues:p,beforeValueChange:d,customQuery:h,data:f,filterLabel:g,react:m,showFilter:y,showCheckbox:v,title:b,uRLParams:O,sliderOptions:C,nestedField:w},on:{change:this.handleOnChange,"value-change":this.handleValueChange}}),e(po,{class:ip(s,"input-container")||""},[e(po,{attrs:{direction:"column",flex:2}},[e(Pa,{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:ip(s,"input")||"",domProps:We({},{value:this.currentValue.start})}),!this.isStartValid&&e(op,{attrs:{alert:!0}},["Input range is invalid"])]),e(po,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(po,{attrs:{direction:"column",flex:2}},[e(Pa,{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:ip(s,"input")||"",domProps:We({},{value:this.currentValue.end})}),!this.isEndValid&&e(op,{attrs:{alert:!0}},["Input range is invalid"])])])])}},up=wr(Kn((function(e){return{themePreset:e.config.themePreset}}),{})(sp),{componentType:$.rangeInput});sp.install=function(e){e.component(sp.name,up)},sp.componentType=$.rangeInput;var lp=[xo,sc,fc,Pi,Ds,au,Cu,Hl,Jl,Tc,Nc,Al,Vl,hl,Hu,rl,Gc,sp];function cp(e){lp.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&cp(window.Vue);var pp={version:"1.26.0",install:cp};e.DataSearch=Ds,e.DynamicRangeSlider=Nc,e.MultiDropdownList=rl,e.MultiList=Cu,e.MultiRange=Jl,e.RangeInput=sp,e.RangeSlider=Tc,e.ReactiveBase=Pi,e.ReactiveComponent=Al,e.ReactiveList=xo,e.ResultCard=sc,e.ResultList=fc,e.SelectedFilters=Vl,e.SingleDropdownList=Hu,e.SingleList=au,e.SingleRange=Hl,e.StateProvider=Gc,e.ToggleButton=hl,e.default=pp,e.initReactivesearch=function(e,t,n){return new Promise((function(r,o){var i=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,a=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,s=We({},n.enableAppbase&&We({"X-Search-Client":"ReactiveSearch Vue"},!1===a&&{"X-Enable-Telemetry":!1}),n.headers),u={url:n.url&&""!==n.url.trim()?n.url:"https://scalr.api.appbase.io",app:n.app,credentials:i,transformRequest:n.transformRequest||null,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:s,analyticsConfig:n.appbaseConfig||null},l=mi(u),c=[],p={},d={},h={},f={},g={},m=[],y={},v=[],b={},C={},w={},S={},T={},I={},P={};e.forEach((function(e){var n=e.source.componentType;c=[].concat(c,[e.componentId]);var r={};Object.keys(e).forEach((function(t){R.includes(t)&&(r[t]=e[t])}));var o=!1,i=Jc.includes(n),a=e.componentId+"__internal",s=e.filterLabel||e.componentId,u=function(e,t,n){if(e&&e[t])try{return{value:JSON.parse(e[t]),reference:"URL"}}catch(n){return{value:e[t],reference:"URL"}}return{value:n,reference:"DEFAULT"}}(t,e.componentId,e.value||e.defaultValue),l=u.value,h=u.reference,m=void 0===e.showFilter||e.showFilter;if(Zc.includes(n)&&(m=!1),p=F(p,{type:"SET_VALUE",component:e.componentId,label:s,value:l,reference:h,showFilter:m,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(T[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&(I[e.componentId]=e.defaultQuery(l,r)),Xc.includes(n)){var y=e.source.generateQueryOptions?e.source.generateQueryOptions(e):null,v={};if(Kc.includes(n)&&e.highlight&&(v=e.source.highlightQuery(e)),y&&Object.keys(y).length||v&&Object.keys(v).length){var b=y||{},O=b.aggs,C=b.size,w=Ye(b,Yc);if(O&&Object.keys(O).length&&(o=!0,f=A(f,{type:"SET_QUERY_OPTIONS",component:a,options:{aggs:O,size:void 0===C?100:C}})),w&&Object.keys(w).length||v&&Object.keys(v).length){w||(w={}),v||(v={});var S=We({},w,v,{size:C});if(o&&(S=We({},w,v)),i){var $=e.currentPage?e.currentPage-1:0;p[e.componentId]&&p[e.componentId].value&&($=p[e.componentId].value-1||0);var k=e.size||10,x=$*k;r.from=x,S=We({},S,v,{size:k,from:x})}f=A(f,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:We({},S)})}}}if(e.react||o||i){var Q=e.react;(o||i)&&(Q=be(Q,a)),g=_(g,{type:"WATCH_COMPONENT",component:e.componentId,react:Q})}if(i){var V=ep(e,l,n).query;d=E(d,{type:"SET_QUERY",component:a,query:V})}else d=E(d,{type:"SET_QUERY",component:e.componentId,query:ep(e,l,n)});r.componentType=n,P[e.componentId]=r})),S={components:c,dependencyTree:g,queryList:d,queryOptions:f,selectedValues:p,internalValues:{},props:P,customQueries:T,defaultQueries:I},e.forEach((function(e){var t=ve(e.componentId,g,d,f),r=t.queryObj,o=t.options,i=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return i.includes(e)}))){var a;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),v=[].concat(v,[e.componentId]);var s=We({query:We({},r)},o,f[e.componentId]);if(h=We({},h,((a={})[e.componentId]=s,a)),n.enableAppbase){var l,c=Ie(e.componentId,Ee(S,e.componentId,f&&f[e.componentId]?{from:f[e.componentId].from}:null));if(c)y=We({},y,((l={})[e.componentId]=c,l),Te(S,e.componentId,v))}else{var p=u&&u.analyticsConfig&&u.analyticsConfig.userId?u.analyticsConfig.userId+"_"+e:e;m=[].concat(m,[{preference:p},s])}}})),S.queryLog=h;var $=function(e,t){return u.transformResponse&&"function"==typeof u.transformResponse?u.transformResponse(e,t):new Promise((function(t){return t(e)}))},k=function(e){var t=v.map((function(t,n){return new Promise((function(r,o){$(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(C=We({},C,((o={})[t]=e.aggregations,o)),w=te(w,{type:O,aggregations:e.aggregations,append:!1}));b=We({},b,((n={})[t]={hits:e.hits.hits,total:"object"==typeof e.hits.total?e.hits.total.value:e.hits.total,time:e.took},n)),r()})).catch((function(e){return o(e)}))}))}));Promise.all(t).then((function(){S=We({},S,{hits:b,aggregations:C}),r(S)}))};if(u.graphQLUrl){(function(e){if(u.transformRequest&&"function"==typeof u.transformRequest){var t=u.transformRequest(e);return t instanceof Promise?t:Promise.resolve(t)}return Promise.resolve(e)})(m).then((function(e){Qe(u.graphQLUrl,u.url,u.credentials,u.app,e).then((function(e){k(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(y).length){m=Object.keys(y).map((function(e){return y[e]}));var x={};u.analyticsConfig&&(x.recordAnalytics=$e(u.analyticsConfig.recordAnalytics)?u.analyticsConfig.recordAnalytics:void 0,x.userId=$e(u.analyticsConfig.userId)?u.analyticsConfig.userId:void 0,x.enableQueryRules=$e(u.analyticsConfig.enableQueryRules)?u.analyticsConfig.enableQueryRules:void 0,x.customEvents=$e(u.analyticsConfig.customEvents)?u.analyticsConfig.customEvents:void 0),l.reactiveSearchv3(m,x).then((function(e){!function(e){var t={},n={},o={},i={},a={},s=v.map((function(r){return new Promise((function(s,u){$(e[r],r).then((function(u){if(u){var l,c;if(u.promoted&&(t[r]=u.promoted.map((function(e){return We({},e.doc,{_position:e.position})}))),n[r]=u,u.customData&&(o[r]=u.customData),u.settings&&(i[r]=u.settings),u.aggregations)C=We({},C,((c={})[r]=u.aggregations,c));a[r]=e._timestamp,b=We({},b,((l={})[r]={hits:u.hits.hits,total:"object"==typeof u.hits.total?u.hits.total.value:u.hits.total,time:u.took},l)),s()}})).catch((function(e){return u(e)}))}))}));Promise.all(s).then((function(){S=We({},S,{hits:b,timestamp:a,aggregations:C,compositeAggregations:w,promotedResults:t,settings:i,customData:o,rawData:n}),r(S)}))}(e)})).catch((function(e){return o(e)}))}else l.msearch({type:"*"===u.type?"":u.type,body:m}).then((function(e){k(e)})).catch((function(e){return o(e)}))}))},e.install=cp,e.version="1.26.0",Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
37
37
|
//# sourceMappingURL=reactivesearch-vue.umd.min.js.map
|