@tomtom-international/web-sdk-plugin-searchbox
Advanced tools
Comparing version 2.22.1 to 2.23.1
@@ -1,3 +0,3 @@ | ||
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(e,t,n){"use strict";function r(e){var t=!1,n=!0,r=!1,i=void 0;try{for(var o,s=document.styleSheets[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value.href;if(a&&-1!==a.indexOf(e)){t=!0;break}}}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}t||console.warn('It seems that you forgot to add "'.concat(e,'" to your page, that is ')+"why some information might not be visible on your map. You can find the missing asset on our Downloads page: https://developer.tomtom.com/maps-sdk-web-js/downloads")}t.a=function(e){var t=!0,n=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){r(o.value)}}catch(e){n=!0,i=e}finally{try{t||null==s.return||s.return()}finally{if(n)throw i}}}},,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,a="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,l=a||u||Function("return this")(),c=Object.prototype.toString,p=Math.max,f=Math.min,h=function(){return l.Date.now()};function d(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(d(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=d(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var a=i.test(e);return a||o.test(e)?s(e.slice(2),a?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,o,s,a,u,l=0,c=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=r,o=i;return r=i=void 0,l=t,s=e.apply(o,n)}function y(e){return l=e,a=setTimeout(w,t),c?g(e):s}function b(e){var n=e-u;return void 0===u||n>=t||n<0||v&&e-l>=o}function w(){var e=h();if(b(e))return O(e);a=setTimeout(w,function(e){var n=t-(e-u);return v?f(n,o-(e-l)):n}(e))}function O(e){return a=void 0,m&&r?g(e):(r=i=void 0,s)}function x(){var e=h(),n=b(e);if(r=arguments,i=this,u=e,n){if(void 0===a)return y(u);if(v)return a=setTimeout(w,t),g(u)}return void 0===a&&(a=setTimeout(w,t)),s}return t=_(t)||0,d(n)&&(c=!!n.leading,o=(v="maxWait"in n)?p(_(n.maxWait)||0,t):o,m="trailing"in n?!!n.trailing:m),x.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=u=i=a=void 0},x.flush=function(){return void 0===a?s:O(h())},x}}).call(this,n(2))},,,function(e,t){ | ||
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=12)}([function(t,e,n){"use strict";function r(t){var e=!1,n=!0,r=!1,o=void 0;try{for(var i,a=document.styleSheets[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value.href;if(s&&-1!==s.indexOf(t)){e=!0;break}}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}e||console.warn('It seems that you forgot to add "'.concat(t,'" to your page, that is ')+"why some information might not be visible on your map. You can find the missing asset on our Downloads page: https://developer.tomtom.com/maps-sdk-web-js/downloads")}e.a=function(t){var e=!0,n=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(e=(i=a.next()).done);e=!0){r(i.value)}}catch(t){n=!0,o=t}finally{try{e||null==a.return||a.return()}finally{if(n)throw o}}}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,c=s||u||Function("return this")(),l=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return c.Date.now()};function d(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function _(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(d(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=d(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var s=o.test(t);return s||i.test(t)?a(t.slice(2),s?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r,o,i,a,s,u,c=0,l=!1,v=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var n=r,i=o;return r=o=void 0,c=e,a=t.apply(i,n)}function g(t){return c=t,s=setTimeout(w,e),l?b(t):a}function m(t){var n=t-u;return void 0===u||n>=e||n<0||v&&t-c>=i}function w(){var t=h();if(m(t))return j(t);s=setTimeout(w,function(t){var n=e-(t-u);return v?p(n,i-(t-c)):n}(t))}function j(t){return s=void 0,y&&r?b(t):(r=o=void 0,a)}function O(){var t=h(),n=m(t);if(r=arguments,o=this,u=t,n){if(void 0===s)return g(u);if(v)return s=setTimeout(w,e),b(u)}return void 0===s&&(s=setTimeout(w,e)),a}return e=_(e)||0,d(n)&&(l=!!n.leading,i=(v="maxWait"in n)?f(_(n.maxWait)||0,e):i,y="trailing"in n?!!n.trailing:y),O.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},O.flush=function(){return void 0===s?a:j(h())},O}}).call(this,n(1))},function(t,e,n){(function(t,n){var r="[object Arguments]",o="[object Map]",i="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[r]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[o]=c["[object Number]"]=c[i]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1;var l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=e&&!e.nodeType&&e,d=h&&"object"==typeof n&&n&&!n.nodeType&&n,_=d&&d.exports===h,v=_&&l.process,y=function(){try{return v&&v.binding&&v.binding("util")}catch(t){}}(),b=y&&y.isTypedArray;function g(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function m(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function w(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var j,O,S,C=Array.prototype,x=Function.prototype,A=Object.prototype,P=p["__core-js_shared__"],E=x.toString,R=A.hasOwnProperty,D=(j=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",T=A.toString,L=RegExp("^"+E.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=_?p.Buffer:void 0,F=p.Symbol,I=p.Uint8Array,M=A.propertyIsEnumerable,N=C.splice,B=F?F.toStringTag:void 0,z=Object.getOwnPropertySymbols,H=k?k.isBuffer:void 0,U=(O=Object.keys,S=Object,function(t){return O(S(t))}),$=yt(p,"DataView"),V=yt(p,"Map"),K=yt(p,"Promise"),W=yt(p,"Set"),Z=yt(p,"WeakMap"),Q=yt(Object,"create"),G=wt($),Y=wt(V),q=wt(K),X=wt(W),J=wt(Z),tt=F?F.prototype:void 0,et=tt?tt.valueOf:void 0;function nt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function it(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new ot;++e<n;)this.add(t[e])}function at(t){var e=this.__data__=new rt(t);this.size=e.size}function st(t,e){var n=St(t),r=!n&&Ot(t),o=!n&&!r&&Ct(t),i=!n&&!r&&!o&&Rt(t),a=n||r||o||i,s=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=s.length;for(var c in t)!e&&!R.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mt(c,u))||s.push(c);return s}function ut(t,e){for(var n=t.length;n--;)if(jt(t[n][0],e))return n;return-1}function ct(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":B&&B in Object(t)?function(t){var e=R.call(t,B),n=t[B];try{t[B]=void 0;var r=!0}catch(t){}var o=T.call(t);r&&(e?t[B]=n:delete t[B]);return o}(t):function(t){return T.call(t)}(t)}function lt(t){return Et(t)&&ct(t)==r}function ft(t,e,n,s,u){return t===e||(null==t||null==e||!Et(t)&&!Et(e)?t!=t&&e!=e:function(t,e,n,s,u,c){var l=St(t),f=St(e),p=l?"[object Array]":gt(t),h=f?"[object Array]":gt(e),d=(p=p==r?i:p)==i,_=(h=h==r?i:h)==i,v=p==h;if(v&&Ct(t)){if(!Ct(e))return!1;l=!0,d=!1}if(v&&!d)return c||(c=new at),l||Rt(t)?dt(t,e,n,s,u,c):function(t,e,n,r,i,s,u){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!s(new I(t),new I(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return jt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case o:var c=m;case a:var l=1&r;if(c||(c=w),t.size!=e.size&&!l)return!1;var f=u.get(t);if(f)return f==e;r|=2,u.set(t,e);var p=dt(c(t),c(e),r,i,s,u);return u.delete(t),p;case"[object Symbol]":if(et)return et.call(t)==et.call(e)}return!1}(t,e,p,n,s,u,c);if(!(1&n)){var y=d&&R.call(t,"__wrapped__"),b=_&&R.call(e,"__wrapped__");if(y||b){var g=y?t.value():t,j=b?e.value():e;return c||(c=new at),u(g,j,n,s,c)}}if(!v)return!1;return c||(c=new at),function(t,e,n,r,o,i){var a=1&n,s=_t(t),u=s.length,c=_t(e).length;if(u!=c&&!a)return!1;var l=u;for(;l--;){var f=s[l];if(!(a?f in e:R.call(e,f)))return!1}var p=i.get(t);if(p&&i.get(e))return p==e;var h=!0;i.set(t,e),i.set(e,t);var d=a;for(;++l<u;){f=s[l];var _=t[f],v=e[f];if(r)var y=a?r(v,_,f,e,t,i):r(_,v,f,t,e,i);if(!(void 0===y?_===v||o(_,v,n,r,i):y)){h=!1;break}d||(d="constructor"==f)}if(h&&!d){var b=t.constructor,g=e.constructor;b!=g&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g)&&(h=!1)}return i.delete(t),i.delete(e),h}(t,e,n,s,u,c)}(t,e,n,s,ft,u))}function pt(t){return!(!Pt(t)||function(t){return!!D&&D in t}(t))&&(xt(t)?L:s).test(wt(t))}function ht(t){if(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||A,e!==r)return U(t);var e,n,r,o=[];for(var i in Object(t))R.call(t,i)&&"constructor"!=i&&o.push(i);return o}function dt(t,e,n,r,o,i){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=i.get(t);if(c&&i.get(e))return c==e;var l=-1,f=!0,p=2&n?new it:void 0;for(i.set(t,e),i.set(e,t);++l<s;){var h=t[l],d=e[l];if(r)var _=a?r(d,h,l,e,t,i):r(h,d,l,t,e,i);if(void 0!==_){if(_)continue;f=!1;break}if(p){if(!g(e,(function(t,e){if(a=e,!p.has(a)&&(h===t||o(h,t,n,r,i)))return p.push(e);var a}))){f=!1;break}}else if(h!==d&&!o(h,d,n,r,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function _t(t){return function(t,e,n){var r=e(t);return St(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,Dt,bt)}function vt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function yt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return pt(n)?n:void 0}nt.prototype.clear=function(){this.__data__=Q?Q(null):{},this.size=0},nt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},nt.prototype.get=function(t){var e=this.__data__;if(Q){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return R.call(e,t)?e[t]:void 0},nt.prototype.has=function(t){var e=this.__data__;return Q?void 0!==e[t]:R.call(e,t)},nt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Q&&void 0===e?"__lodash_hash_undefined__":e,this},rt.prototype.clear=function(){this.__data__=[],this.size=0},rt.prototype.delete=function(t){var e=this.__data__,n=ut(e,t);return!(n<0)&&(n==e.length-1?e.pop():N.call(e,n,1),--this.size,!0)},rt.prototype.get=function(t){var e=this.__data__,n=ut(e,t);return n<0?void 0:e[n][1]},rt.prototype.has=function(t){return ut(this.__data__,t)>-1},rt.prototype.set=function(t,e){var n=this.__data__,r=ut(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},ot.prototype.clear=function(){this.size=0,this.__data__={hash:new nt,map:new(V||rt),string:new nt}},ot.prototype.delete=function(t){var e=vt(this,t).delete(t);return this.size-=e?1:0,e},ot.prototype.get=function(t){return vt(this,t).get(t)},ot.prototype.has=function(t){return vt(this,t).has(t)},ot.prototype.set=function(t,e){var n=vt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},it.prototype.add=it.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},it.prototype.has=function(t){return this.__data__.has(t)},at.prototype.clear=function(){this.__data__=new rt,this.size=0},at.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},at.prototype.get=function(t){return this.__data__.get(t)},at.prototype.has=function(t){return this.__data__.has(t)},at.prototype.set=function(t,e){var n=this.__data__;if(n instanceof rt){var r=n.__data__;if(!V||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ot(r)}return n.set(t,e),this.size=n.size,this};var bt=z?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}(z(t),(function(e){return M.call(t,e)})))}:function(){return[]},gt=ct;function mt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<e}function wt(t){if(null!=t){try{return E.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function jt(t,e){return t===e||t!=t&&e!=e}($&&"[object DataView]"!=gt(new $(new ArrayBuffer(1)))||V&>(new V)!=o||K&&"[object Promise]"!=gt(K.resolve())||W&>(new W)!=a||Z&&"[object WeakMap]"!=gt(new Z))&&(gt=function(t){var e=ct(t),n=e==i?t.constructor:void 0,r=n?wt(n):"";if(r)switch(r){case G:return"[object DataView]";case Y:return o;case q:return"[object Promise]";case X:return a;case J:return"[object WeakMap]"}return e});var Ot=lt(function(){return arguments}())?lt:function(t){return Et(t)&&R.call(t,"callee")&&!M.call(t,"callee")},St=Array.isArray;var Ct=H||function(){return!1};function xt(t){if(!Pt(t))return!1;var e=ct(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function At(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Pt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Et(t){return null!=t&&"object"==typeof t}var Rt=b?function(t){return function(e){return t(e)}}(b):function(t){return Et(t)&&At(t.length)&&!!c[ct(t)]};function Dt(t){return null!=(e=t)&&At(e.length)&&!xt(e)?st(t):ht(t);var e}n.exports=function(t,e){return ft(t,e)}}).call(this,n(1),n(3)(t))},function(t,e,n){(function(t,n){var r="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",a="[object Map]",s="[object Set]",u=/\w*$/,c=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,f={};f[r]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object DataView]"]=f["[object Boolean]"]=f["[object Date]"]=f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f[a]=f["[object Number]"]=f["[object Object]"]=f["[object RegExp]"]=f[s]=f["[object String]"]=f["[object Symbol]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f["[object Error]"]=f[o]=f["[object WeakMap]"]=!1;var p="object"==typeof t&&t&&t.Object===Object&&t,h="object"==typeof self&&self&&self.Object===Object&&self,d=p||h||Function("return this")(),_=e&&!e.nodeType&&e,v=_&&"object"==typeof n&&n&&!n.nodeType&&n,y=v&&v.exports===_;function b(t,e){return t.set(e[0],e[1]),t}function g(t,e){return t.add(e),t}function m(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function w(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function j(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function O(t,e){return function(n){return t(e(n))}}function S(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var C,x=Array.prototype,A=Function.prototype,P=Object.prototype,E=d["__core-js_shared__"],R=(C=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",D=A.toString,T=P.hasOwnProperty,L=P.toString,k=RegExp("^"+D.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),F=y?d.Buffer:void 0,I=d.Symbol,M=d.Uint8Array,N=O(Object.getPrototypeOf,Object),B=Object.create,z=P.propertyIsEnumerable,H=x.splice,U=Object.getOwnPropertySymbols,$=F?F.isBuffer:void 0,V=O(Object.keys,Object),K=vt(d,"DataView"),W=vt(d,"Map"),Z=vt(d,"Promise"),Q=vt(d,"Set"),G=vt(d,"WeakMap"),Y=vt(Object,"create"),q=wt(K),X=wt(W),J=wt(Z),tt=wt(Q),et=wt(G),nt=I?I.prototype:void 0,rt=nt?nt.valueOf:void 0;function ot(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function it(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function at(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function st(t){this.__data__=new it(t)}function ut(t,e){var n=Ot(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&St(t)}(t)&&T.call(t,"callee")&&(!z.call(t,"callee")||L.call(t)==r)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],o=n.length,i=!!o;for(var a in t)!e&&!T.call(t,a)||i&&("length"==a||gt(a,o))||n.push(a);return n}function ct(t,e,n){var r=t[e];T.call(t,e)&&jt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function lt(t,e){for(var n=t.length;n--;)if(jt(t[n][0],e))return n;return-1}function ft(t,e,n,c,l,p,h){var d;if(c&&(d=p?c(t,l,p,h):c(t)),void 0!==d)return d;if(!At(t))return t;var _=Ot(t);if(_){if(d=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&T.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(t,d)}else{var v=bt(t),y=v==o||v==i;if(Ct(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if("[object Object]"==v||v==r||y&&!p){if(w(t))return p?t:{};if(d=function(t){return"function"!=typeof t.constructor||mt(t)?{}:(e=N(t),At(e)?B(e):{});var e}(y?{}:t),!e)return function(t,e){return dt(t,yt(t),e)}(t,function(t,e){return t&&dt(e,Pt(e),t)}(d,t))}else{if(!f[v])return p?t:{};d=function(t,e,n,r){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return ht(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return function(t,e){var n=e?ht(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var n=e?ht(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case a:return function(t,e,n){return m(e?n(j(t),!0):j(t),b,new t.constructor)}(t,r,n);case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,u.exec(t));return e.lastIndex=t.lastIndex,e}(t);case s:return function(t,e,n){return m(e?n(S(t),!0):S(t),g,new t.constructor)}(t,r,n);case"[object Symbol]":return i=t,rt?Object(rt.call(i)):{}}var i}(t,v,ft,e)}}h||(h=new st);var O=h.get(t);if(O)return O;if(h.set(t,d),!_)var C=n?function(t){return function(t,e,n){var r=e(t);return Ot(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,Pt,yt)}(t):Pt(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(C||t,(function(r,o){C&&(r=t[o=r]),ct(d,o,ft(r,e,n,c,o,t,h))})),d}function pt(t){return!(!At(t)||(e=t,R&&R in e))&&(xt(t)||w(t)?k:c).test(wt(t));var e}function ht(t){var e=new t.constructor(t.byteLength);return new M(e).set(new M(t)),e}function dt(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var a=e[o],s=r?r(n[a],t[a],a,n,t):void 0;ct(n,a,void 0===s?t[a]:s)}return n}function _t(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function vt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return pt(n)?n:void 0}ot.prototype.clear=function(){this.__data__=Y?Y(null):{}},ot.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ot.prototype.get=function(t){var e=this.__data__;if(Y){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return T.call(e,t)?e[t]:void 0},ot.prototype.has=function(t){var e=this.__data__;return Y?void 0!==e[t]:T.call(e,t)},ot.prototype.set=function(t,e){return this.__data__[t]=Y&&void 0===e?"__lodash_hash_undefined__":e,this},it.prototype.clear=function(){this.__data__=[]},it.prototype.delete=function(t){var e=this.__data__,n=lt(e,t);return!(n<0)&&(n==e.length-1?e.pop():H.call(e,n,1),!0)},it.prototype.get=function(t){var e=this.__data__,n=lt(e,t);return n<0?void 0:e[n][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,e){var n=this.__data__,r=lt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},at.prototype.clear=function(){this.__data__={hash:new ot,map:new(W||it),string:new ot}},at.prototype.delete=function(t){return _t(this,t).delete(t)},at.prototype.get=function(t){return _t(this,t).get(t)},at.prototype.has=function(t){return _t(this,t).has(t)},at.prototype.set=function(t,e){return _t(this,t).set(t,e),this},st.prototype.clear=function(){this.__data__=new it},st.prototype.delete=function(t){return this.__data__.delete(t)},st.prototype.get=function(t){return this.__data__.get(t)},st.prototype.has=function(t){return this.__data__.has(t)},st.prototype.set=function(t,e){var n=this.__data__;if(n instanceof it){var r=n.__data__;if(!W||r.length<199)return r.push([t,e]),this;n=this.__data__=new at(r)}return n.set(t,e),this};var yt=U?O(U,Object):function(){return[]},bt=function(t){return L.call(t)};function gt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||l.test(t))&&t>-1&&t%1==0&&t<e}function mt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||P)}function wt(t){if(null!=t){try{return D.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function jt(t,e){return t===e||t!=t&&e!=e}(K&&"[object DataView]"!=bt(new K(new ArrayBuffer(1)))||W&&bt(new W)!=a||Z&&"[object Promise]"!=bt(Z.resolve())||Q&&bt(new Q)!=s||G&&"[object WeakMap]"!=bt(new G))&&(bt=function(t){var e=L.call(t),n="[object Object]"==e?t.constructor:void 0,r=n?wt(n):void 0;if(r)switch(r){case q:return"[object DataView]";case X:return a;case J:return"[object Promise]";case tt:return s;case et:return"[object WeakMap]"}return e});var Ot=Array.isArray;function St(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!xt(t)}var Ct=$||function(){return!1};function xt(t){var e=At(t)?L.call(t):"";return e==o||e==i}function At(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Pt(t){return St(t)?ut(t):function(t){if(!mt(t))return V(t);var e=[];for(var n in Object(t))T.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}n.exports=function(t,e){return ft(t,!0,!0,e)}}).call(this,n(1),n(3)(t))},,,function(t,e){ | ||
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */ | ||
"document"in window.self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(e){"use strict";if("Element"in e){var t=e.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},i=Array.prototype.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},o=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},s=function(e,t){if(""===t)throw new o("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new o("INVALID_CHARACTER_ERR","String contains an invalid character");return i.call(e,t)},a=function(e){for(var t=r.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],i=0,o=n.length;i<o;i++)this.push(n[i]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},u=a.prototype=[],l=function(){return new a(this)};if(o.prototype=Error.prototype,u.item=function(e){return this[e]||null},u.contains=function(e){return-1!==s(this,e+="")},u.add=function(){var e,t=arguments,n=0,r=t.length,i=!1;do{e=t[n]+"",-1===s(this,e)&&(this.push(e),i=!0)}while(++n<r);i&&this._updateClassName()},u.remove=function(){var e,t,n=arguments,r=0,i=n.length,o=!1;do{for(e=n[r]+"",t=s(this,e);-1!==t;)this.splice(t,1),o=!0,t=s(this,e)}while(++r<i);o&&this._updateClassName()},u.toggle=function(e,t){e+="";var n=this.contains(e),r=n?!0!==t&&"remove":!1!==t&&"add";return r&&this[r](e),!0===t||!1===t?t:!n},u.toString=function(){return this.join(" ")},n.defineProperty){var c={get:l,enumerable:!0,configurable:!0};try{n.defineProperty(t,"classList",c)}catch(e){void 0!==e.number&&-2146823252!==e.number||(c.enumerable=!1,n.defineProperty(t,"classList",c))}}else n.prototype.__defineGetter__&&t.__defineGetter__("classList",l)}}(window.self),function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,r=arguments.length;for(n=0;n<r;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}e=null}())},function(e,t,n){e.exports=n.p+"src/SearchBox/dist/SearchBox.css"},,,function(e,t,n){"use strict";n.r(t);n(6);var r="tomtom.searchbox.resultscleared",i="tomtom.searchbox.resultsfound",o="tomtom.searchbox.resultselected",s="tomtom.searchbox.resultfocused",a="tomtom.searchbox.inputrestored",u=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.origin=t,this.data=n},l=function(e,t){return new u(e,t)},c=40,p=38,f=46,h=13,d=27,_=8,v="FUZZY_SEARCH",m="AUTOCOMPLETE",g="brand",y="category",b='\n <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <path d="M10.5,4 C14.0898509,4 17,6.91014913 17,10.5 C17,11.9337106 16.5358211,13.2590065 15.7495478,14.3338028 L19.7071068,18.2928932 C20.0976311,18.6834175 20.0976311,19.3165825 19.7071068,19.7071068 C19.3165825,20.0976311 18.6834175,20.0976311 18.2928932,19.7071068 L14.3338028,15.7495478 C13.2590065,16.5358211 11.9337106,17 10.5,17 C6.91014913,17 4,14.0898509 4,10.5 C4,6.91014913 6.91014913,4 10.5,4 Z M10.5,6 C8.01471863,6 6,8.01471863 6,10.5 C6,12.9852814 8.01471863,15 10.5,15 C12.9852814,15 15,12.9852814 15,10.5 C15,8.01471863 12.9852814,6 10.5,6 Z" id="Shape"></path>\n </svg>',w='\n <svg xmlns="http://www.w3.org/2000/svg" width="15" height="13" viewBox="0 0 15 13">\n <path d="M15.512418,11.5 L19.9637666,7.28870352 C20.1223719,7.13865149 20.1223719,6.89512441 19.9637666,6.74507238 L18.2390424,5.11253903 C18.0795704,4.96248699 17.8221618,4.96248699 17.6635565,5.11253903 L13.2122078,9.3238355 L8.7608592,5.11253903 C8.68545669,5.04120281 8.58145321,5.00020499 8.47398296,5.00020499 C8.36564601,5.00020499 8.26250923,5.04120281 8.18624002,5.11253903 L6.46064906,6.74507238 C6.38437985,6.81722855 6.34191176,6.91480337 6.34191176,7.01729793 C6.34191176,7.11979249 6.38437985,7.21736731 6.46064906,7.28952348 L10.9119977,11.5 L6.46064906,15.7112965 C6.38437985,15.7834526 6.34191176,15.8810275 6.34191176,15.9827021 C6.34191176,16.0851966 6.38437985,16.1827715 6.46064906,16.2549276 L8.18624002,17.887461 C8.26250923,17.9596171 8.36564601,17.999795 8.47398296,17.999795 C8.58145321,17.999795 8.68545669,17.9596171 8.7608592,17.887461 L13.2122078,13.6761645 L17.6635565,17.887461 C17.8221618,18.037513 18.0795704,18.037513 18.2390424,17.887461 L19.9637666,16.2549276 C20.1223719,16.1048756 20.1223719,15.8613485 19.9637666,15.7112965 L15.512418,11.5 Z" transform="translate(-5.544 -5)"/>\n </svg>';function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}var S=function(){function e(t,n,r,i){var o,a,u,c=this;O(this,e),u=function(){c._evented.fire(s,l(null,{result:c._result,text:c._getResultText()}))},(a="focus")in(o=this)?Object.defineProperty(o,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[a]=u,this._evented=t,this._options=r,this._result=n,this._type=i,this._createResultElement()}return C(e,[{key:"select",value:function(e){this._evented.fire(o,l(e,{result:this._result,text:this._getResultText()}))}},{key:"getContainer",value:function(){return this._container}},{key:"_createResultElement",value:function(){this._container=document.createElement("div"),this._container.onmousedown=function(e){return e.preventDefault()},this._container.onclick=this.select.bind(this),this._container.className="tt-search-box-result-list";var e=function(e){return'<span class="tt-search-box-result-list-bold">'.concat(e,"</span>")},t=function(e){return'<span class="tt-search-box-result-list-text-content">'.concat(e,"</span>")};switch(this._type){case v:var n=this._getAddress(),r=this._getPoiName(),i=null;n&&r?i="".concat(e(r)," ").concat(n):n&&(i="".concat(e(n))),i&&(this._container.innerHTML="".concat('\n <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <path d="M12,4 C15.3068357,4 18,6.61029768 18,9.84615385 C18,11.813391 16.4537597,14.7566138 13.3693459,18.8534202 L13.3693459,18.8534202 L12.7915956,19.6110453 C12.3912752,20.1296516 11.6087248,20.1296516 11.2084044,19.6110453 C7.73934285,15.1169529 6,11.9326175 6,9.84615385 C6,6.61029768 8.69316428,4 12,4 Z M12,6 C9.78398823,6 8,7.72909628 8,9.84615385 C8,11.1589113 9.25046927,13.5982613 11.758095,17.016979 L11.758095,17.016979 L11.999,17.344 L12.4887469,16.6780042 C14.7534108,13.5448791 15.9207088,11.2710802 15.9960961,9.97670688 L15.9960961,9.97670688 L16,9.84615385 C16,7.72909628 14.2160118,6 12,6 Z M12,8 C13.1045695,8 14,8.8954305 14,10 C14,11.1045695 13.1045695,12 12,12 C10.8954305,12 10,11.1045695 10,10 C10,8.8954305 10.8954305,8 12,8 Z" id="Combined-Shape" fill-rule="nonzero"></path>\n </svg>'," ").concat(t("".concat(i))));break;case m:var o=this._getSuggestionName(),s=this._getSuggestionType();if(o&&s){var a="plaintext"===s?"":" ".concat(this._options.labels.suggestions[s]);this._container.innerHTML="".concat(b," ").concat(t("".concat(e(o)).concat(a)))}}}},{key:"_getSuggestionName",value:function(){return this._result.value?this._result.value:null}},{key:"_getSuggestionType",value:function(){return this._result.type?this._result.type:null}},{key:"_getPoiName",value:function(){return void 0!==this._result.poi&&void 0!==this._result.poi.name?this._result.poi.name:null}},{key:"_getAddress",value:function(){if(void 0!==this._result.address){var e=[];return void 0!==this._result.address.freeformAddress&&e.push(this._result.address.freeformAddress),void 0!==this._result.address.countryCodeISO3&&e.push(this._result.address.countryCodeISO3),e.join(", ")}return null}},{key:"_getResultText",value:function(){switch(this._type){case v:return this._result.poi?this._result.poi.name+", "+this._result.address.freeformAddress:this._result.address.freeformAddress;case m:return this._result.value}return""}}]),e}(),T=function(){function e(t){O(this,e),this._container=document.createElement("div"),this._container.className="tt-search-box-result-list",this._container.innerText=t}return C(e,[{key:"select",value:function(){}},{key:"getContainer",value:function(){return this._container}}]),e}(),I={resultListElement:function(e,t,n,r){return new S(e,t,n,r)},noResultsListElement:function(e){return new T(e)}};function j(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),R(this,"_onKeyDown",(function(e){var t=e.keyCode||e.which;t===c||t===p?i._highlightElement(t):t===h&&i._selectElement(e)})),R(this,"setVisibility",(function(e){var t=e?"remove":"add";i._container.classList[t]("-hidden")})),R(this,"_findAutocompleteResponseSegments",(function(e,t){var n={};for(var r in e){var i=e[r].segments;for(var o in i){if(Object.keys(n).length===t)break;var s=i[o];"plaintext"!==s.type&&(n[s.type+s.value]=s)}}return n})),R(this,"_hasAnyResults",(function(e,t){return!(e&&e.results&&e.results.length||t&&t.results&&t.results.length)})),R(this,"_convertSearchResponseToListElements",(function(e){var t=L(e,2),n=t[0],r=t[1];if(i._hasAnyResults(n,r))return[I.noResultsListElement(i.params.options.labels.noResultsMessage)];var o=[];if(r&&r.results){var s=i._findAutocompleteResponseSegments(r.results,2);o.push.apply(o,j(Object.values(s).map((function(e){return I.resultListElement(i.params.evented,e,i.params.options,m)}))))}return n&&o.push.apply(o,j(n.results.map((function(e){return I.resultListElement(i.params.evented,e,i.params.options,v)})))),o})),R(this,"appendResults",(function(e){var t=L(e,2),n=t[0],r=t[1];i.clearResults();var o=i._convertSearchResponseToListElements([n,r]);i._resultsCount=o.length,o.forEach((function(e){i._resultListElements.push(e),i._container.appendChild(e.getContainer())}),i),i._container.style.height="auto"})),R(this,"clearResults",(function(){for(;i._container.firstChild;)i._container.removeChild(i._container.firstChild),i._container.style.height="0px";i._resultsCount=-1,i._resultListElements=[],i._highlightedIdx=-1})),R(this,"_highlightElement",(function(e){i._updateHighlightedElementStyle("remove"),i._updateHighlightedIndex(e),i._updateHighlightedElementStyle("add");var t=i._resultListElements[i._highlightedIdx];t&&t.focus&&t.focus()})),R(this,"_selectElement",(function(e){if(i._highlightedIdx>-1){var t=i._resultListElements[i._highlightedIdx];t&&t.select(e)}else e.preventDefault()})),R(this,"updateOptions",(function(e){i.params.options=Object.assign({},i.params.options,e)})),R(this,"getHighlightedIndex",(function(){return i._highlightedIdx})),R(this,"_updateHighlightedIndex",(function(e){i._highlightedIdx=e===p?i._highlightedIdx-1<0?-1:i._highlightedIdx-1:i._highlightedIdx+1>=i._resultsCount?0:i._highlightedIdx+1})),R(this,"_updateHighlightedElementStyle",(function(e){var t=i._container.childNodes[i._highlightedIdx];t&&(t.classList[e]("-highlighted"),"add"===e&&function(e,t,n){(!n||n&&!function(e,t){var n=e.scrollTop,r=n+e.clientHeight,i=t.offsetTop,o=i+t.clientHeight;return i>=n&&o<=r}(e,t))&&(e.scrollTop=t.offsetTop-e.offsetTop)}(i._container,t,!0))})),this.params={},this.params.evented=t,this.params.options=r,this._container=document.createElement("div"),this._container.className="tt-search-box-result-list-container -hidden",this._highlightedIdx=-1,this._resultsCount=-1,this._resultListElements=[],n.appendChild(this._container),n.onkeydown=this._onKeyDown},k=n(3),F=n.n(k);function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=function e(t,n,i,o){var s=this,a=o.onInput,u=o.onKeydown,l=o.onKeyup,h=o.onClear,v=o.onClick,m=o.onBlur,g=o.onFilterReset;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),P(this,"updateOptions",(function(e){s.params.options=Object.assign({},s.params.options,e),s._setPlaceholder()})),P(this,"getValue",(function(){return s._input.value})),P(this,"setValue",(function(e){s._input.value=e;var t=s._input.value.length>0||s.isFilterSet();s._closeIcon.classList.toggle("-hidden",!t)})),P(this,"isFilterSet",(function(){return Boolean(s._filterType)})),P(this,"getPreviousData",(function(){return{previousValue:s._previousInput,previousFilterOptions:s._previousFilterOptions}})),P(this,"_create",(function(){s._inputContainer=document.createElement("div"),s._inputContainer.className="tt-search-box-input-container",s._inputContainer.onmousedown=function(e){return e.preventDefault()},s._inputContainer.onclick=s._onContainerClick,s._addSearchIcon(),s._addFilter(),s._addInput(),s._addClearIcon()})),P(this,"_onContainerClick",(function(){document.activeElement!==s._input&&s._input.focus()})),P(this,"_addFilter",(function(){s._filter=document.createElement("div"),s._filter.className="tt-searchbox-filter-label -hidden",s._filterText=document.createElement("div"),s._filterText.className="tt-searchbox-filter-label__text",s._filterRemoveButton=document.createElement("div"),s._filterRemoveButton.className="tt-searchbox-filter-label__close-button",s._filterRemoveButton.innerHTML=w,s._filter.appendChild(s._filterText),s._filter.appendChild(s._filterRemoveButton),s._inputContainer.appendChild(s._filter)})),P(this,"_clearFilter",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&s.params.onFilterReset(s._filterType),s._indicateFilterRemoval(!1),s._filterType=null,s._filter.classList.add("-hidden")})),P(this,"_clearPreviousFilter",(function(){s._previousFilterOptions={filterType:void 0,filterText:void 0}})),P(this,"updateFilter",(function(e){var t=e.text,n=e.type,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];i&&s.params.onFilterReset(s._filterType),s._filterType=n,s._filter.classList.remove("-hidden"),s._filterRemoveButton.onclick=function(){s._clearFilter(),s._clearPreviousFilter(),s._onInput()},s._filterText.innerText=t,r&&(s._previousFilterOptions={filterType:n,filterText:t})})),P(this,"_setPlaceholder",(function(){s._input.setAttribute("placeholder",s.params.options.labels.placeholder)})),P(this,"_addInput",(function(){s._input=document.createElement("input"),s._input.className="tt-search-box-input",s._setPlaceholder(),s._input.oninput=F()(s._onInput,s.params.options.idleTimePress),s._input.onfocus=s.toggleInputFocus.bind(null,!0),s._input.onmousedown=function(e){return e.stopPropagation()},s._input.onkeydown=s._onKeyDown,s._input.onkeyup=s._onKeyUp,s._input.onclick=s._onClick,s._input.onblur=s._onBlur,s._inputContainer.appendChild(s._input)})),P(this,"_onClick",(function(e){s._indicateFilterRemoval(!1),s.params.onClick(e)})),P(this,"_onBlur",(function(e){s.toggleInputFocus.call(null,!1),s.params.onBlur(e)})),P(this,"_indicateFilterRemoval",(function(e){s._filter.classList.toggle("-highlighted",e),s._isDeletionConfirmed=e})),P(this,"_onKeyDown",(function(e){s.params.onKeydown(e);var t=e.keyCode||e.which,n=t===_||t===f,r=t===_;r||s._indicateFilterRemoval(!1),n&&s._onBackspaceOrDelete(r)})),P(this,"_onBackspaceOrDelete",(function(e){var t=0===s._input.selectionStart,n=s._input.selectionEnd-s._input.selectionStart,r=0!==n&&n===s.getValue().length;t&&s.isFilterSet()&&(s._isDeletionConfirmed?(s._clearFilter(),s._clearPreviousFilter(),s._onInput()):!r&&e&&s._indicateFilterRemoval(!0))})),P(this,"_onKeyUp",(function(e){var t=e.keyCode||e.which;if(t!==c&&t!==p&&t!==d){s._previousInput=s.getValue();var n=s._filterText.innerText&&""!==s._filterText.innerText?s._filterText.innerText:void 0;s._previousFilterOptions={filterType:s._filterType,filterText:n}}s.params.onKeyup(e)})),P(this,"_addSearchIcon",(function(){s.params.options.showSearchButton&&(s._searchIcon=document.createElement("div"),s._searchIcon.innerHTML=b,s._inputContainer.appendChild(s._searchIcon))})),P(this,"_addClearIcon",(function(){s._closeIcon=document.createElement("div"),s._closeIcon.className="tt-search-box-close-icon -hidden",s._closeIcon.innerHTML=w,s._inputContainer.appendChild(s._closeIcon),s._closeIcon.onclick=function(){s._clearFilter(),s._clearPreviousFilter(),s._input.value="",s._onInput()}})),P(this,"_clearInputWrapper",(function(){s.params.onClear(),s.params.evented.fire(r),s._closeIcon.classList.add("-hidden"),s._previousInput=void 0,s._previousFilterOptions={filterType:void 0,filterText:void 0}})),P(this,"_onInput",(function(){var e=s._input.value.length>0||s.isFilterSet();s._closeIcon.classList.toggle("-hidden",!e),e&&s.params.onInput(s._input.value),0!==s._input.value.length||s.isFilterSet()||s._clearInputWrapper()})),P(this,"toggleInputFocus",(function(e){s._inputContainer.classList.toggle("-focused",e)})),this.params={},this.params.evented=t,this.params.options=i,this.params.onInput=a,this.params.onKeydown=u,this.params.onKeyup=l,this.params.onClear=h,this.params.onClick=v,this.params.onBlur=m,this.params.onFilterReset=g,this._create(),n.appendChild(this._inputContainer),this._previousInput=void 0,this._previousFilterOptions={filterType:void 0,filterText:void 0}};n(7);function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function B(e,t,n){var r=e[t];r||(r=[],e[t]=r),r.push(n)}function N(e,t,n){var r=e[t];return r&&r.forEach((function(e){e.apply(void 0,W(n))})),r}var H=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventToHandlersMap={},this.onceEventToHandlersMap={}}var t,n,r;return t=e,(n=[{key:"fire",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];N(this.eventToHandlersMap,e,n),N(this.onceEventToHandlersMap,e,n)&&delete this.onceEventToHandlersMap[e]}},{key:"on",value:function(e,t){B(this.eventToHandlersMap,e,t)}},{key:"off",value:function(e){e?(delete this.eventToHandlersMap[e],delete this.onceEventToHandlersMap[e]):(this.eventToHandlersMap={},this.onceEventToHandlersMap={})}},{key:"once",value:function(e,t){B(this.onceEventToHandlersMap,e,t)}}])&&A(t.prototype,n),r&&A(t,r),e}(),V=n(0);function D(e){return(D="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 K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function z(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Z(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function q(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Z(o,r,i,s,a,"next",e)}function a(e){Z(o,r,i,s,a,"throw",e)}s(void 0)}))}}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(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 X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ee={placeholder:"",suggestions:{brand:"Suggested brand",category:"Suggested category"},noResultsMessage:"No results found."};function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.labels&&t.labels.placeholder||t.placeholder,r=t.labels&&t.labels.noResultsMessage||t.noResultsMessage,i=X({},t.labels);return n&&(i.placeholder=n),r&&(i.noResultsMessage=r),Object.assign({},e,i,{suggestions:Object.assign({},e.suggestions,i.suggestions)})}var ne=function(e){function t(e,n){var r,u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u=function(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?Y(e):t}(this,U(t).call(this)),J(Y(Y(u)),"getOptions",(function(){return u.options})),J(Y(Y(u)),"getSearchBoxHTML",(function(){return u._container})),J(Y(Y(u)),"onAdd",(function(e){return u.options.cssStyleCheck&&Object(V.a)(["SearchBox.css"]),u._map=e,u._container.classList.add("mapboxgl-ctrl","tt-ctrl"),u._container})),J(Y(Y(u)),"onRemove",(function(){u._container.parentNode.removeChild(u._container),u._map=void 0})),J(Y(Y(u)),"query",(function(){var e=u.options.searchOptions&&u.options.searchOptions.typeahead||!1;u._query({triggeredBySubmit:!0,useTypeahead:e})})),J(Y(Y(u)),"_query",q(regeneratorRuntime.mark((function e(){var t,n,r,o,s,a,c,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=p.length>0&&void 0!==p[0]?p[0]:{triggeredBySubmit:!1,useTypeahead:!0},(n=u._inputWrapper.getValue().trim())||u._inputWrapper.isFilterSet()){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,u._runSearch(t.useTypeahead);case 6:r=e.sent,o=r.results,s=r.errors,a=o.autocomplete,c=o.fuzzySearch,u.options.filterSearchResults&&c&&c.results&&(c.results=c.results.filter(u.options.filterSearchResults)),n===u._inputWrapper.getValue().trim()&&u._resultList.appendResults([c,a]),u.fire(i,l(null,X({metadata:{triggeredBy:t.triggeredBySubmit?"submit":"input"}},Object.keys(o).length>0&&{results:o},{},Object.keys(s).length>0&&{errors:s})));case 13:case"end":return e.stop()}}),e)})))),J(Y(Y(u)),"updateOptions",(function(e){var t=u.options.labels;u.options=X({},u.options,{},e),u.options.labels=te(t,e),u._resultList.updateOptions(u.options),u._inputWrapper.updateOptions(u.options)})),J(Y(Y(u)),"setValue",(function(e){u._inputWrapper.setValue(e),u._inputWrapper.previousValue=e})),J(Y(Y(u)),"getValue",(function(){return u._inputWrapper.getValue()})),J(Y(Y(u)),"setFilter",(function(e){var t=e.type,n=e.value;if(!t||!n)throw new Error("Invalid filterOptions format passed. Expected object properties are[type] and [value]");u.removeFilter();var r=u._availableFilters[t](n),i=r.displayedInputValue,o=z(r,["displayedInputValue"]);u._inputWrapper.updateFilter({text:i,type:t},!0);var s=X({},u.options,{searchOptions:X({},u.options.searchOptions,{},o)});u.updateOptions(s),u._inputWrapper._closeIcon.classList.remove("-hidden")})),J(Y(Y(u)),"_availableFilters",(J(r={},y,(function(e){return{categorySet:e.id,displayedInputValue:e.name}})),J(r,g,(function(e){return{brandSet:e.name,displayedInputValue:e.name}})),r)),J(Y(Y(u)),"removeFilter",(function(){u.options.searchOptions&&(u.options.searchOptions.brandSet&&delete u.options.searchOptions.brandSet,u.options.searchOptions.categorySet&&delete u.options.searchOptions.categorySet),u._inputWrapper._clearFilter()})),J(Y(Y(u)),"_createSearchBoxContainer",(function(){return u._container=document.createElement("div"),u._container.className="tt-search-box",u._addInputWrapper(),u._addResultList(),u._container})),J(Y(Y(u)),"_onInputClear",(function(){u._resultList.clearResults()})),J(Y(Y(u)),"_handleInputClick",(function(){u._resultList.setVisibility(!0)})),J(Y(Y(u)),"_handleInputBlur",(function(){u._resultList.setVisibility(!1)})),J(Y(Y(u)),"_handleKeydown",function(){var e=q(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.keyCode||t.which)!==p&&n!==c||t.preventDefault(),n!==h||-1!==u._resultList.getHighlightedIndex()||!u.options.searchOptions){e.next=9;break}return t.preventDefault(),e.next=6,u._query({useTypeahead:!1,triggeredBySubmit:!0});case 6:return u._resultList.clearResults(),u._resultList.setVisibility(!1),e.abrupt("return");case 9:if(n!==d){e.next=13;break}return t.preventDefault(),u._resultList.setVisibility(!1),e.abrupt("return");case 13:u._resultList.setVisibility(!0);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),J(Y(Y(u)),"_handleKeyup",(function(e){var t=e.keyCode||e.which;t!==c&&t!==p||-1===u._resultList.getHighlightedIndex()&&u._restoreOriginalQuery()})),J(Y(Y(u)),"_restoreOriginalQuery",(function(){var e=u._inputWrapper.getPreviousData(),t=e.previousValue,n=e.previousFilterOptions;if(n.filterType){u._inputWrapper.updateFilter({type:n.filterType,text:n.filterText},!1,!1)}else u.removeFilter();t&&u._inputWrapper.setValue(t),u.fire(a)})),J(Y(Y(u)),"_addResultList",(function(){u._resultList=new E(Y(Y(u)),u._container,u.options)})),J(Y(Y(u)),"_addInputWrapper",(function(){u._inputWrapper=new M(Y(Y(u)),u._container,u.options,{onInput:u._onInputChange,onKeydown:u._handleKeydown,onKeyup:u._handleKeyup,onClear:u._onInputClear,onClick:u._handleInputClick,onBlur:u._handleInputBlur,onFilterReset:u._onFilterReset})})),J(Y(Y(u)),"_onResultSelected",function(){var e=q(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u._onResultFocused(t),u._updateSelectedResultFilter(t),u._resultList.clearResults(),u._inputWrapper.toggleInputFocus(!1);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),J(Y(Y(u)),"_onResultFocused",function(){var e=q(regeneratorRuntime.mark((function e(t){var n,r,i,o,s,a,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"matches"in t.data.result?(n=t.data.result.matches.inputQuery[0],r=n.offset,i=n.length,o=u._inputWrapper.isFilterSet()||!u._isInputFilledWithSelectedResult,s=o?u._inputWrapper.getValue():"",a=s.split(s.slice(r,r+i)).join("").trim(),u._inputWrapper.setValue(a),l=t.data.result.type,u._inputWrapper.updateFilter({text:t.data.text,type:l}),u._isInputFilledWithSelectedResult=!1):(u._inputWrapper.setValue(t.data.text),u._inputWrapper._clearFilter(!1),u._isInputFilledWithSelectedResult=!0);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),J(Y(Y(u)),"_onFilterReset",(function(){var e=X({},u.options.searchOptions);delete e.categorySet,delete e.brandSet,u.options=Object.assign({},u.options,{searchOptions:e})})),J(Y(Y(u)),"_onInputChange",(function(e){u.options.minNumberOfCharacters>e.length||(u._query(),u._isInputFilledWithSelectedResult=!1)})),J(Y(Y(u)),"_runSearch",(function(e){var t=u._inputWrapper.getValue().trim(),n={};if(u.options.searchOptions){var r=X({query:t,typeahead:u._inputWrapper.isFilterSet()||e},u._map&&{center:u._map.getCenter()},{},u.options.searchOptions);n.fuzzySearch=u.fuzzySearch(r)}if(u.options.autocompleteOptions&&!u._inputWrapper.isFilterSet()){var i=X({query:t},u._map&&{center:u._map.getCenter()},{},u.options.autocompleteOptions);n.autocomplete=u.autocomplete(i)}return u._transformSearchResponse(n)})),J(Y(Y(u)),"_transformSearchResponse",(function(e){return Promise.all(Object.entries(e).map((function(e){var t=K(e,2),n=t[0];return t[1].go().then((function(e){return{name:n,value:e,resolved:!0}})).catch((function(e){return{name:n,value:e,rejected:!0}}))}))).then((function(e){return{results:e.filter((function(e){return e.resolved})).reduce((function(e,t){return X({},e,J({},t.name,t.value))}),{}),errors:e.filter((function(e){return e.rejected})).reduce((function(e,t){return X({},e,J({},t.name,t.value))}),{})}}))})),u.fuzzySearch=e.fuzzySearch,u.autocomplete=e.autocomplete,u.options=Object.assign({},{idleTimePress:200,minNumberOfCharacters:3,searchOptions:null,autocompleteOptions:null,showSearchButton:!0,cssStyleCheck:!0},n),u.options.labels=te(ee,n),u._createSearchBoxContainer(),u.on(o,u._onResultSelected.bind(Y(Y(u)))),u.on(s,u._onResultFocused.bind(Y(Y(u)))),u}var n,r,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Q(e,t)}(t,e),n=t,(r=[{key:"_updateSelectedResultFilter",value:function(e){var t;if("matches"in e.data.result){var n=e.data.result.type;n===y&&(t={categorySet:e.data.result.id}),n===g&&(t={brandSet:e.data.result.value})}this.options=Object.assign({},this.options,{searchOptions:Object.assign({},this.options.searchOptions,t)})}}])&&$(n.prototype,r),u&&$(n,u),t}(H);window.tt=window.tt||{},window.tt.plugins=window.tt.plugins||{},window.tt.plugins.SearchBox=ne}]); | ||
"document"in window.self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(t){"use strict";if("Element"in t){var e=t.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},i=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new i("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new i("INVALID_CHARACTER_ERR","String contains an invalid character");return o.call(t,e)},s=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],o=0,i=n.length;o<i;o++)this.push(n[o]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},u=s.prototype=[],c=function(){return new s(this)};if(i.prototype=Error.prototype,u.item=function(t){return this[t]||null},u.contains=function(t){return-1!==a(this,t+="")},u.add=function(){var t,e=arguments,n=0,r=e.length,o=!1;do{t=e[n]+"",-1===a(this,t)&&(this.push(t),o=!0)}while(++n<r);o&&this._updateClassName()},u.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=!1;do{for(t=n[r]+"",e=a(this,t);-1!==e;)this.splice(e,1),i=!0,e=a(this,t)}while(++r<o);i&&this._updateClassName()},u.toggle=function(t,e){t+="";var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},u.toString=function(){return this.join(" ")},n.defineProperty){var l={get:c,enumerable:!0,configurable:!0};try{n.defineProperty(e,"classList",l)}catch(t){void 0!==t.number&&-2146823252!==t.number||(l.enumerable=!1,n.defineProperty(e,"classList",l))}}else n.prototype.__defineGetter__&&e.__defineGetter__("classList",c)}}(window.self),function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,r=arguments.length;for(n=0;n<r;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}())},function(t,e,n){t.exports=n.p+"src/SearchBox/dist/SearchBox.css"},,function(t,e,n){"use strict";n.r(e);n(9);var r=40,o=38,i=46,a=13,s=27,u=8,c="FUZZY_SEARCH",l="AUTOCOMPLETE",f="brand",p="category",h='\n <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <path d="M10.5,4 C14.0898509,4 17,6.91014913 17,10.5 C17,11.9337106 16.5358211,13.2590065 15.7495478,14.3338028 L19.7071068,18.2928932 C20.0976311,18.6834175 20.0976311,19.3165825 19.7071068,19.7071068 C19.3165825,20.0976311 18.6834175,20.0976311 18.2928932,19.7071068 L14.3338028,15.7495478 C13.2590065,16.5358211 11.9337106,17 10.5,17 C6.91014913,17 4,14.0898509 4,10.5 C4,6.91014913 6.91014913,4 10.5,4 Z M10.5,6 C8.01471863,6 6,8.01471863 6,10.5 C6,12.9852814 8.01471863,15 10.5,15 C12.9852814,15 15,12.9852814 15,10.5 C15,8.01471863 12.9852814,6 10.5,6 Z" id="Shape"></path>\n </svg>',d='\n <svg xmlns="http://www.w3.org/2000/svg" width="15" height="13" viewBox="0 0 15 13">\n <path d="M15.512418,11.5 L19.9637666,7.28870352 C20.1223719,7.13865149 20.1223719,6.89512441 19.9637666,6.74507238 L18.2390424,5.11253903 C18.0795704,4.96248699 17.8221618,4.96248699 17.6635565,5.11253903 L13.2122078,9.3238355 L8.7608592,5.11253903 C8.68545669,5.04120281 8.58145321,5.00020499 8.47398296,5.00020499 C8.36564601,5.00020499 8.26250923,5.04120281 8.18624002,5.11253903 L6.46064906,6.74507238 C6.38437985,6.81722855 6.34191176,6.91480337 6.34191176,7.01729793 C6.34191176,7.11979249 6.38437985,7.21736731 6.46064906,7.28952348 L10.9119977,11.5 L6.46064906,15.7112965 C6.38437985,15.7834526 6.34191176,15.8810275 6.34191176,15.9827021 C6.34191176,16.0851966 6.38437985,16.1827715 6.46064906,16.2549276 L8.18624002,17.887461 C8.26250923,17.9596171 8.36564601,17.999795 8.47398296,17.999795 C8.58145321,17.999795 8.68545669,17.9596171 8.7608592,17.887461 L13.2122078,13.6761645 L17.6635565,17.887461 C17.8221618,18.037513 18.0795704,18.037513 18.2390424,17.887461 L19.9637666,16.2549276 C20.1223719,16.1048756 20.1223719,15.8613485 19.9637666,15.7112965 L15.512418,11.5 Z" transform="translate(-5.544 -5)"/>\n </svg>';function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t}var b=function(){function t(e,n,r,o,i){var a,s,u,c=this;_(this,t),u=function(){c._actions.onResultSelected(c._index)},(s="_onSelect")in(a=this)?Object.defineProperty(a,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[s]=u,this._options=r,this._actions=o,this._result=e,this._type=n,this._index=i,this._createResultElement()}return y(t,[{key:"getContainer",value:function(){return this._container}},{key:"_createResultElement",value:function(){this._container=document.createElement("div"),this._container.onmousedown=function(t){return t.preventDefault()},this._container.onclick=this._onSelect,this._container.className="tt-search-box-result-list",this._container.setAttribute("data-testid","result-item");var t=function(t){return'<span class="tt-search-box-result-list-bold">'.concat(t,"</span>")},e=function(t){return'<span class="tt-search-box-result-list-text-content">'.concat(t,"</span>")};switch(this._type){case c:var n=this._getAddress(),r=this._getPoiName(),o=null;n&&r?o="".concat(t(r)," ").concat(n):n&&(o="".concat(t(n))),o&&(this._container.innerHTML="".concat('\n <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <path d="M12,4 C15.3068357,4 18,6.61029768 18,9.84615385 C18,11.813391 16.4537597,14.7566138 13.3693459,18.8534202 L13.3693459,18.8534202 L12.7915956,19.6110453 C12.3912752,20.1296516 11.6087248,20.1296516 11.2084044,19.6110453 C7.73934285,15.1169529 6,11.9326175 6,9.84615385 C6,6.61029768 8.69316428,4 12,4 Z M12,6 C9.78398823,6 8,7.72909628 8,9.84615385 C8,11.1589113 9.25046927,13.5982613 11.758095,17.016979 L11.758095,17.016979 L11.999,17.344 L12.4887469,16.6780042 C14.7534108,13.5448791 15.9207088,11.2710802 15.9960961,9.97670688 L15.9960961,9.97670688 L16,9.84615385 C16,7.72909628 14.2160118,6 12,6 Z M12,8 C13.1045695,8 14,8.8954305 14,10 C14,11.1045695 13.1045695,12 12,12 C10.8954305,12 10,11.1045695 10,10 C10,8.8954305 10.8954305,8 12,8 Z" id="Combined-Shape" fill-rule="nonzero"></path>\n </svg>'," ").concat(e("".concat(o))));break;case l:var i=this._getSuggestionName(),a=this._getSuggestionType();if(i&&a){var s="plaintext"===a?"":" ".concat(this._options.labels.suggestions[a]);this._container.innerHTML="".concat(h," ").concat(e("".concat(t(i)).concat(s)))}}}},{key:"_getSuggestionName",value:function(){return this._result.value?this._result.value:null}},{key:"_getSuggestionType",value:function(){return this._result.type?this._result.type:null}},{key:"_getPoiName",value:function(){return void 0!==this._result.poi&&void 0!==this._result.poi.name?this._result.poi.name:null}},{key:"_getAddress",value:function(){if(void 0!==this._result.address){var t=[];return void 0!==this._result.address.freeformAddress&&t.push(this._result.address.freeformAddress),void 0!==this._result.address.countryCodeISO3&&t.push(this._result.address.countryCodeISO3),t.join(", ")}return null}}]),t}(),g=function(){function t(e){_(this,t),this._container=document.createElement("div"),this._container.className="tt-search-box-result-list",this._container.innerText=e}return y(t,[{key:"select",value:function(){}},{key:"getContainer",value:function(){return this._container}}]),t}(),m={resultListElement:function(t,e,n,r,o,i){return new b(t,e,n,r,o,i)},noResultsListElement:function(t){return new g(t)}};function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var j=function t(e,n,r){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),w(this,"_setVisibility",(function(t){t?o._container.removeAttribute("hidden"):o._container.setAttribute("hidden",!0)})),w(this,"_convertSearchResponseToListElements",(function(t){var e=o.store.getCurrentState().options;return t.length?t.map((function(t,n){return m.resultListElement(t.result,t.type,e,o.actions,n)})):[m.noResultsListElement(e.labels.noResultsMessage)]})),w(this,"_clearResults",(function(){for(;o._container.firstChild;)o._container.removeChild(o._container.firstChild),o._container.style.height="0px"})),w(this,"_updateHighlightedElementStyle",(function(t,e){var n=o._container.childNodes[e];n&&(n.classList[t]("-highlighted"),"add"===t&&function(t,e,n){(!n||n&&!function(t,e){var n=t.scrollTop,r=n+t.clientHeight,o=e.offsetTop,i=o+e.clientHeight;return o>=n&&i<=r}(t,e))&&(t.scrollTop=e.offsetTop-t.offsetTop)}(o._container,n,!0))})),w(this,"_appendResults",(function(t){o._clearResults(),o._convertSearchResponseToListElements(t).forEach((function(t){o._container.appendChild(t.getContainer())}),o),o._container.style.height="auto"})),w(this,"update",(function(){var t=o.store.getCurrentState(),e=t.resultData,n=t.showResultList,r=t.resultIndexPosition;o._setVisibility(n),e?(o._appendResults(e),o._updateHighlightedElementStyle(-1!==r?"add":"remove",r)):o._clearResults()})),this.actions=r,this.store=n,this._container=document.createElement("div"),this._container.className="tt-search-box-result-list-container",this._container.setAttribute("hidden",!0),e.appendChild(this._container)},O=n(4),S=n.n(O);function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x=function t(e,n,c){var l=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),C(this,"_create",(function(){l._inputContainer=document.createElement("div"),l._inputContainer.className="tt-search-box-input-container",l._inputContainer.onmousedown=function(t){return t.preventDefault()},l._inputContainer.oninput=S()((function(){l._enterKeyPressed||l.actions.runQuery(!1,!0)}),l.store.getCurrentState().options.idleTimePress),l._inputContainer.addEventListener("input",(function(t){return l.actions.setNewValue(t.target.value)})),l._inputContainer.onkeydown=l._onKeyDown,l._addSearchIcon(),l._addFilter(),l._addInput(),l._addClearIcon()})),C(this,"_addSearchIcon",(function(){l.store.getCurrentState().options.showSearchButton&&(l._searchIcon=document.createElement("div"),l._searchIcon.innerHTML=h,l._inputContainer.appendChild(l._searchIcon))})),C(this,"_addFilter",(function(){l._filter=document.createElement("div"),l._filter.className="tt-searchbox-filter-label",l._filter.style="display: none",l._filterText=document.createElement("div"),l._filterText.className="tt-searchbox-filter-label__text",l._filterRemoveButton=document.createElement("div"),l._filterRemoveButton.className="tt-searchbox-filter-label__close-button",l._filterRemoveButton.innerHTML=d,l._filter.appendChild(l._filterText),l._filter.appendChild(l._filterRemoveButton),l._inputContainer.appendChild(l._filter)})),C(this,"_addInput",(function(){l._input=document.createElement("input"),l._input.className="tt-search-box-input",l._setPlaceholder(),l._input.onmousedown=function(t){return t.stopPropagation()},l._input.onfocus=function(){return l.actions.updateFocus(!0)},l._input.onblur=function(){return l.actions.updateFocus(!1)},l._inputContainer.appendChild(l._input)})),C(this,"_indicateFilterRemoval",(function(t){l._filter.classList.toggle("-highlighted",t),l._isDeletionConfirmed=t})),C(this,"_onBackspaceOrDelete",(function(t){var e=l.store.getCurrentState().filter,n=0===l._input.selectionStart,r=l._input.selectionEnd-l._input.selectionStart,o=0!==r&&r===l._input.value.length;n&&e&&(l._isDeletionConfirmed?(l._indicateFilterRemoval(!1),l.actions.onClearFilterClick()):!o&&t&&l._indicateFilterRemoval(!0))})),C(this,"_onKeyDown",(function(t){var e=t.keyCode||t.which,n=e===u||e===i,c=e===u;l._enterKeyPressed=!1,c||l._indicateFilterRemoval(!1),n&&l._onBackspaceOrDelete(c),e!==o&&e!==r||(t.preventDefault(),l._onArrowUpDownPress(e)),e===a&&(t.preventDefault(),l._enterKeyPressed=!0,l.actions.onEnterKeyPress()),e===s&&(t.preventDefault(),l.actions.onEscKeyPress())})),C(this,"_onArrowUpDownPress",(function(t){var e,n=l.store.getCurrentState(),r=n.resultIndexPosition,i=n.resultData,a=void 0===i?[]:i;t===o&&-1===r||!a.length||(e=t===o?r-1<0?-1:r-1:r+1>=a.length?0:r+1,l.actions.updateOnArrowPress(e))})),C(this,"_addClearIcon",(function(){l._closeIcon=document.createElement("div"),l._closeIcon.className="tt-search-box-close-icon -hidden",l._closeIcon.innerHTML=d,l._inputContainer.appendChild(l._closeIcon),l._closeIcon.onclick=function(){l._indicateFilterRemoval(!1),l.actions.onClearClick()}})),C(this,"_setPlaceholder",(function(){var t=l.store.getCurrentState().options;l._input.setAttribute("placeholder",t.labels.placeholder)})),C(this,"_updateFilter",(function(t){l._filterText.innerText=t.text,l._filter.style="",l._filterRemoveButton.onclick=function(){l._indicateFilterRemoval(!1),l.actions.onClearFilterClick()}})),C(this,"update",(function(){var t=l.store.getCurrentState(),e=t.resultData,n=t.value,r=void 0===n?"":n,o=t.filter,i=t.isFocused;l._input.value!==r&&(l._input.value=r),l._closeIcon.classList[e||r.length||o?"remove":"add"]("-hidden"),l._setPlaceholder(),l._input[i?"focus":"blur"](),l._inputContainer.classList[i?"add":"remove"]("-focused"),o?l._updateFilter(o):l._filter.style="display: none",l._indicateFilterRemoval(l._isDeletionConfirmed)})),this.actions=c,this.store=n,this._create(),e.appendChild(this._inputContainer),this._isDeletionConfirmed=!1,this._enterKeyPressed=!1};n(10);function A(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function P(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function E(t,e,n){var r=t[e];r||(r=[],t[e]=r),r.push(n)}function R(t,e,n){var r=t[e];return r&&r.forEach((function(t){t.apply(void 0,P(n))})),r}var D=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.eventToHandlersMap={},this.onceEventToHandlersMap={}}var e,n,r;return e=t,(n=[{key:"fire",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];R(this.eventToHandlersMap,t,n),R(this.onceEventToHandlersMap,t,n)&&delete this.onceEventToHandlersMap[t]}},{key:"on",value:function(t,e){E(this.eventToHandlersMap,t,e)}},{key:"off",value:function(t){t?(delete this.eventToHandlersMap[t],delete this.onceEventToHandlersMap[t]):(this.eventToHandlersMap={},this.onceEventToHandlersMap={})}},{key:"once",value:function(t,e){E(this.onceEventToHandlersMap,t,e)}}])&&A(e.prototype,n),r&&A(e,r),t}(),T=n(0),L=n(5),k=n.n(L),F=n(6),I=n.n(F);function M(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function B(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){U(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function U(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $={placeholder:"",suggestions:{brand:"Suggested brand",category:"Suggested category"},noResultsMessage:"No results found."};function V(t){return I()(t,(function(t){if(t&&t._sw&&t._ne){var e=new t.constructor;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]instanceof Object?e[n]=V(t[n]):e[n]=t[n]);return e}}))}var K=function(){function t(e,n,r){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),U(this,"__updater",(function(t){return function(){for(var e=V(o._state),n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(o,r),k()(o._state,e)||o.onUpdate()}})),U(this,"_getInitialState",(function(){return{value:"",showClearButton:!1,isFocused:!1,resultData:void 0,showResultList:!1,resultIndexPosition:-1,filter:void 0,restoreData:void 0}})),U(this,"_processOptions",(function(t){var e=o._state&&o._state.options||{idleTimePress:200,minNumberOfCharacters:3,searchOptions:null,autocompleteOptions:null,showSearchButton:!0,cssStyleCheck:!0},n=Object.assign({},e,t);return n.labels=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.labels&&e.labels.placeholder||e.placeholder,r=e.labels&&e.labels.noResultsMessage||e.noResultsMessage,o=H({},e.labels);return n&&(o.placeholder=n),r&&(o.noResultsMessage=r),Object.assign({},t,o,{suggestions:Object.assign({},t.suggestions,o.suggestions)})}($,t),n})),U(this,"_findAutocompleteResponseSegments",(function(t,e){var n={};for(var r in t){var o=t[r].segments;for(var i in o){if(Object.keys(n).length===e)break;var a=o[i];"plaintext"!==a.type&&(n[a.type+a.value]=a)}}return n})),U(this,"_hasAnyResults",(function(t,e){return!(t&&t.results&&t.results.length||e&&e.results&&e.results.length)})),U(this,"_combineSearchResponse",(function(t){var e=N(t,2),n=e[0],r=e[1];o._hasAnyResults(n,r)&&(o._state.combinedResults=[]);var i=[];if(r&&r.results){var a=o._findAutocompleteResponseSegments(r.results,2);i.push.apply(i,M(Object.values(a).map((function(t){return{result:t,type:l}}))))}return n&&i.push.apply(i,M(n.results.map((function(t){return{result:t,type:c}})))),i})),U(this,"_getResultText",(function(t){switch(t.type){case c:return t.result.poi?t.result.poi.name+", "+t.result.address.freeformAddress:t.result.address.freeformAddress;case l:return t.result.value}return""})),U(this,"_getTextForFilterResult",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t.matches||!Array.isArray(t.matches.inputQuery))return"";var n=t.matches.inputQuery[0],r=n.offset,o=n.length;return e.split(e.slice(r,r+o)).join("").trim()})),U(this,"_updateInputAndFilterStateOnResultChanged",(function(t){var e=o._state.resultData[t],n=e.result;if(e.type===l){var r=n.type;o._state.filter=H({},r===p&&{categorySet:n.id},{},r===f&&{brandSet:n.value},{type:r,text:o._getResultText(e)});var i=o._state.restoreData&&o._state.restoreData.value||o._state.value;o._state.value=o._getTextForFilterResult(e.result,i)}else o._state.filter=void 0,o._state.value=o._getResultText(e)})),U(this,"_emitResultEvent",(function(t,e){var n=o._state.resultData[t];o.events[e]({result:n.result,text:o._getResultText(n)})})),U(this,"_restoreInput",(function(){o._state.value=o._state.restoreData.value,o._state.filter=o._state.restoreData.filter,o.events.inputRestored()})),U(this,"getCurrentState",(function(){return V(o._state)})),U(this,"getMapCenter",(function(){return o.mapCenter})),U(this,"storeOptions",this.__updater((function(t){o._state.options=o._processOptions(t)}))),U(this,"storeInputManually",(function(t){o._state.resultIndexPosition=-1,o._state.resultData=void 0,o.storeInput(t)})),U(this,"storeInput",this.__updater((function(t){o._state.value=t,t.length?o._state.restoreData={value:t,filter:o._state.filter}:o._state.filter||(o._state.resultIndexPosition=-1,o._state.resultData=void 0,o.events.resultsCleared())}))),U(this,"reset",this.__updater((function(){o._state=H({},o._state,{},o._getInitialState(),{isFocused:!0}),o._state.options.searchOptions&&(delete o._state.options.searchOptions.categorySet,delete o._state.options.searchOptions.brandSet)}))),U(this,"updateResults",this.__updater((function(t){o._state.resultData=o._combineSearchResponse(t),o._state.resultIndexPosition=-1}))),U(this,"storeResults",(function(t){o._state.showResultList=!0,o.updateResults(t)})),U(this,"updateOnUpDownPress",this.__updater((function(t){o._state.resultIndexPosition=t,-1!==o._state.resultIndexPosition?(o._state.showResultList=!0,o._emitResultEvent(o._state.resultIndexPosition,"resultFocused"),o._updateInputAndFilterStateOnResultChanged(o._state.resultIndexPosition)):o._restoreInput()}))),U(this,"onResultSelected",this.__updater((function(t){o._emitResultEvent(t,"resultSelected"),o._updateInputAndFilterStateOnResultChanged(t),o._state.resultData=void 0,o._state.showResultList=!1,o._state.resultIndexPosition=-1,o._state.restoreData=void 0}))),U(this,"onRemoveFilter",this.__updater((function(){o._state.filter=void 0,o._state.resultIndexPosition=-1,o._state.restoreData&&(o._state.restoreData.filter=void 0),o._state.value.length&&""!==o._state.value?(o._state.restoreData=o._state.restoreData||{},o._state.restoreData.value=o._state.value):(o._state.resultData=void 0,o._state.restoreData=void 0,o.events.resultsCleared()),o._state.options.searchOptions&&(delete o._state.options.searchOptions.categorySet,delete o._state.options.searchOptions.brandSet)}))),U(this,"onEnterKeyPress",this.__updater((function(){o._state.showResultList=!1,o._state.resultIndexPosition=-1}))),U(this,"onEscKeyPress",this.__updater((function(){!1===o._state.showResultList&&(o._state.isFocused=!1),o._state.showResultList=!1}))),U(this,"updateFocus",this.__updater((function(t){o._state.isFocused=t,o._state.resultData&&(o._state.showResultList=t)}))),U(this,"setNewFilter",this.__updater((function(t){o._state.filter=t,o._state.restoreData=H({},o._state.restoreData&&o._state.restoreData||{},{filter:o._state.filter}),o._state.options.searchOptions&&(o._state.options.searchOptions.categorySet=t.categorySet||void 0,o._state.options.searchOptions.brandSet=t.brandSet||void 0)}))),this.onUpdate=e,this.events=r,this._state=H({},this._getInitialState(),{options:this._processOptions(n)})}var e,n,r;return e=t,(n=[{key:"setMapCenter",value:function(t){this.mapCenter=t}}])&&B(e.prototype,n),r&&B(e,r),t}();function W(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}function Z(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){W(i,r,o,a,s,"next",t)}function s(t){W(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){q(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function X(t,e,n){function r(n,r,o){var i=t.getCurrentState().filter,a=t.getMapCenter(),s=Boolean(i),u={};if(n.searchOptions){var c=Y({},s&&i.categorySet&&{categorySet:i.categorySet},{},s&&i.brandSet&&{brandSet:i.brandSet}),l=Y({query:r,typeahead:s||o},a&&{center:a},{},n.searchOptions,{},c);u.fuzzySearch=e.fuzzySearch(l)}if(n.autocompleteOptions&&!s){var f=Y({query:r},a&&{center:a},{},n.autocompleteOptions);u.autocomplete=e.autocomplete(f)}return function(t){return Promise.all(Object.entries(t).map((function(t){var e=Q(t,2),n=e[0];return e[1].go().then((function(t){return{name:n,value:t,resolved:!0}})).catch((function(t){return{name:n,value:t,rejected:!0}}))}))).then((function(t){return{results:t.filter((function(t){return t.resolved})).reduce((function(t,e){return Y({},t,q({},e.name,e.value))}),{}),errors:t.filter((function(t){return t.rejected})).reduce((function(t,e){return Y({},t,q({},e.name,e.value))}),{})}}))}(u)}var o,i=Z(regeneratorRuntime.mark((function e(){var i,a,s,u,c,l,f,p,h,d,_,v,y,b,g,m=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=m.length>0&&void 0!==m[0]?m[0]:{},a=i.triggeredBySubmit,s=void 0!==a&&a,u=i.useTypeahead,c=void 0===u||u,l=Date.now(),o=l,f=t.getCurrentState(),p=f.value,h=f.options,d=f.filter,!(p.length<h.minNumberOfCharacters&&!d||0===p.trim().length&&!d)){e.next=6;break}return e.abrupt("return",void 0);case 6:return e.next=8,r(h,p,c);case 8:if(_=e.sent,v=_.results,y=_.errors,b=v.autocomplete,g=v.fuzzySearch,h.filterSearchResults&&g&&g.results&&(g.results=g.results.filter(h.filterSearchResults)),l!==o){e.next=16;break}return n.resultsFound({triggeredBy:s?"submit":"input",results:v,errors:y}),e.abrupt("return",[g,b]);case 16:return e.abrupt("return",void 0);case 17:case"end":return e.stop()}}),e)})));function a(e,n){var r=t.getCurrentState().options,o=n||r.searchOptions&&r.searchOptions.typeahead||!1;i({useTypeahead:o,triggeredBySubmit:e}).then((function(n){n&&(e?t.updateResults(n):t.storeResults(n))}))}return{onClearClick:function(){t.reset(),n.resultsCleared()},onResultSelected:function(e){t.onResultSelected(e)},onClearFilterClick:function(){t.onRemoveFilter(),t.updateFocus(!0),a(!1,!0)},onEnterKeyPress:function(){var e=t.getCurrentState().resultIndexPosition;-1!==e?t.onResultSelected(e):(t.onEnterKeyPress(),a(!0,!1))},updateOnArrowPress:function(e){t.updateOnUpDownPress(e)},onEscKeyPress:function(){t.onEscKeyPress()},updateFocus:function(e){t.updateFocus(e)},runQuery:a,setNewValue:function(e){t.storeInput(e)},setNewValueManually:function(e){t.storeInputManually(e)},setNewFilter:function(e){t.setNewFilter(e)},setMapCenter:function(e){t.setMapCenter(e)},removeFilter:function(){t.onRemoveFilter()}}}var J="tomtom.searchbox.resultscleared",tt="tomtom.searchbox.resultsfound",et="tomtom.searchbox.resultselected",nt="tomtom.searchbox.resultfocused",rt="tomtom.searchbox.inputrestored",ot=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.origin=e,this.data=n},it=function(t,e){return new ot(t,e)};function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function st(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?at(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(t){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lt(t){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ft(t,e){return(ft=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ht(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dt=function(t){function e(t,n){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=function(t,e){return!e||"object"!==ct(e)&&"function"!=typeof e?pt(t):e}(this,lt(e).call(this)),ht(pt(pt(r)),"_onStoreChange",(function(){r._inputWrapper.update(),r._resultList.update()})),ht(pt(pt(r)),"_createSearchBoxContainer",(function(){return r._container=document.createElement("div"),r._container.className="tt-search-box",r._inputWrapper=new x(r._container,r.store,r.userActions),r._resultList=new j(r._container,r.store,r.userActions),r._container})),ht(pt(pt(r)),"getOptions",(function(){return r.store.getCurrentState().options})),ht(pt(pt(r)),"updateOptions",(function(t){r.store.storeOptions(t)})),ht(pt(pt(r)),"getSearchBoxHTML",(function(){return r._container})),ht(pt(pt(r)),"onAdd",(function(t){return r.store.getCurrentState().options.cssStyleCheck&&Object(T.a)(["SearchBox.css"]),r._map=t,r._map.on("move",(function(){return r.userActions.setMapCenter(t.getCenter())})),r._container.classList.add("mapboxgl-ctrl","tt-ctrl"),r._container})),ht(pt(pt(r)),"onRemove",(function(){r._container.parentNode.removeChild(r._container),r._map=void 0})),ht(pt(pt(r)),"query",(function(){r.userActions.runQuery(!0)})),ht(pt(pt(r)),"setValue",(function(t){r.userActions.setNewValueManually(t)})),ht(pt(pt(r)),"getValue",(function(){return r.store.getCurrentState().value||""})),ht(pt(pt(r)),"setFilter",(function(t){var e,n=t.value,o=t.type,i=r.store.getCurrentState().options;if(!o||!n)throw new Error("setFilter: Invalid filterOptions format passed. Expected object properties are[type] and [value]");if(!i.searchOptions)throw new Error("setFilter: You can not use setFilter without setting searchOptions.");if("category"===o)e={categorySet:n.id,text:n.name,type:"category"};else{if("brand"!==o)throw new Error("setFilter: Filter type is expected to be 'category' or 'brand'.");e={brandSet:n.name,text:n.name,type:"category"}}r.userActions.setNewFilter(e)})),ht(pt(pt(r)),"removeFilter",(function(){r.store.getCurrentState().options.searchOptions&&r.userActions.removeFilter()}));var o,i=(o=pt(pt(r)),{resultsFound:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.triggeredBy,n=t.results,r=t.errors;o.fire(tt,it(null,st({metadata:{triggeredBy:e}},Object.keys(n).length>0&&{results:n},{},Object.keys(r).length>0&&{errors:r})))},resultsCleared:function(){o.fire(J)},resultSelected:function(t){var e=t.result,n=t.text;o.fire(et,it(null,{result:e,text:n}))},resultFocused:function(t){var e=t.result,n=t.text;o.fire(nt,it(null,{result:e,text:n}))},inputRestored:function(){o.fire(rt)}});return r.store=new K(r._onStoreChange,n,i),r.userActions=X(r.store,t,i),r._createSearchBoxContainer(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ft(t,e)}(e,t),e}(D);window.tt=window.tt||{},window.tt.plugins=window.tt.plugins||{},window.tt.plugins.SearchBox=dt}]); |
@@ -1,3 +0,3 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(e,t,n){"use strict";function r(e){var t=!1,n=!0,r=!1,i=void 0;try{for(var o,s=document.styleSheets[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value.href;if(a&&-1!==a.indexOf(e)){t=!0;break}}}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}t||console.warn('It seems that you forgot to add "'.concat(e,'" to your page, that is ')+"why some information might not be visible on your map. You can find the missing asset on our Downloads page: https://developer.tomtom.com/maps-sdk-web-js/downloads")}t.a=function(e){var t=!0,n=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(t=(o=s.next()).done);t=!0){r(o.value)}}catch(e){n=!0,i=e}finally{try{t||null==s.return||s.return()}finally{if(n)throw i}}}},,function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,a="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,l=a||u||Function("return this")(),c=Object.prototype.toString,p=Math.max,f=Math.min,h=function(){return l.Date.now()};function d(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(d(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=d(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var a=i.test(e);return a||o.test(e)?s(e.slice(2),a?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,o,s,a,u,l=0,c=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,o=i;return r=i=void 0,l=t,s=e.apply(o,n)}function g(e){return l=e,a=setTimeout(w,t),c?y(e):s}function b(e){var n=e-u;return void 0===u||n>=t||n<0||v&&e-l>=o}function w(){var e=h();if(b(e))return O(e);a=setTimeout(w,function(e){var n=t-(e-u);return v?f(n,o-(e-l)):n}(e))}function O(e){return a=void 0,m&&r?y(e):(r=i=void 0,s)}function x(){var e=h(),n=b(e);if(r=arguments,i=this,u=e,n){if(void 0===a)return g(u);if(v)return a=setTimeout(w,t),y(u)}return void 0===a&&(a=setTimeout(w,t)),s}return t=_(t)||0,d(n)&&(c=!!n.leading,o=(v="maxWait"in n)?p(_(n.maxWait)||0,t):o,m="trailing"in n?!!n.trailing:m),x.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=u=i=a=void 0},x.flush=function(){return void 0===a?s:O(h())},x}}).call(this,n(2))},,,,,function(e,t){ | ||
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=14)}([function(t,e,n){"use strict";function r(t){var e=!1,n=!0,r=!1,o=void 0;try{for(var i,a=document.styleSheets[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value.href;if(s&&-1!==s.indexOf(t)){e=!0;break}}}catch(t){r=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}e||console.warn('It seems that you forgot to add "'.concat(t,'" to your page, that is ')+"why some information might not be visible on your map. You can find the missing asset on our Downloads page: https://developer.tomtom.com/maps-sdk-web-js/downloads")}e.a=function(t){var e=!0,n=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(e=(i=a.next()).done);e=!0){r(i.value)}}catch(t){n=!0,o=t}finally{try{e||null==a.return||a.return()}finally{if(n)throw o}}}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,c=s||u||Function("return this")(),l=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return c.Date.now()};function d(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function _(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==l.call(t)}(t))return NaN;if(d(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=d(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var s=o.test(t);return s||i.test(t)?a(t.slice(2),s?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r,o,i,a,s,u,c=0,l=!1,v=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var n=r,i=o;return r=o=void 0,c=e,a=t.apply(i,n)}function g(t){return c=t,s=setTimeout(j,e),l?b(t):a}function m(t){var n=t-u;return void 0===u||n>=e||n<0||v&&t-c>=i}function j(){var t=h();if(m(t))return w(t);s=setTimeout(j,function(t){var n=e-(t-u);return v?p(n,i-(t-c)):n}(t))}function w(t){return s=void 0,y&&r?b(t):(r=o=void 0,a)}function O(){var t=h(),n=m(t);if(r=arguments,o=this,u=t,n){if(void 0===s)return g(u);if(v)return s=setTimeout(j,e),b(u)}return void 0===s&&(s=setTimeout(j,e)),a}return e=_(e)||0,d(n)&&(l=!!n.leading,i=(v="maxWait"in n)?f(_(n.maxWait)||0,e):i,y="trailing"in n?!!n.trailing:y),O.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},O.flush=function(){return void 0===s?a:w(h())},O}}).call(this,n(1))},function(t,e,n){(function(t,n){var r="[object Arguments]",o="[object Map]",i="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[r]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[o]=c["[object Number]"]=c[i]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1;var l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=e&&!e.nodeType&&e,d=h&&"object"==typeof n&&n&&!n.nodeType&&n,_=d&&d.exports===h,v=_&&l.process,y=function(){try{return v&&v.binding&&v.binding("util")}catch(t){}}(),b=y&&y.isTypedArray;function g(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function m(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function j(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var w,O,S,C=Array.prototype,x=Function.prototype,A=Object.prototype,P=p["__core-js_shared__"],E=x.toString,R=A.hasOwnProperty,D=(w=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",T=A.toString,L=RegExp("^"+E.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=_?p.Buffer:void 0,F=p.Symbol,I=p.Uint8Array,M=A.propertyIsEnumerable,N=C.splice,B=F?F.toStringTag:void 0,z=Object.getOwnPropertySymbols,H=k?k.isBuffer:void 0,U=(O=Object.keys,S=Object,function(t){return O(S(t))}),$=yt(p,"DataView"),V=yt(p,"Map"),K=yt(p,"Promise"),W=yt(p,"Set"),Z=yt(p,"WeakMap"),Q=yt(Object,"create"),G=jt($),Y=jt(V),q=jt(K),X=jt(W),J=jt(Z),tt=F?F.prototype:void 0,et=tt?tt.valueOf:void 0;function nt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function rt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function it(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new ot;++e<n;)this.add(t[e])}function at(t){var e=this.__data__=new rt(t);this.size=e.size}function st(t,e){var n=St(t),r=!n&&Ot(t),o=!n&&!r&&Ct(t),i=!n&&!r&&!o&&Rt(t),a=n||r||o||i,s=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=s.length;for(var c in t)!e&&!R.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mt(c,u))||s.push(c);return s}function ut(t,e){for(var n=t.length;n--;)if(wt(t[n][0],e))return n;return-1}function ct(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":B&&B in Object(t)?function(t){var e=R.call(t,B),n=t[B];try{t[B]=void 0;var r=!0}catch(t){}var o=T.call(t);r&&(e?t[B]=n:delete t[B]);return o}(t):function(t){return T.call(t)}(t)}function lt(t){return Et(t)&&ct(t)==r}function ft(t,e,n,s,u){return t===e||(null==t||null==e||!Et(t)&&!Et(e)?t!=t&&e!=e:function(t,e,n,s,u,c){var l=St(t),f=St(e),p=l?"[object Array]":gt(t),h=f?"[object Array]":gt(e),d=(p=p==r?i:p)==i,_=(h=h==r?i:h)==i,v=p==h;if(v&&Ct(t)){if(!Ct(e))return!1;l=!0,d=!1}if(v&&!d)return c||(c=new at),l||Rt(t)?dt(t,e,n,s,u,c):function(t,e,n,r,i,s,u){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!s(new I(t),new I(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return wt(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case o:var c=m;case a:var l=1&r;if(c||(c=j),t.size!=e.size&&!l)return!1;var f=u.get(t);if(f)return f==e;r|=2,u.set(t,e);var p=dt(c(t),c(e),r,i,s,u);return u.delete(t),p;case"[object Symbol]":if(et)return et.call(t)==et.call(e)}return!1}(t,e,p,n,s,u,c);if(!(1&n)){var y=d&&R.call(t,"__wrapped__"),b=_&&R.call(e,"__wrapped__");if(y||b){var g=y?t.value():t,w=b?e.value():e;return c||(c=new at),u(g,w,n,s,c)}}if(!v)return!1;return c||(c=new at),function(t,e,n,r,o,i){var a=1&n,s=_t(t),u=s.length,c=_t(e).length;if(u!=c&&!a)return!1;var l=u;for(;l--;){var f=s[l];if(!(a?f in e:R.call(e,f)))return!1}var p=i.get(t);if(p&&i.get(e))return p==e;var h=!0;i.set(t,e),i.set(e,t);var d=a;for(;++l<u;){f=s[l];var _=t[f],v=e[f];if(r)var y=a?r(v,_,f,e,t,i):r(_,v,f,t,e,i);if(!(void 0===y?_===v||o(_,v,n,r,i):y)){h=!1;break}d||(d="constructor"==f)}if(h&&!d){var b=t.constructor,g=e.constructor;b!=g&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g)&&(h=!1)}return i.delete(t),i.delete(e),h}(t,e,n,s,u,c)}(t,e,n,s,ft,u))}function pt(t){return!(!Pt(t)||function(t){return!!D&&D in t}(t))&&(xt(t)?L:s).test(jt(t))}function ht(t){if(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||A,e!==r)return U(t);var e,n,r,o=[];for(var i in Object(t))R.call(t,i)&&"constructor"!=i&&o.push(i);return o}function dt(t,e,n,r,o,i){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=i.get(t);if(c&&i.get(e))return c==e;var l=-1,f=!0,p=2&n?new it:void 0;for(i.set(t,e),i.set(e,t);++l<s;){var h=t[l],d=e[l];if(r)var _=a?r(d,h,l,e,t,i):r(h,d,l,t,e,i);if(void 0!==_){if(_)continue;f=!1;break}if(p){if(!g(e,(function(t,e){if(a=e,!p.has(a)&&(h===t||o(h,t,n,r,i)))return p.push(e);var a}))){f=!1;break}}else if(h!==d&&!o(h,d,n,r,i)){f=!1;break}}return i.delete(t),i.delete(e),f}function _t(t){return function(t,e,n){var r=e(t);return St(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,Dt,bt)}function vt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function yt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return pt(n)?n:void 0}nt.prototype.clear=function(){this.__data__=Q?Q(null):{},this.size=0},nt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},nt.prototype.get=function(t){var e=this.__data__;if(Q){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return R.call(e,t)?e[t]:void 0},nt.prototype.has=function(t){var e=this.__data__;return Q?void 0!==e[t]:R.call(e,t)},nt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Q&&void 0===e?"__lodash_hash_undefined__":e,this},rt.prototype.clear=function(){this.__data__=[],this.size=0},rt.prototype.delete=function(t){var e=this.__data__,n=ut(e,t);return!(n<0)&&(n==e.length-1?e.pop():N.call(e,n,1),--this.size,!0)},rt.prototype.get=function(t){var e=this.__data__,n=ut(e,t);return n<0?void 0:e[n][1]},rt.prototype.has=function(t){return ut(this.__data__,t)>-1},rt.prototype.set=function(t,e){var n=this.__data__,r=ut(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},ot.prototype.clear=function(){this.size=0,this.__data__={hash:new nt,map:new(V||rt),string:new nt}},ot.prototype.delete=function(t){var e=vt(this,t).delete(t);return this.size-=e?1:0,e},ot.prototype.get=function(t){return vt(this,t).get(t)},ot.prototype.has=function(t){return vt(this,t).has(t)},ot.prototype.set=function(t,e){var n=vt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},it.prototype.add=it.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},it.prototype.has=function(t){return this.__data__.has(t)},at.prototype.clear=function(){this.__data__=new rt,this.size=0},at.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},at.prototype.get=function(t){return this.__data__.get(t)},at.prototype.has=function(t){return this.__data__.has(t)},at.prototype.set=function(t,e){var n=this.__data__;if(n instanceof rt){var r=n.__data__;if(!V||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ot(r)}return n.set(t,e),this.size=n.size,this};var bt=z?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}(z(t),(function(e){return M.call(t,e)})))}:function(){return[]},gt=ct;function mt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||u.test(t))&&t>-1&&t%1==0&&t<e}function jt(t){if(null!=t){try{return E.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function wt(t,e){return t===e||t!=t&&e!=e}($&&"[object DataView]"!=gt(new $(new ArrayBuffer(1)))||V&>(new V)!=o||K&&"[object Promise]"!=gt(K.resolve())||W&>(new W)!=a||Z&&"[object WeakMap]"!=gt(new Z))&&(gt=function(t){var e=ct(t),n=e==i?t.constructor:void 0,r=n?jt(n):"";if(r)switch(r){case G:return"[object DataView]";case Y:return o;case q:return"[object Promise]";case X:return a;case J:return"[object WeakMap]"}return e});var Ot=lt(function(){return arguments}())?lt:function(t){return Et(t)&&R.call(t,"callee")&&!M.call(t,"callee")},St=Array.isArray;var Ct=H||function(){return!1};function xt(t){if(!Pt(t))return!1;var e=ct(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function At(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Pt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Et(t){return null!=t&&"object"==typeof t}var Rt=b?function(t){return function(e){return t(e)}}(b):function(t){return Et(t)&&At(t.length)&&!!c[ct(t)]};function Dt(t){return null!=(e=t)&&At(e.length)&&!xt(e)?st(t):ht(t);var e}n.exports=function(t,e){return ft(t,e)}}).call(this,n(1),n(3)(t))},function(t,e,n){(function(t,n){var r="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",a="[object Map]",s="[object Set]",u=/\w*$/,c=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,f={};f[r]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object DataView]"]=f["[object Boolean]"]=f["[object Date]"]=f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f[a]=f["[object Number]"]=f["[object Object]"]=f["[object RegExp]"]=f[s]=f["[object String]"]=f["[object Symbol]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f["[object Error]"]=f[o]=f["[object WeakMap]"]=!1;var p="object"==typeof t&&t&&t.Object===Object&&t,h="object"==typeof self&&self&&self.Object===Object&&self,d=p||h||Function("return this")(),_=e&&!e.nodeType&&e,v=_&&"object"==typeof n&&n&&!n.nodeType&&n,y=v&&v.exports===_;function b(t,e){return t.set(e[0],e[1]),t}function g(t,e){return t.add(e),t}function m(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function j(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function w(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function O(t,e){return function(n){return t(e(n))}}function S(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var C,x=Array.prototype,A=Function.prototype,P=Object.prototype,E=d["__core-js_shared__"],R=(C=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",D=A.toString,T=P.hasOwnProperty,L=P.toString,k=RegExp("^"+D.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),F=y?d.Buffer:void 0,I=d.Symbol,M=d.Uint8Array,N=O(Object.getPrototypeOf,Object),B=Object.create,z=P.propertyIsEnumerable,H=x.splice,U=Object.getOwnPropertySymbols,$=F?F.isBuffer:void 0,V=O(Object.keys,Object),K=vt(d,"DataView"),W=vt(d,"Map"),Z=vt(d,"Promise"),Q=vt(d,"Set"),G=vt(d,"WeakMap"),Y=vt(Object,"create"),q=jt(K),X=jt(W),J=jt(Z),tt=jt(Q),et=jt(G),nt=I?I.prototype:void 0,rt=nt?nt.valueOf:void 0;function ot(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function it(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function at(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function st(t){this.__data__=new it(t)}function ut(t,e){var n=Ot(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&St(t)}(t)&&T.call(t,"callee")&&(!z.call(t,"callee")||L.call(t)==r)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],o=n.length,i=!!o;for(var a in t)!e&&!T.call(t,a)||i&&("length"==a||gt(a,o))||n.push(a);return n}function ct(t,e,n){var r=t[e];T.call(t,e)&&wt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function lt(t,e){for(var n=t.length;n--;)if(wt(t[n][0],e))return n;return-1}function ft(t,e,n,c,l,p,h){var d;if(c&&(d=p?c(t,l,p,h):c(t)),void 0!==d)return d;if(!At(t))return t;var _=Ot(t);if(_){if(d=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&T.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,r=t.length;e||(e=Array(r));for(;++n<r;)e[n]=t[n];return e}(t,d)}else{var v=bt(t),y=v==o||v==i;if(Ct(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if("[object Object]"==v||v==r||y&&!p){if(j(t))return p?t:{};if(d=function(t){return"function"!=typeof t.constructor||mt(t)?{}:(e=N(t),At(e)?B(e):{});var e}(y?{}:t),!e)return function(t,e){return dt(t,yt(t),e)}(t,function(t,e){return t&&dt(e,Pt(e),t)}(d,t))}else{if(!f[v])return p?t:{};d=function(t,e,n,r){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return ht(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return function(t,e){var n=e?ht(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var n=e?ht(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case a:return function(t,e,n){return m(e?n(w(t),!0):w(t),b,new t.constructor)}(t,r,n);case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,u.exec(t));return e.lastIndex=t.lastIndex,e}(t);case s:return function(t,e,n){return m(e?n(S(t),!0):S(t),g,new t.constructor)}(t,r,n);case"[object Symbol]":return i=t,rt?Object(rt.call(i)):{}}var i}(t,v,ft,e)}}h||(h=new st);var O=h.get(t);if(O)return O;if(h.set(t,d),!_)var C=n?function(t){return function(t,e,n){var r=e(t);return Ot(t)?r:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(r,n(t))}(t,Pt,yt)}(t):Pt(t);return function(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););}(C||t,(function(r,o){C&&(r=t[o=r]),ct(d,o,ft(r,e,n,c,o,t,h))})),d}function pt(t){return!(!At(t)||(e=t,R&&R in e))&&(xt(t)||j(t)?k:c).test(jt(t));var e}function ht(t){var e=new t.constructor(t.byteLength);return new M(e).set(new M(t)),e}function dt(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var a=e[o],s=r?r(n[a],t[a],a,n,t):void 0;ct(n,a,void 0===s?t[a]:s)}return n}function _t(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function vt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return pt(n)?n:void 0}ot.prototype.clear=function(){this.__data__=Y?Y(null):{}},ot.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ot.prototype.get=function(t){var e=this.__data__;if(Y){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return T.call(e,t)?e[t]:void 0},ot.prototype.has=function(t){var e=this.__data__;return Y?void 0!==e[t]:T.call(e,t)},ot.prototype.set=function(t,e){return this.__data__[t]=Y&&void 0===e?"__lodash_hash_undefined__":e,this},it.prototype.clear=function(){this.__data__=[]},it.prototype.delete=function(t){var e=this.__data__,n=lt(e,t);return!(n<0)&&(n==e.length-1?e.pop():H.call(e,n,1),!0)},it.prototype.get=function(t){var e=this.__data__,n=lt(e,t);return n<0?void 0:e[n][1]},it.prototype.has=function(t){return lt(this.__data__,t)>-1},it.prototype.set=function(t,e){var n=this.__data__,r=lt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},at.prototype.clear=function(){this.__data__={hash:new ot,map:new(W||it),string:new ot}},at.prototype.delete=function(t){return _t(this,t).delete(t)},at.prototype.get=function(t){return _t(this,t).get(t)},at.prototype.has=function(t){return _t(this,t).has(t)},at.prototype.set=function(t,e){return _t(this,t).set(t,e),this},st.prototype.clear=function(){this.__data__=new it},st.prototype.delete=function(t){return this.__data__.delete(t)},st.prototype.get=function(t){return this.__data__.get(t)},st.prototype.has=function(t){return this.__data__.has(t)},st.prototype.set=function(t,e){var n=this.__data__;if(n instanceof it){var r=n.__data__;if(!W||r.length<199)return r.push([t,e]),this;n=this.__data__=new at(r)}return n.set(t,e),this};var yt=U?O(U,Object):function(){return[]},bt=function(t){return L.call(t)};function gt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||l.test(t))&&t>-1&&t%1==0&&t<e}function mt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||P)}function jt(t){if(null!=t){try{return D.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function wt(t,e){return t===e||t!=t&&e!=e}(K&&"[object DataView]"!=bt(new K(new ArrayBuffer(1)))||W&&bt(new W)!=a||Z&&"[object Promise]"!=bt(Z.resolve())||Q&&bt(new Q)!=s||G&&"[object WeakMap]"!=bt(new G))&&(bt=function(t){var e=L.call(t),n="[object Object]"==e?t.constructor:void 0,r=n?jt(n):void 0;if(r)switch(r){case q:return"[object DataView]";case X:return a;case J:return"[object Promise]";case tt:return s;case et:return"[object WeakMap]"}return e});var Ot=Array.isArray;function St(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!xt(t)}var Ct=$||function(){return!1};function xt(t){var e=At(t)?L.call(t):"";return e==o||e==i}function At(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Pt(t){return St(t)?ut(t):function(t){if(!mt(t))return V(t);var e=[];for(var n in Object(t))T.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}n.exports=function(t,e){return ft(t,!0,!0,e)}}).call(this,n(1),n(3)(t))},,,,,function(t,e){ | ||
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */ | ||
"document"in window.self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(e){"use strict";if("Element"in e){var t=e.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},i=Array.prototype.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},o=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},s=function(e,t){if(""===t)throw new o("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new o("INVALID_CHARACTER_ERR","String contains an invalid character");return i.call(e,t)},a=function(e){for(var t=r.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],i=0,o=n.length;i<o;i++)this.push(n[i]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},u=a.prototype=[],l=function(){return new a(this)};if(o.prototype=Error.prototype,u.item=function(e){return this[e]||null},u.contains=function(e){return-1!==s(this,e+="")},u.add=function(){var e,t=arguments,n=0,r=t.length,i=!1;do{e=t[n]+"",-1===s(this,e)&&(this.push(e),i=!0)}while(++n<r);i&&this._updateClassName()},u.remove=function(){var e,t,n=arguments,r=0,i=n.length,o=!1;do{for(e=n[r]+"",t=s(this,e);-1!==t;)this.splice(t,1),o=!0,t=s(this,e)}while(++r<i);o&&this._updateClassName()},u.toggle=function(e,t){e+="";var n=this.contains(e),r=n?!0!==t&&"remove":!1!==t&&"add";return r&&this[r](e),!0===t||!1===t?t:!n},u.toString=function(){return this.join(" ")},n.defineProperty){var c={get:l,enumerable:!0,configurable:!0};try{n.defineProperty(t,"classList",c)}catch(e){void 0!==e.number&&-2146823252!==e.number||(c.enumerable=!1,n.defineProperty(t,"classList",c))}}else n.prototype.__defineGetter__&&t.__defineGetter__("classList",l)}}(window.self),function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,r=arguments.length;for(n=0;n<r;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}e=null}())},function(e,t,n){e.exports=n.p+"src/SearchBox/dist/SearchBox.css"},,,function(e,t,n){"use strict";n.r(t);n(8);var r="tomtom.searchbox.resultscleared",i="tomtom.searchbox.resultsfound",o="tomtom.searchbox.resultselected",s="tomtom.searchbox.resultfocused",a="tomtom.searchbox.inputrestored",u=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.origin=t,this.data=n},l=function(e,t){return new u(e,t)},c=40,p=38,f=46,h=13,d=27,_=8,v="FUZZY_SEARCH",m="AUTOCOMPLETE",y="brand",g="category",b='\n <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <path d="M10.5,4 C14.0898509,4 17,6.91014913 17,10.5 C17,11.9337106 16.5358211,13.2590065 15.7495478,14.3338028 L19.7071068,18.2928932 C20.0976311,18.6834175 20.0976311,19.3165825 19.7071068,19.7071068 C19.3165825,20.0976311 18.6834175,20.0976311 18.2928932,19.7071068 L14.3338028,15.7495478 C13.2590065,16.5358211 11.9337106,17 10.5,17 C6.91014913,17 4,14.0898509 4,10.5 C4,6.91014913 6.91014913,4 10.5,4 Z M10.5,6 C8.01471863,6 6,8.01471863 6,10.5 C6,12.9852814 8.01471863,15 10.5,15 C12.9852814,15 15,12.9852814 15,10.5 C15,8.01471863 12.9852814,6 10.5,6 Z" id="Shape"></path>\n </svg>',w='\n <svg xmlns="http://www.w3.org/2000/svg" width="15" height="13" viewBox="0 0 15 13">\n <path d="M15.512418,11.5 L19.9637666,7.28870352 C20.1223719,7.13865149 20.1223719,6.89512441 19.9637666,6.74507238 L18.2390424,5.11253903 C18.0795704,4.96248699 17.8221618,4.96248699 17.6635565,5.11253903 L13.2122078,9.3238355 L8.7608592,5.11253903 C8.68545669,5.04120281 8.58145321,5.00020499 8.47398296,5.00020499 C8.36564601,5.00020499 8.26250923,5.04120281 8.18624002,5.11253903 L6.46064906,6.74507238 C6.38437985,6.81722855 6.34191176,6.91480337 6.34191176,7.01729793 C6.34191176,7.11979249 6.38437985,7.21736731 6.46064906,7.28952348 L10.9119977,11.5 L6.46064906,15.7112965 C6.38437985,15.7834526 6.34191176,15.8810275 6.34191176,15.9827021 C6.34191176,16.0851966 6.38437985,16.1827715 6.46064906,16.2549276 L8.18624002,17.887461 C8.26250923,17.9596171 8.36564601,17.999795 8.47398296,17.999795 C8.58145321,17.999795 8.68545669,17.9596171 8.7608592,17.887461 L13.2122078,13.6761645 L17.6635565,17.887461 C17.8221618,18.037513 18.0795704,18.037513 18.2390424,17.887461 L19.9637666,16.2549276 C20.1223719,16.1048756 20.1223719,15.8613485 19.9637666,15.7112965 L15.512418,11.5 Z" transform="translate(-5.544 -5)"/>\n </svg>';function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}var S=function(){function e(t,n,r,i){var o,a,u,c=this;O(this,e),u=function(){c._evented.fire(s,l(null,{result:c._result,text:c._getResultText()}))},(a="focus")in(o=this)?Object.defineProperty(o,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[a]=u,this._evented=t,this._options=r,this._result=n,this._type=i,this._createResultElement()}return C(e,[{key:"select",value:function(e){this._evented.fire(o,l(e,{result:this._result,text:this._getResultText()}))}},{key:"getContainer",value:function(){return this._container}},{key:"_createResultElement",value:function(){this._container=document.createElement("div"),this._container.onmousedown=function(e){return e.preventDefault()},this._container.onclick=this.select.bind(this),this._container.className="tt-search-box-result-list";var e=function(e){return'<span class="tt-search-box-result-list-bold">'.concat(e,"</span>")},t=function(e){return'<span class="tt-search-box-result-list-text-content">'.concat(e,"</span>")};switch(this._type){case v:var n=this._getAddress(),r=this._getPoiName(),i=null;n&&r?i="".concat(e(r)," ").concat(n):n&&(i="".concat(e(n))),i&&(this._container.innerHTML="".concat('\n <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <path d="M12,4 C15.3068357,4 18,6.61029768 18,9.84615385 C18,11.813391 16.4537597,14.7566138 13.3693459,18.8534202 L13.3693459,18.8534202 L12.7915956,19.6110453 C12.3912752,20.1296516 11.6087248,20.1296516 11.2084044,19.6110453 C7.73934285,15.1169529 6,11.9326175 6,9.84615385 C6,6.61029768 8.69316428,4 12,4 Z M12,6 C9.78398823,6 8,7.72909628 8,9.84615385 C8,11.1589113 9.25046927,13.5982613 11.758095,17.016979 L11.758095,17.016979 L11.999,17.344 L12.4887469,16.6780042 C14.7534108,13.5448791 15.9207088,11.2710802 15.9960961,9.97670688 L15.9960961,9.97670688 L16,9.84615385 C16,7.72909628 14.2160118,6 12,6 Z M12,8 C13.1045695,8 14,8.8954305 14,10 C14,11.1045695 13.1045695,12 12,12 C10.8954305,12 10,11.1045695 10,10 C10,8.8954305 10.8954305,8 12,8 Z" id="Combined-Shape" fill-rule="nonzero"></path>\n </svg>'," ").concat(t("".concat(i))));break;case m:var o=this._getSuggestionName(),s=this._getSuggestionType();if(o&&s){var a="plaintext"===s?"":" ".concat(this._options.labels.suggestions[s]);this._container.innerHTML="".concat(b," ").concat(t("".concat(e(o)).concat(a)))}}}},{key:"_getSuggestionName",value:function(){return this._result.value?this._result.value:null}},{key:"_getSuggestionType",value:function(){return this._result.type?this._result.type:null}},{key:"_getPoiName",value:function(){return void 0!==this._result.poi&&void 0!==this._result.poi.name?this._result.poi.name:null}},{key:"_getAddress",value:function(){if(void 0!==this._result.address){var e=[];return void 0!==this._result.address.freeformAddress&&e.push(this._result.address.freeformAddress),void 0!==this._result.address.countryCodeISO3&&e.push(this._result.address.countryCodeISO3),e.join(", ")}return null}},{key:"_getResultText",value:function(){switch(this._type){case v:return this._result.poi?this._result.poi.name+", "+this._result.address.freeformAddress:this._result.address.freeformAddress;case m:return this._result.value}return""}}]),e}(),T=function(){function e(t){O(this,e),this._container=document.createElement("div"),this._container.className="tt-search-box-result-list",this._container.innerText=t}return C(e,[{key:"select",value:function(){}},{key:"getContainer",value:function(){return this._container}}]),e}(),I={resultListElement:function(e,t,n,r){return new S(e,t,n,r)},noResultsListElement:function(e){return new T(e)}};function j(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),R(this,"_onKeyDown",(function(e){var t=e.keyCode||e.which;t===c||t===p?i._highlightElement(t):t===h&&i._selectElement(e)})),R(this,"setVisibility",(function(e){var t=e?"remove":"add";i._container.classList[t]("-hidden")})),R(this,"_findAutocompleteResponseSegments",(function(e,t){var n={};for(var r in e){var i=e[r].segments;for(var o in i){if(Object.keys(n).length===t)break;var s=i[o];"plaintext"!==s.type&&(n[s.type+s.value]=s)}}return n})),R(this,"_hasAnyResults",(function(e,t){return!(e&&e.results&&e.results.length||t&&t.results&&t.results.length)})),R(this,"_convertSearchResponseToListElements",(function(e){var t=L(e,2),n=t[0],r=t[1];if(i._hasAnyResults(n,r))return[I.noResultsListElement(i.params.options.labels.noResultsMessage)];var o=[];if(r&&r.results){var s=i._findAutocompleteResponseSegments(r.results,2);o.push.apply(o,j(Object.values(s).map((function(e){return I.resultListElement(i.params.evented,e,i.params.options,m)}))))}return n&&o.push.apply(o,j(n.results.map((function(e){return I.resultListElement(i.params.evented,e,i.params.options,v)})))),o})),R(this,"appendResults",(function(e){var t=L(e,2),n=t[0],r=t[1];i.clearResults();var o=i._convertSearchResponseToListElements([n,r]);i._resultsCount=o.length,o.forEach((function(e){i._resultListElements.push(e),i._container.appendChild(e.getContainer())}),i),i._container.style.height="auto"})),R(this,"clearResults",(function(){for(;i._container.firstChild;)i._container.removeChild(i._container.firstChild),i._container.style.height="0px";i._resultsCount=-1,i._resultListElements=[],i._highlightedIdx=-1})),R(this,"_highlightElement",(function(e){i._updateHighlightedElementStyle("remove"),i._updateHighlightedIndex(e),i._updateHighlightedElementStyle("add");var t=i._resultListElements[i._highlightedIdx];t&&t.focus&&t.focus()})),R(this,"_selectElement",(function(e){if(i._highlightedIdx>-1){var t=i._resultListElements[i._highlightedIdx];t&&t.select(e)}else e.preventDefault()})),R(this,"updateOptions",(function(e){i.params.options=Object.assign({},i.params.options,e)})),R(this,"getHighlightedIndex",(function(){return i._highlightedIdx})),R(this,"_updateHighlightedIndex",(function(e){i._highlightedIdx=e===p?i._highlightedIdx-1<0?-1:i._highlightedIdx-1:i._highlightedIdx+1>=i._resultsCount?0:i._highlightedIdx+1})),R(this,"_updateHighlightedElementStyle",(function(e){var t=i._container.childNodes[i._highlightedIdx];t&&(t.classList[e]("-highlighted"),"add"===e&&function(e,t,n){(!n||n&&!function(e,t){var n=e.scrollTop,r=n+e.clientHeight,i=t.offsetTop,o=i+t.clientHeight;return i>=n&&o<=r}(e,t))&&(e.scrollTop=t.offsetTop-e.offsetTop)}(i._container,t,!0))})),this.params={},this.params.evented=t,this.params.options=r,this._container=document.createElement("div"),this._container.className="tt-search-box-result-list-container -hidden",this._highlightedIdx=-1,this._resultsCount=-1,this._resultListElements=[],n.appendChild(this._container),n.onkeydown=this._onKeyDown},k=n(3),F=n.n(k);function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M=function e(t,n,i,o){var s=this,a=o.onInput,u=o.onKeydown,l=o.onKeyup,h=o.onClear,v=o.onClick,m=o.onBlur,y=o.onFilterReset;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),P(this,"updateOptions",(function(e){s.params.options=Object.assign({},s.params.options,e),s._setPlaceholder()})),P(this,"getValue",(function(){return s._input.value})),P(this,"setValue",(function(e){s._input.value=e;var t=s._input.value.length>0||s.isFilterSet();s._closeIcon.classList.toggle("-hidden",!t)})),P(this,"isFilterSet",(function(){return Boolean(s._filterType)})),P(this,"getPreviousData",(function(){return{previousValue:s._previousInput,previousFilterOptions:s._previousFilterOptions}})),P(this,"_create",(function(){s._inputContainer=document.createElement("div"),s._inputContainer.className="tt-search-box-input-container",s._inputContainer.onmousedown=function(e){return e.preventDefault()},s._inputContainer.onclick=s._onContainerClick,s._addSearchIcon(),s._addFilter(),s._addInput(),s._addClearIcon()})),P(this,"_onContainerClick",(function(){document.activeElement!==s._input&&s._input.focus()})),P(this,"_addFilter",(function(){s._filter=document.createElement("div"),s._filter.className="tt-searchbox-filter-label -hidden",s._filterText=document.createElement("div"),s._filterText.className="tt-searchbox-filter-label__text",s._filterRemoveButton=document.createElement("div"),s._filterRemoveButton.className="tt-searchbox-filter-label__close-button",s._filterRemoveButton.innerHTML=w,s._filter.appendChild(s._filterText),s._filter.appendChild(s._filterRemoveButton),s._inputContainer.appendChild(s._filter)})),P(this,"_clearFilter",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e&&s.params.onFilterReset(s._filterType),s._indicateFilterRemoval(!1),s._filterType=null,s._filter.classList.add("-hidden")})),P(this,"_clearPreviousFilter",(function(){s._previousFilterOptions={filterType:void 0,filterText:void 0}})),P(this,"updateFilter",(function(e){var t=e.text,n=e.type,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];i&&s.params.onFilterReset(s._filterType),s._filterType=n,s._filter.classList.remove("-hidden"),s._filterRemoveButton.onclick=function(){s._clearFilter(),s._clearPreviousFilter(),s._onInput()},s._filterText.innerText=t,r&&(s._previousFilterOptions={filterType:n,filterText:t})})),P(this,"_setPlaceholder",(function(){s._input.setAttribute("placeholder",s.params.options.labels.placeholder)})),P(this,"_addInput",(function(){s._input=document.createElement("input"),s._input.className="tt-search-box-input",s._setPlaceholder(),s._input.oninput=F()(s._onInput,s.params.options.idleTimePress),s._input.onfocus=s.toggleInputFocus.bind(null,!0),s._input.onmousedown=function(e){return e.stopPropagation()},s._input.onkeydown=s._onKeyDown,s._input.onkeyup=s._onKeyUp,s._input.onclick=s._onClick,s._input.onblur=s._onBlur,s._inputContainer.appendChild(s._input)})),P(this,"_onClick",(function(e){s._indicateFilterRemoval(!1),s.params.onClick(e)})),P(this,"_onBlur",(function(e){s.toggleInputFocus.call(null,!1),s.params.onBlur(e)})),P(this,"_indicateFilterRemoval",(function(e){s._filter.classList.toggle("-highlighted",e),s._isDeletionConfirmed=e})),P(this,"_onKeyDown",(function(e){s.params.onKeydown(e);var t=e.keyCode||e.which,n=t===_||t===f,r=t===_;r||s._indicateFilterRemoval(!1),n&&s._onBackspaceOrDelete(r)})),P(this,"_onBackspaceOrDelete",(function(e){var t=0===s._input.selectionStart,n=s._input.selectionEnd-s._input.selectionStart,r=0!==n&&n===s.getValue().length;t&&s.isFilterSet()&&(s._isDeletionConfirmed?(s._clearFilter(),s._clearPreviousFilter(),s._onInput()):!r&&e&&s._indicateFilterRemoval(!0))})),P(this,"_onKeyUp",(function(e){var t=e.keyCode||e.which;if(t!==c&&t!==p&&t!==d){s._previousInput=s.getValue();var n=s._filterText.innerText&&""!==s._filterText.innerText?s._filterText.innerText:void 0;s._previousFilterOptions={filterType:s._filterType,filterText:n}}s.params.onKeyup(e)})),P(this,"_addSearchIcon",(function(){s.params.options.showSearchButton&&(s._searchIcon=document.createElement("div"),s._searchIcon.innerHTML=b,s._inputContainer.appendChild(s._searchIcon))})),P(this,"_addClearIcon",(function(){s._closeIcon=document.createElement("div"),s._closeIcon.className="tt-search-box-close-icon -hidden",s._closeIcon.innerHTML=w,s._inputContainer.appendChild(s._closeIcon),s._closeIcon.onclick=function(){s._clearFilter(),s._clearPreviousFilter(),s._input.value="",s._onInput()}})),P(this,"_clearInputWrapper",(function(){s.params.onClear(),s.params.evented.fire(r),s._closeIcon.classList.add("-hidden"),s._previousInput=void 0,s._previousFilterOptions={filterType:void 0,filterText:void 0}})),P(this,"_onInput",(function(){var e=s._input.value.length>0||s.isFilterSet();s._closeIcon.classList.toggle("-hidden",!e),e&&s.params.onInput(s._input.value),0!==s._input.value.length||s.isFilterSet()||s._clearInputWrapper()})),P(this,"toggleInputFocus",(function(e){s._inputContainer.classList.toggle("-focused",e)})),this.params={},this.params.evented=t,this.params.options=i,this.params.onInput=a,this.params.onKeydown=u,this.params.onKeyup=l,this.params.onClear=h,this.params.onClick=v,this.params.onBlur=m,this.params.onFilterReset=y,this._create(),n.appendChild(this._inputContainer),this._previousInput=void 0,this._previousFilterOptions={filterType:void 0,filterText:void 0}};n(9);function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function B(e,t,n){var r=e[t];r||(r=[],e[t]=r),r.push(n)}function N(e,t,n){var r=e[t];return r&&r.forEach((function(e){e.apply(void 0,W(n))})),r}var H=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.eventToHandlersMap={},this.onceEventToHandlersMap={}}var t,n,r;return t=e,(n=[{key:"fire",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];N(this.eventToHandlersMap,e,n),N(this.onceEventToHandlersMap,e,n)&&delete this.onceEventToHandlersMap[e]}},{key:"on",value:function(e,t){B(this.eventToHandlersMap,e,t)}},{key:"off",value:function(e){e?(delete this.eventToHandlersMap[e],delete this.onceEventToHandlersMap[e]):(this.eventToHandlersMap={},this.onceEventToHandlersMap={})}},{key:"once",value:function(e,t){B(this.onceEventToHandlersMap,e,t)}}])&&A(t.prototype,n),r&&A(t,r),e}(),V=n(0);function D(e){return(D="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 K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function z(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Z(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,i)}function q(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Z(o,r,i,s,a,"next",e)}function a(e){Z(o,r,i,s,a,"throw",e)}s(void 0)}))}}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(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 X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"default",(function(){return ne}));var ee={placeholder:"",suggestions:{brand:"Suggested brand",category:"Suggested category"},noResultsMessage:"No results found."};function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.labels&&t.labels.placeholder||t.placeholder,r=t.labels&&t.labels.noResultsMessage||t.noResultsMessage,i=X({},t.labels);return n&&(i.placeholder=n),r&&(i.noResultsMessage=r),Object.assign({},e,i,{suggestions:Object.assign({},e.suggestions,i.suggestions)})}var ne=function(e){function t(e,n){var r,u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u=function(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?Y(e):t}(this,U(t).call(this)),J(Y(Y(u)),"getOptions",(function(){return u.options})),J(Y(Y(u)),"getSearchBoxHTML",(function(){return u._container})),J(Y(Y(u)),"onAdd",(function(e){return u.options.cssStyleCheck&&Object(V.a)(["SearchBox.css"]),u._map=e,u._container.classList.add("mapboxgl-ctrl","tt-ctrl"),u._container})),J(Y(Y(u)),"onRemove",(function(){u._container.parentNode.removeChild(u._container),u._map=void 0})),J(Y(Y(u)),"query",(function(){var e=u.options.searchOptions&&u.options.searchOptions.typeahead||!1;u._query({triggeredBySubmit:!0,useTypeahead:e})})),J(Y(Y(u)),"_query",q(regeneratorRuntime.mark((function e(){var t,n,r,o,s,a,c,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=p.length>0&&void 0!==p[0]?p[0]:{triggeredBySubmit:!1,useTypeahead:!0},(n=u._inputWrapper.getValue().trim())||u._inputWrapper.isFilterSet()){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,u._runSearch(t.useTypeahead);case 6:r=e.sent,o=r.results,s=r.errors,a=o.autocomplete,c=o.fuzzySearch,u.options.filterSearchResults&&c&&c.results&&(c.results=c.results.filter(u.options.filterSearchResults)),n===u._inputWrapper.getValue().trim()&&u._resultList.appendResults([c,a]),u.fire(i,l(null,X({metadata:{triggeredBy:t.triggeredBySubmit?"submit":"input"}},Object.keys(o).length>0&&{results:o},{},Object.keys(s).length>0&&{errors:s})));case 13:case"end":return e.stop()}}),e)})))),J(Y(Y(u)),"updateOptions",(function(e){var t=u.options.labels;u.options=X({},u.options,{},e),u.options.labels=te(t,e),u._resultList.updateOptions(u.options),u._inputWrapper.updateOptions(u.options)})),J(Y(Y(u)),"setValue",(function(e){u._inputWrapper.setValue(e),u._inputWrapper.previousValue=e})),J(Y(Y(u)),"getValue",(function(){return u._inputWrapper.getValue()})),J(Y(Y(u)),"setFilter",(function(e){var t=e.type,n=e.value;if(!t||!n)throw new Error("Invalid filterOptions format passed. Expected object properties are[type] and [value]");u.removeFilter();var r=u._availableFilters[t](n),i=r.displayedInputValue,o=z(r,["displayedInputValue"]);u._inputWrapper.updateFilter({text:i,type:t},!0);var s=X({},u.options,{searchOptions:X({},u.options.searchOptions,{},o)});u.updateOptions(s),u._inputWrapper._closeIcon.classList.remove("-hidden")})),J(Y(Y(u)),"_availableFilters",(J(r={},g,(function(e){return{categorySet:e.id,displayedInputValue:e.name}})),J(r,y,(function(e){return{brandSet:e.name,displayedInputValue:e.name}})),r)),J(Y(Y(u)),"removeFilter",(function(){u.options.searchOptions&&(u.options.searchOptions.brandSet&&delete u.options.searchOptions.brandSet,u.options.searchOptions.categorySet&&delete u.options.searchOptions.categorySet),u._inputWrapper._clearFilter()})),J(Y(Y(u)),"_createSearchBoxContainer",(function(){return u._container=document.createElement("div"),u._container.className="tt-search-box",u._addInputWrapper(),u._addResultList(),u._container})),J(Y(Y(u)),"_onInputClear",(function(){u._resultList.clearResults()})),J(Y(Y(u)),"_handleInputClick",(function(){u._resultList.setVisibility(!0)})),J(Y(Y(u)),"_handleInputBlur",(function(){u._resultList.setVisibility(!1)})),J(Y(Y(u)),"_handleKeydown",function(){var e=q(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.keyCode||t.which)!==p&&n!==c||t.preventDefault(),n!==h||-1!==u._resultList.getHighlightedIndex()||!u.options.searchOptions){e.next=9;break}return t.preventDefault(),e.next=6,u._query({useTypeahead:!1,triggeredBySubmit:!0});case 6:return u._resultList.clearResults(),u._resultList.setVisibility(!1),e.abrupt("return");case 9:if(n!==d){e.next=13;break}return t.preventDefault(),u._resultList.setVisibility(!1),e.abrupt("return");case 13:u._resultList.setVisibility(!0);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),J(Y(Y(u)),"_handleKeyup",(function(e){var t=e.keyCode||e.which;t!==c&&t!==p||-1===u._resultList.getHighlightedIndex()&&u._restoreOriginalQuery()})),J(Y(Y(u)),"_restoreOriginalQuery",(function(){var e=u._inputWrapper.getPreviousData(),t=e.previousValue,n=e.previousFilterOptions;if(n.filterType){u._inputWrapper.updateFilter({type:n.filterType,text:n.filterText},!1,!1)}else u.removeFilter();t&&u._inputWrapper.setValue(t),u.fire(a)})),J(Y(Y(u)),"_addResultList",(function(){u._resultList=new E(Y(Y(u)),u._container,u.options)})),J(Y(Y(u)),"_addInputWrapper",(function(){u._inputWrapper=new M(Y(Y(u)),u._container,u.options,{onInput:u._onInputChange,onKeydown:u._handleKeydown,onKeyup:u._handleKeyup,onClear:u._onInputClear,onClick:u._handleInputClick,onBlur:u._handleInputBlur,onFilterReset:u._onFilterReset})})),J(Y(Y(u)),"_onResultSelected",function(){var e=q(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u._onResultFocused(t),u._updateSelectedResultFilter(t),u._resultList.clearResults(),u._inputWrapper.toggleInputFocus(!1);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),J(Y(Y(u)),"_onResultFocused",function(){var e=q(regeneratorRuntime.mark((function e(t){var n,r,i,o,s,a,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:"matches"in t.data.result?(n=t.data.result.matches.inputQuery[0],r=n.offset,i=n.length,o=u._inputWrapper.isFilterSet()||!u._isInputFilledWithSelectedResult,s=o?u._inputWrapper.getValue():"",a=s.split(s.slice(r,r+i)).join("").trim(),u._inputWrapper.setValue(a),l=t.data.result.type,u._inputWrapper.updateFilter({text:t.data.text,type:l}),u._isInputFilledWithSelectedResult=!1):(u._inputWrapper.setValue(t.data.text),u._inputWrapper._clearFilter(!1),u._isInputFilledWithSelectedResult=!0);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),J(Y(Y(u)),"_onFilterReset",(function(){var e=X({},u.options.searchOptions);delete e.categorySet,delete e.brandSet,u.options=Object.assign({},u.options,{searchOptions:e})})),J(Y(Y(u)),"_onInputChange",(function(e){u.options.minNumberOfCharacters>e.length||(u._query(),u._isInputFilledWithSelectedResult=!1)})),J(Y(Y(u)),"_runSearch",(function(e){var t=u._inputWrapper.getValue().trim(),n={};if(u.options.searchOptions){var r=X({query:t,typeahead:u._inputWrapper.isFilterSet()||e},u._map&&{center:u._map.getCenter()},{},u.options.searchOptions);n.fuzzySearch=u.fuzzySearch(r)}if(u.options.autocompleteOptions&&!u._inputWrapper.isFilterSet()){var i=X({query:t},u._map&&{center:u._map.getCenter()},{},u.options.autocompleteOptions);n.autocomplete=u.autocomplete(i)}return u._transformSearchResponse(n)})),J(Y(Y(u)),"_transformSearchResponse",(function(e){return Promise.all(Object.entries(e).map((function(e){var t=K(e,2),n=t[0];return t[1].go().then((function(e){return{name:n,value:e,resolved:!0}})).catch((function(e){return{name:n,value:e,rejected:!0}}))}))).then((function(e){return{results:e.filter((function(e){return e.resolved})).reduce((function(e,t){return X({},e,J({},t.name,t.value))}),{}),errors:e.filter((function(e){return e.rejected})).reduce((function(e,t){return X({},e,J({},t.name,t.value))}),{})}}))})),u.fuzzySearch=e.fuzzySearch,u.autocomplete=e.autocomplete,u.options=Object.assign({},{idleTimePress:200,minNumberOfCharacters:3,searchOptions:null,autocompleteOptions:null,showSearchButton:!0,cssStyleCheck:!0},n),u.options.labels=te(ee,n),u._createSearchBoxContainer(),u.on(o,u._onResultSelected.bind(Y(Y(u)))),u.on(s,u._onResultFocused.bind(Y(Y(u)))),u}var n,r,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Q(e,t)}(t,e),n=t,(r=[{key:"_updateSelectedResultFilter",value:function(e){var t;if("matches"in e.data.result){var n=e.data.result.type;n===g&&(t={categorySet:e.data.result.id}),n===y&&(t={brandSet:e.data.result.value})}this.options=Object.assign({},this.options,{searchOptions:Object.assign({},this.options.searchOptions,t)})}}])&&$(n.prototype,r),u&&$(n,u),t}(H)}]).default})); | ||
"document"in window.self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(t){"use strict";if("Element"in t){var e=t.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},o=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},i=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new i("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new i("INVALID_CHARACTER_ERR","String contains an invalid character");return o.call(t,e)},s=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],o=0,i=n.length;o<i;o++)this.push(n[o]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},u=s.prototype=[],c=function(){return new s(this)};if(i.prototype=Error.prototype,u.item=function(t){return this[t]||null},u.contains=function(t){return-1!==a(this,t+="")},u.add=function(){var t,e=arguments,n=0,r=e.length,o=!1;do{t=e[n]+"",-1===a(this,t)&&(this.push(t),o=!0)}while(++n<r);o&&this._updateClassName()},u.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=!1;do{for(t=n[r]+"",e=a(this,t);-1!==e;)this.splice(e,1),i=!0,e=a(this,t)}while(++r<o);i&&this._updateClassName()},u.toggle=function(t,e){t+="";var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},u.toString=function(){return this.join(" ")},n.defineProperty){var l={get:c,enumerable:!0,configurable:!0};try{n.defineProperty(e,"classList",l)}catch(t){void 0!==t.number&&-2146823252!==t.number||(l.enumerable=!1,n.defineProperty(e,"classList",l))}}else n.prototype.__defineGetter__&&e.__defineGetter__("classList",c)}}(window.self),function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,r=arguments.length;for(n=0;n<r;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}())},function(t,e,n){t.exports=n.p+"src/SearchBox/dist/SearchBox.css"},,function(t,e,n){"use strict";n.r(e);n(11);var r=40,o=38,i=46,a=13,s=27,u=8,c="FUZZY_SEARCH",l="AUTOCOMPLETE",f="brand",p="category",h='\n <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <path d="M10.5,4 C14.0898509,4 17,6.91014913 17,10.5 C17,11.9337106 16.5358211,13.2590065 15.7495478,14.3338028 L19.7071068,18.2928932 C20.0976311,18.6834175 20.0976311,19.3165825 19.7071068,19.7071068 C19.3165825,20.0976311 18.6834175,20.0976311 18.2928932,19.7071068 L14.3338028,15.7495478 C13.2590065,16.5358211 11.9337106,17 10.5,17 C6.91014913,17 4,14.0898509 4,10.5 C4,6.91014913 6.91014913,4 10.5,4 Z M10.5,6 C8.01471863,6 6,8.01471863 6,10.5 C6,12.9852814 8.01471863,15 10.5,15 C12.9852814,15 15,12.9852814 15,10.5 C15,8.01471863 12.9852814,6 10.5,6 Z" id="Shape"></path>\n </svg>',d='\n <svg xmlns="http://www.w3.org/2000/svg" width="15" height="13" viewBox="0 0 15 13">\n <path d="M15.512418,11.5 L19.9637666,7.28870352 C20.1223719,7.13865149 20.1223719,6.89512441 19.9637666,6.74507238 L18.2390424,5.11253903 C18.0795704,4.96248699 17.8221618,4.96248699 17.6635565,5.11253903 L13.2122078,9.3238355 L8.7608592,5.11253903 C8.68545669,5.04120281 8.58145321,5.00020499 8.47398296,5.00020499 C8.36564601,5.00020499 8.26250923,5.04120281 8.18624002,5.11253903 L6.46064906,6.74507238 C6.38437985,6.81722855 6.34191176,6.91480337 6.34191176,7.01729793 C6.34191176,7.11979249 6.38437985,7.21736731 6.46064906,7.28952348 L10.9119977,11.5 L6.46064906,15.7112965 C6.38437985,15.7834526 6.34191176,15.8810275 6.34191176,15.9827021 C6.34191176,16.0851966 6.38437985,16.1827715 6.46064906,16.2549276 L8.18624002,17.887461 C8.26250923,17.9596171 8.36564601,17.999795 8.47398296,17.999795 C8.58145321,17.999795 8.68545669,17.9596171 8.7608592,17.887461 L13.2122078,13.6761645 L17.6635565,17.887461 C17.8221618,18.037513 18.0795704,18.037513 18.2390424,17.887461 L19.9637666,16.2549276 C20.1223719,16.1048756 20.1223719,15.8613485 19.9637666,15.7112965 L15.512418,11.5 Z" transform="translate(-5.544 -5)"/>\n </svg>';function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t}var b=function(){function t(e,n,r,o,i){var a,s,u,c=this;_(this,t),u=function(){c._actions.onResultSelected(c._index)},(s="_onSelect")in(a=this)?Object.defineProperty(a,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):a[s]=u,this._options=r,this._actions=o,this._result=e,this._type=n,this._index=i,this._createResultElement()}return y(t,[{key:"getContainer",value:function(){return this._container}},{key:"_createResultElement",value:function(){this._container=document.createElement("div"),this._container.onmousedown=function(t){return t.preventDefault()},this._container.onclick=this._onSelect,this._container.className="tt-search-box-result-list",this._container.setAttribute("data-testid","result-item");var t=function(t){return'<span class="tt-search-box-result-list-bold">'.concat(t,"</span>")},e=function(t){return'<span class="tt-search-box-result-list-text-content">'.concat(t,"</span>")};switch(this._type){case c:var n=this._getAddress(),r=this._getPoiName(),o=null;n&&r?o="".concat(t(r)," ").concat(n):n&&(o="".concat(t(n))),o&&(this._container.innerHTML="".concat('\n <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <path d="M12,4 C15.3068357,4 18,6.61029768 18,9.84615385 C18,11.813391 16.4537597,14.7566138 13.3693459,18.8534202 L13.3693459,18.8534202 L12.7915956,19.6110453 C12.3912752,20.1296516 11.6087248,20.1296516 11.2084044,19.6110453 C7.73934285,15.1169529 6,11.9326175 6,9.84615385 C6,6.61029768 8.69316428,4 12,4 Z M12,6 C9.78398823,6 8,7.72909628 8,9.84615385 C8,11.1589113 9.25046927,13.5982613 11.758095,17.016979 L11.758095,17.016979 L11.999,17.344 L12.4887469,16.6780042 C14.7534108,13.5448791 15.9207088,11.2710802 15.9960961,9.97670688 L15.9960961,9.97670688 L16,9.84615385 C16,7.72909628 14.2160118,6 12,6 Z M12,8 C13.1045695,8 14,8.8954305 14,10 C14,11.1045695 13.1045695,12 12,12 C10.8954305,12 10,11.1045695 10,10 C10,8.8954305 10.8954305,8 12,8 Z" id="Combined-Shape" fill-rule="nonzero"></path>\n </svg>'," ").concat(e("".concat(o))));break;case l:var i=this._getSuggestionName(),a=this._getSuggestionType();if(i&&a){var s="plaintext"===a?"":" ".concat(this._options.labels.suggestions[a]);this._container.innerHTML="".concat(h," ").concat(e("".concat(t(i)).concat(s)))}}}},{key:"_getSuggestionName",value:function(){return this._result.value?this._result.value:null}},{key:"_getSuggestionType",value:function(){return this._result.type?this._result.type:null}},{key:"_getPoiName",value:function(){return void 0!==this._result.poi&&void 0!==this._result.poi.name?this._result.poi.name:null}},{key:"_getAddress",value:function(){if(void 0!==this._result.address){var t=[];return void 0!==this._result.address.freeformAddress&&t.push(this._result.address.freeformAddress),void 0!==this._result.address.countryCodeISO3&&t.push(this._result.address.countryCodeISO3),t.join(", ")}return null}}]),t}(),g=function(){function t(e){_(this,t),this._container=document.createElement("div"),this._container.className="tt-search-box-result-list",this._container.innerText=e}return y(t,[{key:"select",value:function(){}},{key:"getContainer",value:function(){return this._container}}]),t}(),m={resultListElement:function(t,e,n,r,o,i){return new b(t,e,n,r,o,i)},noResultsListElement:function(t){return new g(t)}};function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=function t(e,n,r){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),j(this,"_setVisibility",(function(t){t?o._container.removeAttribute("hidden"):o._container.setAttribute("hidden",!0)})),j(this,"_convertSearchResponseToListElements",(function(t){var e=o.store.getCurrentState().options;return t.length?t.map((function(t,n){return m.resultListElement(t.result,t.type,e,o.actions,n)})):[m.noResultsListElement(e.labels.noResultsMessage)]})),j(this,"_clearResults",(function(){for(;o._container.firstChild;)o._container.removeChild(o._container.firstChild),o._container.style.height="0px"})),j(this,"_updateHighlightedElementStyle",(function(t,e){var n=o._container.childNodes[e];n&&(n.classList[t]("-highlighted"),"add"===t&&function(t,e,n){(!n||n&&!function(t,e){var n=t.scrollTop,r=n+t.clientHeight,o=e.offsetTop,i=o+e.clientHeight;return o>=n&&i<=r}(t,e))&&(t.scrollTop=e.offsetTop-t.offsetTop)}(o._container,n,!0))})),j(this,"_appendResults",(function(t){o._clearResults(),o._convertSearchResponseToListElements(t).forEach((function(t){o._container.appendChild(t.getContainer())}),o),o._container.style.height="auto"})),j(this,"update",(function(){var t=o.store.getCurrentState(),e=t.resultData,n=t.showResultList,r=t.resultIndexPosition;o._setVisibility(n),e?(o._appendResults(e),o._updateHighlightedElementStyle(-1!==r?"add":"remove",r)):o._clearResults()})),this.actions=r,this.store=n,this._container=document.createElement("div"),this._container.className="tt-search-box-result-list-container",this._container.setAttribute("hidden",!0),e.appendChild(this._container)},O=n(4),S=n.n(O);function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x=function t(e,n,c){var l=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),C(this,"_create",(function(){l._inputContainer=document.createElement("div"),l._inputContainer.className="tt-search-box-input-container",l._inputContainer.onmousedown=function(t){return t.preventDefault()},l._inputContainer.oninput=S()((function(){l._enterKeyPressed||l.actions.runQuery(!1,!0)}),l.store.getCurrentState().options.idleTimePress),l._inputContainer.addEventListener("input",(function(t){return l.actions.setNewValue(t.target.value)})),l._inputContainer.onkeydown=l._onKeyDown,l._addSearchIcon(),l._addFilter(),l._addInput(),l._addClearIcon()})),C(this,"_addSearchIcon",(function(){l.store.getCurrentState().options.showSearchButton&&(l._searchIcon=document.createElement("div"),l._searchIcon.innerHTML=h,l._inputContainer.appendChild(l._searchIcon))})),C(this,"_addFilter",(function(){l._filter=document.createElement("div"),l._filter.className="tt-searchbox-filter-label",l._filter.style="display: none",l._filterText=document.createElement("div"),l._filterText.className="tt-searchbox-filter-label__text",l._filterRemoveButton=document.createElement("div"),l._filterRemoveButton.className="tt-searchbox-filter-label__close-button",l._filterRemoveButton.innerHTML=d,l._filter.appendChild(l._filterText),l._filter.appendChild(l._filterRemoveButton),l._inputContainer.appendChild(l._filter)})),C(this,"_addInput",(function(){l._input=document.createElement("input"),l._input.className="tt-search-box-input",l._setPlaceholder(),l._input.onmousedown=function(t){return t.stopPropagation()},l._input.onfocus=function(){return l.actions.updateFocus(!0)},l._input.onblur=function(){return l.actions.updateFocus(!1)},l._inputContainer.appendChild(l._input)})),C(this,"_indicateFilterRemoval",(function(t){l._filter.classList.toggle("-highlighted",t),l._isDeletionConfirmed=t})),C(this,"_onBackspaceOrDelete",(function(t){var e=l.store.getCurrentState().filter,n=0===l._input.selectionStart,r=l._input.selectionEnd-l._input.selectionStart,o=0!==r&&r===l._input.value.length;n&&e&&(l._isDeletionConfirmed?(l._indicateFilterRemoval(!1),l.actions.onClearFilterClick()):!o&&t&&l._indicateFilterRemoval(!0))})),C(this,"_onKeyDown",(function(t){var e=t.keyCode||t.which,n=e===u||e===i,c=e===u;l._enterKeyPressed=!1,c||l._indicateFilterRemoval(!1),n&&l._onBackspaceOrDelete(c),e!==o&&e!==r||(t.preventDefault(),l._onArrowUpDownPress(e)),e===a&&(t.preventDefault(),l._enterKeyPressed=!0,l.actions.onEnterKeyPress()),e===s&&(t.preventDefault(),l.actions.onEscKeyPress())})),C(this,"_onArrowUpDownPress",(function(t){var e,n=l.store.getCurrentState(),r=n.resultIndexPosition,i=n.resultData,a=void 0===i?[]:i;t===o&&-1===r||!a.length||(e=t===o?r-1<0?-1:r-1:r+1>=a.length?0:r+1,l.actions.updateOnArrowPress(e))})),C(this,"_addClearIcon",(function(){l._closeIcon=document.createElement("div"),l._closeIcon.className="tt-search-box-close-icon -hidden",l._closeIcon.innerHTML=d,l._inputContainer.appendChild(l._closeIcon),l._closeIcon.onclick=function(){l._indicateFilterRemoval(!1),l.actions.onClearClick()}})),C(this,"_setPlaceholder",(function(){var t=l.store.getCurrentState().options;l._input.setAttribute("placeholder",t.labels.placeholder)})),C(this,"_updateFilter",(function(t){l._filterText.innerText=t.text,l._filter.style="",l._filterRemoveButton.onclick=function(){l._indicateFilterRemoval(!1),l.actions.onClearFilterClick()}})),C(this,"update",(function(){var t=l.store.getCurrentState(),e=t.resultData,n=t.value,r=void 0===n?"":n,o=t.filter,i=t.isFocused;l._input.value!==r&&(l._input.value=r),l._closeIcon.classList[e||r.length||o?"remove":"add"]("-hidden"),l._setPlaceholder(),l._input[i?"focus":"blur"](),l._inputContainer.classList[i?"add":"remove"]("-focused"),o?l._updateFilter(o):l._filter.style="display: none",l._indicateFilterRemoval(l._isDeletionConfirmed)})),this.actions=c,this.store=n,this._create(),e.appendChild(this._inputContainer),this._isDeletionConfirmed=!1,this._enterKeyPressed=!1};n(12);function A(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function P(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function E(t,e,n){var r=t[e];r||(r=[],t[e]=r),r.push(n)}function R(t,e,n){var r=t[e];return r&&r.forEach((function(t){t.apply(void 0,P(n))})),r}var D=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.eventToHandlersMap={},this.onceEventToHandlersMap={}}var e,n,r;return e=t,(n=[{key:"fire",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];R(this.eventToHandlersMap,t,n),R(this.onceEventToHandlersMap,t,n)&&delete this.onceEventToHandlersMap[t]}},{key:"on",value:function(t,e){E(this.eventToHandlersMap,t,e)}},{key:"off",value:function(t){t?(delete this.eventToHandlersMap[t],delete this.onceEventToHandlersMap[t]):(this.eventToHandlersMap={},this.onceEventToHandlersMap={})}},{key:"once",value:function(t,e){E(this.onceEventToHandlersMap,t,e)}}])&&A(e.prototype,n),r&&A(e,r),t}(),T=n(0),L=n(5),k=n.n(L),F=n(6),I=n.n(F);function M(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function B(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){U(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function U(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $={placeholder:"",suggestions:{brand:"Suggested brand",category:"Suggested category"},noResultsMessage:"No results found."};function V(t){return I()(t,(function(t){if(t&&t._sw&&t._ne){var e=new t.constructor;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]instanceof Object?e[n]=V(t[n]):e[n]=t[n]);return e}}))}var K=function(){function t(e,n,r){var o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),U(this,"__updater",(function(t){return function(){for(var e=V(o._state),n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(o,r),k()(o._state,e)||o.onUpdate()}})),U(this,"_getInitialState",(function(){return{value:"",showClearButton:!1,isFocused:!1,resultData:void 0,showResultList:!1,resultIndexPosition:-1,filter:void 0,restoreData:void 0}})),U(this,"_processOptions",(function(t){var e=o._state&&o._state.options||{idleTimePress:200,minNumberOfCharacters:3,searchOptions:null,autocompleteOptions:null,showSearchButton:!0,cssStyleCheck:!0},n=Object.assign({},e,t);return n.labels=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.labels&&e.labels.placeholder||e.placeholder,r=e.labels&&e.labels.noResultsMessage||e.noResultsMessage,o=H({},e.labels);return n&&(o.placeholder=n),r&&(o.noResultsMessage=r),Object.assign({},t,o,{suggestions:Object.assign({},t.suggestions,o.suggestions)})}($,t),n})),U(this,"_findAutocompleteResponseSegments",(function(t,e){var n={};for(var r in t){var o=t[r].segments;for(var i in o){if(Object.keys(n).length===e)break;var a=o[i];"plaintext"!==a.type&&(n[a.type+a.value]=a)}}return n})),U(this,"_hasAnyResults",(function(t,e){return!(t&&t.results&&t.results.length||e&&e.results&&e.results.length)})),U(this,"_combineSearchResponse",(function(t){var e=N(t,2),n=e[0],r=e[1];o._hasAnyResults(n,r)&&(o._state.combinedResults=[]);var i=[];if(r&&r.results){var a=o._findAutocompleteResponseSegments(r.results,2);i.push.apply(i,M(Object.values(a).map((function(t){return{result:t,type:l}}))))}return n&&i.push.apply(i,M(n.results.map((function(t){return{result:t,type:c}})))),i})),U(this,"_getResultText",(function(t){switch(t.type){case c:return t.result.poi?t.result.poi.name+", "+t.result.address.freeformAddress:t.result.address.freeformAddress;case l:return t.result.value}return""})),U(this,"_getTextForFilterResult",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t.matches||!Array.isArray(t.matches.inputQuery))return"";var n=t.matches.inputQuery[0],r=n.offset,o=n.length;return e.split(e.slice(r,r+o)).join("").trim()})),U(this,"_updateInputAndFilterStateOnResultChanged",(function(t){var e=o._state.resultData[t],n=e.result;if(e.type===l){var r=n.type;o._state.filter=H({},r===p&&{categorySet:n.id},{},r===f&&{brandSet:n.value},{type:r,text:o._getResultText(e)});var i=o._state.restoreData&&o._state.restoreData.value||o._state.value;o._state.value=o._getTextForFilterResult(e.result,i)}else o._state.filter=void 0,o._state.value=o._getResultText(e)})),U(this,"_emitResultEvent",(function(t,e){var n=o._state.resultData[t];o.events[e]({result:n.result,text:o._getResultText(n)})})),U(this,"_restoreInput",(function(){o._state.value=o._state.restoreData.value,o._state.filter=o._state.restoreData.filter,o.events.inputRestored()})),U(this,"getCurrentState",(function(){return V(o._state)})),U(this,"getMapCenter",(function(){return o.mapCenter})),U(this,"storeOptions",this.__updater((function(t){o._state.options=o._processOptions(t)}))),U(this,"storeInputManually",(function(t){o._state.resultIndexPosition=-1,o._state.resultData=void 0,o.storeInput(t)})),U(this,"storeInput",this.__updater((function(t){o._state.value=t,t.length?o._state.restoreData={value:t,filter:o._state.filter}:o._state.filter||(o._state.resultIndexPosition=-1,o._state.resultData=void 0,o.events.resultsCleared())}))),U(this,"reset",this.__updater((function(){o._state=H({},o._state,{},o._getInitialState(),{isFocused:!0}),o._state.options.searchOptions&&(delete o._state.options.searchOptions.categorySet,delete o._state.options.searchOptions.brandSet)}))),U(this,"updateResults",this.__updater((function(t){o._state.resultData=o._combineSearchResponse(t),o._state.resultIndexPosition=-1}))),U(this,"storeResults",(function(t){o._state.showResultList=!0,o.updateResults(t)})),U(this,"updateOnUpDownPress",this.__updater((function(t){o._state.resultIndexPosition=t,-1!==o._state.resultIndexPosition?(o._state.showResultList=!0,o._emitResultEvent(o._state.resultIndexPosition,"resultFocused"),o._updateInputAndFilterStateOnResultChanged(o._state.resultIndexPosition)):o._restoreInput()}))),U(this,"onResultSelected",this.__updater((function(t){o._emitResultEvent(t,"resultSelected"),o._updateInputAndFilterStateOnResultChanged(t),o._state.resultData=void 0,o._state.showResultList=!1,o._state.resultIndexPosition=-1,o._state.restoreData=void 0}))),U(this,"onRemoveFilter",this.__updater((function(){o._state.filter=void 0,o._state.resultIndexPosition=-1,o._state.restoreData&&(o._state.restoreData.filter=void 0),o._state.value.length&&""!==o._state.value?(o._state.restoreData=o._state.restoreData||{},o._state.restoreData.value=o._state.value):(o._state.resultData=void 0,o._state.restoreData=void 0,o.events.resultsCleared()),o._state.options.searchOptions&&(delete o._state.options.searchOptions.categorySet,delete o._state.options.searchOptions.brandSet)}))),U(this,"onEnterKeyPress",this.__updater((function(){o._state.showResultList=!1,o._state.resultIndexPosition=-1}))),U(this,"onEscKeyPress",this.__updater((function(){!1===o._state.showResultList&&(o._state.isFocused=!1),o._state.showResultList=!1}))),U(this,"updateFocus",this.__updater((function(t){o._state.isFocused=t,o._state.resultData&&(o._state.showResultList=t)}))),U(this,"setNewFilter",this.__updater((function(t){o._state.filter=t,o._state.restoreData=H({},o._state.restoreData&&o._state.restoreData||{},{filter:o._state.filter}),o._state.options.searchOptions&&(o._state.options.searchOptions.categorySet=t.categorySet||void 0,o._state.options.searchOptions.brandSet=t.brandSet||void 0)}))),this.onUpdate=e,this.events=r,this._state=H({},this._getInitialState(),{options:this._processOptions(n)})}var e,n,r;return e=t,(n=[{key:"setMapCenter",value:function(t){this.mapCenter=t}}])&&B(e.prototype,n),r&&B(e,r),t}();function W(t,e,n,r,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,o)}function Z(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){W(i,r,o,a,s,"next",t)}function s(t){W(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){q(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function X(t,e,n){function r(n,r,o){var i=t.getCurrentState().filter,a=t.getMapCenter(),s=Boolean(i),u={};if(n.searchOptions){var c=Y({},s&&i.categorySet&&{categorySet:i.categorySet},{},s&&i.brandSet&&{brandSet:i.brandSet}),l=Y({query:r,typeahead:s||o},a&&{center:a},{},n.searchOptions,{},c);u.fuzzySearch=e.fuzzySearch(l)}if(n.autocompleteOptions&&!s){var f=Y({query:r},a&&{center:a},{},n.autocompleteOptions);u.autocomplete=e.autocomplete(f)}return function(t){return Promise.all(Object.entries(t).map((function(t){var e=Q(t,2),n=e[0];return e[1].go().then((function(t){return{name:n,value:t,resolved:!0}})).catch((function(t){return{name:n,value:t,rejected:!0}}))}))).then((function(t){return{results:t.filter((function(t){return t.resolved})).reduce((function(t,e){return Y({},t,q({},e.name,e.value))}),{}),errors:t.filter((function(t){return t.rejected})).reduce((function(t,e){return Y({},t,q({},e.name,e.value))}),{})}}))}(u)}var o,i=Z(regeneratorRuntime.mark((function e(){var i,a,s,u,c,l,f,p,h,d,_,v,y,b,g,m=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=m.length>0&&void 0!==m[0]?m[0]:{},a=i.triggeredBySubmit,s=void 0!==a&&a,u=i.useTypeahead,c=void 0===u||u,l=Date.now(),o=l,f=t.getCurrentState(),p=f.value,h=f.options,d=f.filter,!(p.length<h.minNumberOfCharacters&&!d||0===p.trim().length&&!d)){e.next=6;break}return e.abrupt("return",void 0);case 6:return e.next=8,r(h,p,c);case 8:if(_=e.sent,v=_.results,y=_.errors,b=v.autocomplete,g=v.fuzzySearch,h.filterSearchResults&&g&&g.results&&(g.results=g.results.filter(h.filterSearchResults)),l!==o){e.next=16;break}return n.resultsFound({triggeredBy:s?"submit":"input",results:v,errors:y}),e.abrupt("return",[g,b]);case 16:return e.abrupt("return",void 0);case 17:case"end":return e.stop()}}),e)})));function a(e,n){var r=t.getCurrentState().options,o=n||r.searchOptions&&r.searchOptions.typeahead||!1;i({useTypeahead:o,triggeredBySubmit:e}).then((function(n){n&&(e?t.updateResults(n):t.storeResults(n))}))}return{onClearClick:function(){t.reset(),n.resultsCleared()},onResultSelected:function(e){t.onResultSelected(e)},onClearFilterClick:function(){t.onRemoveFilter(),t.updateFocus(!0),a(!1,!0)},onEnterKeyPress:function(){var e=t.getCurrentState().resultIndexPosition;-1!==e?t.onResultSelected(e):(t.onEnterKeyPress(),a(!0,!1))},updateOnArrowPress:function(e){t.updateOnUpDownPress(e)},onEscKeyPress:function(){t.onEscKeyPress()},updateFocus:function(e){t.updateFocus(e)},runQuery:a,setNewValue:function(e){t.storeInput(e)},setNewValueManually:function(e){t.storeInputManually(e)},setNewFilter:function(e){t.setNewFilter(e)},setMapCenter:function(e){t.setMapCenter(e)},removeFilter:function(){t.onRemoveFilter()}}}var J="tomtom.searchbox.resultscleared",tt="tomtom.searchbox.resultsfound",et="tomtom.searchbox.resultselected",nt="tomtom.searchbox.resultfocused",rt="tomtom.searchbox.inputrestored",ot=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.origin=e,this.data=n},it=function(t,e){return new ot(t,e)};function at(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function st(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?at(Object(n),!0).forEach((function(e){ut(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(t){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lt(t){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ft(t,e){return(ft=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ht(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"default",(function(){return dt}));var dt=function(t){function e(t,n){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=function(t,e){return!e||"object"!==ct(e)&&"function"!=typeof e?pt(t):e}(this,lt(e).call(this)),ht(pt(pt(r)),"_onStoreChange",(function(){r._inputWrapper.update(),r._resultList.update()})),ht(pt(pt(r)),"_createSearchBoxContainer",(function(){return r._container=document.createElement("div"),r._container.className="tt-search-box",r._inputWrapper=new x(r._container,r.store,r.userActions),r._resultList=new w(r._container,r.store,r.userActions),r._container})),ht(pt(pt(r)),"getOptions",(function(){return r.store.getCurrentState().options})),ht(pt(pt(r)),"updateOptions",(function(t){r.store.storeOptions(t)})),ht(pt(pt(r)),"getSearchBoxHTML",(function(){return r._container})),ht(pt(pt(r)),"onAdd",(function(t){return r.store.getCurrentState().options.cssStyleCheck&&Object(T.a)(["SearchBox.css"]),r._map=t,r._map.on("move",(function(){return r.userActions.setMapCenter(t.getCenter())})),r._container.classList.add("mapboxgl-ctrl","tt-ctrl"),r._container})),ht(pt(pt(r)),"onRemove",(function(){r._container.parentNode.removeChild(r._container),r._map=void 0})),ht(pt(pt(r)),"query",(function(){r.userActions.runQuery(!0)})),ht(pt(pt(r)),"setValue",(function(t){r.userActions.setNewValueManually(t)})),ht(pt(pt(r)),"getValue",(function(){return r.store.getCurrentState().value||""})),ht(pt(pt(r)),"setFilter",(function(t){var e,n=t.value,o=t.type,i=r.store.getCurrentState().options;if(!o||!n)throw new Error("setFilter: Invalid filterOptions format passed. Expected object properties are[type] and [value]");if(!i.searchOptions)throw new Error("setFilter: You can not use setFilter without setting searchOptions.");if("category"===o)e={categorySet:n.id,text:n.name,type:"category"};else{if("brand"!==o)throw new Error("setFilter: Filter type is expected to be 'category' or 'brand'.");e={brandSet:n.name,text:n.name,type:"category"}}r.userActions.setNewFilter(e)})),ht(pt(pt(r)),"removeFilter",(function(){r.store.getCurrentState().options.searchOptions&&r.userActions.removeFilter()}));var o,i=(o=pt(pt(r)),{resultsFound:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.triggeredBy,n=t.results,r=t.errors;o.fire(tt,it(null,st({metadata:{triggeredBy:e}},Object.keys(n).length>0&&{results:n},{},Object.keys(r).length>0&&{errors:r})))},resultsCleared:function(){o.fire(J)},resultSelected:function(t){var e=t.result,n=t.text;o.fire(et,it(null,{result:e,text:n}))},resultFocused:function(t){var e=t.result,n=t.text;o.fire(nt,it(null,{result:e,text:n}))},inputRestored:function(){o.fire(rt)}});return r.store=new K(r._onStoreChange,n,i),r.userActions=X(r.store,t,i),r._createSearchBoxContainer(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ft(t,e)}(e,t),e}(D)}]).default})); |
{ | ||
"name": "@tomtom-international/web-sdk-plugin-searchbox", | ||
"version": "2.22.1", | ||
"version": "2.23.1", | ||
"description": "Plugin that provides SearchBox functionality to your map", | ||
@@ -22,3 +22,3 @@ "main": "dist/SearchBox.js", | ||
}, | ||
"gitHead": "117a95f2b3af4513432cb4a8264e16c09f33085b" | ||
"gitHead": "36ae62d5033fa96e01c62cfef8db04a5937f45ae" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
134935
175